Daily bump.
[official-gcc.git] / libgomp / ChangeLog
blob5f0b09615542f6de62eee5c5a356bd255a4d7d07
1 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
3         * target.c (gomp_map_vars_existing): Make sure attached pointer is
4         not overwritten during cross-host/device copying.
5         (gomp_update): Likewise.
6         (gomp_exit_data): Likewise.
7         * testsuite/libgomp.c++/target-11.C: Adjust testcase.
8         * testsuite/libgomp.c++/target-12.C: Likewise.
9         * testsuite/libgomp.c++/target-15.C: Likewise.
10         * testsuite/libgomp.c++/target-16.C: Likewise.
11         * testsuite/libgomp.c++/target-17.C: Likewise.
12         * testsuite/libgomp.c++/target-21.C: Likewise.
13         * testsuite/libgomp.c++/target-23.C: Likewise.
14         * testsuite/libgomp.c/target-23.c: Likewise.
15         * testsuite/libgomp.c/target-29.c: Likewise.
16         * testsuite/libgomp.c-c++-common/target-implicit-map-2.c: New testcase.
18 2021-12-08  Chung-Lin Tang  <cltang@codesourcery.com>
20         PR middle-end/92120
21         * libgomp.h (gomp_attach_pointer): Add bool parameter.
22         * oacc-mem.c (acc_attach_async): Update call to gomp_attach_pointer.
23         (goacc_enter_data_internal): Likewise.
24         * target.c (gomp_map_vars_existing): Update assert condition to
25         include GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION.
26         (gomp_map_pointer): Add 'bool allow_zero_length_array_sections'
27         parameter, add support for mapping a pointer with NULL target.
28         (gomp_attach_pointer): Add 'bool allow_zero_length_array_sections'
29         parameter, add support for attaching a pointer with NULL target.
30         (gomp_map_vars_internal): Update calls to gomp_map_pointer and
31         gomp_attach_pointer, add handling for
32         GOMP_MAP_ATTACH_ZERO_LENGTH_ARRAY_SECTION, and
33         GOMP_MAP_POINTER_TO_ZERO_LENGTH_ARRAY_SECTION cases.
34         * testsuite/libgomp.c++/target-23.C: New testcase.
35         * testsuite/libgomp.c++/target-lambda-1.C: New testcase.
36         * testsuite/libgomp.c++/target-lambda-2.C: New testcase.
37         * testsuite/libgomp.c++/target-this-1.C: New testcase.
38         * testsuite/libgomp.c++/target-this-2.C: New testcase.
39         * testsuite/libgomp.c++/target-this-3.C: New testcase.
40         * testsuite/libgomp.c++/target-this-4.C: New testcase.
41         * testsuite/libgomp.c++/target-this-5.C: New testcase.
43 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
45         * libgomp.texi (OpenMP 5.1): Update status.
47 2021-12-04  Tobias Burnus  <tobias@codesourcery.com>
49         * libgomp.texi (OMP_PLACES): Extend description for OMP 5.1 changes.
51 2021-12-02  Chung-Lin Tang  <cltang@codesourcery.com>
53         PR fortran/90030
54         * testsuite/libgomp.oacc-fortran/pr90030.f90: New test.
55         * testsuite/libgomp.fortran/pr90030.f90: New test.
57 2021-11-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
58             Thomas Schwinge  <thomas@codesourcery.com>
60         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Remove
61         temporary skip.
63 2021-11-30  Cesar Philippidis  <cesar@codesourcery.com>
64             Thomas Schwinge  <thomas@codesourcery.com>
66         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Temporarily
67         skip.
69 2021-11-29  Richard Biener  <rguenther@suse.de>
71         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): Remove unreachable
72         return.
74 2021-11-24  Jakub Jelinek  <jakub@redhat.com>
76         PR middle-end/103384
77         * testsuite/libgomp.c/declare-variant-2.c: New test.
79 2021-11-18  David Edelsohn  <dje.gcc@gmail.com>
81         * alloc.c (gomp_aligned_alloc): Fix typo.
83 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
85         PR libgomp/102838
86         * libgomp.h (GOMP_USE_ALIGNED_WORK_SHARES): Define if
87         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined and __AMDGCN__ is not.
88         (struct gomp_work_share): Use GOMP_USE_ALIGNED_WORK_SHARES instead of
89         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
90         * work.c (alloc_work_share, gomp_work_share_start): Likewise.
91         * team.c (gomp_new_team): If GOMP_USE_ALIGNED_WORK_SHARES, use
92         gomp_aligned_alloc instead of team_malloc.
94 2021-11-18  Jakub Jelinek  <jakub@redhat.com>
96         PR libgomp/102838
97         * alloc.c (gomp_aligned_alloc): Prefer _aligned_alloc over
98         memalign over posix_memalign over aligned_alloc over fallback
99         with malloc instead of aligned_alloc over _aligned_alloc over
100         posix_memalign over memalign over fallback with malloc.  For
101         aligned_alloc, round up size up to multiple of al.
103 2021-11-16  Jakub Jelinek  <jakub@redhat.com>
105         * libgomp.texi (OpenMP 5.1): Mark thread_limit clause to target
106         construct as implemented.
108 2021-11-15  Tobias Burnus  <tobias@codesourcery.com>
110         * testsuite/libgomp.fortran/thread-limit-1.f90: New test.
112 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
114         * task.c (gomp_create_target_task): Copy args array as well.
115         * target.c (gomp_target_fallback): Add args argument.
116         Set gomp_icv (true)->thread_limit_var if thread_limit is present.
117         (GOMP_target): Adjust gomp_target_fallback caller.
118         (GOMP_target_ext): Likewise.
119         (gomp_target_task_fn): Likewise.
120         * config/nvptx/team.c (gomp_nvptx_main): Set
121         gomp_global_icv.thread_limit_var.
122         * testsuite/libgomp.c-c++-common/thread-limit-1.c: New test.
124 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
126         * config/nvptx/team.c (__gomp_team_num): Define as
127         __attribute__((shared)) var.
128         (gomp_nvptx_main): Initialize __gomp_team_num to 0.
129         * config/nvptx/target.c (__gomp_team_num): Declare as
130         extern __attribute__((shared)) var.
131         (GOMP_teams4): Use __gomp_team_num as the team number instead of
132         %ctaid.x.  If first, initialize it to %ctaid.x.  If num_teams_lower
133         is bigger than num_blocks, use num_teams_lower teams and arrange for
134         bumping of __gomp_team_num if !first and returning false once we run
135         out of teams.
136         * config/nvptx/teams.c (__gomp_team_num): Declare as
137         extern __attribute__((shared)) var.
138         (omp_get_team_num): Return __gomp_team_num value instead of %ctaid.x.
140 2021-11-15  Jakub Jelinek  <jakub@redhat.com>
142         * testsuite/libgomp.c/teams-5.c: New test.
144 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
146         PR target/103201
147         * config/gcn/icv-device.c (omp_get_num_teams, omp_get_team_num): Move
148         to ...
149         * config/gcn/teams.c: ... here.  New file.
151 2021-11-12  Chung-Lin Tang  <cltang@codesourcery.com>
153         * target.c (gomp_map_vars_existing): Add 'bool implicit' parameter, add
154         implicit map handling to allow a "superset" existing map as valid case.
155         (get_kind): Adjust to filter out GOMP_MAP_IMPLICIT bits in return value.
156         (get_implicit): New function to extract implicit status.
157         (gomp_map_fields_existing): Adjust arguments in calls to
158         gomp_map_vars_existing, and add uses of get_implicit.
159         (gomp_map_vars_internal): Likewise.
160         * testsuite/libgomp.c-c++-common/target-implicit-map-1.c: New test.
162 2021-11-12  Jakub Jelinek  <jakub@redhat.com>
164         * libgomp_g.h (GOMP_teams4): Declare.
165         * libgomp.map (GOMP_5.1): Export GOMP_teams4.
166         * target.c (GOMP_teams4): New function.
167         * config/nvptx/target.c (GOMP_teams): Remove.
168         (GOMP_teams4): New function.
169         * config/gcn/target.c (GOMP_teams): Remove.
170         (GOMP_teams4): New function.
171         * testsuite/libgomp.c/teams-4.c (main): Expect exactly 2
172         teams instead of <= 2.
173         * testsuite/libgomp.c-c++-common/teams-2.c: New test.
175 2021-11-11  Tobias Burnus  <tobias@codesourcery.com>
177         * testsuite/libgomp.fortran/teams-1.f90: New test.
179 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
181         * libgomp.h (struct gomp_thread): Add num_teams and team_num members.
182         * team.c (struct gomp_thread_start_data): Likewise.
183         (gomp_thread_start): Initialize thr->num_teams and thr->team_num.
184         (gomp_team_start): Initialize start_data->num_teams and
185         start_data->team_num.  Update nthr->num_teams and nthr->team_num.
186         * teams.c (gomp_num_teams, gomp_team_num): Remove.
187         (GOMP_teams_reg): Set and restore thr->num_teams and thr->team_num
188         instead of gomp_num_teams and gomp_team_num.
189         (omp_get_num_teams): Use thr->num_teams + 1 instead of gomp_num_teams.
190         (omp_get_team_num): Use thr->team_num instead of gomp_team_num.
191         * testsuite/libgomp.c/teams-4.c: New test.
193 2021-11-11  Jakub Jelinek  <jakub@redhat.com>
195         * testsuite/libgomp.c-c++-common/teams-1.c: New test.
197 2021-11-09  Thomas Schwinge  <thomas@codesourcery.com>
199         * env.c (parse_gomp_openacc_dim): Restore parsing.
201 2021-10-30  Tobias Burnus  <tobias@codesourcery.com>
203         PR middle-end/102972
204         * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
205         parallel construct.
206         * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
207         * testsuite/libgomp.c/target-3.c: Likewise.
208         * testsuite/libgomp.c/target-5.c: Likewise.
209         * testsuite/libgomp.c/target-6.c: Likewise.
210         * testsuite/libgomp.c/target-teams-1.c: Likewise.
211         * testsuite/libgomp.c/teams-1.c: Likewise.
212         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
213         * testsuite/libgomp.c/thread-limit-3.c: Likewise.
214         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
215         * testsuite/libgomp.c/thread-limit-5.c: Likewise.
216         * testsuite/libgomp.fortran/icv-3.f90: Likewise.
217         * testsuite/libgomp.fortran/icv-4.f90: Likewise.
218         * testsuite/libgomp.fortran/teams1.f90: Likewise.
220 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
222         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
223         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
225 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
227         * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
228         aren't implemented for Fortran yet.
230 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
232         * testsuite/libgomp.c/loop-26.c: New test.
233         * testsuite/libgomp.c/loop-27.c: New test.
235 2021-10-25  Tobias Burnus  <tobias@codesourcery.com>
237         PR testsuite/102910
238         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
239         instead of #include <alloca.h> + alloca.
241 2021-10-21  Chung-Lin Tang  <cltang@codesourcery.com>
243         * libgomp.texi (Support of strictly structured blocks in Fortran):
244         Adjust to 'Y'.
245         * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
247 2021-10-20  Chung-Lin Tang  <cltang@codesourcery.com>
249         * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
250         * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
252 2021-10-20  Jakub Jelinek  <jakub@redhat.com>
254         PR libgomp/102838
255         * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
256         (struct gomp_work_share): Only use aligned(64) attribute if
257         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
258         add padding before lock to ensure lock is at offset 64 bytes
259         into the structure.
260         (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
261         New poor man's static assertions.
262         * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
263         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
265 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
266             Richard Biener  <rguenther@suse.de>
268         * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
270 2021-10-18  Jakub Jelinek  <jakub@redhat.com>
272         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
273         && gomp_places_list_len < count after nfirst <= nlast loop condition.
275 2021-10-18  Tobias Burnus  <tobias@codesourcery.com>
277         PR fortran/102086
278         PR fortran/92189
279         PR fortran/92621
280         PR fortran/101308
281         PR fortran/101309
282         PR fortran/101635
283         PR fortran/92482
284         * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
286 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
288         * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
289         type from char [50] to const char *.
290         (places_array): Add a testcase for simplified syntax place followed
291         by length or length and stride.
293 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
295         * env.c (parse_one_place): Handle non-negative-number the same
296         as { non-negative-number }.  Reject even !number:1 and
297         !number:1:stride or !place:1 or !place:1:stride instead of just
298         length other than 1.
299         * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
300         and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
301         omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
302         as implemented.
303         * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
304         simplified syntax.
306 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
308         * env.c (parse_schedule): For strtoul or strtoull calls which don't
309         clearly reject return value 0 as invalid handle the case where end
310         pointer is the same as first argument as invalid.
311         (parse_unsigned_long_1): Likewise.
312         (parse_one_place): Likewise.
313         (parse_places_var): Likewise.
314         (parse_stacksize): Likewise.
315         (parse_spincount): Likewise.
316         (parse_affinity): Likewise.
317         (parse_gomp_openacc_dim): Likewise.  Avoid strict aliasing violation.
318         Make code valid C89.
319         * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
320         For strtoul calls which don't clearly reject return value 0 as
321         invalid handle the case where end pointer is the same as first
322         argument as invalid.
323         (gomp_affinity_init_level_1): Likewise.
324         (gomp_affinity_init_numa_domains): Likewise.
325         * config/rtems/proc.c (parse_thread_pools): Likewise.
327 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
329         * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
330         after creating count places clean up and return immediately.
331         * testsuite/libgomp.c/places-6.c: New test.
332         * testsuite/libgomp.c/places-7.c: New test.
333         * testsuite/libgomp.c/places-8.c: New test.
334         * testsuite/libgomp.c/places-9.c: New test.
335         * testsuite/libgomp.c/places-10.c: New test.
337 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
339         * env.c (parse_places_var): Handle numa_domains as level 5.
340         * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
341         function.
342         (gomp_affinity_init_level): Use it instead of
343         gomp_affinity_init_level_1 for level == 5.
344         * testsuite/libgomp.c/places-5.c: New test.
346 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
348         * env.c (parse_places_var): Handle ll_caches as level 4.
349         * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
350         function.
351         (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
352         last level cache.
353         (gomp_affinity_init_level): Likewise.
354         * testsuite/libgomp.c/places-1.c: New test.
355         * testsuite/libgomp.c/places-2.c: New test.
356         * testsuite/libgomp.c/places-3.c: New test.
357         * testsuite/libgomp.c/places-4.c: New test.
359 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
361         * libgomp.texi (OpenMP 5.0): Update entry for declare variant
362         directive.
364 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
366         * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
368 2021-10-12  Julian Brown  <julian@codesourcery.com>
370         * target.c (gomp_copy_host2dev): Release device lock on cbuf
371         error path.
373 2021-10-12  Tobias Burnus  <tobias@codesourcery.com>
375         * testsuite/libgomp.fortran/icv-3.f90: New.
376         * testsuite/libgomp.fortran/icv-4.f90: New.
378 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
380         * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
381         omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
382         OMP_TEAMS_THREAD_LIMIT): Document.
384 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
386         * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
387         to avoid makeinfo warnings.
389 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
391         * testsuite/libgomp.c-c++-common/icv-3.c: New test.
392         * testsuite/libgomp.c-c++-common/icv-4.c: New test.
394 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
396         PR libgomp/102628
397         PR libgomp/102668
398         * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
399         allocation sizes from 420 to 320 and from 768 to 568.
400         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
401         * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
402         for cr from 16 to 4.
404 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
406         * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
407         * testsuite/libgomp.c/scan-12.c: Likewise.
408         * testsuite/libgomp.c/scan-13.c: Likewise.
409         * testsuite/libgomp.c/scan-14.c: Likewise.
410         * testsuite/libgomp.c/scan-15.c: Likewise.
411         * testsuite/libgomp.c/scan-16.c: Likewise.
412         * testsuite/libgomp.c/scan-17.c: Likewise.
413         * testsuite/libgomp.c/scan-18.c: Likewise.
414         * testsuite/libgomp.c/scan-19.c: Likewise.
415         * testsuite/libgomp.c/scan-20.c: Likewise.
416         * testsuite/libgomp.c/scan-21.c: Likewise.
417         * testsuite/libgomp.c/scan-22.c: Likewise.
418         * testsuite/libgomp.c++/scan-9.C: Likewise.
419         * testsuite/libgomp.c++/scan-10.C: Likewise.
420         * testsuite/libgomp.c++/scan-11.C: Likewise.
421         * testsuite/libgomp.c++/scan-12.C: Likewise.
422         * testsuite/libgomp.c++/scan-13.C: Likewise.
423         * testsuite/libgomp.c++/scan-14.C: Likewise.
424         * testsuite/libgomp.c++/scan-15.C: Likewise.
425         * testsuite/libgomp.c++/scan-16.C: Likewise.
427 2021-10-12  Kewen Lin  <linkw@linux.ibm.com>
429         * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
431 2021-10-11  Marcel Vollweiler  <marcel@codesourcery.com>
433         * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
434         omp_atv_serialized.
435         * omp.h.in: Add deprecated flag for omp_atv_sequential.
436         * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
437         * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
438         * testsuite/libgomp.fortran/alloc-12.f90: New test.
440 2021-10-11  Jakub Jelinek  <jakub@redhat.com>
442         * omp.h.in (omp_set_num_teams, omp_get_max_teams,
443         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
444         * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
445         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
446         * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
447         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
448         * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
449         * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
450         omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
451         omp_set_teams_thread_limit{,_,_8_}.
452         * icv.c (omp_set_num_teams, omp_get_max_teams,
453         omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
454         functions.
455         * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
456         (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
457         (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
458         vars.
459         * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
460         gomp_teams_thread_limit_var as fallback if not zero.  If num_teams
461         is not specified, use gomp_nteams_var.
462         * fortran.c (omp_set_num_teams, omp_get_max_teams,
463         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
464         ialias_redirect.
465         (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
466         omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
467         omp_get_teams_thread_limit_): New functions.
469 2021-10-09  liuhongt  <hongtao.liu@intel.com>
471         * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
472         * testsuite/libgomp.c++/scan-11.C: Ditto.
473         * testsuite/libgomp.c++/scan-12.C: Ditto.
474         * testsuite/libgomp.c++/scan-13.C: Ditto.
475         * testsuite/libgomp.c++/scan-14.C: Ditto.
476         * testsuite/libgomp.c++/scan-15.C: Ditto.
477         * testsuite/libgomp.c++/scan-16.C: Ditto.
478         * testsuite/libgomp.c++/scan-9.C: Ditto.
479         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
480         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
481         * testsuite/libgomp.c/scan-11.c: Ditto.
482         * testsuite/libgomp.c/scan-12.c: Ditto.
483         * testsuite/libgomp.c/scan-13.c: Ditto.
484         * testsuite/libgomp.c/scan-14.c: Ditto.
485         * testsuite/libgomp.c/scan-15.c: Ditto.
486         * testsuite/libgomp.c/scan-16.c: Ditto.
487         * testsuite/libgomp.c/scan-17.c: Ditto.
488         * testsuite/libgomp.c/scan-18.c: Ditto.
489         * testsuite/libgomp.c/scan-19.c: Ditto.
490         * testsuite/libgomp.c/scan-20.c: Ditto.
491         * testsuite/libgomp.c/scan-21.c: Ditto.
492         * testsuite/libgomp.c/scan-22.c: Ditto.
494 2021-10-09  Jakub Jelinek  <jakub@redhat.com>
496         * libgomp.texi (OpenMP 5.1): Mention implemented support for
497         structured block sequences in C/C++.  Mention support for
498         unconstrained/reproducible modifiers on order clause.
499         Mention partial (C/C++ only) support of extentensions to atomics
500         construct.  Mention partial (C/C++ on clause only) support of
501         align/allocator modifiers on allocate clause.
503 2021-10-02  Tobias Burnus  <tobias@codesourcery.com>
505         * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
506         based on libgomp.c-c++-common/order-reproducible-1.c.
507         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
508         * testsuite/libgomp.fortran/my-usleep.c: New test.
510 2021-10-01  Tobias Burnus  <tobias@codesourcery.com>
512         * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
513         * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
514         * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
515         * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
516         based on libgomp.c-c++-common/alloc-9.c.
518 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
520         * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
521         * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
523 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
525         * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
526         ialias_redirect.
527         * env.c (handle_omp_display_env): Use ialias_call.
528         * icv-device.c: Move ialias right below each function.
529         (omp_get_device_num): Use ialias_call.
530         * fortran.c (omp_fulfill_event): Add ialias_redirect.
531         * icv.c (omp_get_active_level): Add ialias_redirect.
533 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
535         * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
536         __alloc_align__ (1) attribute.
537         * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
539 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
541         * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
542         for -fintrinsic-modules-path= warning of the C compiler.
543         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
544         * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
546 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
548         * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
549         omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
550         * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
551         omp_realloc): Add.
552         * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
553         omp_realloc): Add.
554         * testsuite/libgomp.fortran/alloc-10.f90: New test.
555         * testsuite/libgomp.fortran/alloc-6.f90: New test.
556         * testsuite/libgomp.fortran/alloc-7.c: New test.
557         * testsuite/libgomp.fortran/alloc-7.f90: New test.
558         * testsuite/libgomp.fortran/alloc-8.f90: New test.
559         * testsuite/libgomp.fortran/alloc-9.f90: New test.
561 2021-09-30  Jakub Jelinek  <jakub@redhat.com>
563         * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
564         omp_realloc): New prototypes.
565         (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
566         attribute.
567         * allocator.c: Include string.h.
568         (omp_aligned_alloc): No longer static, add ialias.  Add new_alignment
569         variable and use it instead of alignment so that when retrying the old
570         alignment is used again.  Don't retry if new alignment is the same
571         as old alignment, unless allocator had pool size.
572         (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
573         (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
574         * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
575         omp_aligned_calloc and omp_realloc.
576         * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
577         omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
578         * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
579         * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
580         * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
581         * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
583 2021-09-28  Tobias Burnus  <tobias@codesourcery.com>
585         PR libgomp/96661
586         * configure.ac: Only check for int-type = 2*size_t support when
587         building with Fortran support.
588         * configure: Regenerate.
590 2021-09-28  Thomas Schwinge  <thomas@codesourcery.com>
592         * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
593         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
595 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
597         * team.c: Initialize start_data.
598         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
599         * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
601 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
603         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
604         dg-message back to dg-note.
606 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
608         PR fortran/94070
609         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
610         expected dg-note output.
612 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
614         PR fortran/55534
615         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
616         r12-3722 by removing -Wno-missing-include-dirs.
617         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
619 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
621         * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
622         * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
624 2021-09-21  Tobias Burnus  <tobias@codesourcery.com>
626         PR fortran/55534
627         * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
628         to ALWAYS_CFLAGS.
629         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
631 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
633         * testsuite/libgomp.c++/default-1.C: New test.
634         * testsuite/libgomp.c-c++-common/default-1.c: New test.
635         * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
636         to default clause in C and C++" as implemented.
638 2021-09-17  Julian Brown  <julian@codesourcery.com>
640         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
642 2021-09-17  Julian Brown  <julian@codesourcery.com>
644         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
646 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
648         * libgomp.texi (OpenMP 5.1): Spelling fix,
649         declare variante -> declare variant.
651 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
653         * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
654         Use /* */ comments instead of //.
655         * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
656         * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
657         * testsuite/libgomp.c++/atomic-16.C: New test.
658         * testsuite/libgomp.c++/atomic-17.C: New test.
660 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
662         * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
663         * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
664         * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
666 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
668         * libgomp.texi (OpenMP Implementation Status): Extend
669         OpenMP 5.0 section.
670         (OpenACC Profiling Interface): Fix typo.
672 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
674         * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
675         not to 4.5; link to new section.
676         (OpenMP Implementation Status): New.
678 2021-09-06  Thomas Schwinge  <thomas@codesourcery.com>
680         * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
682 2021-09-03  Tobias Burnus  <tobias@codesourcery.com>
684         * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
685         dg-output.
686         * testsuite/libgomp.fortran/error-1.f90: Likewise.
688 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
689             Jakub Jelinek  <jakub@redhat.com>
691         * testsuite/libgomp.c/address-space-1.c: New file.
693 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
695         * testsuite/lib/libgomp.exp
696         (check_effective_target_offload_target_intelmic): Remove 'proc'.
697         (check_effective_target_offload_device_intel_mic): New 'proc'.
698         * testsuite/libgomp.c-c++-common/on_device_arch.h
699         (device_arch_intel_mic, on_device_arch_intel_mic): New.
700         * testsuite/libgomp.c-c++-common/target-45.c: Use that for
701         'dg-xfail-run-if'.
702         * testsuite/libgomp.fortran/target10.f90: Likewise.
704 2021-08-23  Tobias Burnus  <tobias@codesourcery.com>
706         * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
707         * testsuite/libgomp.fortran/taskloop-4.f90: New test.
708         * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
709         * testsuite/libgomp.fortran/taskloop-5.f90: New test.
711 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
713         * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
714         * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
715         * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
717 2021-08-22  Thomas Schwinge  <thomas@codesourcery.com>
719         * config/nvptx/error.c (fwrite, exit): Override, too.
720         * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
721         of offloading testing.
722         * testsuite/libgomp.fortran/error-1.f90: Likewise.
724 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
726         * testsuite/libgomp.fortran/error-1.f90: New test.
728 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
730         * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
731         * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
732         * error.c (GOMP_warning, GOMP_error): New functions.
733         * testsuite/libgomp.c-c++-common/error-1.c: New test.
735 2021-08-18  Tobias Burnus  <tobias@codesourcery.com>
737         * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
738         omp_target_free. omp_target_is_present, omp_target_memcpy,
739         omp_target_memcpy_rect, omp_target_associate_ptr,
740         omp_target_disassociate_ptr): Add interface.
741         * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
742         omp_target_free. omp_target_is_present, omp_target_memcpy,
743         omp_target_memcpy_rect, omp_target_associate_ptr,
744         omp_target_disassociate_ptr): Add interface.
745         * testsuite/libgomp.fortran/alloc-1.F90: Remove local
746         interface block for omp_alloc + omp_free.
747         * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
748         * testsuite/libgomp.fortran/refcount-1.f90: New test.
749         * testsuite/libgomp.fortran/target-12.f90: New test.
751 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
753         * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
755 2021-08-17  Tobias Burnus  <tobias@codesourcery.com>
757         * testsuite/libgomp.fortran/scope-1.f90: New test.
758         * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
760 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
762         * Makefile.am (libgomp_la_SOURCES): Add scope.c
763         * Makefile.in: Regenerated.
764         * libgomp_g.h (GOMP_scope_start): Declare.
765         * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
766         * scope.c: New file.
767         * testsuite/libgomp.c-c++-common/scope-1.c: New test.
768         * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
770 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
772         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
773         '?:' issues.
775 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
777         * testsuite/libgomp.fortran/masked-1.f90: New test.
779 2021-08-13  Thomas Schwinge  <thomas@codesourcery.com>
781         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
783 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
785         * testsuite/libgomp.c-c++-common/masked-1.c: New test.
787 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
789         * env.c (parse_bind_var): Accept 'primary' as alias for
790         'master'.
791         (omp_display_env): Add TODO comment to
792         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
793         * libgomp.texi: Change 'master thread' to 'primary thread'
794         in line with OpenMP 5.1.
795         (omp_get_proc_bind): Add omp_proc_bind_primary and note that
796         omp_proc_bind_master is an alias of it.
797         (OMP_PROC_BIND): Mention 'PRIMARY'.
798         * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
799         (omp_proc_bind_primary): Add.
800         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
801         * omp_lib.f90.in (omp_proc_bind_primary): Add.
802         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
803         * omp_lib.h.in (omp_proc_bind_primary): Add.
804         * testsuite/libgomp.c/affinity-1.c: Check that
805         'primary' works and is identical to 'master'.
807 2021-08-09  Julian Brown  <julian@codesourcery.com>
808             Kwok Cheung Yeung  <kcy@codesourcery.com>
809             Thomas Schwinge  <thomas@codesourcery.com>
811         * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
812         16.
813         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
814         [acc_device_radeon]: Update.
815         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
816         [ACC_DEVICE_TYPE_radeon]: Likewise.
817         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
818         [acc_device_radeon]: Likewise.
819         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
820         [ACC_DEVICE_TYPE_radeon]: Likewise.
821         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
822         'openacc_radeon_accel_selected' and '-O0'.
823         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
825 2021-08-05  Chung-Lin Tang  <cltang@codesourcery.com>
827         * icv-device.c (omp_get_device_num): New API function, host side.
828         * fortran.c (omp_get_device_num_): New interface function.
829         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
830         * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
831         omp_get_device_num_.
832         * libgomp.texi (omp_get_device_num): Add documentation for new API
833         function.
834         * omp.h.in (omp_get_device_num): Add declaration.
835         * omp_lib.f90.in (omp_get_device_num): Likewise.
836         * omp_lib.h.in (omp_get_device_num): Likewise.
837         * target.c (gomp_load_image_to_device): If additional entry for device
838         number exists at end of returned entries from 'load_image_func' hook,
839         copy the assigned device number over to the device variable.
840         * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
841         (omp_get_device_num): New API function, device side.
842         * plugin/plugin-gcn.c ("symcat.h"): Add include.
843         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
844         at end of returned 'target_table' entries.
845         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
846         (omp_get_device_num): New API function, device side.
847         * plugin/plugin-nvptx.c ("symcat.h"): Add include.
848         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
849         at end of returned 'target_table' entries.
850         * testsuite/lib/libgomp.exp
851         (check_effective_target_offload_target_intelmic): New function for
852         testing for intelmic offloading.
853         * testsuite/libgomp.c-c++-common/target-45.c: New test.
854         * testsuite/libgomp.fortran/target10.f90: New test.
856 2021-07-30  Thomas Schwinge  <thomas@codesourcery.com>
857             Ulrich Drepper  <drepper@redhat.com>
859         * fortran.c (omp_display_env_, omp_display_env_8_): Only
860         '#ifndef LIBGOMP_OFFLOADED_ONLY'.
862 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
863             Julian Brown  <julian@codesourcery.com>
864             Kwok Cheung Yeung  <kcy@codesourcery.com>
866         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
867         's%oaccdevlow%oaccloops%g'.
868         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
869         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
870         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
871         Likewise.
872         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
873         Likewise.
874         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
875         Likewise.
876         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
877         Likewise.
878         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
879         Likewise.
880         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
881         Likewise.
882         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
883         Likewise.
884         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
885         Likewise.
886         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
888 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
890         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
891         threader.
892         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
894 2021-07-27  Ulrich Drepper  <drepper@gmail.com>
896         * env.c (wait_policy, stacksize): New static variables,
897         move out of handle_omp_display_env.
898         (omp_display_env): New function.  The meat of the old
899         handle_omp_display_env function.
900         (handle_omp_display_env): Change to not take parameters
901         and instead use the global variables.  Only perform
902         parsing, defer to omp_display_env for the implementation.
903         (initialize_env): Remove local variables wait_policy and
904         stacksize.  Don't pass parameters to handle_omp_display_env.
905         * fortran.c: Add ialias_redirect for omp_display_env.
906         (omp_display_env_, omp_display_env_8_): New functions.
907         * libgomp.map (OMP_5.1): New version.  Add omp_display_env,
908         omp_display_env_, and omp_display_env_8_.
909         * omp.h.in: Declare omp_display_env.
910         * omp_lib.f90.in: Likewise.
911         * omp_lib.h.in: Likewise.
913 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
914             Julian Brown  <julian@codesourcery.com>
916         * target.c (gomp_coalesce_buf_add): Update comment.
917         (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
918         'aq && cbuf'.
919         (gomp_map_vars_internal): Only 'if (!aq)', do
920         'gomp_coalesce_buf_add'.
921         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
922         XFAIL.
924 2021-07-27  Julian Brown  <julian@codesourcery.com>
925             Thomas Schwinge  <thomas@codesourcery.com>
927         * libgomp.h (gomp_copy_host2dev): Update prototype.
928         * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
929         argument to gomp_copy_host2dev (false).
930         * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
931         (copy_data): Don't free src.
932         (queue_push_copy): Remove free_src handling.
933         (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
934         (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
935         snapshotting.
936         (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
937         queue_push_copy.
938         * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
939         (gomp_copy_host2dev): Add EPHEMERAL parameter.  Snapshot source
940         data when true, and set up deferred freeing of temporary buffer.
941         (gomp_copy_dev2host): Update call to goacc_device_copy_async.
942         (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
943         (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
944         calls to gomp_copy_host2dev with appropriate ephemeral argument.
945         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
946         XFAIL.
948 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
949             Tom de Vries  <tom@codesourcery.com>
951         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
952         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
954 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
956         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
957         sequencing of 'async' data copying vs. profiling events.
958         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
959         Likewise.
961 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
962             Julian Brown  <julian@codesourcery.com>
964         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
965         'async'/'wait' issue.
966         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
967         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
968         * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
970 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
971             Joseph Myers  <joseph@codesourcery.com>
972             Cesar Philippidis  <cesar@codesourcery.com>
974         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
975         file.
976         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
977         Likewise.
978         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
979         Likewise.
980         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
982 2021-07-20  Thomas Schwinge  <thomas@codesourcery.com>
984         PR target/101484
985         * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
986         '-Wno-error=array-bounds'.
987         * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
988         * libgomp.h [__AMDGCN__]: Likewise.
990 2021-07-19  Thomas Schwinge  <thomas@codesourcery.com>
992         PR target/101484
993         * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
994         * libgomp.h [__AMDGCN__]: Likewise.
996 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
997             Florian Weimer  <fweimer@redhat.com>
999         * config/linux/sem.h: Don't include limits.h.
1000         (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
1001         * config/linux/affinity.c: Include limits.h.
1003 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
1005         PR middle-end/94366
1006         * testsuite/libgomp.c-c++-common/pr94366.c: New test.
1008 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
1010         PR other/67300
1011         * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
1012         -foffload=nvptx-none= by -foffload-options=nvptx-none= to
1013         avoid disabling other offload targets.
1014         * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
1015         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
1016         * testsuite/libgomp.c/target-44.c: Likewise.
1018 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
1020         * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
1021         target has shared memory and disable some scalar pointer/allocatable
1022         checks if not as firstprivate does not work.
1024 2021-06-25  Chung-Lin Tang  <cltang@codesourcery.com>
1026         PR testsuite/101114
1027         * testsuite/libgomp.c-c++-common/struct-elem-5.c:
1028         Add "target offload_device_nonshared_as" condition for enabling test.
1030 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
1032         * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
1033         * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
1034         * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
1035         * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
1037 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
1039         PR middle-end/101167
1040         * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
1042 2021-06-17  Chung-Lin Tang  <cltang@codesourcery.com>
1044         * hashtab.h (htab_clear): New function with initialization code
1045         factored out from...
1046         (htab_create): ...here, adjust to use htab_clear function.
1047         * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
1048         special refcount values, add comments.
1049         (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
1050         (REFCOUNT_LINK): Likewise.
1051         (REFCOUNT_STRUCTELEM): New special refcount range for structure
1052         element siblings.
1053         (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
1054         sibling maps.
1055         (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
1056         (REFCOUNT_STRUCTELEM_FLAG_LAST):  Flag to indicate last sibling.
1057         (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
1058         (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
1059         (struct splay_tree_key_s): Add structelem_refcount and
1060         structelem_refcount_ptr fields into a union with dynamic_refcount.
1061         Add comments.
1062         (gomp_map_vars): Delete declaration.
1063         (gomp_map_vars_async): Likewise.
1064         (gomp_unmap_vars): Likewise.
1065         (gomp_unmap_vars_async): Likewise.
1066         (goacc_map_vars): New declaration.
1067         (goacc_unmap_vars): Likewise.
1068         * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
1069         (goacc_enter_datum): Likewise.
1070         (goacc_enter_data_internal): Likewise.
1071         * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
1072         and goacc_unmap_vars.
1073         (GOACC_data_start): Adjust to use goacc_map_vars.
1074         (GOACC_data_end): Adjust to use goacc_unmap_vars.
1075         * target.c (hash_entry_type): New typedef.
1076         (htab_alloc): New function hook for hashtab.h.
1077         (htab_free): Likewise.
1078         (htab_hash): Likewise.
1079         (htab_eq): Likewise.
1080         (hashtab.h): Add file include.
1081         (gomp_increment_refcount): New function.
1082         (gomp_decrement_refcount): Likewise.
1083         (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
1084         gomp_increment_refcount.
1085         (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
1086         to gomp_map_vars_existing.
1087         (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
1088         variable to guard OpenMP specific paths, adjust calls to
1089         gomp_map_vars_existing, add structure element sibling splay_tree_key
1090         sequence creation code, adjust Fortran map case to avoid increment
1091         under OpenMP.
1092         (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
1093         local refcount_set if caller passed in NULL, adjust call to
1094         gomp_map_vars_internal.
1095         (gomp_map_vars_async): Adjust and rename into...
1096         (goacc_map_vars): ...this new function, adjust call to
1097         gomp_map_vars_internal.
1098         (gomp_remove_splay_tree_key): New function with code factored out from
1099         gomp_remove_var_internal.
1100         (gomp_remove_var_internal): Add code to handle removing multiple
1101         splay_tree_key sequence for structure elements, adjust code to use
1102         gomp_remove_splay_tree_key for splay-tree key removal.
1103         (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
1104         gomp_decrement_refcount.
1105         (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
1106         local refcount_set if caller passed in NULL, adjust call to
1107         gomp_unmap_vars_internal.
1108         (gomp_unmap_vars_async): Adjust and rename into...
1109         (goacc_unmap_vars): ...this new function, adjust call to
1110         gomp_unmap_vars_internal.
1111         (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
1112         gomp_unmap_vars.
1113         (GOMP_target_ext): Likewise.
1114         (gomp_target_data_fallback): Adjust call to gomp_map_vars.
1115         (GOMP_target_data): Likewise.
1116         (GOMP_target_data_ext): Likewise.
1117         (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
1118         (gomp_exit_data): Add refcount_set parameter, adjust to use
1119         gomp_decrement_refcount, adjust to queue splay-tree keys for removal
1120         after main loop.
1121         (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
1122         gomp_map_vars and gomp_exit_data.
1123         (gomp_target_task_fn): Likewise.
1124         * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
1125         * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
1126         * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
1127         * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
1128         * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
1129         * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
1131 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
1133         PR fortran/92568
1134         * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
1136 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
1137             Thomas Schwinge  <thomas@codesourcery.com>
1139         * libgomp.map (GOACC_2.0.2): New symbol version.
1140         * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
1141         * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
1143 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
1144             Andrew Stubbs  <ams@codesourcery.com>
1146         * oacc-mem.c (goacc_enter_exit_data_internal): New function,
1147         extracted from...
1148         (GOACC_enter_exit_data): ... here.
1149         (GOACC_declare): Use it.
1151 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
1153         * oacc-parallel.c (GOACC_declare): Move...
1154         * oacc-mem.c: ... here.
1155         * libgomp_g.h: Adjust.
1157 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
1158             Thomas Schwinge  <thomas@codesourcery.com>
1160         * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
1161         handling.
1163 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
1165         PR tree-optimization/100981
1166         * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
1167         dsdotr and dsdoti to 0.
1169 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
1171         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
1172         if atomic compare-and-swap is supported on 'int'.
1174 2021-06-09  Richard Biener  <rguenther@suse.de>
1176         PR tree-optimization/100981
1177         * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
1179 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1181         * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
1182         unconditionally.
1183         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1184         Update.
1185         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1186         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
1188 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1190         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
1191         '-DACC_MEM_SHARED=0'.
1192         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
1193         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
1194         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
1195         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
1196         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
1197         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
1198         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
1199         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1200         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1201         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1202         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
1203         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
1204         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
1205         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
1206         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
1207         'acc_device_radeon' testing.
1208         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
1209         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
1210         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
1211         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
1212         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1213         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1214         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
1215         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
1216         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
1217         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
1218         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
1219         for non-'openacc_nvidia_accel_selected'.
1220         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1221         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
1222         all implement this checking".
1223         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
1224         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
1225         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
1226         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
1227         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
1229 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1231         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
1232         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
1234 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1236         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
1237         for 'acc_device_radeon'.
1239 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1241         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
1242         for non-'acc_device_nvidia'.
1244 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1246         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
1247         'acc_device_radeon' testing.
1248         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1249         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1250         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1252 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1254         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
1255         require 'openacc_nvidia_accel_selected'.  Fix up for
1256         'ACC_DEVICE_TYPE_radeon'.
1258 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1260         * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
1261         'openacc_nvidia_accel_selected'.
1262         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
1264 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1266         * testsuite/lib/libgomp.exp
1267         (check_effective_target_openacc_radeon_accel_selected):
1268         Streamline.
1270 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1272         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
1273         PR80547 workaround.
1275 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1277         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
1278         <acc_device_nvidia>: Update comment.
1280 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
1282         * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
1284 2021-05-27  Jakub Jelinek  <jakub@redhat.com>
1286         * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
1287         check_effective_target_openacc_cublas,
1288         check_effective_target_openacc_cudart): New.
1289         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
1290         target openacc_cublas.
1291         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
1292         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
1293         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
1294         target openacc_cuda.
1295         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
1296         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
1297         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
1298         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
1299         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
1300         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
1301         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
1302         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
1303         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
1304         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
1305         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
1306         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1307         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
1308         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
1309         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
1310         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
1311         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
1312         targets openacc_cublas and openacc_cudart.
1313         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
1314         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
1315         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
1316         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
1317         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
1318         Require effective target openacc_cudart.
1319         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
1320         for effective target openacc_cuda and add && defined USE_CUDA_H to
1321         preprocessor conditionals.  Guard -lcuda also on openacc_cuda
1322         effective target.
1324 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
1326         PR libgomp/100573
1327         * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
1328         GOMP_target_end_data, GOMP_target_update_ext,
1329         GOMP_target_enter_exit_data): New dummy entrypoints.
1330         * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
1331         GOMP_target_end_data, GOMP_target_update_ext,
1332         GOMP_target_enter_exit_data): Likewise.
1333         * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
1334         OMPFROM, OMPTO): Define.
1335         (main): Remove #pragma omp target teams around all the tests.
1336         * testsuite/libgomp.c-c++-common/target-41.c: New test.
1337         * testsuite/libgomp.c-c++-common/target-42.c: New test.
1339 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
1341         PR middle-end/99928
1342         * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
1344 2021-05-24  Tobias Burnus  <tobias@codesourcery.com>
1346         PR fortran/86470
1347         * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
1348         * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
1349         * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
1351 2021-05-22  Thomas Schwinge  <thomas@codesourcery.com>
1353         PR testsuite/90115
1354         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
1355         uninteresting/varying diagnostics.
1357 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
1359         PR middle-end/90115
1360         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
1361         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1363 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
1365         PR middle-end/90115
1366         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
1367         file.
1368         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
1369         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
1370         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1371         Likewise.
1372         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1373         Likewise.
1374         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1375         Likewise.
1376         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1377         Likewise.
1378         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1379         Likewise.
1380         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1381         Likewise.
1382         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1383         Likewise.
1384         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1385         Likewise.
1386         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1387         Likewise.
1388         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1389         Likewise.
1390         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1391         Likewise.
1392         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1393         Likewise.
1394         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1395         Likewise.
1396         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1397         Likewise.
1398         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1399         Likewise.
1400         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1401         Likewise.
1402         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1403         Likewise.
1404         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1405         Likewise.
1406         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1407         Likewise.
1408         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1409         Likewise.
1410         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1411         Likewise.
1412         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
1413         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
1414         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
1415         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
1416         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
1417         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
1418         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
1419         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
1420         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1421         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1422         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
1423         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
1424         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1425         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
1426         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1427         Likewise.
1428         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
1429         Likewise.
1430         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
1431         Likewise.
1432         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
1433         Likewise.
1434         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
1435         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
1436         Likewise.
1437         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1438         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1439         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1440         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
1441         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
1442         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1443         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1444         Likewise.
1445         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1446         Likewise.
1447         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1448         Likewise.
1449         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1450         Likewise.
1451         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1452         Likewise.
1453         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1454         Likewise.
1455         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1456         Likewise.
1457         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1458         Likewise.
1459         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1460         Likewise.
1461         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1462         Likewise.
1463         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1464         Likewise.
1465         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1466         Likewise.
1467         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1468         Likewise.
1469         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1470         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1471         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
1472         Likewise.
1473         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
1474         Likewise.
1475         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1476         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1477         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1479 2021-05-21  Julian Brown  <julian@codesourcery.com>
1480             Chung-Lin Tang  <cltang@codesourcery.com>
1481             Thomas Schwinge  <thomas@codesourcery.com>
1483         PR middle-end/90115
1484         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
1485         test.
1486         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
1487         Likewise.
1488         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
1489         Likewise.
1491 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
1493         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
1494         for nvptx offloading.
1496 2021-05-21  Tobias Burnus  <tobias@codesourcery.com>
1498         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
1500 2021-05-19  Thomas Schwinge  <thomas@codesourcery.com>
1502         PR target/83812
1503         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
1505 2021-05-19  Julian Brown  <julian@codesourcery.com>
1507         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
1509 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
1511         * testsuite/lib/libgomp.exp
1512         (check_effective_target_offload_target_nvptx): Don't shadow global
1513         'offload_targets' variable.
1515 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
1517         * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
1518         '-latomic' to nvptx offloading compilation.
1519         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
1521 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
1523         * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
1524         offloading compilation.
1526 2021-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
1528         * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
1529         if new tasks generated.
1530         * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
1532 2021-05-14  Tobias Burnus  <tobias@codesourcery.com>
1534         * testsuite/libgomp.fortran/parallel-master.f90: New test.
1536 2021-05-13  Martin Liska  <mliska@suse.cz>
1538         PR testsuite/100569
1539         * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
1540         * testsuite/libgomp.c/pr46032-2.c: Likewise.
1541         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
1542         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
1544 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
1546         * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
1547         * testsuite/libgomp.fortran/task-detach-12.f90: New test.
1549 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
1551         PR middle-end/100471
1552         * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
1553         GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
1554         reduction pointer.
1555         * testsuite/libgomp.c/task-reduction-4.c: New test.
1557 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
1558             Tom de Vries  <tdevries@suse.de>
1560         * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
1561         complex/floating-point || + && reduction with 'omp target'.
1562         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
1564 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
1566         * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
1567         * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
1568         * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
1569         * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
1571 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
1573         PR testsuite/100397
1574         * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
1575         declaration to scope of non-'depend'-guarded assignment to avoid races.
1577 2021-05-03  Tom de Vries  <tdevries@suse.de>
1579         PR target/100321
1580         * testsuite/libgomp.c/target-44.c: New test.
1582 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
1584         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
1586 2021-04-29  Tom de Vries  <tdevries@suse.de>
1588         * testsuite/libgomp.c/pr81778.c: New test.
1590 2021-04-29  Tom de Vries  <tdevries@suse.de>
1592         PR target/100232
1593         * testsuite/libgomp.c/target-43.c: New file.
1595 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
1596             Tobias Burnus  <tobias@codesourcery.com>
1598         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
1599         * target.c (gomp_load_plugin_for_device): If set and if a plugin
1600         can't be dlopened, silently assume it has no devices.
1601         * Makefile.in: Regenerate.
1602         * config.h.in: Regenerate.
1603         * configure: Regenerate.
1605 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
1607         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
1608         Use [Ww]arning in dg-bogus as FE diagnostic and default
1609         diagnostic differ and the result depends on ENABLE_OFFLOAD.
1610         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1611         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1612         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1614 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
1616         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
1617         Correct spelling in dg-bogus to match -Wopenacc-parallelism.
1618         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1619         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1620         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1622 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
1623             Nathan Sidwell  <nathan@codesourcery.com>
1624             Tom de Vries  <vries@codesourcery.com>
1625             Julian Brown  <julian@codesourcery.com>
1626             Kwok Cheung Yeung  <kcy@codesourcery.com>
1628         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
1629         '-Wopenacc-parallelism', and match diagnostics, as appropriate.
1630         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
1631         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1632         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1633         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1634         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
1635         Likewise.
1636         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
1637         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1638         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1639         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1640         Likewise.
1641         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
1642         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
1643         Likewise.
1644         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1645         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
1646         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
1647         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
1648         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
1649         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
1650         Likewise.
1651         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1652         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
1653         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1654         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1655         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1656         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
1657         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1658         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1659         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1660         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1661         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1663 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
1665         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
1666         compile with '-w'.
1667         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1668         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1669         Likewise.
1670         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1671         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
1672         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1673         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1674         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1675         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1676         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
1678 2021-04-22  Richard Biener  <rguenther@suse.de>
1680         * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
1681         only on nvptx-none.
1683 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
1685         * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
1686         omp_depend_kind instead of defining it as 16.
1688 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
1690         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
1691         New, based on check_effective_target_offload_target_nvptx.
1692         (check_effective_target_offload_target_nvptx): Call it.
1693         (check_effective_target_offload_target_amdgcn): New.
1694         * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
1695         Require target offload_target_nvptx || offload_target_amdgcn.
1696         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
1697         * testsuite/libgomp.c/pr86416-1.c: Likewise.
1698         * testsuite/libgomp.c/pr86416-2.c: Likewise.
1700 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
1702         * testsuite/libgomp.fortran/depobj-1.f90: New test.
1704 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
1706         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1707         '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
1708         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1709         Likewise.
1710         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1711         Likewise.
1712         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1714 2021-04-15  Thomas Schwinge  <thomas@codesourcery.com>
1716         PR target/99555
1717         * testsuite/lib/libgomp.exp
1718         (check_effective_target_offload_device_nvptx): New.
1719         * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
1720         resolved, make sure that we exit quickly, with error status,
1721         XFAILed.
1722         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
1723         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
1725 2021-04-14  Jakub Jelinek  <jakub@redhat.com>
1727         PR testsuite/100071
1728         * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
1729         cp = omp_alloc with cp, p arguments instead of cq, q and call
1730         c_f_pointer after last cq = omp_alloc with cq, q.
1732 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
1734         PR middle-end/98088
1735         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
1736         for loop with GT/GE condition.
1737         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
1739 2021-04-09  Thomas Schwinge  <thomas@codesourcery.com>
1741         PR middle-end/84991
1742         PR middle-end/84992
1743         PR middle-end/90779
1744         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
1746 2021-04-09  Jakub Jelinek  <jakub@redhat.com>
1748         PR libgomp/99984
1749         * team.c (gomp_thread_start): Call pthread_setspecific for
1750         !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
1751         has been initialized to avoid false positive warning.
1753 2021-03-29  Tobias Burnus  <tobias@codesourcery.com>
1755         PR target/99555
1756         * testsuite/lib/on_device_arch.c: Move to ...
1757         * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
1758         * testsuite/libgomp.fortran/on_device_arch.c: New file;
1759         #include on_device_arch.h.
1760         * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
1761         on_device_arch.h instead of using dg-additional-source.
1762         * testsuite/libgomp.c/pr99555-1.c: Likewise.
1763         * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
1764         on_device_arch.c without relative paths.
1766 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
1768         * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
1769         the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
1770         * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
1771         * config.h.in: Regenerate.
1772         * configure: Likewise.
1774 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
1776         PR target/99555
1777         * testsuite/lib/on_device_arch.c: New file.
1778         * testsuite/libgomp.c/pr99555-1.c: Likewise.
1779         * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
1780         skip for nvptx offloading, with error status.
1781         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
1783 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
1785         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
1786         OpenACC 'serial' construct diagnostic for nvptx offloading.
1788 2021-03-15  Tobias Burnus  <tobias@codesourcery.com>
1790         PR c++/99509
1791         * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
1793 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
1795         PR fortran/98858
1796         * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
1798 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
1800         * configure.ac: Add AC_CHECK_SIZEOF([void *]).
1801         * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
1802         checking of -m32 or -mx32 options on the command line.
1803         * config.h.in: Regenerated.
1804         * configure: Regenerated.
1806 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
1808         * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
1809         support from the target.
1811 2021-02-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
1812             Jakub Jelinek  <jakub@redhat.com>
1814         PR libgomp/98738
1815         * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
1816         (struct gomp_task): Replace detach and completion_sem fields with
1817         union containing completion_sem and detach_team.  Add deferred_p
1818         field.
1819         (struct gomp_team): Remove task_detach_queue.
1820         * task.c: Include assert.h.
1821         (gomp_init_task): Initialize deferred_p and completion_sem fields.
1822         Rearrange initialization order of fields.
1823         (task_fulfilled_p): Delete.
1824         (GOMP_task): Use address of task as the event handle.  Remove
1825         initialization of detach field.  Initialize deferred_p field.
1826         Use automatic local for completion_sem.  Initialize detach_team field
1827         for deferred tasks.
1828         (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
1829         Set kind of suspended detach task to GOMP_TASK_DETACHED and
1830         decrement task_running_count.  Move finish_cancelled block out of
1831         else branch.  Relocate call to gomp_team_barrier_done.
1832         (GOMP_taskwait): Handle tasks with completion events that have not
1833         been fulfilled.
1834         (GOMP_taskgroup_end): Likewise.
1835         (omp_fulfill_event): Use address of task as event handle.  Post to
1836         completion_sem for undeferred tasks.  Clear detach_team if task
1837         has not finished.  For finished tasks, handle post-execution tasks,
1838         call gomp_team_barrier_wake if necessary, and free task.
1839         * team.c (gomp_new_team): Remove initialization of task_detach_queue.
1840         (free_team): Remove free of task_detach_queue.
1841         * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
1842         * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
1843         * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
1844         * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
1845         * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
1846         Change data-sharing of detach events on enclosing parallel to private.
1847         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.  Remove
1848         taskwait directive.
1849         * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
1850         * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
1851         * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
1852         * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
1853         * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
1854         * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
1855         * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
1856         * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
1857         * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
1858         * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
1859         Change data-sharing of detach events on enclosing parallel to private.
1860         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.  Remove
1861         taskwait directive.
1862         * testsuite/libgomp.fortran/task-detach-7.f90: New.
1863         * testsuite/libgomp.fortran/task-detach-8.f90: New.
1864         * testsuite/libgomp.fortran/task-detach-9.f90: New.
1865         * testsuite/libgomp.fortran/task-detach-10.f90: New.
1866         * testsuite/libgomp.fortran/task-detach-11.f90: New.
1868 2021-02-22  Tobias Burnus  <tobias@codesourcery.com>
1870         PR fortran/99171
1871         * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
1873 2021-02-17  Julian Brown  <julian@codesourcery.com>
1875         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
1876         expected errors.
1878 2021-02-17  Julian Brown  <julian@codesourcery.com>
1880         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
1881         * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
1883 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1885         * config/linux/x86/futex.h (__futex_wait):
1886         Revert output type back to long.
1887         (__futex_wake): Ditto.
1888         (futex_wait): Update for revert.
1889         (futex_wake): Ditto.
1891 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1893         * config/linux/x86/futex.h (__futex_wait): New static inline
1894         wrapper function.  Correct output type to int and
1895         timeout type to void *.
1896         (__futex_wake): New static inline wrapper function.
1897         Correct output type to int.
1898         (futex_wait): Use __futex_wait.
1899         (futex_wake): Use __futex_wake.
1901 2021-02-10  Julian Brown  <julian@codesourcery.com>
1903         PR fortran/98979
1904         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
1905         errors.
1907 2021-02-04  Julian Brown  <julian@codesourcery.com>
1909         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
1911 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
1913         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
1914         EF_AMDGPU_MACH_AMDGCN_GFX908.
1915         (gcn_gfx908_s): New constant string.
1916         (isa_hsa_name): Add gfx908.
1917         (isa_code): Add gfx908.
1919 2021-01-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
1921         * libgomp.texi (omp_fulfill_event): New entry.
1923 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
1925         * task.c (GOMP_task): Rename priority argument to priority_arg,
1926         add priority automatic variable and modify that variable.  Instead of
1927         clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
1928         check flags for that bit.
1930 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
1932         PR fortran/98476
1933         * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
1935 2021-01-18  Andreas Schwab  <schwab@suse.de>
1937         * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
1939 2021-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1941         * config/rtems/sem.h (gomp_sem_getcount): New function.
1943 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
1945         * config/linux/sem.h (gomp_sem_getcount): New function.
1946         * config/posix/sem.h (gomp_sem_getcount): New function.
1947         * config/posix/sem.c (gomp_sem_getcount): New function.
1948         * config/accel/sem.h (gomp_sem_getcount): New function.
1949         * task.c (task_fulfilled_p): Use gomp_sem_getcount.
1950         (omp_fulfill_event): Likewise.
1952 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
1954         * fortran.c (omp_fulfill_event_): New.
1955         * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
1956         (struct gomp_team): Add task_detach_queue and task_detach_count
1957         fields.
1958         * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
1959         * libgomp_g.h (GOMP_task): Add extra argument.
1960         * omp.h.in (enum omp_event_handle_t): New.
1961         (omp_fulfill_event): New.
1962         * omp_lib.f90.in (omp_event_handle_kind): New.
1963         (omp_fulfill_event): New.
1964         * omp_lib.h.in (omp_event_handle_kind): New.
1965         (omp_fulfill_event): Declare.
1966         * priority_queue.c (priority_tree_find): New.
1967         (priority_list_find): New.
1968         (priority_queue_find): New.
1969         * priority_queue.h (priority_queue_predicate): New.
1970         (priority_queue_find): New.
1971         * task.c (gomp_init_task): Initialize detach field.
1972         (task_fulfilled_p): New.
1973         (GOMP_task): Add detach argument.  Ignore detach argument if
1974         GOMP_TASK_FLAG_DETACH not set in flags.  Initialize completion_sem
1975         field.  Copy address of completion_sem into detach argument and
1976         into the start of the data record.  Wait for detach event if task
1977         not deferred.
1978         (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
1979         Remove completed tasks and requeue dependent tasks.
1980         (omp_fulfill_event): New.
1981         * team.c (gomp_new_team): Initialize task_detach_queue and
1982         task_detach_count fields.
1983         (free_team): Free task_detach_queue field.
1984         * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
1985         * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
1986         * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
1987         * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
1988         * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
1989         * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
1990         * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
1991         * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
1992         * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
1993         * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
1994         * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
1995         * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
1997 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
1999         PR target/70454
2000         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
2001         be added through preprocessor check on
2002         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
2004 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
2006         PR libgomp/65099
2007         * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
2008         configurations.
2009         * configure: Regenerate.
2010         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
2011         check.
2013 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2015         * configure: Re-generate.
2017 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2019         * configure: Re-generate.
2021 2021-01-05  Julian Brown  <julian@codesourcery.com>
2023         * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
2024         (struct ptx_device): Add omp_stacks struct.
2025         (nvptx_open_device): Initialise cached-stacks housekeeping info.
2026         (nvptx_close_device): Free cached stacks block and mutex.
2027         (nvptx_stacks_free): New function.
2028         (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
2029         (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
2030         (nvptx_stacks_alloc): Rename to...
2031         (nvptx_stacks_acquire): This.  Cache stacks block between runs if same
2032         size or smaller is required.
2033         (nvptx_stacks_free): Remove.
2034         (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
2035         during kernel execution.
2037 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
2039         * libgomp.texi: Bump @copying's copyright year.
2041 2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
2043         * libgomp.texi (Top): Avoid bad "up" link.
2045 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
2047         * testsuite/libgomp.c/task-6.c: New test.
2049 2020-12-09  Andrew Stubbs  <ams@codesourcery.com>
2051         * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
2052         (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
2054 2020-12-08  Tobias Burnus  <tobias@codesourcery.com>
2056         * testsuite/libgomp.fortran/scan-1.f90: New test.
2058 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
2060         PR target/97865
2061         * configure: Regenerate.
2063 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
2065         * configure: Regenerate.
2067 2020-11-25  Thomas Schwinge  <thomas@codesourcery.com>
2069         * testsuite/libgomp.oacc-c++/cache-1.C: New.
2070         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
2072 2020-11-25  Andrew Stubbs  <ams@codesourcery.com>
2074         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
2075         expected results.
2077 2020-11-24  Andrew Stubbs  <ams@codesourcery.com>
2079         * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
2080         (reserved): Delete unused define.
2082 2020-11-24  Thomas Schwinge  <thomas@codesourcery.com>
2084         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
2085         Tcl 8.5-specific behavior.
2086         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
2088 2020-11-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
2090         * env.c (gomp_global_icv): Remove nest_var field.  Add
2091         max_active_levels_var field.
2092         (gomp_max_active_levels_var): Remove.
2093         (parse_boolean): Return true on success.
2094         (handle_omp_display_env): Express OMP_NESTED in terms of
2095         max_active_levels_var.  Change format specifier for
2096         max_active_levels_var.
2097         (initialize_env): Set max_active_levels_var from
2098         OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
2099         OMP_PROC_BIND.
2100         * icv.c (omp_set_nested): Express in terms of
2101         max_active_levels_var.
2102         (omp_get_nested): Likewise.
2103         (omp_set_max_active_levels): Use max_active_levels_var field instead
2104         of gomp_max_active_levels_var.
2105         (omp_get_max_active_levels): Likewise.
2106         * libgomp.h (struct gomp_task_icv): Remove nest_var field.  Add
2107         max_active_levels_var field.
2108         (gomp_supported_active_levels): Set to UCHAR_MAX.
2109         (gomp_max_active_levels_var): Delete.
2110         * libgomp.texi (omp_get_nested): Update documentation.
2111         (omp_set_nested): Likewise.
2112         (OMP_MAX_ACTIVE_LEVELS): Likewise.
2113         (OMP_NESTED): Likewise.
2114         (OMP_NUM_THREADS): Likewise.
2115         (OMP_PROC_BIND): Likewise.
2116         * parallel.c (gomp_resolve_num_threads): Replace reference
2117         to nest_var with max_active_levels_var.  Use max_active_levels_var
2118         field instead of gomp_max_active_levels_var.
2120 2020-11-18  Tobias Burnus  <tobias@codesourcery.com>
2122         * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
2123         nvptx_usleep; use also for device={arch(gcn)}.
2125 2020-11-14  Jakub Jelinek  <jakub@redhat.com>
2127         * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
2128         (foo): Add tests for non-VLA private and firstprivate clauses on
2129         omp task.
2130         (bar): Likewise.  Remove taking of address from private/firstprivate
2131         variables.
2132         * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
2133         (foo): Add p, q, px and s arguments.  Add tests for array reductions
2134         and for non-VLA private and firstprivate clauses on omp task.
2135         (bar): Removed.
2136         (main): Adjust foo caller.  Don't call bar.
2138 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
2139             Thomas Schwinge  <thomas@codesourcery.com>
2141         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
2142         New.
2143         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
2144         Likewise.
2145         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
2146         Likewise.
2147         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
2148         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
2150 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
2151             Thomas Schwinge  <thomas@codesourcery.com>
2153         PR fortran/94358
2154         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
2156 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
2158         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
2159         for array reductions.
2160         (main): Adjust foo callers.
2162 2020-11-12  Jakub Jelinek  <jakub@redhat.com>
2164         * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
2165         * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
2166         * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
2167         * allocator.c (omp_aligned_alloc): New for now static function,
2168         add alignment argument and handle it.
2169         (omp_alloc): Reimplement using omp_aligned_alloc.
2170         (GOMP_alloc, GOMP_free): New functions.
2171         (omp_free): Add ialias.
2172         * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
2173         * testsuite/libgomp.c++/allocate-1.C: New test.
2175 2020-11-12  Thomas Schwinge  <thomas@codesourcery.com>
2177         PR fortran/97782
2178         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
2180 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
2182         * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
2183         usable.
2184         * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
2185         'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
2186         (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
2187         (goacc_enter_data_internal): Likewise.
2188         * target.c (gomp_map_vars_internal):
2189         Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
2190         of gomp_attach_pointer for OpenMP cases.
2191         (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
2192         (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
2193         * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
2195 2020-11-05  Ulrich Drepper  <drepper@redhat.com>
2196             Kwok Cheung Yeung  <kcy@codesourcery.com>
2198         * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
2199         * Makefile.in: Regenerate.
2200         * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
2201         pragmas to ignore -Wdeprecated-declarations warnings.
2202         * icv.c: Likewise.
2203         * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
2204         Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
2205         and omp_get_nested with __GOMP_DEPRECATED_5_0.
2206         * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
2207         deprecated.
2208         * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
2209         to test options.
2210         * testsuite/libgomp.c/affinity-1.c: Likewise.
2211         * testsuite/libgomp.c/affinity-2.c: Likewise.
2212         * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
2213         * testsuite/libgomp.c/lib-1.c: Likewise.
2214         * testsuite/libgomp.c/nested-1.c: Likewise.
2215         * testsuite/libgomp.c/nested-2.c: Likewise.
2216         * testsuite/libgomp.c/nested-3.c: Likewise.
2217         * testsuite/libgomp.c/pr32362-1.c: Likewise.
2218         * testsuite/libgomp.c/pr32362-2.c: Likewise.
2219         * testsuite/libgomp.c/pr32362-3.c: Likewise.
2220         * testsuite/libgomp.c/pr35549.c: Likewise.
2221         * testsuite/libgomp.c/pr42942.c: Likewise.
2222         * testsuite/libgomp.c/pr61200.c: Likewise.
2223         * testsuite/libgomp.c/sort-1.c: Likewise.
2224         * testsuite/libgomp.c/target-5.c: Likewise.
2225         * testsuite/libgomp.c/target-6.c: Likewise.
2226         * testsuite/libgomp.c/teams-1.c: Likewise.
2227         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
2228         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
2229         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
2230         * testsuite/libgomp.fortran/affinity1.f90: Likewise.
2231         * testsuite/libgomp.fortran/lib1.f90: Likewise.
2232         * testsuite/libgomp.fortran/lib2.f: Likewise.
2233         * testsuite/libgomp.fortran/nested1.f90: Likewise.
2234         * testsuite/libgomp.fortran/teams1.f90: Likewise.
2236 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2238         PR target/85486
2239         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
2240         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
2241         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2243 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2245         PR testsuite/80219
2246         PR testsuite/85303
2247         * testsuite/lib/libgomp.exp (libgomp_init): Set
2248         'gcc_warning_prefix', 'gcc_error_prefix'.
2250 2020-10-30  Jakub Jelinek  <jakub@redhat.com>
2252         * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
2253         even in field_tgt_clear initializer.
2255 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
2257         * testsuite/libgomp.c/target-42.c: New test.
2259 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
2260             Tom de Vries  <tdevries@suse.de>
2262         PR testsuite/81690
2263         * testsuite/libgomp.c/usleep.h: New file.
2264         * testsuite/libgomp.c/target-32.c: Include usleep.h.
2265         (main): Use tgt_usleep instead of usleep.
2266         * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
2267         (main): Use tgt_usleep instead of usleep.
2269 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
2271         PR lto/96680
2272         * testsuite/libgomp.c/declare-variant-1.c: New test.
2274 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
2276         * testsuite/libgomp.c/target-41.c: New test.
2278 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
2280         * icv.c (omp_get_initial_device): Remove including corresponding
2281         ialias.
2282         * icv-device.c (omp_get_initial_device): New function.  Return
2283         gomp_get_num_devices ().  Add ialias.
2284         * target.c (resolve_device): Don't fail with
2285         OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
2286         gomp_get_num_devices ().
2287         (omp_target_alloc, omp_target_free, omp_target_is_present,
2288         omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
2289         omp_target_disassociate_ptr, omp_pause_resource): Use
2290         gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
2291         first use in the functions, in uses dominated by the
2292         gomp_get_num_devices call use num_devices_openmp instead.
2293         * libgomp.texi (omp_get_initial_device): Document.
2294         * config/gcn/icv-device.c (omp_get_initial_device): New function.
2295         Add ialias.
2296         * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
2297         * testsuite/libgomp.c/target-40.c: New test.
2299 2020-10-21  Jakub Jelinek  <jakub@redhat.com>
2301         * env.c (parse_target_offload): Change new_offload var type to int,
2302         preinitialize to -1, remove found var and test new_offload != -1
2303         instead of found.
2305 2020-10-20  Jakub Jelinek  <jakub@redhat.com>
2307         * target.c (gomp_target_init): Inside of the function, use automatic
2308         variables corresponding to num_devices, num_devices_openmp and devices
2309         global variables and update the globals only at the end of the
2310         function.
2312 2020-10-20  Kwok Cheung Yeung  <kcy@codesourcery.com>
2314         * env.c (gomp_target_offload_var): New.
2315         (parse_target_offload): New.
2316         (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
2317         (initialize_env): Parse OMP_TARGET_OFFLOAD.
2318         * libgomp.h (gomp_target_offload_t): New.
2319         (gomp_target_offload_var): New.
2320         * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
2321         * target.c (resolve_device): Generate error if device not found and
2322         offloading is mandatory.
2323         (gomp_target_fallback): Generate error if offloading is mandatory.
2324         (GOMP_target): Add argument in call to gomp_target_fallback.
2325         (GOMP_target_ext): Likewise.
2326         (gomp_target_data_fallback): Generate error if offloading is mandatory.
2327         (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
2328         (GOMP_target_data_ext): Likewise.
2329         (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
2330         (gomp_target_init): Return early if offloading is disabled.
2332 2020-10-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
2334         * libgomp.texi (omp_get_max_active_levels): Modify description.
2335         (omp_get_supported_active_levels): Make descriptions consistent.
2337 2020-10-14  Jakub Jelinek  <jakub@redhat.com>
2339         * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
2341 2020-10-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
2343         * env.c (gomp_max_active_levels_var): Initialize to
2344         gomp_supported_active_levels.
2345         (initialize_env): Limit gomp_max_active_levels_var to be at most
2346         equal to gomp_supported_active_levels.
2347         * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
2348         (omp_get_supported_active_levels_): New.
2349         * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
2350         to at most equal to gomp_supported_active_levels.
2351         (omp_get_supported_active_levels): New.
2352         * libgomp.h (gomp_supported_active_levels): New.
2353         * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
2354         omp_get_supported_active_levels_.
2355         * libgomp.texi (omp_get_supported_active_levels): New.
2356         (omp_set_max_active_levels): Update.  Add reference to
2357         omp_get_supported_active_levels.
2358         * omp.h.in (omp_get_supported_active_levels): New.
2359         * omp_lib.f90.in (omp_get_supported_active_levels): New.
2360         * omp_lib.h.in (omp_get_supported_active_levels): New.
2361         * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
2362         against omp_get_supported_active_levels.
2363         * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
2365 2020-10-11  Clement Chigot  <clement.chigot@atos.net>
2367         * config/t-aix: Delete and recreate libgomp before creating
2368         FAT library.
2370 2020-10-08  Tom de Vries  <tdevries@suse.de>
2372         PR libgomp/81802
2373         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
2374         dimensions.
2376 2020-10-06  Tom de Vries  <tdevries@suse.de>
2378         * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
2380 2020-10-06  Tom de Vries  <tdevries@suse.de>
2382         PR middle-end/90861
2383         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
2385 2020-10-05  Tom de Vries  <tdevries@suse.de>
2387         PR fortran/95654
2388         * testsuite/libgomp.fortran/pr95654.f90: New test.
2390 2020-10-02  Tobias Burnus  <tobias@codesourcery.com>
2392         * Makefile.in: Regenerate with automake 1.15.1.
2393         * aclocal.m4: Likewise.
2394         * configure: Likewise.
2395         * testsuite/Makefile.in: Likewise.
2397 2020-09-30  Andrew Stubbs  <ams@codesourcery.com>
2399         * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
2400         and amdgcn targets.
2402 2020-09-30  Tobias Burnus  <tobias@codesourcery.com>
2404         * testsuite/libgomp.fortran/declare-target-3.f90: New test.
2406 2020-09-29  Andrew Stubbs  <ams@codesourcery.com>
2408         * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
2409         total number of threads is one.
2410         (gomp_team_barrier_wake): Likewise.
2411         (gomp_team_barrier_wait_end): Likewise.
2412         (gomp_team_barrier_wait_cancel_end): Likewise.
2413         * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
2414         (gomp_team_barrier_wake): Likewise.
2415         (gomp_team_barrier_wait_end): Likewise.
2416         (gomp_team_barrier_wait_cancel_end): Likewise.
2417         * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
2419 2020-09-28  Tobias Burnus  <tobias@codesourcery.com>
2421         PR middle-end/96390
2422         * testsuite/libgomp.c++/pr96390.C: New test.
2423         * testsuite/libgomp.c-c++-common/pr96390.c: New test.
2425 2020-09-27  Clement Chigot  <clement.chigot@atos.net>
2427         * config/t-aix: Use $(AR) without -X32_64.
2429 2020-09-25  Jakub Jelinek  <jakub@redhat.com>
2431         * testsuite/libgomp.c/loop-25.c: New test.
2433 2020-09-22  Tobias Burnus  <tobias@codesourcery.com>
2435         PR fortran/95654
2436         * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
2438 2020-09-22  Tom de Vries  <tdevries@suse.de>
2440         * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
2441         fails.
2443 2020-09-16  Nathan Sidwell  <nathan@acm.org>
2445         * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
2447 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
2449         PR fortran/96668
2450         * target.c (gomp_map_vars_internal): Initialize has_nullptr.
2452 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
2454         PR fortran/96668
2455         * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
2456         * target.c (gomp_map_vars_existing): Add always_to_flag flag.
2457         (gomp_map_vars_existing): Update call to it.
2458         (gomp_map_fields_existing): Likewise
2459         (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
2460         now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
2461         remapped.
2462         (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
2463         GOMP_MAP_POINTER.
2464         * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
2465         * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
2467 2020-09-14  Tom de Vries  <tdevries@suse.de>
2469         * config/nvptx/atomic.c: New file.  Add
2470         __sync_val_compare_and_swap_16.
2471         * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
2472         target offload_target_nvptx.
2474 2020-09-08  Julian Brown  <julian@codesourcery.com>
2476         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
2477         iteration-ordering assumptions.
2479 2020-09-08  Julian Brown  <julian@codesourcery.com>
2481         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
2482         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
2484 2020-08-20  Chung-Lin Tang  <cltang@codesourcery.com>
2486         * plugin/plugin-nvptx.c (nvptx_free):
2487         Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
2488         CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
2489         comments.
2491 2020-08-20  Tobias Burnus  <tobias@codesourcery.com>
2493         * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
2495 2020-08-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
2497         * testsuite/libgomp.c-c++-common/reduction-16.c: New.
2499 2020-08-13  Jakub Jelinek  <jakub@redhat.com>
2501         * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
2502         * testsuite/libgomp.c/loop-23.c (main): Likewise.
2503         * testsuite/libgomp.c/loop-24.c: New test.
2505 2020-08-08  Jakub Jelinek  <jakub@redhat.com>
2506             Tobias Burnus  <tobias@codesourcery.com>
2508         PR fortran/93553
2509         * testsuite/libgomp.fortran/pr93553.f90: New test.
2511 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
2513         * testsuite/libgomp.c/loop-22.c: New test.
2514         * testsuite/libgomp.c/loop-23.c: New test.
2516 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
2518         PR middle-end/96459
2519         * testsuite/libgomp.c/teams-3.c: New test.
2520         * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
2521         if not defined yet.
2522         (N(test)): Use it before all N(f*) calls.
2523         * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
2524         (main): Don't call all test_* functions from within
2525         #pragma omp teams reduction(|:err), call them directly.
2527 2020-08-04  Tom de Vries  <tdevries@suse.de>
2529         PR target/96428
2530         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
2531         * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
2533 2020-08-03  Julian Brown  <julian@codesourcery.com>
2534             Thomas Schwinge  <thomas@codesourcery.com>
2536         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
2537         shared-memory devices.  Extend with further checking.
2539 2020-08-03  Martin Jambor  <mjambor@suse.cz>
2541         * plugin/Makefrag.am: Remove configuration of HSA plugin.
2542         * aclocal.m4: Regenerated.
2543         * Makefile.in: Regenerated.
2544         * config.h.in: Regenerated.
2545         * configure: Regenerated.
2546         * plugin/configfrag.ac: Likewise.
2547         * plugin/hsa_ext_finalize.h: Removed.
2548         * plugin/plugin-hsa.c: Likewise.
2549         * testsuite/Makefile.in: Regenerated.
2550         * testsuite/lib/libgomp.exp
2551         (offload_target_to_openacc_device_type): Remove hsa case.
2552         (check_effective_target_hsa_offloading_selected_nocache): Removed
2553         (check_effective_target_hsa_offloading_selected): Likewise.
2554         (libgomp_init): Do not add -Wno-hsa to additional_flags.
2555         * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
2556         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
2557         * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
2558         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
2559         * testsuite/libgomp.hsa.c/c.exp: Likewise.
2560         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
2561         * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
2562         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
2563         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
2564         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
2565         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
2566         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
2567         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
2568         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
2569         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
2570         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
2571         * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
2572         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
2573         * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
2574         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
2575         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
2576         * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
2577         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
2578         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
2580 2020-07-27  Julian Brown  <julian@codesourcery.com>
2581             Thomas Schwinge  <thomas@codesourcery.com>
2583         * libgomp.h (struct target_var_desc): Rename do_detach field to
2584         is_attach.
2585         * oacc-mem.c (goacc_exit_datum_1): Add assert.  Don't set finalize for
2586         GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
2587         (goacc_enter_data_internal): Don't affect reference counts
2588         for attach mappings.
2589         (goacc_exit_data_internal): Don't affect reference counts for detach
2590         mappings.
2591         * target.c (gomp_map_vars_existing): Don't affect reference counts for
2592         attach mappings.
2593         (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
2594         mark attach mappings.
2595         (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
2596         reference count for attach mappings.
2597         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
2598         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
2599         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
2600         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
2601         test as shouldfail.
2602         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
2603         gracefully in no-finalize mode.
2604         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
2606 2020-07-24  Thomas Schwinge  <thomas@codesourcery.com>
2608         * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
2609         use.
2610         * testsuite/libgomp.oacc-c/c.exp: Likewise.
2611         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2613 2020-07-23  Julian Brown  <julian@codesourcery.com>
2614             Thomas Schwinge  <thomas@codesourcery.com>
2616         * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
2617         finalization for detach operation.
2618         * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
2619         New test.
2621 2020-07-23  Tobias Burnus  <tobias@codesourcery.com>
2623         * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
2624         * libgomp_f.h.in (omp_check_defines): Check whether
2625         sizeof of determined Fortran kind and C typedef match.
2626         * omp_lib.f90.in: Add omp_depened_kind.
2627         * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
2628         * configure: Regenerate.
2629         * Makefile.in: Regenerate.
2630         * testsuite/Makefile.in: Regenerate.
2632 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
2634         * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
2635         gcc/testsuite/c-c++-common/gomp/.
2636         * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
2637         * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
2638         from gcc/testsuite/gfortran.dg/gomp/.
2639         * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
2641 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
2643         * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
2644         * omp_lib.h.in: Likewise.
2646 2020-07-18  H.J. Lu  <hjl.tools@gmail.com>
2648         PR target/95620
2649         * testsuite/libgomp.c/pr95620.c: New test.
2651 2020-07-16  Julian Brown  <julian@codesourcery.com>
2652             Thomas Schwinge  <thomas@codesourcery.com>
2654         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
2655         * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
2657 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
2659         * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
2660         avoid conversion on 32bit systems from 32bit to 64bit due
2661         to -fdefault-integer-8.
2663 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
2665         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
2666         variables; add character(kind=4) tests; update TODO comment.
2668 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
2670         * allocator.c: Add ialias for omp_init_allocator and
2671         omp_destroy_allocator.
2672         * configure.ac: Set INTPTR_T_KIND.
2673         * configure: Regenerate.
2674         * Makefile.in: Regenerate.
2675         * testsuite/Makefile.in: Regenerate.
2676         * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
2677         omp_set_default_allocator_, omp_get_default_allocator_): New
2678         functions and ialias_redirect.
2679         * icv.c: Add ialias for omp_set_default_allocator and
2680         omp_get_default_allocator.
2681         * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
2682         omp_destroy_allocator_, omp_set_default_allocator_ and
2683         omp_get_default_allocator_.
2684         * omp_lib.f90.in: Add allocator traits parameters, declare
2685         allocator routines and add related kind parameters.
2686         * omp_lib.h.in: Likewise.
2687         * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
2688         * testsuite/libgomp.fortran/alloc-1.F90: New test.
2689         * testsuite/libgomp.fortran/alloc-2.F90: New test.
2690         * testsuite/libgomp.fortran/alloc-3.F: New test.
2691         * testsuite/libgomp.fortran/alloc-4.f90: New test.
2692         * testsuite/libgomp.fortran/alloc-5.f90: New test.
2694 2020-07-14  Tom de Vries  <tom@codesourcery.com>
2695             Cesar Philippidis  <cesar@codesourcery.com>
2696             Thomas Schwinge  <thomas@codesourcery.com>
2697             Kwok Cheung Yeung  <kcy@codesourcery.com>
2699         * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
2700         New variable.
2701         (acc_init_1): Set acc_init_thread to pthread_self ().  Set
2702         acc_init_state to initializing at the start, and to initialized at the
2703         end.
2704         (self_initializing_p): New function.
2705         (acc_get_device_type): Return acc_device_none if called by thread that
2706         is currently executing acc_init_1.
2707         * libgomp.texi (acc_get_device_type): Update documentation.
2708         (Implementation Status and Implementation-Defined Behavior): Likewise.
2709         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
2711 2020-07-14  David Edelsohn  <dje.gcc@gmail.com>
2713         * config/t-aix: Set BITS from compiler cpp macro.
2715 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
2717         * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
2719 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
2721         PR fortran/67311
2722         * testsuite/libgomp.fortran/target-map-1.f90: New test.
2724 2020-07-14  Jakub Jelinek  <jakub@redhat.com>
2726         * testsuite/libgomp.c/loop-21.c: New test.
2728 2020-07-13  Julian Brown  <julian@codesourcery.com>
2729             Thomas Schwinge  <thomas@codesourcery.com>
2731         * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
2733 2020-07-10  Julian Brown  <julian@codesourcery.com>
2734             Thomas Schwinge  <thomas@codesourcery.com>
2736         * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
2737         dynamic_refcount.
2738         (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
2739         * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
2740         dynamic_refcount.
2741         (acc_unmap_data): Update comment.
2742         (goacc_map_var_existing, goacc_enter_datum): Adjust for
2743         dynamic_refcount semantics.
2744         (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
2745         Adjust for dynamic_refcount semantics.
2746         (goacc_enter_data_internal): Implement "present" case of dynamic
2747         memory-map handling here.  Update "non-present" case for
2748         dynamic_refcount semantics.
2749         (goacc_exit_data_internal): Use goacc_exit_datum_1.
2750         * target.c (gomp_map_vars_internal): Remove
2751         GOMP_MAP_VARS_OPENACC_ENTER_DATA handling.  Update for dynamic_refcount
2752         handling.
2753         (gomp_unmap_vars_internal): Remove virtual_refcount handling.
2754         (gomp_load_image_to_device): Substitute dynamic_refcount for
2755         virtual_refcount.
2756         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
2757         * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
2758         * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
2759         * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
2760         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
2761         trace output.
2762         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
2763         trace output.
2764         * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
2765         test.
2766         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
2767         Remove stale comment.
2768         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
2769         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
2770         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2771         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2772         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2773         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
2775 2020-07-10  Julian Brown  <julian@codesourcery.com>
2776             Thomas Schwinge  <thomas@codesourcery.com>
2778         * oacc-mem.c (goacc_map_var_existing): New function.
2779         (goacc_enter_datum): Use above function.
2780         (goacc_exit_datum_1): New function.
2781         (goacc_exit_datum): Use above function.
2783 2020-07-09  Julian Brown  <julian@codesourcery.com>
2784             Thomas Schwinge  <thomas@codesourcery.com>
2786         PR middle-end/95270
2787         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
2788         * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
2790 2020-07-09  Julian Brown  <julian@codesourcery.com>
2792         * oacc-mem.c (find_group_last): Group data-movement clauses
2793         (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
2794         GOMP_MAP_ATTACH.  Allow standalone GOMP_MAP_ATTACH also.
2796 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
2798         * testsuite/libgomp.c/loop-19.c: New test.
2799         * testsuite/libgomp.c/loop-20.c: New test.
2801 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
2803         * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
2804         2 to -1.  Add omp_atv_serialized and define omp_atv_sequential using
2805         it.  Remove __omp_alloctrait_value_max__.
2806         * allocator.c (omp_init_allocator): Handle omp_atv_default for
2807         omp_atk_alignment and omp_atk_pool_size.
2809 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
2811         * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
2812         behavior for 'GOMP_MAP_FORCE_FROM'.
2813         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
2815 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
2817         * oacc-mem.c (goacc_exit_data_internal): Remove
2818         'GOMP_MAP_ALWAYS_FROM' handling.
2820 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
2822         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
2823         'scan-assembler' with 'scan-offload-rtl'.
2824         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
2825         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
2826         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
2827         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
2829 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
2831         * target.c (gomp_map_vars_existing): Assert 'kind !=
2832         GOMP_MAP_ATTACH'.
2833         (gomp_map_vars_internal): Clean up.
2835 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
2837         * testsuite/libgomp.c/loop-17.c: New test.
2838         * testsuite/libgomp.c/loop-18.c: New test.
2840 2020-06-26  Marek Polacek  <polacek@redhat.com>
2842         * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
2844 2020-06-23  Alexandre Oliva  <oliva@adacore.com>
2846         * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
2847         * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
2849 2020-06-22  David Edelsohn  <dje.gcc@gmail.com>
2851         * Makefile.am: Use -include.
2852         * Makefile.in: Regenerate.
2854 2020-06-21  David Edelsohn  <dje.gcc@gmail.com>
2856         * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
2857         * Makefile.in: Regenerate
2858         * configure.ac (tmake_file): Substitute.
2859         * configure: Regenerate.
2860         * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
2861         * config/t-aix: New file.
2863 2020-06-17  Thomas Schwinge  <thomas@codesourcery.com>
2865         PR lto/94848
2866         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
2867         'dg-do run'.
2869 2020-06-17  Andrew Stubbs  <ams@codesourcery.com>
2871         * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
2872         variant for HSA_RUNTIME_LIB name.
2873         (find_executable_symbol_1): Delete.
2874         (find_executable_symbol): Delete.
2875         (init_kernel_properties): Add ".kd" suffix to symbol names.
2876         (find_load_offset): Delete.
2877         (create_and_finalize_hsa_program): Remove relocation handling.
2879 2020-06-16  Tobias Burnus  <tobias@codesourcery.com>
2881         * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
2883 2020-06-08  Tobias Burnus  <tobias@codesourcery.com>
2885         PR lto/94848
2886         PR middle-end/95551
2887         * testsuite/libgomp.fortran/target-var.f90: New test.
2889 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
2890             Julian Brown  <julian@codesourcery.com>
2892         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
2893         special handling.
2895 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
2896             Julian Brown  <julian@codesourcery.com>
2898         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2899         Simplify.
2901 2020-06-05  Julian Brown  <julian@codesourcery.com>
2903         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
2904         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
2906 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2908         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2909         Evaluate 'copyfrom' individually for each entry.
2910         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
2912 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2914         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2915         Evaluate 'finalize' individually for each entry.
2916         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
2917         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
2918         file.
2920 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2922         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
2923         usage.
2924         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
2926 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2927             Julian Brown  <julian@codesourcery.com>
2929         * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
2930         checking.
2931         (acc_unmap_data, goacc_exit_data_internal): Restore
2932         'is_tgt_unmapped' checking.
2933         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
2934         file.
2935         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
2936         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
2937         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2938         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2939         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2940         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
2942 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2943             Julian Brown  <julian@codesourcery.com>
2945         * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
2947 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2949         PR libgomp/92854
2950         * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
2952 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2954         PR libgomp/92854
2955         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
2956         more.
2958 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2959             Julian Brown  <julian@codesourcery.com>
2961         * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
2962         'gomp_map_vars'.
2963          (acc_map_data): Clean up accordingly.
2965 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2967         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
2968         of over-eager 'finalize' clause.
2969         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
2970         file.
2971         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
2972         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
2973         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2974         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2975         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2976         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
2977         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
2978         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
2980 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2982         * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
2984 2020-06-04  Julian Brown  <julian@codesourcery.com>
2986         * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
2987         error path.
2988         (goacc_detach_internal): Likewise.
2990 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2992         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
2993         the checkpoint.
2994         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
2995         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
2996         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
2997         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
2998         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
3000 2020-06-02  Jakub Jelinek  <jakub@redhat.com>
3002         * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
3003         defined.
3005 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
3007         * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
3009 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
3011         * allocator.c (omp_alloc): For size == 0, return NULL early.
3013 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
3015         PR bootstrap/95413
3016         * configure: Regenerated.
3018 2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
3020         PR libfortran/95191
3021         * testsuite/libgomp.fortran/async_io_9.f90: New test.
3023 2020-05-19  Jakub Jelinek  <jakub@redhat.com>
3025         * omp.h.in (omp_uintptr_t): New typedef.
3026         (__GOMP_UINTPTR_T_ENUM): Define.
3027         (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
3028         omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
3029         (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
3030         (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
3031         omp_get_default_allocator, omp_alloc, omp_free): Declare.
3032         * libgomp.h (struct gomp_team_state): Add def_allocator field.
3033         (gomp_def_allocator): Declare.
3034         * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
3035         omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
3036         omp_alloc and omp_free.
3037         * team.c (gomp_team_start): Copy over ts.def_allocator.
3038         * env.c (gomp_def_allocator): New variable.
3039         (parse_wait_policy): Adjust function comment.
3040         (parse_allocator): New function.
3041         (handle_omp_display_env): Print OMP_ALLOCATOR.
3042         (initialize_env): Call parse_allocator.
3043         * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
3044         * allocator.c: New file.
3045         * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
3046         functions.
3047         * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
3048         * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
3049         * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
3050         * Makefile.in: Regenerated.
3052 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3054         PR bootstrap/95147
3055         * configure: Regenerated.
3057 2020-05-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
3059         PR libfortran/95119
3060         * testsuite/libgomp.fortran/close_errors_1.f90: New test.
3062 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3064         * configure: Regenerated.
3066 2020-05-14  Jakub Jelinek  <jakub@redhat.com>
3068         * testsuite/libgomp.c-c++-common/target-40.c: New test.
3070 2020-05-13  Tobias Burnus  <tobias@codesourcery.com>
3072         PR fortran/94690
3073         * testsuite/libgomp.fortran/pr66199-3.f90: New.
3074         * testsuite/libgomp.fortran/pr66199-4.f90: New.
3075         * testsuite/libgomp.fortran/pr66199-5.f90: New.
3076         * testsuite/libgomp.fortran/pr66199-6.f90: New.
3077         * testsuite/libgomp.fortran/pr66199-7.f90: New.
3078         * testsuite/libgomp.fortran/pr66199-8.f90: New.
3079         * testsuite/libgomp.fortran/pr66199-9.f90: New.
3081 2020-05-12  Jakub Jelinek  <jakub@redhat.com>
3083         * testsuite/libgomp.c/target-39.c: New test.
3085 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
3087         * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
3088         * openacc.f90 (acc_device_current): Likewise.
3089         * openacc.h (acc_device_current): Likewise.
3090         * openacc_lib.h (acc_device_current): Likewise.
3092         PR target/94282
3093         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
3094         'dg-allow-blank-lines-in-output'.
3096         * oacc-init.c (get_openacc_name): Handle 'gcn'.
3097         * testsuite/lib/libgomp.exp
3098         (offload_target_to_openacc_device_type) [amdgcn*]: Return
3099         'radeon'.  Adjust all users.
3100         (check_effective_target_openacc_amdgcn_accel_present): Rename
3101         to...
3102         (check_effective_target_openacc_radeon_accel_present): ... this.
3103         Adjust all users.
3104         (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
3105         (check_effective_target_openacc_radeon_accel_selected): ... this.
3106         Adjust all users.
3108         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
3109         'dg-do run'.
3111 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
3113         PR other/94629
3115         * plugin/plugin-gcn.c (init_hsa_context): Check return value from
3116         hsa_iterate_agents.
3117         (GOMP_OFFLOAD_init_device): Check return values from both calls to
3118         hsa_agent_iterate_regions.
3120 2020-04-20  Thomas Schwinge  <thomas@codesourcery.com>
3122         PR middle-end/94635
3123         * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
3124         run'.
3126 2020-04-20  Tobias Burnus  <tobias@codesourcery.com>
3128         PR middle-end/94120
3129         * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
3130         test case.
3132 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
3134         PR middle-end/94635
3135         * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
3137 2020-04-13  Thomas Schwinge  <thomas@codesourcery.com>
3139         PR libgomp/92843
3140         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
3141         Rename to...
3142         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
3143         ... this.
3144         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
3145         Rename to...
3146         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
3147         ... this.
3148         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
3149         Rename to...
3150         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
3151         ... this.
3152         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
3153         Rename to...
3154         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
3155         ... this.
3156         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
3157         Rename to...
3158         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
3159         ... this.
3160         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
3161         Rename to...
3162         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
3163         ... this.
3164         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
3165         Rename to...
3166         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
3167         ... this.
3168         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
3169         Rename to...
3170         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
3171         ... this.
3172         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
3173         Rename to...
3174         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
3175         ... this.
3176         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
3177         Rename to...
3178         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
3179         ... this.
3180         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
3181         Rename to...
3182         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
3183         ... this.
3184         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
3185         Rename to...
3186         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
3187         ... this.
3188         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
3189         Rename to...
3190         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
3191         ... this.
3192         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
3193         Rename to...
3194         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
3195         ... this.
3196         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
3197         Rename to...
3198         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
3199         ... this.
3200         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
3201         Rename to...
3202         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
3203         ... this.
3205 2020-04-10  Julian Brown  <julian@codesourcery.com>
3206             Thomas Schwinge  <thomas@codesourcery.com>
3208         PR libgomp/92843
3209         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
3210         New file.
3211         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
3212         Likewise.
3213         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
3214         Likewise.
3215         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
3216         Likewise.
3217         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
3218         Likewise.
3219         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
3220         Likewise.
3221         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
3222         Likewise.
3223         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
3224         Likewise.
3225         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
3226         Likewise.
3227         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
3228         Likewise.
3229         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
3230         Likewise.
3231         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
3232         Likewise.
3233         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
3234         Likewise.
3235         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
3236         Likewise.
3237         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
3238         Likewise.
3239         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
3240         Likewise.
3242 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
3244         * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
3245         run'.
3247 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
3249         PR middle-end/94120
3250         * libgomp.oacc-c++/declare-pr94120.C: New.
3252 2020-04-06  Maciej W. Rozycki  <macro@wdc.com>
3254         * configure.ac: Add testsuite/libgomp-site-extra.exp to output
3255         files.
3256         * configure: Regenerate.
3257         * testsuite/libgomp-site-extra.exp.in: New file.
3258         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
3259         variable.
3260         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
3261         variable.
3262         * testsuite/Makefile.in: Regenerate.
3264 2020-04-03  Thomas Schwinge  <thomas@codesourcery.com>
3266         PR tree-optimization/89713
3267         PR c/94392
3268         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
3269         'bar.sync'.
3270         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
3272 2020-03-31  Tobias Burnus  <tobias@codesourcery.com>
3274         * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
3275         * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
3277 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
3279         PR libgomp/81689
3280         * testsuite/libgomp.c/target-link-1.c: Remove xfail.
3282 2020-03-20  Tobias Burnus  <tobias@codesourcery.com>
3284         PR libgomp/94251
3285         * target.c (gomp_load_image_to_device): Fix link
3286         variable handling.
3288 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
3290         PR c++/93931
3291         * testsuite/libgomp.c++/pr93931.C: New test.
3293 2020-03-19  Tobias Burnus  <tobias@codesourcery.com>
3295         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
3296         dg-allow-blank-lines-in-output.
3298 2020-03-18  Julian Brown <julian@codesourcery.com>
3299             Tobias Burnus  <tobias@codesourcery.com>
3301         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
3302         it work concurrently.
3304 2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
3306         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
3307         #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
3308         * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
3310 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
3312         PR middle-end/93566
3313         * testsuite/libgomp.c/pr93566.c: New test.
3315 2020-02-21  Frederik Harwath  <frederik@codesourcery.com>
3317         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
3318         changes from 2020-02-19, i.e. use integer(c_size_t) instead of
3319         integer(acc_device_property) for the type of the return value of
3320         acc_get_property.
3322 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
3324         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
3325         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
3326         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
3327         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
3328         (acc_set_device_num): Fix Fortran argument name, use same name for C.
3329         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
3330         corrections; add note about the previous interface and named constant.
3331         (OpenACC library and environment variables): Fix two typos.
3332         * openacc.f90: Use for all procedures the argument names from the spec
3333         as for â€¦_h they are user visible.
3334         (openacc_kinds): Rename acc_device_property to
3335         acc_device_property_kinds and change value to int32 ; and update users.
3336         Re-add acc_device_property for for backward compatibility.
3337         (acc_get_property_string_h): Clean up as acc_device_property_kind
3338         changed.
3339         (acc_get_property_h): Likewise and return c_size_t instead of
3340         acc_device_property.
3341         (openacc): Also export acc_device_property_kinds.
3342         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
3343         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
3344         handling; check against /= 0 instead of == 1 to match C.
3345         * openacc_lib.h: Use for all procedures the argument names from the spec
3346         as for â€¦_h they are user visible. Place !GCC$ into the first column to
3347         be active also for fixed-form souce form.
3348         (acc_device_current, acc_device_property_kind, acc_device_property,
3349         acc_property_memory, acc_property_free_memory, acc_property_name,
3350         acc_property_vendor, acc_property_driver): New named constants.
3351         (acc_get_property, acc_get_property_string): New generic interface.
3353 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
3355         PR libgomp/93481
3356         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
3357         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
3358         optional.
3359         (gomp_target_task_fn): Assert "devicep->async_run_func".
3360         (clear_unsupported_flags): New function to remove unsupported flags
3361         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
3362         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
3363         * testsuite/libgomp.c/target-33.c:
3364         Remove xfail for offload_target_nvptx.
3365         * testsuite/libgomp.c/target-34.c: Likewise.
3367 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
3369         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
3370         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
3371         * testsuite/libgomp.c/target-34.c: Likewise.
3372         * testsuite/libgomp.c/target-link-1.c: Add xfail for
3373         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
3375 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
3377         * testsuite/libgomp.c/target-38.c: New test.
3379 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
3381         PR libgomp/93515
3382         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
3384 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
3386         * testsuite/lib/libgomp.exp
3387         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
3388         and not as 'source' argument to libgomp_target_compile.
3390 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
3392         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
3393         (gcn_gfx801_s): Remove.
3394         (isa_hsa_name): Remove gfx801.
3395         (isa_gcc_name): Remove gfx801/carizzo.
3396         (isa_code): Remove gfx801.
3398 2020-02-03  Julian Brown  <julian@codesourcery.com>
3399             Tobias Burnus  <tobias@codesourcery.com>
3401         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
3402         and *_finalize variants; document acc_attach and acc_detach; update
3403         references from OpenACC 2.0 to 2.6.
3404         * openacc.f90 (openacc_version): Update to 201711.
3405         * openacc_lib.h (openacc_version): Update to 201711.
3406         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
3407         openacc_version to 201711.
3408         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3410 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
3412         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
3413         and vgpr_count fields.
3414         (struct kernel_info): Add a field for a hsa_kernel_description.
3415         (run_kernel): Reduce the number of threads/workers if the requested
3416         number would require too many VGPRs.
3417         (init_basic_kernel_info): Initialize description field with
3418         the hsa_kernel_description entry for the kernel.
3420 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
3422         PR bootstrap/93409
3423         * plugin/configfrag.ac (enable_offload_targets): Skip
3424         HSA and GCN plugin besides -m32 also for -mx32.
3425         * configure: Regenerate.
3427 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
3429         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
3431 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
3433         * plugin-gcn.c (struct agent_info): Add fields "name" and
3434         "vendor_name" ...
3435         (GOMP_OFFLOAD_init_device): ... and init from here.
3436         (struct hsa_context_info): Add field "driver_version_s" ...
3437         (init_hsa_contest): ... and init from here.
3438         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
3439         implementation.
3440         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
3441         Enable test execution for amdgcn and host offloading targets.
3442         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
3443         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
3444         (expect_device_properties): Split function into ...
3445         (expect_device_string_properties): ... this new function ...
3446         (expect_device_memory): ... and this new function.
3447         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
3448         Add test.
3450 2020-01-28  Julian Brown  <julian@codesourcery.com>
3452         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
3453         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
3454         component/non-component variable refs in a single directive.
3455         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
3457 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
3459         * configure.ac: Handle `--with-toolexeclibdir='.
3460         * Makefile.in: Regenerate.
3461         * aclocal.m4: Regenerate.
3462         * configure: Regenerate.
3463         * testsuite/Makefile.in: Regenerate.
3465 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
3467         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
3468         (expect_device_properties): Remove "expected_free_mem" argument,
3469         change "expected_total_mem" argument type to size_t;
3470         change types of acc_get_property results to size_t,
3471         adapt format strings.
3472         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
3473         Use %zu instead of %zd to print size_t values.
3474         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
3475         rename to ...
3476         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
3477         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
3478         rename to ...
3479         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
3481 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
3483         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
3484         the device id.
3486 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
3488         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
3489         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
3490         Adjust test dimensions for amdgcn.
3491         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
3492         gang/worker/vector expectations dynamically.
3493         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
3494         (main): Likewise.
3495         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
3496         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
3497         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
3498         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
3499         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
3500         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
3501         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
3502         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
3503         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
3504         (acc_gang): Recognise acc_device_radeon.
3505         (acc_worker): Likewise.
3506         (acc_vector): Likewise.
3507         (main): Set expectations for amdgcn.
3508         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
3509         (main): Adjust gang/worker/vector expectations dynamically.
3510         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
3511         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
3512         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
3513         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
3514         for amdgcn.
3516 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
3518         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
3519         acc_device_radeon.
3520         (openacc): Likewise.
3521         * openacc.f90 (openacc_kinds): Likewise.
3522         (openacc): Likewise.
3523         * openacc.h (acc_device_t): Likewise.
3524         * openacc_lib.h: Likewise.
3525         * testsuite/lib/libgomp.exp
3526         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
3527         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
3528         (cb_compute_construct_end): Likewise.
3529         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
3530         (cb_enqueue_launch_start): Likewise.
3531         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
3532         (cb_enter_data_end): Likewise.
3533         (cb_exit_data_start): Likewise.
3534         (cb_exit_data_end): Likewise.
3535         (cb_compute_construct_end): Likewise.
3536         (cb_enqueue_launch_start): Likewise.
3537         (cb_enqueue_launch_end): Likewise.
3538         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
3539         (main): Likewise.
3541 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
3543         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
3544         to use this instead of 'enum gomp_device_property'.
3545         (GOMP_OFFLOAD_get_property): Rename to...
3546         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
3547         * libgomp.h (struct gomp_device_descr): Move
3548         'GOMP_OFFLOAD_openacc_get_property'...
3549         (struct acc_dispatch_t): ... here.  Adjust all users.
3550         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
3552         * target.c (gomp_map_vars_internal)
3553         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
3554         paths.
3556 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
3558         PR libgomp/93219
3559         * libgomp.h (gomp_print_string): Change return type from void to int.
3560         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
3561         not all characters have been written.
3563 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
3565         * libgomp.texi: Fix typos, use https.
3567 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
3569         * testsuite/libgomp.fortran/optional-map.f90: Add test for
3570         unallocated/disassociated actual arguments to nonallocatable/nonpointer
3571         dummy arguments; those are/shall be regarded as absent arguments.
3572         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
3573         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
3575 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
3577         Update copyright years.
3579         * libgomp.texi: Bump @copying's copyright year.
3581 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
3583         PR libgomp/93065
3584         * oacc-init.c (goacc_runtime_deinitialize): New function.
3586 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
3588         PR bootstrap/93074
3589         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
3590         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
3592 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
3593             Frederik Harwath  <frederik@codesourcery.com>
3594             Thomas Schwinge  <tschwinge@codesourcery.com>
3596         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
3597         * libgomp-plugin.h (gomp_device_property_value): New union.
3598         (gomp_device_property_value): New prototype.
3599         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
3600         constant.
3601         (acc_device_property_t): New enum.
3602         (acc_get_property, acc_get_property_string): New prototypes.
3603         * oacc-init.c (acc_get_device_type): Also assert that result
3604         is not `acc_device_current'.
3605         (get_property_any, acc_get_property, acc_get_property_string):
3606         New functions.
3607         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
3608         `acc_property_memory', `acc_property_free_memory',
3609         `acc_property_name', `acc_property_vendor' and
3610         `acc_property_driver' constants.  Add `acc_device_property' data
3611         type.
3612         (openacc_internal): Add `acc_get_property' and
3613         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
3614         `acc_get_property_string_h', `acc_get_property_l' and
3615         `acc_get_property_string_l'.
3616         * oacc-host.c (host_get_property): New function.
3617         (host_dispatch): Wire it.
3618         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
3619         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
3620         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
3621         * libgomp.texi (OpenACC Runtime Library Routines): Add
3622         `acc_get_property'.
3623         (acc_get_property): New node.
3624         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
3625         function (stub).
3626         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
3627         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
3628         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
3629         calls.
3630         (GOMP_OFFLOAD_get_property): New function.
3631         (struct ptx_device): Add new field "name".
3632         (cuda_driver_version_s): Add new static variable ...
3633         (nvptx_init): ... and init from here.
3635         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
3636         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
3637         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
3638         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
3639         with test helper functions.
3641         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
3643 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
3645         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
3646         variable.
3648 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
3650         * target.c (gomp_map_vars_internal): Restore 'omp declare target
3651         link' handling.
3653 2019-12-19  Julian Brown  <julian@codesourcery.com>
3655         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
3656         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
3657         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
3659 2019-12-19  Julian Brown  <julian@codesourcery.com>
3660             Cesar Philippidis  <cesar@codesourcery.com>
3662         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
3663         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
3664         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
3665         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
3666         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
3667         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
3668         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
3669         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
3670         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
3671         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
3672         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
3673         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
3674         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
3676 2019-12-19  Julian Brown  <julian@codesourcery.com>
3678         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
3679         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
3680         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
3681         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
3682         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
3683         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
3684         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
3685         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
3686         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
3687         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
3688         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
3689         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
3691 2019-12-19  Julian Brown  <julian@codesourcery.com>
3693         * libgomp.h (struct target_var_desc): Add do_detach flag.
3694         * oacc-init.c (acc_shutdown_1): Free aux block if present.
3695         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
3696         struct components.  Tidy up and add some new checks.
3697         (goacc_enter_data_internal): Update call to find_group_last.
3698         (goacc_exit_data_internal): Support detach operations and
3699         GOMP_MAP_STRUCT.
3700         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
3701         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
3702         attach/detach in enter/exit data detection code.
3703         * target.c (gomp_map_vars_existing): Initialise do_detach field of
3704         tgt_var_desc.
3705         (gomp_map_vars_internal): Support attach.
3706         (gomp_unmap_vars_internal): Support detach.
3708 2019-12-19  Julian Brown  <julian@codesourcery.com>
3709             Thomas Schwinge  <thomas@codesourcery.com>
3711         * libgomp.h (struct splay_tree_aux): Add attach_count field.
3712         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
3713         * libgomp.map (OACC_2.6): New section. Add acc_attach,
3714         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
3715         acc_detach_finalize_async.
3716         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
3717         acc_detach, acc_detach_async, acc_detach_finalize,
3718         acc_detach_finalize_async): New functions.
3719         * openacc.h (acc_attach, acc_attach_async, acc_detach,
3720         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
3721         prototypes.
3722         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
3723         (gomp_remove_var_internal): Free attachment counts if present.
3724         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
3725         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
3727 2019-12-19  Julian Brown  <julian@codesourcery.com>
3728             Cesar Philippidis  <cesar@codesourcery.com>
3730         * libgomp.h (gomp_map_val): Add prototype.
3731         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
3732         open-coding device-address calculation.
3733         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
3734         non-present case.
3736 2019-12-19  Julian Brown  <julian@codesourcery.com>
3738         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
3739         field for virtual_refcount.
3740         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
3741         (gomp_free_memmap): Remove prototype.
3742         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
3743         instead of calling gomp_free_memmap.
3744         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
3745         dynamic_refcount.
3746         (acc_unmap_data): Open code instead of forcing target_mem_desc's
3747         to_free field to NULL then calling gomp_unmap_vars.  Handle
3748         REFCOUNT_INFINITY on target blocks.
3749         (goacc_enter_data): Rename to...
3750         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
3751         handling for mapping groups.  Use virtual_refcount instead of
3752         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
3753         map_map_vars_async call.  Re-do lookup for target pointer return value.
3754         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
3755         renamed goacc_enter_datum function.
3756         (goacc_exit_data): Rename to...
3757         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
3758         (acc_delete, acc_delete_async, acc_delete_finalize,
3759         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
3760         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
3761         goacc_exit_datum function.
3762         (gomp_acc_remove_pointer, find_pointer): Remove functions.
3763         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
3764         New functions.
3765         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
3766         goacc_exit_data_internal helper functions.
3767         * target.c (gomp_map_vars_internal): Handle
3768         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
3769         semantics.
3770         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
3771         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
3772         virtual_refcount field instead of dynamic_refcount.
3773         (gomp_free_memmap): Remove function.
3774         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
3775         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
3776         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
3778 2019-12-19  Julian Brown  <julian@codesourcery.com>
3779             Thomas Schwinge  <thomas@codesourcery.com>
3781         * libgomp.h (struct splay_tree_aux): New.
3782         (struct splay_tree_key_s): Replace link_key field with aux pointer.
3783         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
3784         to aux struct.
3785         (gomp_remove_var_internal): Free aux block if present.
3786         (gomp_load_image_to_device): Zero-initialise aux field instead of
3787         link_key field.
3788         (omp_target_associate_pointer): Zero-initialise aux field.
3790 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
3792         PR middle-end/86416
3793         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
3794         q or none.
3795         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
3796         L or none.
3798 2019-12-19  Julian Brown  <julian@codesourcery.com>
3799             Maciej W. Rozycki  <macro@codesourcery.com>
3800             Tobias Burnus  <tobias@codesourcery.com>
3801             Thomas Schwinge  <thomas@codesourcery.com>
3803         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
3804         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
3805         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
3806         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
3807         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
3808         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
3809         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
3810         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
3811         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
3813 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
3815         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
3816         called...
3817         (goacc_insert_pointer): ... from here, "present" case.
3818         (goacc_insert_pointer): Inline function into...
3819         (GOACC_enter_exit_data): ... here, and simplify.
3821         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
3822         called...
3823         (goacc_insert_pointer): ... from here, "not present" case.
3825         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
3826         all users.
3828         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
3829         'goacc_enter_data', 'goacc_exit_data'.
3831         * oacc-mem.c (delete_copyout): Refactor into...
3832         (goacc_exit_data): ... this.  Adjust all users.
3834         * oacc-mem.c (present_create_copy): Refactor into...
3835         (goacc_enter_data): ... this.  Adjust all users.
3837         * target.c (gomp_unmap_vars_internal): Add a safeguard to
3838         'gomp_remove_var'.
3840         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
3841         like 'GOMP_MAP_FROM'.
3843         PR libgomp/92726
3844         PR libgomp/92970
3845         PR libgomp/92984
3846         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
3847         fails.
3848         (GOACC_enter_exit_data): Simplify accordingly.
3849         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
3850         subsuming...
3851         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
3852         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
3853         file.
3854         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
3855         subsuming...
3856         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
3857         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
3858         file.
3859         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
3860         subsuming...
3861         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
3863         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
3864         'finalize' handling.
3866         PR libgomp/92848
3867         * oacc-mem.c (acc_map_data, present_create_copy)
3868         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
3869         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
3870         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
3871         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
3872         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
3873         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
3874         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
3875         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
3876         Remove "XFAIL"s.
3878         * target.c (gomp_unmap_tgt): Make it 'static'.
3879         * libgomp.h (gomp_unmap_tgt): Remove.
3881 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
3883         PR middle-end/86416
3884         * testsuite/libgomp.c/pr86416-1.c: New.
3885         * testsuite/libgomp.c/pr86416-2.c: New.
3887 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
3889         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
3890         all symbols as public except for the 'use â€¦, only' imported symbol,
3891         which is private.
3892         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
3893         all symbols from module openacc_kinds as PUBLIC
3894         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
3895         fix comment typo.
3896         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
3898 2019-12-13  Julian Brown  <julian@codesourcery.com>
3900         PR libgomp/92881
3902         * libgomp.h (gomp_remove_var_async): Add prototype.
3903         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
3904         gomp_remove_var.
3905         * target.c (gomp_unref_tgt): Change return type to bool, indicating
3906         whether target_mem_desc was unmapped.
3907         (gomp_unref_tgt_void): New.
3908         (gomp_remove_var): Reimplement in terms of...
3909         (gomp_remove_var_internal): ...this new helper function.
3910         (gomp_remove_var_async): New, implemented using above helper function.
3911         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
3912         gomp_unref_tgt.
3914 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
3916         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
3917         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3918         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
3919         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
3920         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
3921         Likewise.
3922         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
3923         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
3925 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
3927         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
3928         as public except for the 'use â€¦, only' imported symbol, which is
3929         private.
3930         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
3931         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
3932         attributes for acc_copyout_finalize and acc_delete_finalize.
3934 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
3936         PR fortran/92899
3937         * testsuite/libgomp.fortran/atomic1.f90: New test.
3939 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
3941         PR libgomp/92843
3942         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
3943         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
3944         assertions.
3945         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
3946         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
3947         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
3948         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
3949         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
3951         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
3952         * oacc-mem.c: ... here.
3953         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
3954         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
3955         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
3956         Remove.
3957         * libgomp_g.h: Update.
3959         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
3960         * oacc-async.c: ... here.
3961         * oacc-int.h (goacc_wait): Declare.
3962         * libgomp_g.h: Update
3964         PR libgomp/92854
3965         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
3966         New file.
3967         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
3968         Likewise.
3969         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
3970         Likewise.
3971         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
3972         Likewise.
3973         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
3974         Likewise.
3975         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
3976         Likewise.
3978 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
3979             Julian Brown  <julian@codesourcery.com>
3981         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
3982         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
3984 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
3986         * omp_lib.h.in: Fix spelling of function declaration
3987         omp_get_cancell(l)ation.
3988         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
3989         Fix typos.
3990         * env.c: Fix comment typos.
3991         * oacc-host.c: Likewise.
3992         * ordered.c: Likewise.
3993         * task.c: Likewise.
3994         * team.c: Likewise.
3995         * config/gcn/task.c: Likewise.
3996         * config/gcn/team.c: Likewise.
3997         * config/nvptx/task.c: Likewise.
3998         * config/nvptx/team.c: Likewise.
3999         * plugin/plugin-gcn.c: Likewise.
4000         * testsuite/libgomp.fortran/jacobi.f: Likewise.
4001         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4002         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
4004 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
4006         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
4007         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
4008         unnecessary 'dg-additional-options "-w"'.
4010 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
4011             Julian Brown  <julian@codesourcery.com>
4013         PR libgomp/92116
4014         PR libgomp/92877
4016         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
4017         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
4018         Adjust all users.
4019         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
4020         Remove XFAIL.
4021         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
4022         Likewise.
4023         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
4025 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
4027         PR libgomp/92503
4028         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
4029         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
4030         file.
4031         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
4032         Likewise.
4033         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
4034         Likewise.
4035         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
4036         Likewise.
4037         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
4038         Likewise.
4039         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
4040         Likewise.
4041         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
4042         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
4043         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
4044         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
4045         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
4046         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
4047         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
4048         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
4049         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
4050         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
4052         PR libgomp/92840
4053         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
4054         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
4055         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
4056         New file.
4057         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
4058         Likewise.
4059         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
4060         Likewise.
4061         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
4062         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
4064         PR libgomp/92511
4065         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
4066         this file...
4067         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
4068         this file...
4069         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
4070         file...
4071         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
4072         file...
4073         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
4074         ... with their content moved into, and extended in this new file.
4075         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
4076         New file.
4077         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
4078         Likewise.
4079         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
4080         Likewise.
4081         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
4082         Likewise.
4084         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
4086         PR libgomp/92854
4087         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
4089         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
4091         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
4093 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
4095         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
4096         unique.
4097         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
4098         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
4099         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
4100         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
4101         Ditto.
4102         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
4103         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
4105 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
4107         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
4109 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
4110             Kwok Cheung Yeung <kcy@codesourcery.com>
4112         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
4113         if input it a NULL pointer.
4114         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
4115         diagnostic of NULL pointer.
4116         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
4117         * testsuite/libgomp.fortran/optional-map.f90: New.
4118         * testsuite/libgomp.fortran/use_device_addr-1.f90
4119         (test_dummy_opt_callee_1_absent): New.
4120         (test_dummy_opt_call_1): Call it.
4121         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
4122         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
4123         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
4124         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
4125         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
4126         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
4127         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
4128         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
4129         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
4130         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
4131         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
4132         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
4133         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
4134         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
4135         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
4136         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
4138 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
4140         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
4141         expect dg-output of 'Error termination.' for GCN.
4142         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
4143         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
4145 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
4147         PR fortran/92756
4148         * testsuite/libgomp.fortran/teams1.f90: New test.
4149         * testsuite/libgomp.fortran/teams2.f90: New test.
4151 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
4153         * oacc-init.c (acc_known_device_type): Add function.
4154         (unknown_device_type_error): Add function.
4155         (name_of_acc_device_t): Change to call unknown_device_type_error
4156         on unknown type.
4157         (resolve_device): Use acc_known_device_type.
4158         (acc_init): Fail if acc_device_t argument is not valid.
4159         (acc_shutdown): Likewise.
4160         (acc_get_num_devices): Likewise.
4161         (acc_set_device_type): Likewise.
4162         (acc_get_device_num): Likewise.
4163         (acc_set_device_num): Likewise.
4164         (acc_on_device): Add comment that argument validity is not checked.
4166 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
4168         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
4169         Recognize amdgcn.
4170         (check_effective_target_openacc_amdgcn_accel_present): New proc.
4171         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
4172         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
4173         * testsuite/libgomp.oacc-c/c.exp: Likewise.
4174         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4176 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4178         PR libgomp/91938
4179         * configure.tgt: Avoid IE tls on *-*-musl*.
4181 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
4183         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
4184         adding a common-block test case.
4186 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
4188         PR c++/60228
4189         * testsuite/libgomp.c++/udr-20.C: New test.
4190         * testsuite/libgomp.c++/udr-21.C: New test.
4192 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
4194         * testsuite/lib/libgomp.exp
4195         (check_effective_target_offload_target_nvptx): New proc.
4196         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
4197         'dg-skip-if'.
4198         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
4199         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
4200         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
4202 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4204         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
4205         * testsuite/libgomp.c/pr39591-2.c: Likewise.
4206         * testsuite/libgomp.c/pr39591-3.c: Likewise.
4207         * testsuite/libgomp.c/private-1.c: Likewise.
4208         * testsuite/libgomp.c/task-1.c: Likewise.
4209         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
4211 2019-11-20  Julian Brown  <julian@codesourcery.com>
4213         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
4214         aq->mutex here.
4215         (queue_push_launch): Lock aq->mutex before calling
4216         wait_for_queue_nonfull.
4217         (queue_push_callback): Likewise.
4218         (queue_push_asyncwait): Likewise.
4219         (queue_push_placeholder): Likewise.
4221 2019-11-20  Julian Brown  <julian@codesourcery.com>
4223         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
4224         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
4225         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
4226         return code.
4228 2019-11-20  Julian Brown  <julian@codesourcery.com>
4230         PR libgomp/92511
4232         * oacc-mem.c (present_create_copy): Fix device pointer return value in
4233         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
4234         in non-present/create case.
4235         (delete_copyout): Change error condition to fail only on copies outside
4236         of mapped block.  Adjust error message accordingly.
4237         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
4238         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
4239         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
4240         message.
4241         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4242         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
4243         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
4245 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
4247         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
4248         libatomic in build-tree testing.
4250 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
4252         * testsuite/Makefile.in: Regenerate.
4254 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
4256         * testsuite/libgomp.c/target-print-1.c: New file.
4257         * testsuite/libgomp.fortran/target-print-1.f90: New file.
4258         * testsuite/libgomp.oacc-c/print-1.c: New file.
4259         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
4261 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4262             Kwok Cheung Yeung  <kcy@codesourcery.com>
4263             Julian Brown  <julian@codesourcery.com>
4264             Tom de Vries  <tom@codesourcery.com>
4266         * plugin/Makefrag.am: Add amdgcn plugin support.
4267         * plugin/configfrag.ac: Likewise.
4268         * plugin/plugin-gcn.c: New file.
4269         * configure: Regenerate.
4270         * Makefile.in: Regenerate.
4271         * testsuite/Makefile.in: Regenerate.
4273 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4275         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
4276         and use team_malloc variants.
4277         (gomp_gcn_exit_kernel): Use team_free.
4278         * libgomp.h (TEAM_ARENA_SIZE): Define.
4279         (TEAM_ARENA_START): Define.
4280         (TEAM_ARENA_FREE): Define.
4281         (TEAM_ARENA_END): Define.
4282         (team_malloc): New function.
4283         (team_malloc_cleared): New function.
4284         (team_free): New function.
4285         * team.c (gomp_new_team): Initialize and use team_malloc.
4286         (free_team): Use team_free.
4287         (gomp_free_thread): Use team_free.
4288         (gomp_pause_host): Use team_free.
4289         * work.c (gomp_init_work_share): Use team_malloc.
4290         (gomp_fini_work_share): Use team_free.
4292 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4293             Kwok Cheung Yeung  <kcy@codesourcery.com>
4294             Julian Brown  <julian@codesourcery.com>
4295             Tom de Vries  <tom@codesourcery.com>
4297         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
4298         * Makefile.in: Regenerate.
4299         * config.h.in (PLUGIN_GCN): Add new undef.
4300         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
4301         * config/gcn/affinity-fmt.c: New file.
4302         * config/gcn/bar.c: New file.
4303         * config/gcn/bar.h: New file.
4304         * config/gcn/doacross.h: New file.
4305         * config/gcn/icv-device.c: New file.
4306         * config/gcn/oacc-target.c: New file.
4307         * config/gcn/simple-bar.h: New file.
4308         * config/gcn/target.c: New file.
4309         * config/gcn/task.c: New file.
4310         * config/gcn/team.c: New file.
4311         * config/gcn/time.c: New file.
4312         * configure.ac: Add amdgcn*-*-*.
4313         * configure: Regenerate.
4314         * configure.tgt: Add amdgcn*-*-*.
4315         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
4316         * libgomp.h (gcn_thrs): Add amdgcn variant.
4317         (set_gcn_thrs): Likewise.
4318         (gomp_thread): Likewise.
4319         * oacc-int.h (goacc_thread): Likewise.
4320         * oacc-target.c: New file.
4321         * openacc.f90 (acc_device_gcn): New parameter.
4322         * openacc.h (acc_device_t): Add acc_device_gcn.
4323         * team.c (gomp_free_pool_helper): Add amdgcn support.
4325 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4326             Julian Brown  <julian@codesourcery.com>
4328         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
4329         parameter.
4330         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
4331         queue constructor.
4332         * oacc-host.c (host_openacc_async_construct): Add device parameter.
4333         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
4334         device parameter.
4336 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4338         * configure.tgt (nvptx*-*-*): Add "accel" directory.
4339         * config/nvptx/libgomp-plugin.c: Move ...
4340         * config/accel/libgomp-plugin.c: ... to here.
4341         * config/nvptx/lock.c: Move ...
4342         * config/accel/lock.c: ... to here.
4343         * config/nvptx/mutex.c: Move ...
4344         * config/accel/mutex.c: ... to here.
4345         * config/nvptx/mutex.h: Move ...
4346         * config/accel/mutex.h: ... to here.
4347         * config/nvptx/oacc-async.c: Move ...
4348         * config/accel/oacc-async.c: ... to here.
4349         * config/nvptx/oacc-cuda.c: Move ...
4350         * config/accel/oacc-cuda.c: ... to here.
4351         * config/nvptx/oacc-host.c: Move ...
4352         * config/accel/oacc-host.c: ... to here.
4353         * config/nvptx/oacc-init.c: Move ...
4354         * config/accel/oacc-init.c: ... to here.
4355         * config/nvptx/oacc-mem.c: Move ...
4356         * config/accel/oacc-mem.c: ... to here.
4357         * config/nvptx/oacc-plugin.c: Move ...
4358         * config/accel/oacc-plugin.c: ... to here.
4359         * config/nvptx/omp-lock.h: Move ...
4360         * config/accel/omp-lock.h: ... to here.
4361         * config/nvptx/openacc.f90: Move ...
4362         * config/accel/openacc.f90: ... to here.
4363         * config/nvptx/pool.h: Move ...
4364         * config/accel/pool.h: ... to here.
4365         * config/nvptx/proc.c: Move ...
4366         * config/accel/proc.c: ... to here.
4367         * config/nvptx/ptrlock.c: Move ...
4368         * config/accel/ptrlock.c: ... to here.
4369         * config/nvptx/ptrlock.h: Move ...
4370         * config/accel/ptrlock.h: ... to here.
4371         * config/nvptx/sem.c: Move ...
4372         * config/accel/sem.c: ... to here.
4373         * config/nvptx/sem.h: Move ...
4374         * config/accel/sem.h: ... to here.
4375         * config/nvptx/thread-stacksize.h: Move ...
4376         * config/accel/thread-stacksize.h: ... to here.
4378 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
4379             Tobias Burnus  <tobias@codesourcery.com>
4380             Frederik Harwath  <frederik@codesourcery.com>
4381             Thomas Schwinge  <thomas@codesourcery.com>
4383         libgomp/
4384         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
4385         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
4386         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
4388 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
4389             Kwok Cheung Yeung  <kcy@codesourcery.com>
4391         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
4392         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
4394 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
4396         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
4398         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
4399         run'.
4400         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
4401         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
4403 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
4405         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
4406         Add expected warnings about missing reduction clauses.
4407         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
4408         Likewise.
4409         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
4410         Likewise.
4411         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
4412         Likewise.
4414 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
4416         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
4417         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
4418         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
4419         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
4420         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
4421         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
4423 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
4425         PR fortran/92305
4426         * testsuite/libgomp.fortran/allocatable2.f90: Use
4427         unique numbers with 'stop'.
4428         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
4429         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
4430         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
4431         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
4432         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
4434 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
4436         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
4437         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
4438         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
4439         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
4440         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
4441         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
4443 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
4445         * testsuite/libgomp.fortran/target9.f90: New.
4447 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
4449         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
4450         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
4451         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
4452         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
4453         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
4454         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
4455         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
4456         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
4457         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
4458         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
4459         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
4460         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
4461         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
4462         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
4463         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
4464         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
4465         * testsuite/libgomp.fortran/associate1.f90: Ditto.
4466         * testsuite/libgomp.fortran/associate2.f90: Ditto.
4467         * testsuite/libgomp.fortran/associate3.f90: Ditto.
4468         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
4469         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
4470         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
4471         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
4472         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
4473         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
4474         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
4475         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
4476         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
4477         * testsuite/libgomp.fortran/character1.f90: Ditto.
4478         * testsuite/libgomp.fortran/character2.f90: Ditto.
4479         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
4480         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
4481         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
4482         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
4483         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
4484         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
4485         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
4486         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
4487         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
4488         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
4489         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
4490         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
4491         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
4492         * testsuite/libgomp.fortran/do1.f90: Ditto.
4493         * testsuite/libgomp.fortran/do2.f90: Ditto.
4494         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
4495         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
4496         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
4497         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
4498         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
4499         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
4500         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
4501         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
4502         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
4503         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
4504         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
4505         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
4506         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
4507         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
4508         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
4509         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
4510         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
4511         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
4512         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
4513         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
4514         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
4515         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
4516         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
4517         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
4518         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
4519         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
4520         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
4521         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
4522         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
4523         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
4524         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
4525         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
4526         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
4527         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
4528         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
4529         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
4530         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
4531         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
4532         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
4533         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
4534         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
4535         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
4536         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
4537         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
4538         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
4539         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
4540         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
4541         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
4542         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
4543         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
4544         * testsuite/libgomp.fortran/lib1.f90: Ditto.
4545         * testsuite/libgomp.fortran/lib4.f90: Ditto.
4546         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
4547         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
4548         * testsuite/libgomp.fortran/nested1.f90: Ditto.
4549         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
4550         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
4551         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
4552         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
4553         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
4554         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
4555         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
4556         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
4557         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
4558         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
4559         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
4560         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
4561         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
4562         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
4563         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
4564         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
4565         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
4566         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
4567         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
4568         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
4569         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
4570         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
4571         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
4572         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
4573         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
4574         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
4575         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
4576         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
4577         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
4578         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
4579         * testsuite/libgomp.fortran/pr28390.f: Ditto.
4580         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
4581         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
4582         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
4583         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
4584         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
4585         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
4586         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
4587         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
4588         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
4589         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
4590         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
4591         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
4592         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
4593         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
4594         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
4595         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
4596         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
4597         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
4598         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
4599         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
4600         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
4601         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
4602         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
4603         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
4604         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
4605         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
4606         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
4607         * testsuite/libgomp.fortran/reference1.f90: Ditto.
4608         * testsuite/libgomp.fortran/reference2.f90: Ditto.
4609         * testsuite/libgomp.fortran/retval1.f90: Ditto.
4610         * testsuite/libgomp.fortran/retval2.f90: Ditto.
4611         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
4612         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
4613         * testsuite/libgomp.fortran/simd1.f90: Ditto.
4614         * testsuite/libgomp.fortran/simd2.f90: Ditto.
4615         * testsuite/libgomp.fortran/simd3.f90: Ditto.
4616         * testsuite/libgomp.fortran/simd4.f90: Ditto.
4617         * testsuite/libgomp.fortran/simd5.f90: Ditto.
4618         * testsuite/libgomp.fortran/simd6.f90: Ditto.
4619         * testsuite/libgomp.fortran/simd7.f90: Ditto.
4620         * testsuite/libgomp.fortran/stack.f90: Ditto.
4621         * testsuite/libgomp.fortran/strassen.f90: Ditto.
4622         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
4623         * testsuite/libgomp.fortran/tabs2.f: Ditto.
4624         * testsuite/libgomp.fortran/target1.f90: Ditto.
4625         * testsuite/libgomp.fortran/target2.f90: Ditto.
4626         * testsuite/libgomp.fortran/target3.f90: Ditto.
4627         * testsuite/libgomp.fortran/target4.f90: Ditto.
4628         * testsuite/libgomp.fortran/target5.f90: Ditto.
4629         * testsuite/libgomp.fortran/target6.f90: Ditto.
4630         * testsuite/libgomp.fortran/target7.f90: Ditto.
4631         * testsuite/libgomp.fortran/target8.f90: Ditto.
4632         * testsuite/libgomp.fortran/task1.f90: Ditto.
4633         * testsuite/libgomp.fortran/task2.f90: Ditto.
4634         * testsuite/libgomp.fortran/task3.f90: Ditto.
4635         * testsuite/libgomp.fortran/task4.f90: Ditto.
4636         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
4637         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
4638         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
4639         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
4640         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
4641         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
4642         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
4643         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
4644         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
4645         * testsuite/libgomp.fortran/udr1.f90: Ditto.
4646         * testsuite/libgomp.fortran/udr10.f90: Ditto.
4647         * testsuite/libgomp.fortran/udr11.f90: Ditto.
4648         * testsuite/libgomp.fortran/udr12.f90: Ditto.
4649         * testsuite/libgomp.fortran/udr13.f90: Ditto.
4650         * testsuite/libgomp.fortran/udr14.f90: Ditto.
4651         * testsuite/libgomp.fortran/udr15.f90: Ditto.
4652         * testsuite/libgomp.fortran/udr2.f90: Ditto.
4653         * testsuite/libgomp.fortran/udr3.f90: Ditto.
4654         * testsuite/libgomp.fortran/udr4.f90: Ditto.
4655         * testsuite/libgomp.fortran/udr5.f90: Ditto.
4656         * testsuite/libgomp.fortran/udr6.f90: Ditto.
4657         * testsuite/libgomp.fortran/udr7.f90: Ditto.
4658         * testsuite/libgomp.fortran/udr8.f90: Ditto.
4659         * testsuite/libgomp.fortran/udr9.f90: Ditto.
4660         * testsuite/libgomp.fortran/vla1.f90: Ditto.
4661         * testsuite/libgomp.fortran/vla2.f90: Ditto.
4662         * testsuite/libgomp.fortran/vla3.f90: Ditto.
4663         * testsuite/libgomp.fortran/vla4.f90: Ditto.
4664         * testsuite/libgomp.fortran/vla5.f90: Ditto.
4665         * testsuite/libgomp.fortran/vla6.f90: Ditto.
4666         * testsuite/libgomp.fortran/vla7.f90: Ditto.
4667         * testsuite/libgomp.fortran/vla8.f90: Ditto.
4668         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
4669         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
4671 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
4673         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
4674         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
4675         Ditto; add 'dg-do run' for torture testing.
4676         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
4677         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
4678         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
4679         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
4680         * testsuite/libgomp.fortran/pr28390.f: Ditto.
4681         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
4682         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
4683         * testsuite/libgomp.fortran/task2.f90: Ditto.
4684         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
4685         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
4686         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
4687         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
4688         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
4689         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
4691 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
4693         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
4694         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
4695         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
4696         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
4697         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
4698         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
4699         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
4700         Use 'stop' not abort().
4701         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
4702         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
4703         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
4704         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
4705         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
4706         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
4707         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
4708         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
4709         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
4710         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
4711         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
4712         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
4713         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
4714         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
4715         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
4716         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
4717         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
4718         Ditto.
4719         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4720         Ditto.
4721         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4722         Ditto.
4723         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4724         Ditto.
4725         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4726         Ditto.
4727         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
4728         Ditto.
4729         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
4730         Ditto.
4731         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
4732         Ditto.
4733         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
4734         Ditto.
4735         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
4736         Ditto.
4737         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
4738         Ditto.
4739         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
4740         Ditto.
4741         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
4742         Ditto.
4743         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
4744         Ditto.
4745         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
4746         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
4747         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
4748         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
4749         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
4750         Likewise and also add 'dg-do run'.
4751         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
4752         Ditto.
4754 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
4755             Tobias Burnus  <tobias@codesourcery.com>
4757         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
4758         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
4759         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
4761 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
4763         PR libgomp/92081
4764         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
4765         than 0.
4767 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
4769         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
4770         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
4772 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
4774         PR middle-end/92036
4775         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
4776         file.
4778 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
4780         PR testsuite/91884
4781         * testsuite/libgomp.fortran/fortran.exp: Conditionally
4782         add -lquadmath.
4783         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
4785 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
4787         PR libgomp/92028
4788         * target.c (gomp_map_vars_internal): Readd the previous
4789         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
4790         though do that just in the !not_found_cnt case.
4792 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
4794         * gfortran.dg/gomp/target-simd.f90: New.
4796 2019-10-02  Julian Brown  <julian@codesourcery.com>
4797             Cesar Philippidis  <cesar@codesourcery.com>
4799         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
4800         * target.c (FIELD_TGT_EMPTY): Define.
4801         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
4802         as switch instead of list of ifs.
4803         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
4805 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
4807         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
4808         include. Replace alloca () with __builtin_alloca ().
4809         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
4811 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
4813         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
4814         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
4815         * oacc-parallel.c: Don't include "libgomp_g.h".
4816         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
4817         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
4818         * aclocal.m4: Regenerated.
4819         * config.h.in: Regenerated.
4820         * configure: Regenerated.
4821         * Makefile.in: Regenerated.
4823 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
4825         * libgomp_g.h: Include stdint.h instead of gstdint.h.
4827 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
4829         * configure: Regenerate.
4831 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
4833         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
4834         string is initialized.
4836 2019-09-06  Florian Weimer  <fweimer@redhat.com>
4838         * configure: Regenerate.
4840 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
4842         PR other/79543
4843         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
4844         scanning to conform to the GNU Coding Standards.
4845         * configure: Regenerate.
4847 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
4849         PR libgomp/91530
4850         * testsuite/libgomp.c/scan-21.c: New test.
4851         * testsuite/libgomp.c/scan-22.c: New test.
4853 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
4855         PR libgomp/91530
4856         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
4857         targets.
4858         * testsuite/libgomp.c/scan-12.c: Likewise.
4859         * testsuite/libgomp.c/scan-13.c: Likewise.
4860         * testsuite/libgomp.c/scan-14.c: Likewise.
4861         * testsuite/libgomp.c/scan-15.c: Likewise.
4862         * testsuite/libgomp.c/scan-16.c: Likewise.
4863         * testsuite/libgomp.c/scan-17.c: Likewise.
4864         * testsuite/libgomp.c/scan-18.c: Likewise.
4865         * testsuite/libgomp.c/scan-19.c: Likewise.
4866         * testsuite/libgomp.c/scan-20.c: Likewise.
4867         * testsuite/libgomp.c++/scan-9.C: Likewise.
4868         * testsuite/libgomp.c++/scan-10.C: Likewise.
4869         * testsuite/libgomp.c++/scan-11.C: Likewise.
4870         * testsuite/libgomp.c++/scan-12.C: Likewise.
4871         * testsuite/libgomp.c++/scan-14.C: Likewise.
4872         * testsuite/libgomp.c++/scan-15.C: Likewise.
4873         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
4874         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
4875         * testsuite/libgomp.c++/scan-16.C: Likewise.
4877 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
4879         PR fortran/91473
4880         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
4881         -std=legacy so invalid code in the test case is accepted.
4883 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
4885         PR fortran/91422
4886         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
4887         dimension.
4889 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
4891         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
4892         perform the lookup in the first loop only if !not_found_cnt, otherwise
4893         perform lookups for it in the second loop guarded with
4894         if (not_found_cnt || has_firstprivate).
4895         * testsuite/libgomp.c/target-37.c: New test.
4896         * testsuite/libgomp.c++/target-22.C: New test.
4898 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
4900         * testsuite/libgomp.c/target-18.c (struct S): New type.
4901         (foo): Use use_device_addr clause instead of use_device_ptr clause
4902         where required by OpenMP 5.0, add further tests for both use_device_ptr
4903         and use_device_addr clauses.
4904         * testsuite/libgomp.c++/target-9.C (struct S): New type.
4905         (foo): Use use_device_addr clause instead of use_device_ptr clause
4906         where required by OpenMP 5.0, add further tests for both use_device_ptr
4907         and use_device_addr clauses.  Add t and u arguments.
4908         (main): Adjust caller.
4910 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
4912         * testsuite/libgomp.c++/loop-13.C: New test.
4913         * testsuite/libgomp.c++/loop-14.C: New test.
4914         * testsuite/libgomp.c++/loop-15.C: New test.
4916 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
4918         PR middle-end/91301
4919         * testsuite/libgomp.c++/for-27.C: New test.
4921 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
4923         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
4924         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
4926 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
4928         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
4930 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
4932         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
4933         * testsuite/libgomp.c++/scan-16.C: Likewise.
4935 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
4937         * testsuite/libgomp.c/scan-19.c: New test.
4938         * testsuite/libgomp.c/scan-20.c: New test.
4940         * testsuite/libgomp.c/scan-11.c: New test.
4941         * testsuite/libgomp.c/scan-12.c: New test.
4942         * testsuite/libgomp.c/scan-13.c: New test.
4943         * testsuite/libgomp.c/scan-14.c: New test.
4944         * testsuite/libgomp.c/scan-15.c: New test.
4945         * testsuite/libgomp.c/scan-16.c: New test.
4946         * testsuite/libgomp.c/scan-17.c: New test.
4947         * testsuite/libgomp.c/scan-18.c: New test.
4948         * testsuite/libgomp.c++/scan-9.C: New test.
4949         * testsuite/libgomp.c++/scan-10.C: New test.
4950         * testsuite/libgomp.c++/scan-11.C: New test.
4951         * testsuite/libgomp.c++/scan-12.C: New test.
4952         * testsuite/libgomp.c++/scan-13.C: New test.
4953         * testsuite/libgomp.c++/scan-14.C: New test.
4954         * testsuite/libgomp.c++/scan-15.C: New test.
4955         * testsuite/libgomp.c++/scan-16.C: New test.
4957 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
4959         * testsuite/libgomp.c/scan-9.c: New test.
4960         * testsuite/libgomp.c/scan-10.c: New test.
4962 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
4964         * testsuite/libgomp.c++/scan-1.C: New test.
4965         * testsuite/libgomp.c++/scan-2.C: New test.
4966         * testsuite/libgomp.c++/scan-3.C: New test.
4967         * testsuite/libgomp.c++/scan-4.C: New test.
4968         * testsuite/libgomp.c++/scan-5.C: New test.
4969         * testsuite/libgomp.c++/scan-6.C: New test.
4970         * testsuite/libgomp.c++/scan-7.C: New test.
4971         * testsuite/libgomp.c++/scan-8.C: New test.
4972         * testsuite/libgomp.c/scan-1.c: New test.
4973         * testsuite/libgomp.c/scan-2.c: New test.
4974         * testsuite/libgomp.c/scan-3.c: New test.
4975         * testsuite/libgomp.c/scan-4.c: New test.
4976         * testsuite/libgomp.c/scan-5.c: New test.
4977         * testsuite/libgomp.c/scan-6.c: New test.
4978         * testsuite/libgomp.c/scan-7.c: New test.
4979         * testsuite/libgomp.c/scan-8.c: New test.
4981 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
4983         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
4984         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
4985         Likewise.
4987         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
4988         check.
4990 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
4992         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
4993         file.
4995 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
4997         PR fortran/90743
4998         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
4999         case.
5000         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
5001         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
5002         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
5003         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
5005         PR testsuite/90861
5006         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
5008         PR middle-end/90862
5009         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
5011 2019-06-16  Tom de Vries  <tdevries@suse.de>
5013         PR tree-optimization/89376
5014         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
5016 2019-06-15  Tom de Vries  <tdevries@suse.de>
5018         PR tree-optimization/89713
5019         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
5020         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
5022 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
5024         PR middle-end/90779
5025         * testsuite/libgomp.c/pr90779.c: New test.
5026         * testsuite/libgomp.fortran/pr90779.f90: New test.
5028 2019-06-15  Tom de Vries  <tdevries@suse.de>
5030         PR tree-optimization/90009
5031         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
5033 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
5035         PR tree-optimization/89713
5036         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
5038 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
5040         PR target/90811
5041         * testsuite/libgomp.c/pr90811.c: New test.
5043 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
5045         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
5046         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
5048 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
5050         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
5051         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
5052         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
5053         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
5055 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5057         * configure.ac: Call AX_COUNT_CPUS.
5058         Substitute CPU_COUNT.
5059         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
5060         count fallback.
5061         * aclocal.m4: Regenerate.
5062         * configure: Regenerate.
5063         * Makefile.in, testsuite/Makefile.in: Regenerate.
5065 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
5067         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
5068         to ...
5069         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
5070         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
5071         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
5073 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
5075         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
5077         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
5079         PR libgomp/90641
5080         * work.c (gomp_init_work_share): Instead of aligning final ordered
5081         value to multiples of long long alignment, align to that the
5082         first part (ordered team ids) and if inline_ordered_team_ids
5083         is not on a long long alignment boundary within the structure,
5084         use __alignof__ (long long) - 1 pad size always.
5085         * loop.c (GOMP_loop_start): Fix *mem computation if
5086         inline_ordered_team_ids is not aligned on long long alignment boundary
5087         within the structure.
5088         * loop-ull.c (GOMP_loop_ull_start): Likewise.
5089         * sections.c (GOMP_sections2_start): Likewise.
5091 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
5093         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
5094         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
5096         PR libgomp/90585
5097         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
5098         HAVE_INTTYPES_H is defined.
5099         (print_uint64_t): New typedef.
5100         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
5101         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
5102         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
5103         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
5104         before casting to void *.
5105         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
5106         * oacc-mem.c: Don't include config.h nor stdint.h.
5107         * target.c: Don't include config.h.
5108         * oacc-cuda.c: Likewise.
5109         * oacc-host.c: Don't include stdint.h.
5111 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
5113         PR libgomp/90527
5114         * alloc.c (_GNU_SOURCE): Define.
5116 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
5118         * acc_prof.h: New file.
5119         * oacc-profiling.c: Likewise.
5120         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
5121         Add these, respectively.
5122         * Makefile.in: Regenerate.
5123         * env.c (initialize_env): Call goacc_profiling_initialize.
5124         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
5125         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
5126         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
5127         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
5128         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
5129         acc_prof_register, acc_prof_unregister, and acc_register_library.
5130         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
5131         GOMP_PLUGIN_goacc_thread.
5132         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
5133         prof_callbacks_enabled members.
5134         (goacc_prof_enabled, goacc_profiling_initialize)
5135         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
5136         (goacc_profiling_dispatch): Declare.
5137         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
5138         (GOACC_PROFILING_SETUP_P): Define.
5139         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
5140         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
5141         OpenACC Profiling Interface.
5142         * oacc-cuda.c (acc_get_current_cuda_device)
5143         (acc_get_current_cuda_context, acc_get_cuda_stream)
5144         (acc_set_cuda_stream): Likewise.
5145         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
5146         (acc_init, acc_set_device_type, acc_get_device_type)
5147         (acc_get_device_num, goacc_lazy_initialize): Likewise.
5148         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
5149         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
5150         (acc_unmap_data, present_create_copy, delete_copyout)
5151         (update_dev_host): Likewise.
5152         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
5153         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
5154         Likewise.
5155         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
5156         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
5157         Likewise.
5158         * libgomp.texi: Update.
5159         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
5160         file.
5161         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
5162         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
5163         Likewise.
5164         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
5165         Likewise.
5166         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
5167         Likewise.
5168         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
5169         Likewise.
5171 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
5173         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
5174         (struct goacc_asyncqueue_list): Likewise.
5175         (goacc_aq): Likewise.
5176         (goacc_aq_list): Likewise.
5177         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
5178         (GOMP_OFFLOAD_openacc_async_test): Remove.
5179         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
5180         (GOMP_OFFLOAD_openacc_async_wait): Remove.
5181         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
5182         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
5183         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
5184         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
5185         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
5186         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
5187         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
5188         (GOMP_OFFLOAD_openacc_async_exec): Declare.
5189         (GOMP_OFFLOAD_openacc_async_construct): Declare.
5190         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
5191         (GOMP_OFFLOAD_openacc_async_test): Declare.
5192         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
5193         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
5194         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
5195         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
5196         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
5198         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
5199         (gomp_acc_insert_pointer): Adjust declaration.
5200         (gomp_copy_host2dev): New declaration.
5201         (gomp_copy_dev2host): Likewise.
5202         (gomp_map_vars_async): Likewise.
5203         (gomp_unmap_tgt): Likewise.
5204         (gomp_unmap_vars_async): Likewise.
5205         (gomp_fini_device): Likewise.
5207         * oacc-async.c (get_goacc_thread): New function.
5208         (get_goacc_thread_device): New function.
5209         (lookup_goacc_asyncqueue): New function.
5210         (get_goacc_asyncqueue): New function.
5211         (acc_async_test): Adjust code to use new async design.
5212         (acc_async_test_all): Likewise.
5213         (acc_wait): Likewise.
5214         (acc_wait_async): Likewise.
5215         (acc_wait_all): Likewise.
5216         (acc_wait_all_async): Likewise.
5217         (goacc_async_free): New function.
5218         (goacc_init_asyncqueues): Likewise.
5219         (goacc_fini_asyncqueues): Likewise.
5220         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
5221         design.
5222         (acc_set_cuda_stream): Likewise.
5223         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
5224         (host_openacc_register_async_cleanup): Remove.
5225         (host_openacc_async_exec): New function.
5226         (host_openacc_async_test): Adjust parameters.
5227         (host_openacc_async_test_all): Remove.
5228         (host_openacc_async_wait): Remove.
5229         (host_openacc_async_wait_async): Remove.
5230         (host_openacc_async_wait_all): Remove.
5231         (host_openacc_async_wait_all_async): Remove.
5232         (host_openacc_async_set_async): Remove.
5233         (host_openacc_async_synchronize): New function.
5234         (host_openacc_async_serialize): New function.
5235         (host_openacc_async_host2dev): New function.
5236         (host_openacc_async_dev2host): New function.
5237         (host_openacc_async_queue_callback): New function.
5238         (host_openacc_async_construct): New function.
5239         (host_openacc_async_destruct): New function.
5240         (struct gomp_device_descr host_dispatch): Remove initialization of old
5241         interface, add initialization of new async sub-struct.
5242         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
5243         (goacc_attach_host_thread_to_device): Remove old async code usage.
5244         * oacc-int.h (goacc_init_asyncqueues): New declaration.
5245         (goacc_fini_asyncqueues): Likewise.
5246         (goacc_async_copyout_unmap_vars): Likewise.
5247         (goacc_async_free): Likewise.
5248         (get_goacc_asyncqueue): Likewise.
5249         (lookup_goacc_asyncqueue): Likewise.
5250         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
5251         design.
5252         (present_create_copy): Adjust code to use new async design.
5253         (delete_copyout): Likewise.
5254         (update_dev_host): Likewise.
5255         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
5256         async design.
5257         (gomp_acc_remove_pointer): Adjust code to use new async design.
5258         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
5259         design.
5260         (GOACC_enter_exit_data): Likewise.
5261         (goacc_wait): Likewise.
5262         (GOACC_update): Likewise.
5263         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
5264         when called, warn as obsolete in comment.
5265         * target.c (goacc_device_copy_async): New function.
5266         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
5267         add goacc_device_copy_async case.
5268         (gomp_copy_dev2host): Likewise.
5269         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
5270         (gomp_map_pointer): Likewise.
5271         (gomp_map_fields_existing): Likewise.
5272         (gomp_map_vars_internal): New always_inline function, renamed from
5273         gomp_map_vars.
5274         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
5275         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
5276         passing goacc_asyncqueue argument.
5277         (gomp_unmap_tgt): Remove static, add attribute_hidden.
5278         (gomp_unref_tgt): New function.
5279         (gomp_unmap_vars_internal): New always_inline function, renamed from
5280         gomp_unmap_vars.
5281         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
5282         (gomp_unmap_vars_async): Implement by calling
5283         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
5284         (gomp_fini_device): New function.
5285         (gomp_exit_data): Adjust gomp_copy_dev2host call.
5286         (gomp_load_plugin_for_device): Remove old interface, adjust to load
5287         new async interface.
5288         (gomp_target_fini): Adjust code to call gomp_fini_device.
5290         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
5291         (struct ptx_stream): Remove.
5292         (struct nvptx_thread): Remove current_stream field.
5293         (cuda_map_create): Remove.
5294         (cuda_map_destroy): Remove.
5295         (map_init): Remove.
5296         (map_fini): Remove.
5297         (map_pop): Remove.
5298         (map_push): Remove.
5299         (struct goacc_asyncqueue): Define.
5300         (struct nvptx_callback): Define.
5301         (struct ptx_free_block): Define.
5302         (struct ptx_device): Remove null_stream, active_streams, async_streams,
5303         stream_lock, and next fields.
5304         (enum ptx_event_type): Remove.
5305         (struct ptx_event): Remove.
5306         (ptx_event_lock): Remove.
5307         (ptx_events): Remove.
5308         (init_streams_for_device): Remove.
5309         (fini_streams_for_device): Remove.
5310         (select_stream_for_async): Remove.
5311         (nvptx_init): Remove ptx_events and ptx_event_lock references.
5312         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
5313         case.
5314         (nvptx_open_device): Add free_blocks initialization, remove
5315         init_streams_for_device call.
5316         (nvptx_close_device): Remove fini_streams_for_device call, add
5317         free_blocks destruct code.
5318         (event_gc): Remove.
5319         (event_add): Remove.
5320         (nvptx_exec): Adjust parameters and code.
5321         (nvptx_free): Likewise.
5322         (nvptx_host2dev): Remove.
5323         (nvptx_dev2host): Remove.
5324         (nvptx_set_async): Remove.
5325         (nvptx_async_test): Remove.
5326         (nvptx_async_test_all): Remove.
5327         (nvptx_wait): Remove.
5328         (nvptx_wait_async): Remove.
5329         (nvptx_wait_all): Remove.
5330         (nvptx_wait_all_async): Remove.
5331         (nvptx_get_cuda_stream): Remove.
5332         (nvptx_set_cuda_stream): Remove.
5333         (GOMP_OFFLOAD_alloc): Adjust code.
5334         (GOMP_OFFLOAD_free): Likewise.
5335         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
5336         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
5337         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
5338         (GOMP_OFFLOAD_openacc_async_wait): Remove.
5339         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
5340         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
5341         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
5342         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
5343         (cuda_free_argmem): New function.
5344         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
5345         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
5346         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
5347         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
5348         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
5349         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
5350         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
5351         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
5352         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
5353         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
5354         (cuda_callback_wrapper): New function.
5355         (cuda_memcpy_sanity_check): New function.
5356         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
5357         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
5358         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
5359         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
5361 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
5363         PR target/87835
5364         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
5366 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
5368         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
5370 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
5372         * team.c (gomp_team_start): Initialize pool->threads[0].
5374 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
5376         * testsuite/libgomp.oacc-c++/c++.exp: Specify
5377         "-foffload=$offload_target".
5378         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5379         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5380         * testsuite/lib/libgomp.exp
5381         (check_effective_target_openacc_nvidia_accel_configured): Remove,
5382         as (conceptually) merged into
5383         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
5384         users.
5386         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
5387         * testsuite/libgomp-test-support.exp.in: Adjust.
5388         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
5389         openacc_device_types_s.
5390         (offload_target_to_openacc_device_type): New proc.
5391         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
5392         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5393         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5394         * Makefile.in: Regenerate.
5395         * configure: Likewise.
5396         * testsuite/Makefile.in: Likewise.
5398         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
5399         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
5400         instead of OFFLOAD_TARGETS.
5401         * target.c (gomp_target_init): Adjust.
5402         * testsuite/libgomp-test-support.exp.in: Likewise.
5403         * testsuite/lib/libgomp.exp: Likewise.  Populate
5404         openacc_device_types_s instead of offload_targets_s_openacc.
5405         (check_effective_target_openacc_nvidia_accel_selected)
5406         (check_effective_target_openacc_host_selected): Adjust.
5407         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
5408         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5409         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5410         * Makefile.in: Regenerate.
5411         * config.h.in: Likewise.
5412         * configure: Likewise.
5413         * testsuite/Makefile.in: Likewise.
5415         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
5416         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
5417         "offloading: supported, but hardware not accessible".
5418         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5419         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5421 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
5423         PR c/87924
5424         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
5425         goacc_wait().
5426         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
5427         and related adjustment.
5429 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
5431         PR c++/88988
5432         * testsuite/libgomp.c++/pr88988.C: New test.
5434 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
5436         PR middle-end/89002
5437         * testsuite/libgomp.c/pr89002.c: New test.
5439 2019-01-28  Richard Biener  <rguenther@suse.de>
5441         PR testsuite/89064
5442         PR tree-optimization/86865
5443         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
5445 2019-01-24  Tom de Vries  <tdevries@suse.de>
5447         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
5448         once instantiated_devices drops to 0.
5450 2019-01-23  Tom de Vries  <tdevries@suse.de>
5452         PR target/PR88946
5453         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
5454         cuMemFree.
5455         (nvptx_exec): Don't call map_push if mapnum == 0.
5456         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
5458 2019-01-23  Tom de Vries  <tdevries@suse.de>
5460         PR target/88941
5461         PR target/88939
5462         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
5463         (map_fini): Remove "assert (!s->map->active)".
5464         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
5466 2019-01-23  Tom de Vries  <tdevries@suse.de>
5468         PR target/87835
5469         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
5470         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
5472 2019-01-15  Tom de Vries  <tdevries@suse.de>
5474         PR target/80547
5475         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
5476         New test.
5478 2019-01-12  Tom de Vries  <tdevries@suse.de>
5480         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
5481         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
5482         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
5483         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
5485 2019-01-12  Tom de Vries  <tdevries@suse.de>
5487         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
5489 2019-01-12  Tom de Vries  <tdevries@suse.de>
5491         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
5492         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
5493         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
5495 2019-01-12  Tom de Vries  <tdevries@suse.de>
5497         PR target/85486
5498         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
5499         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
5501 2019-01-12  Tom de Vries  <tdevries@suse.de>
5503         PR target/85381
5504         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
5505         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
5507 2019-01-12  Tom de Vries  <tdevries@suse.de>
5509         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
5510         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
5511         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
5513 2019-01-12  Tom de Vries  <tdevries@suse.de>
5515         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
5516         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
5517         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
5519 2019-01-12  Tom de Vries  <tdevries@suse.de>
5521         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
5522         resources diagnostic.
5524 2019-01-12  Tom de Vries  <tdevries@suse.de>
5526         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
5527         vector length to be 128.
5528         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
5529         length 2097152 to be reduced to 1024 instead of 32.
5531 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
5532             James Norris  <jnorris@codesourcery.com>
5534         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
5535         Library Routines", and "Environment Variables".
5537 2019-01-11  Tom de Vries  <tdevries@suse.de>
5539         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
5540         num_workers 16.
5542 2019-01-11  Tom de Vries  <tdevries@suse.de>
5544         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
5545         -foffload=-w.
5546         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
5547         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
5548         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
5549         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
5551 2019-01-11  Tom de Vries  <tdevries@suse.de>
5553         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
5554         test.
5556 2019-01-10  Nathan Sidwell  <nathan@acm.org>
5557             Julian Brown  <julian@codesourcery.com>
5559         PR lto/71959
5560         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
5561         * testsuite/libgomp.oacc-c++/pr71959.C: New.
5563 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5565         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
5566         and paste code.
5568 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5570         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
5571         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
5572         write.
5574 2019-01-09  Tom de Vries  <tdevries@suse.de>
5576         PR target/88756
5577         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
5578         #define instead of "const int".
5579         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
5580         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
5581         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
5582         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
5584 2019-01-09  Tom de Vries  <tdevries@suse.de>
5586         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
5587         one worker.
5589 2019-01-07  Tom de Vries  <tdevries@suse.de>
5591         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
5592         GOMP_OPENACC_DIM argument.
5594 2019-01-03  Tom de Vries  <tdevries@suse.de>
5596         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
5597         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
5599 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
5601         Update copyright years.
5603 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
5605         * libgomp.texi: Bump @copying's copyright year.
5607 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
5609         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
5610         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
5611         (GOACC_declare): Redefine the "device" argument to "flags".
5613 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
5614             Cesar Philippidis  <cesar@codesourcery.com>
5616         * target.c (struct gomp_coalesce_chunk): New structure.
5617         (struct gomp_coalesce_buf): Update the chunks member to use that
5618         type.  Adjust all users.
5620 2018-12-19  Tom de Vries  <tdevries@suse.de>
5622         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
5623         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
5624         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
5626 2018-12-19  Tom de Vries  <tdevries@suse.de>
5628         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
5629         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
5630         gcc/testsuite/gcc.dg/goacc.
5631         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
5633 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
5634             Chung-Lin Tang  <cltang@codesourcery.com>
5636         * oacc-mem.c (acc_present_or_create): Remove definition and change
5637         to alias of acc_create.
5638         (acc_present_or_copyin): Remove definition and change to alias of
5639         acc_copyin.
5640         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
5641         of acc_present_or_create.
5642         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
5643         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5644         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
5645         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
5646         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
5647         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
5648         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
5649         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5650         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5651         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5652         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
5653         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
5654         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
5655         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
5656         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
5657         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5659 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
5661         PR libgomp/88495
5662         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
5663         "identical parameters".
5664         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
5665         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
5667         PR libgomp/88484
5668         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
5669         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
5671         PR libgomp/88407
5672         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
5673         (nvptx_wait_async): Unseen async-argument is a no-op.
5674         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
5675         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
5676         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5677         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5678         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
5679         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
5680         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
5681         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
5682         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
5684         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
5685         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5687 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
5689         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
5690         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5691         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5693 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
5695         PR libgomp/88370
5696         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
5697         (acc_set_cuda_stream): Clarify.
5698         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
5699         "async_valid_p".
5700         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
5701         acc_async_sync".
5702         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
5703         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
5704         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
5705         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5707 2018-12-14  Tom de Vries  <tdevries@suse.de>
5709         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
5710         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
5711         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
5712         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
5713         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
5715 2018-12-13  Tom de Vries  <tdevries@suse.de>
5717         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
5718         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
5719         * fortran.c (omp_display_affinity_): ... here.
5720         * libgomp.h (gomp_print_string): Declare.
5721         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
5722         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
5723         write.
5725 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
5727         PR libgomp/88460
5728         * testsuite/libgomp.c++/for-24.C (results): Include it in
5729         omp declare target region.
5730         (main): Use map (always, tofrom: results) instead of
5731         map (tofrom: results).
5733 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
5735         PR fortran/88463
5736         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
5737         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
5739         * testsuite/libgomp.c-c++-common/for-16.c: New test.
5741 2018-12-12  Andreas Schwab  <schwab@suse.de>
5743         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
5744         clobbered.
5746 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
5748         PR fortran/88411
5749         * testsuite/libgomp.fortran/async_io_8.f90: New test.
5751 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
5752             Jakub Jelinek  <jakub@redhat.com>
5754         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
5755         devicep->host2dev_func.
5757 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
5759         PR libgomp/87995
5760         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
5761         tls_runtime effective target.
5762         (t): New threadprivate variable.
5763         (main): Set t in threads which execute iterations of the worksharing
5764         loop.  Propagate that to the task after the loop and don't abort
5765         if the current taskgroup hasn't been cancelled.
5767 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
5769         * testsuite/libgomp.c/task-reduction-3.c: New test.
5771         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
5773 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
5775         PR libgomp/88288
5776         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
5777         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
5779 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
5781         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
5783 2018-10-19  Richard Biener  <rguenther@suse.de>
5785         PR tree-optimization/88182
5786         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
5788 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
5790         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
5791         (RUNTEST): Don't define.
5792         (RUNTESTDEFAULTFLAGS): Add.
5793         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
5794         (distclean-am): Depend on distclean-DEJAGNU.
5795         (check-am): If -j% option is present in MFLAGS and if
5796         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
5797         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
5798         * testsuite/Makefile.in: Regenerated.
5800 2018-11-26  Richard Biener  <rguenther@suse.de>
5802         PR tree-optimization/88182
5803         * testsuite/libgomp.c++/pr88182.C: New testcase.
5805 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
5807         PR bootstrap/88106
5808         * config/mingw32/affinity-fmt.c: New file.
5810 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
5812         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
5813         (gomp_display_affinity): Use __builtin_choose_expr to handle
5814         properly handle argument having integral, or pointer or some other
5815         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
5816         with uint64_t type instead of %llx and unsigned long long.
5818         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
5819         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
5821 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5823         * affinity.c: Include <string.h>, <stdio.h>.
5824         (gomp_display_affinity_place): Remove cpusetp.
5825         * teams.c: Include <limits.h>.
5827 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
5829         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
5830         in_reduction clause for s[0].
5832         * affinity.c (gomp_display_affinity_place): New function.
5833         * affinity-fmt.c: New file.
5834         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
5835         * config/linux/affinity.c (gomp_display_affinity_place): New function.
5836         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
5837         Move these functions to ...
5838         * config/nvptx/teams.c: ... here.  New file.
5839         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
5840         New functions.
5841         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
5842         functions.
5843         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
5844         and _aligned_malloc.
5845         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
5846         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
5847         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
5848         gomp_affinity_format_len): New variables.
5849         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
5850         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
5851         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
5852         modifiers.  Display (non-default) chunk sizes.  Print
5853         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
5854         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
5855         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
5856         * fortran.c: Include stdio.h and string.h.
5857         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
5858         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
5859         (omp_set_affinity_format_, omp_get_affinity_format_,
5860         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
5861         omp_pause_resource_all_): New functions.
5862         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
5863         switch.
5864         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
5865         functions to ...
5866         * teams.c: ... here.  New file.
5867         * libgomp_g.h: Include gstdint.h.
5868         (GOMP_loop_nonmonotonic_runtime_start,
5869         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
5870         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
5871         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
5872         GOMP_parallel_loop_nonmonotonic_runtime,
5873         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5874         GOMP_loop_ull_nonmonotonic_runtime_start,
5875         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
5876         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
5877         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5878         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
5879         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
5880         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5881         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
5882         GOMP_teams_reg): Declare.
5883         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
5884         gomp_aligned_alloc uses fallback implementation.
5885         (gomp_aligned_alloc, gomp_aligned_free): Declare.
5886         (enum gomp_schedule_type): Add GFS_MONOTONIC.
5887         (struct gomp_doacross_work_share): Add extra field.
5888         (struct gomp_work_share): Add task_reductions field.
5889         (struct gomp_taskgroup): Add workshare and reductions fields.
5890         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
5891         (gomp_thread_handle): New typedef.
5892         (gomp_display_affinity_place, gomp_set_affinity_format,
5893         gomp_display_string, gomp_display_affinity,
5894         gomp_display_affinity_thread): Declare.
5895         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
5896         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
5897         gomp_workshare_task_reduction_register): Declare.
5898         (gomp_team_start): Add taskgroup argument.
5899         (gomp_pause_host): Declare.
5900         (gomp_init_work_share, gomp_work_share_start): Change bool argument
5901         to size_t.
5902         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
5903         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
5904         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
5905         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
5906         GOMP_loop_ull_doacross_start,
5907         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
5908         GOMP_loop_maybe_nonmonotonic_runtime_next,
5909         GOMP_loop_maybe_nonmonotonic_runtime_start,
5910         GOMP_loop_nonmonotonic_runtime_next,
5911         GOMP_loop_nonmonotonic_runtime_start,
5912         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5913         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
5914         GOMP_loop_ull_nonmonotonic_runtime_next,
5915         GOMP_loop_ull_nonmonotonic_runtime_start,
5916         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5917         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
5918         GOMP_taskgroup_reduction_register,
5919         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5920         GOMP_teams_reg and GOMP_taskwait_depend.
5921         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
5922         omp_{capture,display}_affinity{,_}, and
5923         omp_[gs]et_affinity_format{,_}.
5924         * loop.c: Include string.h.
5925         (GOMP_loop_runtime_next): Add ialias.
5926         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5927         (gomp_loop_static_start, gomp_loop_dynamic_start,
5928         gomp_loop_guided_start, gomp_loop_ordered_static_start,
5929         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
5930         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
5931         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
5932         or gomp_doacross_init callers.
5933         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
5934         GOMP_loop_doacross_start): New functions.
5935         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
5936         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
5937         Mask off GFS_MONOTONIC bit.
5938         (GOMP_loop_maybe_nonmonotonic_runtime_next,
5939         GOMP_loop_maybe_nonmonotonic_runtime_start,
5940         GOMP_loop_nonmonotonic_runtime_next,
5941         GOMP_loop_nonmonotonic_runtime_start,
5942         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5943         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
5944         functions.
5945         (gomp_parallel_loop_start): Pass NULL as taskgroup to
5946         gomp_team_start.
5947         * loop_ull.c: Include string.h.
5948         (GOMP_loop_ull_runtime_next): Add ialias.
5949         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5950         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
5951         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
5952         gomp_loop_ull_ordered_dynamic_start,
5953         gomp_loop_ull_ordered_guided_start,
5954         gomp_loop_ull_doacross_static_start,
5955         gomp_loop_ull_doacross_dynamic_start,
5956         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
5957         and gomp_doacross_ull_init callers.
5958         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
5959         GOMP_loop_ull_doacross_start): New functions.
5960         (GOMP_loop_ull_runtime_start,
5961         GOMP_loop_ull_ordered_runtime_start,
5962         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
5963         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5964         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
5965         GOMP_loop_ull_nonmonotonic_runtime_next,
5966         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
5967         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
5968         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
5969         (omp_pause_resource_t, omp_depend_t): New typedefs.
5970         (enum omp_lock_hint_t): Renamed to ...
5971         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
5972         enumerators using numbers and omp_lock_hint_* as their aliases.
5973         (omp_lock_hint_t): New typedef.  Rename to ...
5974         (omp_sync_hint_t): ... this.
5975         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
5976         omp_sync_hint_t instead of omp_lock_hint_t.
5977         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5978         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5979         Declare.
5980         (omp_target_is_present, omp_target_disassociate_ptr):
5981         Change first argument from void * to const void *.
5982         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
5983         from void * to const void *.
5984         (omp_target_associate_ptr): Change first and second arguments from
5985         void * to const void *.
5986         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
5987         omp_pause_hard): New parameters.
5988         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5989         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5990         New interfaces.
5991         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
5992         omp_pause_hard): New parameters.
5993         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5994         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5995         New externals.
5996         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
5997         EXTRA argument.  If not needed to prepare array, if extra is 0,
5998         clear ws->doacross, otherwise allocate just doacross structure and
5999         extra payload.  If array is needed, allocate also extra payload.
6000         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
6001         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
6002         doacross == NULL.
6003         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
6004         gomp_team_start.
6005         (GOMP_parallel): Likewise.  Formatting fix.
6006         (GOMP_parallel_reductions): New function.
6007         (GOMP_cancellation_point): If taskgroup has workshare
6008         flag set, check cancelled of prev taskgroup if any.
6009         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
6010         on prev taskgroup if any.
6011         * sections.c: Include string.h.
6012         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
6013         (GOMP_sections_start): Adjust gomp_work_share_start caller.
6014         (GOMP_sections2_start): New function.
6015         (GOMP_parallel_sections_start, GOMP_parallel_sections):
6016         Pass NULL as taskgroup to gomp_team_start.
6017         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
6018         gomp_work_share_start callers.
6019         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
6020         If taskgroup has workshare flag set, check cancelled on prev
6021         taskgroup if any.  Guard all cancellation tests with
6022         gomp_cancel_var test.
6023         (omp_target_is_present, omp_target_disassociate_ptr):
6024         Change ptr argument from void * to const void *.
6025         (omp_target_memcpy): Change src argument from void * to const void *.
6026         (omp_target_memcpy_rect): Likewise.
6027         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
6028         instead of char * where needed.
6029         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
6030         from void * to const void *.
6031         (omp_pause_resource, omp_pause_resource_all): New functions.
6032         * task.c (gomp_task_handle_depend): Handle new depend array format
6033         in addition to the old.  Handle mutexinoutset kinds the same as
6034         inout for now, handle unspecified kinds.
6035         (gomp_create_target_task): If taskgroup has workshare flag set, check
6036         cancelled on prev taskgroup if any.  Guard all cancellation tests with
6037         gomp_cancel_var test.  Handle new depend array format count in
6038         addition to the old.
6039         (GOMP_task): Likewise.  Adjust function comment.
6040         (gomp_task_run_pre): If taskgroup has workshare flag set, check
6041         cancelled on prev taskgroup if any.  Guard all cancellation tests with
6042         gomp_cancel_var test.
6043         (GOMP_taskwait_depend): New function.
6044         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
6045         format in addition to the old.  Handle mutexinoutset kinds the same as
6046         inout for now, handle unspecified kinds.  Fix a function comment typo.
6047         (gomp_taskgroup_init): New function.
6048         (GOMP_taskgroup_start): Use it.
6049         (gomp_reduction_register, gomp_create_artificial_team,
6050         GOMP_taskgroup_reduction_register,
6051         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
6052         gomp_parallel_reduction_register,
6053         gomp_workshare_task_reduction_register,
6054         gomp_workshare_taskgroup_start,
6055         GOMP_workshare_task_reduction_unregister): New functions.
6056         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
6057         check cancelled on prev taskgroup if any.  Guard all cancellation
6058         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
6059         by calling GOMP_taskgroup_reduction_register.
6060         * team.c (gomp_thread_attr): Remove comment.
6061         (struct gomp_thread_start_data): Add handle field.
6062         (gomp_thread_start): Call pthread_detach.
6063         (gomp_new_team): Adjust gomp_init_work_share caller.
6064         (gomp_free_pool_helper): Call pthread_detach.
6065         (gomp_team_start): Add taskgroup argument, initialize implicit
6066         tasks' taskgroup field to that.  Don't call
6067         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
6068         (gomp_team_end): Determine nesting by thr->ts.level != 0
6069         rather than thr->ts.team != NULL.
6070         (gomp_pause_pool_helper, gomp_pause_host): New functions.
6071         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
6072         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
6073         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
6074         if more than 1 allocate also extra payload at the end of array.  Never
6075         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
6076         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
6077         return true instead of ws.
6078         * Makefile.in: Regenerated.
6079         * configure: Regenerated.
6080         * config.h.in: Regenerated.
6081         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
6082         in some cases.
6083         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
6084         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
6085         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
6086         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
6087         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
6088         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
6089         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
6090         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
6091         * testsuite/libgomp.c-c++-common/for-10.c: New test.
6092         * testsuite/libgomp.c-c++-common/for-11.c: New test.
6093         * testsuite/libgomp.c-c++-common/for-12.c: New test.
6094         * testsuite/libgomp.c-c++-common/for-13.c: New test.
6095         * testsuite/libgomp.c-c++-common/for-14.c: New test.
6096         * testsuite/libgomp.c-c++-common/for-15.c: New test.
6097         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
6098         define a different N(test), don't define N(f0) to N(f14), but instead
6099         define N(f20) to N(f34) using != comparisons.
6100         * testsuite/libgomp.c-c++-common/for-7.c: New test.
6101         * testsuite/libgomp.c-c++-common/for-8.c: New test.
6102         * testsuite/libgomp.c-c++-common/for-9.c: New test.
6103         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
6104         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
6105         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
6106         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
6107         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
6108         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
6109         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
6110         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
6111         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
6112         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
6113         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
6114         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
6115         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
6116         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
6117         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
6118         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
6119         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
6120         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
6121         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
6122         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
6123         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
6124         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
6125         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
6126         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
6127         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
6128         * testsuite/libgomp.c++/depend-1.C: New test.
6129         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
6130         * testsuite/libgomp.c++/depobj-1.C: New test.
6131         * testsuite/libgomp.c++/for-16.C: New test.
6132         * testsuite/libgomp.c++/for-21.C: New test.
6133         * testsuite/libgomp.c++/for-22.C: New test.
6134         * testsuite/libgomp.c++/for-23.C: New test.
6135         * testsuite/libgomp.c++/for-24.C: New test.
6136         * testsuite/libgomp.c++/for-25.C: New test.
6137         * testsuite/libgomp.c++/for-26.C: New test.
6138         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
6139         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
6140         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
6141         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
6142         * testsuite/libgomp.c++/task-reduction-10.C: New test.
6143         * testsuite/libgomp.c++/task-reduction-11.C: New test.
6144         * testsuite/libgomp.c++/task-reduction-12.C: New test.
6145         * testsuite/libgomp.c++/task-reduction-13.C: New test.
6146         * testsuite/libgomp.c++/task-reduction-14.C: New test.
6147         * testsuite/libgomp.c++/task-reduction-15.C: New test.
6148         * testsuite/libgomp.c++/task-reduction-16.C: New test.
6149         * testsuite/libgomp.c++/task-reduction-17.C: New test.
6150         * testsuite/libgomp.c++/task-reduction-18.C: New test.
6151         * testsuite/libgomp.c++/task-reduction-19.C: New test.
6152         * testsuite/libgomp.c/task-reduction-1.c: New test.
6153         * testsuite/libgomp.c++/task-reduction-1.C: New test.
6154         * testsuite/libgomp.c/task-reduction-2.c: New test.
6155         * testsuite/libgomp.c++/task-reduction-2.C: New test.
6156         * testsuite/libgomp.c++/task-reduction-3.C: New test.
6157         * testsuite/libgomp.c++/task-reduction-4.C: New test.
6158         * testsuite/libgomp.c++/task-reduction-5.C: New test.
6159         * testsuite/libgomp.c++/task-reduction-6.C: New test.
6160         * testsuite/libgomp.c++/task-reduction-7.C: New test.
6161         * testsuite/libgomp.c++/task-reduction-8.C: New test.
6162         * testsuite/libgomp.c++/task-reduction-9.C: New test.
6163         * testsuite/libgomp.c/teams-1.c: New test.
6164         * testsuite/libgomp.c/teams-2.c: New test.
6165         * testsuite/libgomp.c/thread-limit-4.c: New test.
6166         * testsuite/libgomp.c/thread-limit-5.c: New test.
6167         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
6169 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
6171         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
6172         acc_memcpy_to/from_device functions, now with async parameter.
6173         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
6174         (acc_memcpy_from_device): Likewise.
6175         (acc_memcpy_to_device_async): New API function.
6176         (acc_memcpy_from_device_async): Likewise.
6177         (present_create_copy): Add async parameter and async setting/unsetting.
6178         (acc_create): Adjust present_create_copy call.
6179         (acc_copyin): Likewise.
6180         (acc_present_or_create): Likewise.
6181         (acc_present_or_copyin): Likewise.
6182         (acc_create_async): New API function.
6183         (acc_copyin_async): New API function.
6184         (delete_copyout): Add async parameter and async setting/unsetting.
6185         (acc_delete): Adjust delete_copyout call.
6186         (acc_copyout): Likewise.
6187         (acc_delete_async): New API function.
6188         (acc_copyout_async): Likewise.
6189         (update_dev_host): Add async parameter and async setting/unsetting.
6190         (acc_update_device): Adjust update_dev_host call.
6191         (acc_update_self): Likewise.
6192         (acc_update_device_async): New API function.
6193         (acc_update_self_async): Likewise.
6194         * openacc.h (acc_copyin_async): Declare new API function.
6195         (acc_create_async): Likewise.
6196         (acc_copyout_async): Likewise.
6197         (acc_delete_async): Likewise.
6198         (acc_update_device_async): Likewise.
6199         (acc_update_self_async): Likewise.
6200         (acc_memcpy_to_device_async): Likewise.
6201         (acc_memcpy_from_device_async): Likewise.
6202         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
6203         (acc_copyin_async_64_h): New subroutine.
6204         (acc_copyin_async_array_h): New subroutine.
6205         (acc_create_async_32_h): New subroutine.
6206         (acc_create_async_64_h): New subroutine.
6207         (acc_create_async_array_h): New subroutine.
6208         (acc_copyout_async_32_h): New subroutine.
6209         (acc_copyout_async_64_h): New subroutine.
6210         (acc_copyout_async_array_h): New subroutine.
6211         (acc_delete_async_32_h): New subroutine.
6212         (acc_delete_async_64_h): New subroutine.
6213         (acc_delete_async_array_h): New subroutine.
6214         (acc_update_device_async_32_h): New subroutine.
6215         (acc_update_device_async_64_h): New subroutine.
6216         (acc_update_device_async_array_h): New subroutine.
6217         (acc_update_self_async_32_h): New subroutine.
6218         (acc_update_self_async_64_h): New subroutine.
6219         (acc_update_self_async_array_h): New subroutine.
6220         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
6221         (acc_copyin_async_64_h): New subroutine.
6222         (acc_copyin_async_array_h): New subroutine.
6223         (acc_create_async_32_h): New subroutine.
6224         (acc_create_async_64_h): New subroutine.
6225         (acc_create_async_array_h): New subroutine.
6226         (acc_copyout_async_32_h): New subroutine.
6227         (acc_copyout_async_64_h): New subroutine.
6228         (acc_copyout_async_array_h): New subroutine.
6229         (acc_delete_async_32_h): New subroutine.
6230         (acc_delete_async_64_h): New subroutine.
6231         (acc_delete_async_array_h): New subroutine.
6232         (acc_update_device_async_32_h): New subroutine.
6233         (acc_update_device_async_64_h): New subroutine.
6234         (acc_update_device_async_array_h): New subroutine.
6235         (acc_update_self_async_32_h): New subroutine.
6236         (acc_update_self_async_64_h): New subroutine.
6237         (acc_update_self_async_array_h): New subroutine.
6238         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
6239         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
6240         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
6241         acc_memcpy_to_device_async*, acc_update_device_async*, and
6242         acc_update_self_async* entries.
6243         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
6244         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
6245         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
6247 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
6249         PR bootstrap/82856
6250         * Makefile.am: Include multilib.am
6251         (AUTOMAKE_OPTIONS): Add info-in-builddir.
6252         (CLEANFILES): Remove libgomp.info.
6253         * configure.ac: Remove AC_PREREQ.
6254         * testsuite/Makefile.am (RUNTEST): Remove quotes.
6255         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
6256         Regenerate.
6258 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
6259             Julian Brown  <julian@codesourcery.com>
6261         * testsuite/libgomp.oacc-c++/this.C: New.
6263 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
6265         * plugin/plugin-nvptx.c (struct cuda_map): New.
6266         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
6267         h_tail with (cuda_map *) map.
6268         (cuda_map_create): New function.
6269         (cuda_map_destroy): New function.
6270         (map_init): Update to use a linked list of cuda_map objects.
6271         (map_fini): Likewise.
6272         (map_pop): Likewise.
6273         (map_push): Likewise.  Return CUdeviceptr instead of void.
6274         (init_streams_for_device): Remove stales references to ptx_stream
6275         members.
6276         (select_stream_for_async): Likewise.
6277         (nvptx_exec): Update call to map_init.
6279 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
6280             Julian Brown  <julian@codesourcery.com>
6282         PR middle-end/86336
6283         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
6285 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
6286         Thomas Koenig <tkoenig@gcc.gnu.org>
6288         PR fortran/25829
6289         * testsuite/libgomp.fortran/async_io_1.f90: New test.
6290         * testsuite/libgomp.fortran/async_io_2.f90: New test.
6291         * testsuite/libgomp.fortran/async_io_3.f90: New test.
6292         * testsuite/libgomp.fortran/async_io_4.f90: New test.
6293         * testsuite/libgomp.fortran/async_io_5.f90: New test.
6294         * testsuite/libgomp.fortran/async_io_6.f90: New test.
6295         * testsuite/libgomp.fortran/async_io_7.f90: New test.
6297 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
6298             Tom de Vries  <tdevries@suse.de>
6300         PR target/85590
6301         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
6302         (cuOccupancyMaxPotentialBlockSize): Declare.
6303         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
6304         CUDA_ONE_CALL_MAYBE_NULL.
6305         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
6306         CUoccupancyB2DSize and declare
6307         cuOccupancyMaxPotentialBlockSize.
6308         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
6309         default num_gangs and num_workers when the driver supports it.
6311 2018-08-08  Tom de Vries  <tdevries@suse.de>
6313         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
6314         CUDA_ONE_CALL_MAYBE_NULL.
6315         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
6316         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
6317         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
6318         are not found.
6320 2018-08-08  Tom de Vries  <tdevries@suse.de>
6322         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
6323         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
6324         present.
6326 2018-08-08  Tom de Vries  <tdevries@suse.de>
6328         * plugin/plugin-nvptx.c
6329         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
6330         (nvptx_open_device): Use
6331         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
6333 2018-08-08  Tom de Vries  <tdevries@suse.de>
6335         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
6336         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
6338 2018-08-07  Tom de Vries  <tdevries@suse.de>
6340         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
6341         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
6342         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
6343         corresponding call in CUDA_ONE_CALL.  Add def/undef of
6344         CUDA_ONE_CALL_MAYBE_NULL.
6345         (CUDA_CALL_EXISTS): Define.
6347 2018-08-07  Tom de Vries  <tdevries@suse.de>
6349         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
6350         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
6351         corresponding undefs right after.
6353 2018-08-04  Tom de Vries  <tdevries@suse.de>
6355         * plugin/configfrag.ac: For --without-cuda-driver, set
6356         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
6357         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
6358         * configure: Regenerate.
6360 2018-08-02  Tom de Vries  <tdevries@suse.de>
6362         PR target/86660
6363         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
6364         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
6365         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
6366         Same.
6367         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
6368         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
6369         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
6371 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
6372             Thomas Schwinge <thomas@codesourcery.com>
6374         * config/nvptx/oacc-parallel.c: Truncate.
6376 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
6377             James Norris <jnorris@codesourcery.com>
6379         * plugin/plugin-nvptx.c (struct map): Removed.
6380         (map_init, map_pop): Remove use of struct map.
6381         (map_push): Likewise and change argument list.
6382         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
6384 2018-08-01  Tom de Vries  <tdevries@suse.de>
6386         * plugin/cuda-lib.def: New file.  Factor out of ...
6387         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
6388         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
6389         using CUDA_CALLS.
6391 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6393         Revert 'AsyncI/O patch committed'.
6394         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
6395                 Thomas Koenig <tkoenig@gcc.gnu.org>
6397         PR fortran/25829
6398         * testsuite/libgomp.fortran/async_io_1.f90: New test.
6399         * testsuite/libgomp.fortran/async_io_2.f90: New test.
6400         * testsuite/libgomp.fortran/async_io_3.f90: New test.
6401         * testsuite/libgomp.fortran/async_io_4.f90: New test.
6402         * testsuite/libgomp.fortran/async_io_5.f90: New test.
6403         * testsuite/libgomp.fortran/async_io_6.f90: New test.
6404         * testsuite/libgomp.fortran/async_io_7.f90: New test.
6406 2018-07-30  Tom de Vries  <tdevries@suse.de>
6408         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
6409         (nvptx_exec): Ensure worker and vector default dims don't exceed
6410         targ_fn->max_threads_per_block.
6412 2018-07-30  Tom de Vries  <tdevries@suse.de>
6414         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
6415         (nvptx_open_device): Init default_dims for device.
6416         (nvptx_exec): Use default_dims from device.
6418 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
6420         PR testsuite/86660
6421         * testsuite/libgomp.c++/for-15.C (results): Include it in
6422         omp declare target region.
6423         (main): Use map (always, tofrom: results) instead of
6424         map (tofrom: results).
6426         PR middle-end/86660
6427         * testsuite/libgomp.c/pr86660.c: New test.
6429 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
6430             Tom de Vries  <tdevries@suse.de>
6432         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
6433         sufficient resources to launch a kernel, and give a hint on how to fix
6434         it.
6436 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
6437             Tom de Vries  <tdevries@suse.de>
6439         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
6440         max_threads_per_block and max_threads_per_multiprocessor fields.
6441         (nvptx_open_device): Initialize new fields.
6442         (nvptx_exec): Use num_sms, and new fields.
6444 2018-07-26  Tom de Vries  <tdevries@suse.de>
6446         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
6447         to correct locations.  Remove xfail.
6449 2018-07-26  Tom de Vries  <tdevries@suse.de>
6451         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
6452         acc_wait.  Move acc_async_test calls to correct locations.  Remove
6453         xfail.
6455 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
6456         Thomas Koenig <tkoenig@gcc.gnu.org>
6458         PR fortran/25829
6459         * testsuite/libgomp.fortran/async_io_1.f90: New test.
6460         * testsuite/libgomp.fortran/async_io_2.f90: New test.
6461         * testsuite/libgomp.fortran/async_io_3.f90: New test.
6462         * testsuite/libgomp.fortran/async_io_4.f90: New test.
6463         * testsuite/libgomp.fortran/async_io_5.f90: New test.
6464         * testsuite/libgomp.fortran/async_io_6.f90: New test.
6465         * testsuite/libgomp.fortran/async_io_7.f90: New test.
6467 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
6469         PR middle-end/86542
6470         * testsuite/libgomp.c++/pr86542.C: New test.
6472         PR middle-end/86539
6473         * testsuite/libgomp.c++/pr86539.C: New test.
6475 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
6477         PR c++/86443
6478         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
6479         (results): Make sure the variable is not inside declare target region.
6480         (qux): Remove unused function.
6482 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
6484         PR c++/86443
6485         * testsuite/libgomp.c++/for-15.C: New test.
6487 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
6489         PR c++/86291
6490         * testsuite/libgomp.c++/pr86291.C: New test.
6492 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
6494         * libgomp.texi (Top): Move www.openmp.org to https.
6495         (Enabling OpenMP): Ditto.
6496         (omp_get_active_level): Ditto.
6497         (omp_get_ancestor_thread_num): Ditto.
6498         (omp_get_cancellation): Ditto.
6499         (omp_get_default_device): Ditto.
6500         (omp_get_dynamic): Ditto.
6501         (omp_get_level): Ditto.
6502         (omp_get_max_active_levels): Ditto.
6503         (omp_get_max_task_priority): Ditto.
6504         (omp_get_max_threads): Ditto.
6505         (omp_get_nested): Ditto.
6506         (omp_get_num_devices): Ditto.
6507         (omp_get_num_procs): Ditto.
6508         (omp_get_num_teams): Ditto.
6509         (omp_get_num_threads): Ditto.
6510         (omp_get_proc_bind): Ditto.
6511         (omp_get_schedule): Ditto.
6512         (omp_get_team_num): Ditto.
6513         (omp_get_team_size): Ditto.
6514         (omp_get_thread_limit): Ditto.
6515         (omp_get_thread_num): Ditto.
6516         (omp_in_parallel): Ditto.
6517         (omp_in_final): Ditto.
6518         (omp_is_initial_device): Ditto.
6519         (omp_set_default_device): Ditto.
6520         (omp_set_dynamic): Ditto.
6521         (omp_set_max_active_levels): Ditto.
6522         (omp_set_nested): Ditto.
6523         (omp_set_num_threads): Ditto.
6524         (omp_set_schedule): Ditto.
6525         (omp_init_lock): Ditto.
6526         (omp_set_lock): Ditto.
6527         (omp_test_lock): Ditto.
6528         (omp_unset_lock): Ditto.
6529         (omp_destroy_lock): Ditto.
6530         (omp_init_nest_lock): Ditto.
6531         (omp_set_nest_lock): Ditto.
6532         (omp_test_nest_lock): Ditto.
6533         (omp_unset_nest_lock): Ditto.
6534         (omp_destroy_nest_lock): Ditto.
6535         (omp_get_wtick): Ditto.
6536         (omp_get_wtime): Ditto.
6537         (OMP_CANCELLATION): Ditto.
6538         (OMP_DISPLAY_ENV): Ditto.
6539         (OMP_DEFAULT_DEVICE): Ditto.
6540         (OMP_DYNAMIC): Ditto.
6541         (OMP_MAX_ACTIVE_LEVELS): Ditto.
6542         (OMP_MAX_TASK_PRIORITY): Ditto.
6543         (OMP_NESTED): Ditto.
6544         (OMP_NUM_THREADS): Ditto.
6545         (OMP_PROC_BIND): Ditto.
6546         (OMP_PLACES): Ditto.
6547         (OMP_STACKSIZE): Ditto.
6548         (OMP_SCHEDULE): Ditto.
6549         (OMP_THREAD_LIMIT): Ditto.
6550         (OMP_WAIT_POLICY): Ditto.
6552 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
6553             James Norris  <jnorris@codesourcery.com>
6554             Julian Brown  <julian@codesourcery.com>
6555             Thomas Schwinge  <thomas@codesourcery.com>
6556             Tom de Vries  <tom@codesourcery.com>
6558         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
6559         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
6560         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
6561         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
6562         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
6563         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
6564         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
6565         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
6566         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
6567         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
6568         Likewise.
6569         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
6570         Likewise.
6571         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
6572         Likewise.
6573         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
6574         Likewise.
6575         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
6576         Likewise.
6577         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
6578         Likewise.
6579         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
6580         Likewise.
6581         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
6582         Likewise.
6583         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
6584         Likewise.
6585         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
6586         Likewise.
6587         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
6588         Likewise.
6589         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
6590         Likewise.
6591         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
6592         Likewise.
6593         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
6594         Likewise.
6595         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
6596         Likewise.
6597         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
6598         Likewise.
6599         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
6600         Likewise.
6601         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
6602         Likewise.
6603         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
6604         Likewise.
6605         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
6606         Likewise.
6607         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
6608         Likewise.
6609         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
6610         Likewise.
6611         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
6612         Likewise.
6613         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
6614         Likewise.
6615         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
6616         Likewise.
6617         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
6618         Likewise.
6619         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
6620         Likewise.
6621         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
6622         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
6623         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
6624         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
6625         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
6626         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
6627         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
6628         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
6629         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
6630         Likewise.
6631         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
6632         Likewise.
6633         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
6634         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
6635         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
6636         Likewise.
6637         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
6638         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
6639         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
6640         Likewise.
6641         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6642         Likewise.
6643         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6644         Likewise.
6645         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6646         Likewise.
6647         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6648         Likewise.
6649         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
6650         Likewise.
6651         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
6652         Likewise.
6653         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
6654         Likewise.
6655         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
6656         Likewise.
6657         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
6658         Likewise.
6659         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
6660         Likewise.
6661         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
6662         Likewise.
6663         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
6664         Likewise.
6665         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
6666         Likewise.
6667         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
6668         Likewise.
6669         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
6670         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
6671         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
6672         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
6673         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
6674         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
6675         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
6677 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
6678             Thomas Schwinge <thomas@codesourcery.com>
6679             Cesar Philippidis  <cesar@codesourcery.com>
6681         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
6682         (gomp_acc_remove_pointer): Update declaration.
6683         (gomp_acc_declare_allocate): Declare.
6684         (gomp_remove_var): Declare.
6685         * libgomp.map (OACC_2.5): Define.
6686         * oacc-mem.c (acc_map_data): Update refcount.
6687         (acc_unmap_data): Likewise.
6688         (present_create_copy): Likewise.
6689         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
6690         (acc_copyin): Likewise.
6691         (FLAG_FINALIZE): Define.
6692         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
6693         (acc_delete_finalize): New function.
6694         (acc_delete_finalize_async): New function.
6695         (acc_copyout_finalize): New function.
6696         (acc_copyout_finalize_async): New function.
6697         (gomp_acc_insert_pointer): Update refcounts.
6698         (gomp_acc_remove_pointer): Return if data is not present on the
6699         accelerator.
6700         * oacc-parallel.c (find_pset): Rename to find_pointer.
6701         (find_pointer): Add support for GOMP_MAP_POINTER.
6702         (handle_ftn_pointers): New function.
6703         (GOACC_parallel_keyed): Update refcounts of variables.
6704         (GOACC_enter_exit_data): Add support for finalized data mappings.
6705         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
6706         of fortran arrays.
6707         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
6708         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
6709         for GOMP_MAP_FORCE_FROM.
6710         * openacc.f90 (module openacc_internal): Add
6711         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
6712         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
6713         acc_copyout_finalize and acc_delete_finalize.
6714         (acc_copyout_finalize_32_h): New subroutine.
6715         (acc_copyout_finalize_64_h): New subroutine.
6716         (acc_copyout_finalize_array_h): New subroutine.
6717         (acc_delete_finalize_32_h): New subroutine.
6718         (acc_delete_finalize_64_h): New subroutine.
6719         (acc_delete_finalize_array_h): New subroutine.
6720         * openacc.h (acc_copyout_finalize): Declare.
6721         (acc_copyout_finalize_async): Declare.
6722         (acc_delete_finalize): Declare.
6723         (acc_delete_finalize_async): Declare.
6724         * openacc_lib.h (acc_copyout_finalize): New interface.
6725         (acc_delete_finalize): New interface.
6726         * target.c (gomp_map_vars): Update dynamic_refcount.
6727         (gomp_remove_var): New function.
6728         (gomp_unmap_vars): Use it.
6729         (gomp_unload_image_from_device): Likewise.
6730         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
6731         case to utilize OpenACC 2.5 data clause semantics.
6732         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6733         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6734         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6735         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6736         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6737         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6738         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6739         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6740         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6741         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
6742         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6743         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
6744         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
6745         utilize OpenACC 2.5 data clause semantics.
6746         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6747         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6748         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6749         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6750         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6751         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6752         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6753         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
6754         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
6756 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
6758         PR fortran/85841
6759         PR testsuite/85865
6760         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
6761         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
6762         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
6763         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
6764         * testsuite/libgomp.fortran/task2.f90: Ditto.
6765         * testsuite/libgomp.fortran/vla1.f90: Ditto.
6766         * testsuite/libgomp.fortran/vla2.f90: Ditto.
6767         * testsuite/libgomp.fortran/vla3.f90: Ditto.
6768         * testsuite/libgomp.fortran/vla4.f90: Ditto.
6769         * testsuite/libgomp.fortran/vla5.f90: Ditto.
6770         * testsuite/libgomp.fortran/vla6.f90: Ditto.
6771         * testsuite/libgomp.fortran/vla8.f90: Ditto.
6772         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
6773         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
6775 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
6777         PR c++/85782
6778         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
6780 2018-05-09  Tom de Vries  <tom@codesourcery.com>
6782         PR libgomp/82901
6783         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
6784         to GOACC_enter_exit_data.
6786 2018-05-09  Tom de Vries  <tom@codesourcery.com>
6788         PR libgomp/83792
6789         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
6790         (async_synchronous_p): New function.
6791         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
6792         async_valid_p.
6793         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
6794         async_valid_stream_id_p.
6795         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
6796         * oacc-parallel.c (GOACC_parallel_keyed): Same.
6798 2018-05-07  Tom de Vries  <tom@codesourcery.com>
6800         PR testsuite/85677
6801         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
6802         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
6804 2018-05-03  Tom de Vries  <tom@codesourcery.com>
6806         PR testsuite/85106
6807         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
6808         extra_tool_flags if it contains an -foffload=-fdump-* flag.
6809         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
6810         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
6812 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6814         PR libgomp/85411
6815         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
6816         GOMP_OPENACC_DIM ...
6817         * env.c (parse_gomp_openacc_dim): ... here.  New function.
6818         (initialize_env): Call parse_gomp_openacc_dim.
6819         (goacc_default_dims): Define.
6820         * libgomp.h (goacc_default_dims): Declare.
6821         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
6822         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
6823         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
6824         GOMP_PLUGIN_acc_default_dim.
6825         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
6826         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
6828 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6830         PR testsuite/83791
6831         * testsuite/libgomp.c++/udr-9.C: Update.
6832         * testsuite/libgomp.c++/atomic-16.C: Remove.
6833         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
6834         * testsuite/libgomp.c++/loop-13.C: Remove.
6835         * testsuite/libgomp.c++/loop-14.C: Remove.
6836         * testsuite/libgomp.c++/loop-15.C: Remove.
6837         * testsuite/libgomp.c++/monotonic-1.C: Remove.
6838         * testsuite/libgomp.c++/monotonic-2.C: Remove.
6839         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
6840         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
6841         * testsuite/libgomp.c++/ordered-1.C: Remove.
6842         * testsuite/libgomp.c++/pr45784.C: Remove.
6843         * testsuite/libgomp.c++/pr64824.C: Remove.
6844         * testsuite/libgomp.c++/pr64868.C: Remove.
6845         * testsuite/libgomp.c++/pr66199-1.C: Remove.
6846         * testsuite/libgomp.c++/pr66199-2.C: Remove.
6847         * testsuite/libgomp.c++/pr66199-3.C: Remove.
6848         * testsuite/libgomp.c++/pr66199-4.C: Remove.
6849         * testsuite/libgomp.c++/pr66199-5.C: Remove.
6850         * testsuite/libgomp.c++/pr66199-6.C: Remove.
6851         * testsuite/libgomp.c++/pr66199-7.C: Remove.
6852         * testsuite/libgomp.c++/pr66199-8.C: Remove.
6853         * testsuite/libgomp.c++/pr66199-9.C: Remove.
6854         * testsuite/libgomp.c++/pr69389.C: Remove.
6855         * testsuite/libgomp.c++/simd10.C: Remove.
6856         * testsuite/libgomp.c++/simd11.C: Remove.
6857         * testsuite/libgomp.c++/simd12.C: Remove.
6858         * testsuite/libgomp.c++/simd13.C: Remove.
6859         * testsuite/libgomp.c++/target-1.C: Remove.
6860         * testsuite/libgomp.c++/target-3.C: Remove.
6861         * testsuite/libgomp.c++/target-4.C: Remove.
6862         * testsuite/libgomp.c++/target-5.C: Remove.
6863         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
6864         * testsuite/libgomp.c++/taskloop-1.C: Remove.
6865         * testsuite/libgomp.c++/taskloop-2.C: Remove.
6866         * testsuite/libgomp.c++/taskloop-3.C: Remove.
6867         * testsuite/libgomp.c++/taskloop-4.C: Remove.
6868         * testsuite/libgomp.c++/udr-9.C: Remove.
6869         * testsuite/libgomp.c++/for-10.C: Remove.
6870         * testsuite/libgomp.c++/for-11.C: Remove.
6871         * testsuite/libgomp.c++/for-12.C: Remove.
6872         * testsuite/libgomp.c++/for-13.C: Remove.
6873         * testsuite/libgomp.c++/for-14.C: Remove.
6874         * testsuite/libgomp.c++/for-9.C: Remove.
6875         * testsuite/libgomp.c/atomic-18.c: Move ...
6876         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
6877         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
6878         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
6879         * testsuite/libgomp.c/loop-13.c: Move ...
6880         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
6881         * testsuite/libgomp.c/loop-14.c: Move ...
6882         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
6883         * testsuite/libgomp.c/loop-15.c: Remove.
6884         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
6885         * testsuite/libgomp.c/monotonic-1.c: Move ...
6886         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
6887         * testsuite/libgomp.c/monotonic-2.c: Move ...
6888         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
6889         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
6890         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
6891         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
6892         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
6893         * testsuite/libgomp.c/ordered-4.c: Move ...
6894         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
6895         * testsuite/libgomp.c/pr45784.c: Move ...
6896         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
6897         * testsuite/libgomp.c/pr64824.c: Move ...
6898         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
6899         * testsuite/libgomp.c/pr64868.c: Move ...
6900         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
6901         * testsuite/libgomp.c/pr66199-1.c: Move ...
6902         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
6903         * testsuite/libgomp.c/pr66199-2.c: Move ...
6904         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
6905         * testsuite/libgomp.c/pr66199-3.c: Move ...
6906         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
6907         * testsuite/libgomp.c/pr66199-4.c: Move ...
6908         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
6909         * testsuite/libgomp.c/pr66199-5.c: Move ...
6910         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
6911         * testsuite/libgomp.c/pr66199-6.c: Move ...
6912         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
6913         * testsuite/libgomp.c/pr66199-7.c: Move ...
6914         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
6915         * testsuite/libgomp.c/pr66199-8.c: Move ...
6916         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
6917         * testsuite/libgomp.c/pr66199-9.c: Move ...
6918         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
6919         * testsuite/libgomp.c/pr69389.c: Move ...
6920         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
6921         * testsuite/libgomp.c/simd-14.c: Move ...
6922         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
6923         * testsuite/libgomp.c/simd-15.c: Move ...
6924         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
6925         * testsuite/libgomp.c/simd-16.c: Move ...
6926         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
6927         * testsuite/libgomp.c/simd-17.c: Move ...
6928         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
6929         * testsuite/libgomp.c/target-1.c: Move ...
6930         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
6931         * testsuite/libgomp.c/target-10.c: Move ...
6932         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
6933         * testsuite/libgomp.c/target-13.c: Move ...
6934         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
6935         * testsuite/libgomp.c/target-2.c: Move ...
6936         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
6937         * testsuite/libgomp.c/taskgroup-1.c: Move ...
6938         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
6939         * testsuite/libgomp.c/taskloop-1.c: Move ...
6940         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
6941         * testsuite/libgomp.c/taskloop-2.c: Move ...
6942         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
6943         * testsuite/libgomp.c/taskloop-3.c: Move ...
6944         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
6945         * testsuite/libgomp.c/taskloop-4.c: Move ...
6946         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
6947         * testsuite/libgomp.c/udr-1.c: Move ...
6948         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
6949         * testsuite/libgomp.c/for-1.c: Move ...
6950         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
6951         * testsuite/libgomp.c/for-1.h: Move ...
6952         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
6953         * testsuite/libgomp.c/for-2.c: Move ...
6954         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
6955         * testsuite/libgomp.c/for-2.h: Move ...
6956         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
6957         * testsuite/libgomp.c/for-3.c: Move ...
6958         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
6959         * testsuite/libgomp.c/for-4.c: Move ...
6960         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
6961         * testsuite/libgomp.c/for-5.c: Move ...
6962         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
6963         * testsuite/libgomp.c/for-6.c: Move ...
6964         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
6966 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6968         PR libgomp/82428
6969         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
6970         __builtin_goacc_parlevel_{id,size}.
6971         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
6972         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
6973         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
6974         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
6975         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
6976         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
6977         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
6978         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
6979         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
6980         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
6981         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
6982         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
6983         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
6984         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
6985         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
6986         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
6987         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
6988         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
6989         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
6990         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
6991         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
6992         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
6993         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
6995 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6997         PR testsuite/85106
6998         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
7000 2018-05-02  Tom de Vries  <tom@codesourcery.com>
7002         PR testsuite/85106
7003         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
7005 2018-04-29  Julian Brown  <julian@codesourcery.com>
7006             Tom de Vries  <tom@codesourcery.com>
7008         PR testsuite/85527
7009         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
7010         arbitrary order for iterations of atomic subtract check.
7012 2018-04-28  Tom de Vries  <tom@codesourcery.com>
7014         PR testsuite/85527
7015         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
7016         atomic capture results obtained in parallel loop to an array, instead of
7017         to a scalar.
7019 2018-04-26  Tom de Vries  <tom@codesourcery.com>
7021         PR libgomp/84020
7022         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
7023         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
7024         (process_GOMP_NVPTX_JIT): New function.
7025         (link_ptx): Use process_GOMP_NVPTX_JIT.
7027 2018-04-26  Richard Biener <rguenther@suse.de>
7028             Tom de Vries  <tom@codesourcery.com>
7030         PR lto/85422
7031         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
7033 2018-04-26  Tom de Vries  <tom@codesourcery.com>
7035         PR target/85519
7036         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
7037         recursion depth from 25 to 23.
7038         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
7040 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
7042         * configure: Regenerated.
7044 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
7045             Tom de Vries  <tom@codesourcery.com>
7047         PR target/85445
7048         * testsuite/libgomp.oacc-c++/ref-1.C: New.
7050 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
7052         PR libgomp/85463
7053         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
7054         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
7055         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
7056         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
7057         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
7058         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
7060         PR libfortran/85166
7061         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
7062         abort".
7063         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
7065 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
7067         * configure: Regenerated.
7069 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
7071         PR jit/85384
7072         * configure: Regenerate.
7074 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
7075             Tom de Vries  <tom@codesourcery.com>
7077         PR middle-end/84955
7078         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
7079         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
7081 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
7083         PR fortran/83064
7084         PR testsuite/85346
7085         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
7086         test from gfortran.dg to here.
7088 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
7090         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
7091         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
7093 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
7095         PR middle-end/84955
7096         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
7097         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
7099 2018-04-05  Tom de Vries  <tom@codesourcery.com>
7101         PR target/85204
7102         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
7104 2018-03-26  Tom de Vries  <tom@codesourcery.com>
7106         PR tree-optimization/85063
7107         * testsuite/libgomp.c/switch-conversion-2.c: New test.
7108         * testsuite/libgomp.c/switch-conversion.c: New test.
7109         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
7110         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
7112 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
7114         PR fortran/84381
7115         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
7116         call abort by STOP n.
7117         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
7118         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
7119         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
7120         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
7121         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
7122         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
7123         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
7124         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
7125         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
7126         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
7127         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
7128         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
7129         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
7130         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
7131         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
7132         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
7133         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
7134         * testsuite/libgomp.fortran/associate1.f90: Likewise.
7135         * testsuite/libgomp.fortran/associate2.f90: Likewise.
7136         * testsuite/libgomp.fortran/associate3.f90: Likewise.
7137         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
7138         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
7139         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
7140         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
7141         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
7142         * testsuite/libgomp.fortran/character1.f90: Likewise.
7143         * testsuite/libgomp.fortran/character2.f90: Likewise.
7144         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
7145         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
7146         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
7147         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
7148         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
7149         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
7150         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
7151         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
7152         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
7153         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
7154         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
7155         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
7156         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
7157         * testsuite/libgomp.fortran/do1.f90: Likewise.
7158         * testsuite/libgomp.fortran/do2.f90: Likewise.
7159         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
7160         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
7161         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
7162         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
7163         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
7164         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
7165         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
7166         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
7167         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
7168         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
7169         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
7170         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
7171         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
7172         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
7173         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
7174         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
7175         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
7176         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
7177         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
7178         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
7179         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
7180         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
7181         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
7182         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
7183         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
7184         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
7185         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
7186         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
7187         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
7188         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
7189         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
7190         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
7191         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
7192         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
7193         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
7194         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
7195         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
7196         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
7197         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
7198         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
7199         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
7200         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
7201         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
7202         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
7203         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
7204         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
7205         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
7206         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
7207         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
7208         * testsuite/libgomp.fortran/lib1.f90: Likewise.
7209         * testsuite/libgomp.fortran/lib2.f: Likewise.
7210         * testsuite/libgomp.fortran/lib3.f: Likewise.
7211         * testsuite/libgomp.fortran/lib4.f90: Likewise.
7212         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
7213         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
7214         * testsuite/libgomp.fortran/nested1.f90: Likewise.
7215         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
7216         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
7217         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
7218         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
7219         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
7220         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
7221         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
7222         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
7223         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
7224         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
7225         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
7226         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
7227         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
7228         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
7229         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
7230         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
7231         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
7232         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
7233         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
7234         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7235         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
7236         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
7237         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
7238         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
7239         * testsuite/libgomp.fortran/pr25162.f: Likewise.
7240         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
7241         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
7242         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
7243         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
7244         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
7245         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
7246         * testsuite/libgomp.fortran/pr28390.f: Likewise.
7247         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
7248         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
7249         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
7250         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
7251         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
7252         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
7253         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
7254         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
7255         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
7256         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
7257         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
7258         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
7259         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
7260         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
7261         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
7262         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
7263         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
7264         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
7265         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
7266         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
7267         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
7268         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
7269         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
7270         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
7271         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
7272         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
7273         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
7274         * testsuite/libgomp.fortran/reference1.f90: Likewise.
7275         * testsuite/libgomp.fortran/reference2.f90: Likewise.
7276         * testsuite/libgomp.fortran/retval1.f90: Likewise.
7277         * testsuite/libgomp.fortran/retval2.f90: Likewise.
7278         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
7279         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
7280         * testsuite/libgomp.fortran/simd1.f90: Likewise.
7281         * testsuite/libgomp.fortran/simd2.f90: Likewise.
7282         * testsuite/libgomp.fortran/simd3.f90: Likewise.
7283         * testsuite/libgomp.fortran/simd4.f90: Likewise.
7284         * testsuite/libgomp.fortran/simd5.f90: Likewise.
7285         * testsuite/libgomp.fortran/simd6.f90: Likewise.
7286         * testsuite/libgomp.fortran/simd7.f90: Likewise.
7287         * testsuite/libgomp.fortran/stack.f90: Likewise.
7288         * testsuite/libgomp.fortran/strassen.f90: Likewise.
7289         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
7290         * testsuite/libgomp.fortran/tabs2.f: Likewise.
7291         * testsuite/libgomp.fortran/target1.f90: Likewise.
7292         * testsuite/libgomp.fortran/target2.f90: Likewise.
7293         * testsuite/libgomp.fortran/target3.f90: Likewise.
7294         * testsuite/libgomp.fortran/target4.f90: Likewise.
7295         * testsuite/libgomp.fortran/target5.f90: Likewise.
7296         * testsuite/libgomp.fortran/target6.f90: Likewise.
7297         * testsuite/libgomp.fortran/target7.f90: Likewise.
7298         * testsuite/libgomp.fortran/target8.f90: Likewise.
7299         * testsuite/libgomp.fortran/task1.f90: Likewise.
7300         * testsuite/libgomp.fortran/task2.f90: Likewise.
7301         * testsuite/libgomp.fortran/task3.f90: Likewise.
7302         * testsuite/libgomp.fortran/task4.f90: Likewise.
7303         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
7304         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
7305         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
7306         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
7307         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
7308         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
7309         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
7310         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
7311         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
7312         * testsuite/libgomp.fortran/udr1.f90: Likewise.
7313         * testsuite/libgomp.fortran/udr10.f90: Likewise.
7314         * testsuite/libgomp.fortran/udr11.f90: Likewise.
7315         * testsuite/libgomp.fortran/udr12.f90: Likewise.
7316         * testsuite/libgomp.fortran/udr13.f90: Likewise.
7317         * testsuite/libgomp.fortran/udr14.f90: Likewise.
7318         * testsuite/libgomp.fortran/udr15.f90: Likewise.
7319         * testsuite/libgomp.fortran/udr2.f90: Likewise.
7320         * testsuite/libgomp.fortran/udr3.f90: Likewise.
7321         * testsuite/libgomp.fortran/udr4.f90: Likewise.
7322         * testsuite/libgomp.fortran/udr5.f90: Likewise.
7323         * testsuite/libgomp.fortran/udr6.f90: Likewise.
7324         * testsuite/libgomp.fortran/udr7.f90: Likewise.
7325         * testsuite/libgomp.fortran/udr8.f90: Likewise.
7326         * testsuite/libgomp.fortran/udr9.f90: Likewise.
7327         * testsuite/libgomp.fortran/vla1.f90: Likewise.
7328         * testsuite/libgomp.fortran/vla2.f90: Likewise.
7329         * testsuite/libgomp.fortran/vla3.f90: Likewise.
7330         * testsuite/libgomp.fortran/vla4.f90: Likewise.
7331         * testsuite/libgomp.fortran/vla5.f90: Likewise.
7332         * testsuite/libgomp.fortran/vla6.f90: Likewise.
7333         * testsuite/libgomp.fortran/vla7.f90: Likewise.
7334         * testsuite/libgomp.fortran/vla8.f90: Likewise.
7335         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
7336         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
7337         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7338         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
7339         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7340         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7341         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7342         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
7343         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
7344         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
7345         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
7346         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
7347         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
7348         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
7349         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
7350         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
7351         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7352         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
7353         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
7354         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
7355         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
7356         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
7357         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
7358         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
7359         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
7360         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
7361         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
7362         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
7363         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7364         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
7365         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
7366         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7367         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7368         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7369         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7370         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
7371         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
7372         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
7373         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
7374         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
7375         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
7376         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
7377         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
7378         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
7379         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
7380         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
7381         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
7382         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
7383         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
7384         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
7385         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
7386         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
7387         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
7388         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7389         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
7390         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
7391         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
7392         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
7393         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
7394         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
7395         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
7396         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
7397         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
7398         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
7399         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
7400         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7401         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
7402         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7403         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
7404         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
7405         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
7406         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
7407         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
7408         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
7409         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
7410         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
7411         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
7412         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
7413         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
7414         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
7415         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
7416         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7417         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
7418         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
7419         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
7420         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
7421         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
7422         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
7423         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
7424         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
7425         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
7426         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
7427         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
7428         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
7430 2018-03-20  Richard Biener  <rguenther@suse.de>
7432         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
7433         parallelizable loop.
7435 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
7437         PR target/84148
7438         * configure: Regenerate.
7440 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
7442         PR fortran/84418
7443         * libgomp.fortran/pr84418-1.f90: New test.
7444         * libgomp.fortran/pr84418-2.f90: New test.
7446 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
7448         PR fortran/84313
7449         * testsuite/libgomp.fortran/threadprivate4.f90: Add
7450         -std=f2003 -fall-intrinsics into dg-additional-options.
7452 2018-02-08  Martin Jambor  <mjambor@suse.cz>
7454         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
7455         clonable.
7457 2018-02-08  Martin Jambor  <mjambor@suse.cz>
7459         * testsuite/libgomp.hsa.c/staticvar.c: New test.
7461 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7463         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
7464         [__cplusplus]: Declare extern "C".
7466 2018-02-07  Tom de Vries  <tom@codesourcery.com>
7468         PR libgomp/84217
7469         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
7471 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
7472             Jakub Jelinek  <jakub@redhat.com>
7474         PR libgomp/84096
7475         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
7476         instead of omp_lock_t.
7478 2018-01-25  Tom de Vries  <tom@codesourcery.com>
7480         PR target/84028
7481         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
7483 2018-01-24  Tom de Vries  <tom@codesourcery.com>
7485         PR target/83589
7486         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
7488 2018-01-24  Tom de Vries  <tom@codesourcery.com>
7490         PR target/81352
7491         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
7493 2018-01-19  Tom de Vries  <tom@codesourcery.com>
7494             Cesar Philippidis  <cesar@codesourcery.com>
7496         PR target/83920
7497         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
7498         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
7500 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
7502         Update copyright years.
7504         * libgomp.texi: Bump @copying's copyright year.
7506 2017-12-30  Tom de Vries  <tom@codesourcery.com>
7508         PR libgomp/83046
7509         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
7510         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
7512 2017-12-27  Tom de Vries  <tom@codesourcery.com>
7514         PR c++/83046
7515         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
7516         (test_nonstatic): Fix return type to workaround PR83046.
7518 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
7520         PR testsuite/83281
7521         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
7522         j suffix instead of i.
7523         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
7524         Likewise.
7526 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
7528         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
7529         call to acc_wait (1).
7531 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
7533         PR fortran/81304
7534         * testsuite/libgomp.fortran/pr81304.f90: New test.
7536 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
7538         PR fortran/81841
7539         * libgomp.fortran/pr81841.f90: New test.
7541 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
7543         PR libgomp/83106
7544         * target.c (gomp_target_init): Compute lengths just once and
7545         use them in both malloc size and subsequent copying.
7547 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
7549         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
7550         * acinclude.m4: Add cet.m4.
7551         * configure: Regenerate.
7552         * Makefile.in: Likewise.
7553         * testsuite/Makefile.in: Likewise.
7555 2017-11-15  Tom de Vries  <tom@codesourcery.com>
7557         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
7558         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
7559         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
7560         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
7561         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
7562         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
7564 2017-11-14  Tom de Vries  <tom@codesourcery.com>
7566         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
7567         non-nvidia devices.
7569 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
7571         PR c++/82835
7572         * testsuite/libgomp.c++/pr82835.C: New test.
7574 2017-11-06  Martin Liska  <mliska@suse.cz>
7576         * testsuite/libgomp.c++/loop-2.C: Return a value
7577         for functions with non-void return type, or change type to void,
7578         or add -Wno-return-type for test.
7579         * testsuite/libgomp.c++/loop-4.C: Likewise.
7580         * testsuite/libgomp.c++/parallel-1.C: Likewise.
7581         * testsuite/libgomp.c++/shared-1.C: Likewise.
7582         * testsuite/libgomp.c++/single-1.C: Likewise.
7583         * testsuite/libgomp.c++/single-2.C: Likewise.
7585 2017-10-31  Tom de Vries  <tom@codesourcery.com>
7587         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
7588         "do {} while (false)".
7589         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
7590         after HSA_DEBUG call.
7592 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
7594         * target.c (struct gomp_coalesce_buf): New type.
7595         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
7596         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
7597         (gomp_copy_host2dev): Add CBUF argument, if copying into
7598         the cached ranges, memcpy into buffer instead of copying
7599         into device.
7600         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
7601         Add CBUF argument, pass it through to other calls.
7602         (gomp_map_vars): Aggregate copies from host to device if small enough
7603         and with small enough gaps in between into memcpy into a buffer and
7604         fewer host to device copies from the buffer.
7605         (gomp_update): Adjust gomp_copy_host2dev caller.
7607 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
7609         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
7610         run" directive.
7611         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7612         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7613         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7614         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7616 2017-10-16  Tom de Vries  <tom@codesourcery.com>
7618         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
7619         openacc_nvidia_accel_selected.
7620         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
7621         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
7622         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
7623         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
7624         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
7625         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
7626         openacc_nvidia_accel_selected. Skip for shared memory device.
7627         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
7628         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
7630 2017-10-09  Martin Jambor  <mjambor@suse.cz>
7632         PR hsa/82416
7633         * testsuite/libgomp.hsa.c/pr82416.c: New test.
7635 2017-10-07  Tom de Vries  <tom@codesourcery.com>
7637         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
7638         Remove acc_device_nvidia references.
7639         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
7640         Same.
7642 2017-10-05  Tom de Vries  <tom@codesourcery.com>
7644         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
7645         vector_length(32) clause from acc parallel directive.
7646         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
7648 2017-10-04  Tom de Vries  <tom@codesourcery.com>
7650         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
7651         (main): Reduce sum of arr elements.  Assert that hres is exactly
7652         representable in 32-bit floating point.
7653         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
7654         (main): Reduce sum of arr elements.  Assert that hres and hmres are
7655         exactly representable in 32-bit floating point.
7656         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
7658 2017-09-28  Tom de Vries  <tom@codesourcery.com>
7660         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
7661         setting.
7662         * testsuite/libgomp.c++/pr69393.C: Same.
7663         * testsuite/libgomp.c++/taskloop-1.C: Same.
7664         * testsuite/libgomp.c++/taskloop-3.C: Same.
7665         * testsuite/libgomp.c++/taskloop-4.C: Same.
7666         * testsuite/libgomp.c/for-4.c: Same.
7667         * testsuite/libgomp.c/pr66199-3.c: Same.
7668         * testsuite/libgomp.c/pr66199-4.c: Same.
7669         * testsuite/libgomp.c/pr66199-6.c: Same.
7670         * testsuite/libgomp.c/taskloop-1.c: Same.
7671         * testsuite/libgomp.c/taskloop-3.c: Same.
7672         * testsuite/libgomp.c/taskloop-4.c: Same.
7673         * testsuite/libgomp.fortran/aligned1.f03: Same.
7674         * testsuite/libgomp.fortran/condinc1.f: Same.
7675         * testsuite/libgomp.fortran/condinc3.f90: Same.
7676         * testsuite/libgomp.fortran/crayptr1.f90: Same.
7677         * testsuite/libgomp.fortran/crayptr2.f90: Same.
7678         * testsuite/libgomp.fortran/crayptr3.f90: Same.
7679         * testsuite/libgomp.fortran/omp_cond1.f: Same.
7680         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
7681         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
7682         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
7683         * testsuite/libgomp.fortran/recursion1.f90: Same.
7684         * testsuite/libgomp.fortran/target2.f90: Same.
7685         * testsuite/libgomp.fortran/target5.f90: Same.
7686         * testsuite/libgomp.fortran/task3.f90: Same.
7688 2017-09-28  Tom de Vries  <tom@codesourcery.com>
7690         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
7691         vector_length(32) clause from acc parallel directive.
7692         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
7694 2017-09-27  Tom de Vries  <tom@codesourcery.com>
7696         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
7697         Remove acc_device_nvidia references.
7699 2017-09-16  Tom de Vries  <tom@codesourcery.com>
7701         PR c/81875
7702         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
7704 2017-09-14  Tom de Vries  <tom@codesourcery.com>
7706         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
7707         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
7708         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
7709         * testsuite/libgomp.c/c.exp: Include test-cases from
7710         libgomp.c-c++-common.
7711         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
7712         files.
7714 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
7716         PR c++/81314
7717         * testsuite/libgomp.c++/pr81314.C: New test.
7719 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
7721         * libgomp.texi (Top): www.openacc.org now uses https.
7722         (Enabling OpenACC): Ditto.
7723         (acc_get_num_devices): Ditto.
7724         (acc_set_device_type): Ditto.
7725         (acc_get_device_type): Ditto.
7726         (acc_set_device_num): Ditto.
7727         (acc_get_device_num): Ditto.
7728         (acc_async_test): Ditto.
7729         (acc_async_test_all): Ditto.
7730         (acc_wait): Ditto.
7731         (acc_wait_all): Ditto.
7732         (acc_wait_all_async): Ditto.
7733         (acc_wait_async): Ditto.
7734         (acc_init): Ditto.
7735         (acc_shutdown): Ditto.
7736         (acc_on_device): Ditto.
7737         (acc_malloc): Ditto.
7738         (acc_free): Ditto.
7739         (acc_copyin): Ditto.
7740         (acc_present_or_copyin): Ditto.
7741         (acc_create): Ditto.
7742         (acc_present_or_create): Ditto.
7743         (acc_copyout): Ditto.
7744         (acc_delete): Ditto.
7745         (acc_update_device): Ditto.
7746         (acc_update_self): Ditto.
7747         (acc_map_data): Ditto.
7748         (acc_unmap_data): Ditto.
7749         (acc_deviceptr): Ditto.
7750         (acc_hostptr): Ditto.
7751         (acc_is_present): Ditto.
7752         (acc_memcpy_to_device): Ditto.
7753         (acc_memcpy_from_device): Ditto.
7754         (acc_get_current_cuda_device): Ditto.
7755         (acc_get_current_cuda_context): Ditto.
7756         (acc_get_cuda_stream): Ditto.
7757         (acc_set_cuda_stream): Ditto.
7758         (ACC_DEVICE_TYPE): Ditto.
7759         (ACC_DEVICE_NUM): Ditto.
7760         (OpenACC Library Interoperability): Ditto.
7762 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
7764         PR c/81687
7765         * testsuite/libgomp.c/pr81687-1.c: New test.
7766         * testsuite/libgomp.c/pr81687-2.c: New test.
7768 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
7770         PR c/69389
7771         * testsuite/libgomp.c/pr69389.c: New test.
7772         * testsuite/libgomp.c++/pr69389.C: New test.
7774 2017-08-07  Tom de Vries  <tom@codesourcery.com>
7776         PR middle-end/78266
7777         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
7778         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
7780 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
7782         PR c/45784
7783         * testsuite/libgomp.c/pr45784.c: New test.
7784         * testsuite/libgomp.c++/pr45784.C: New test.
7786 2017-07-19  Tom de Vries  <tom@codesourcery.com>
7788         * testsuite/libgomp.oacc-c/vec.c: New test.
7790 2017-07-03  Tom de Vries  <tom@codesourcery.com>
7792         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
7794 2017-06-27  Tom de Vries  <tom@codesourcery.com>
7796         * plugin/plugin-nvptx.c (notify_var): New function.
7797         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
7799 2017-06-27  Tom de Vries  <tom@codesourcery.com>
7801         * env.c (parse_unsigned_long_1): Factor out of ...
7802         (parse_unsigned_long): ... here.
7803         (parse_int_1): Factor out of ...
7804         (parse_int): ... here.
7805         (parse_int_secure): New function.
7806         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
7807         * secure_getenv.h: Factor out of ...
7808         * plugin/plugin-hsa.c: ... here.
7809         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
7811 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
7813         PR c++/81130
7814         * testsuite/libgomp.c++/pr81130.C: New test.
7816 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7818         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
7819         default args.
7820         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
7821         dg-xfail-run-if default args.
7823 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7825         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
7826         * testsuite/libgomp.c/pr39591-3.c: Likewise.
7828 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
7830         PR libgomp/80822
7831         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
7832         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
7833         sibling lists, depending on level just pick up what CPUs to put
7834         together into a place vs. whether add multiple ordered places.
7836 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
7838         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
7839         * libgomp.map (OACC_2.0.1): Add these.
7840         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
7841         for "acc_wait", and "acc_wait_all", respectively.
7842         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
7843         for "acc_wait", and "acc_wait_all", respectively.
7844         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
7845         * libgomp.texi (acc_wait, acc_wait_all): Update.
7846         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
7847         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
7848         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7850         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
7851         acc_present_or_copyin and acc_present_or_create procedures,
7852         respectively.
7853         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
7854         generally different variants of OpenACC Runtime Library functions.
7855         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7857         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
7858         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7860         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
7861         of preprocessor definitions.
7862         * libgomp.h (strong_alias): Guard by "#ifdef
7863         HAVE_ATTRIBUTE_ALIAS".
7864         * oacc-mem.c: Provide "acc_pcreate" as alias for
7865         "acc_present_or_create", and "acc_pcopyin" as alias for
7866         "acc_present_or_copyin".
7867         * libgomp.map: New version "OACC_2.0.1".
7868         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
7869         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
7870         its content into...
7871         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
7872         Extend testing.
7874         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
7875         when disabling nvptx offloading.
7877 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
7879         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
7880         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
7881         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
7883         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
7884         * testsuite/lib/libgomp.exp
7885         (check_effective_target_openacc_nvidia_accel_configured): New
7886         proc.
7887         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
7888         (check_effective_target_c++): New procs.
7889         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
7890         (check_effective_target_c++): Likewise.
7892 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
7894         PR middle-end/80809
7895         * testsuite/libgomp.c/pr80809-2.c: New test.
7896         * testsuite/libgomp.c/pr80809-3.c: New test.
7898         PR middle-end/80809
7899         * testsuite/libgomp.c/pr80809-1.c: New test.
7901         PR middle-end/80853
7902         * testsuite/libgomp.c/pr80853.c: New test.
7904 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
7906         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
7907         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
7908         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7909         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
7910         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
7912         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
7913         Debug output for failure.
7915 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7917         * testsuite/lib/libgomp.exp: Load scanlang.exp.
7919 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
7921         PR bootstrap/80531
7922         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
7923         bootstrap compare failures.
7925 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
7927         * testsuite/libgomp.c/target-36.c: New testcase.
7929 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
7931         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
7932         instead of char.
7934 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
7936         PR libgomp/80394
7937         * testsuite/libgomp.c/pr80394.c: New test.
7939 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
7941         PR libgomp/79876
7942         * config/posix/thread-stacksize.h: New file.
7943         * config/darwin/thread-stacksize.h: New file.
7944         * config/nvptx/thread-stacksize.h: New file.
7945         * env.c: Include thread-stacksize.h.
7946         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
7947         instead of 0.  Call pthread_attr_setstacksize even if
7948         GOMP_DEFAULT_STACKSIZE is non-zero.
7950 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
7952         * env.c (initialize_env): Initialize stacksize to 0.
7954 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
7956         PR c++/80029
7957         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
7959 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
7961         PR c/79940
7962         * testsuite/libgomp.c/pr79940.c: New test.
7964 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7966         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
7967         targets.
7968         Add __float128 options.
7970 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
7972         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
7973         hppa*-*-* dg-skip-if directive.
7975 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
7977         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
7978         dg-skip-if directive into a comment.
7980 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
7981             Chung-Lin Tang  <cltang@codesourcery.com>
7983         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
7984         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
7985         add additional case.
7986         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
7987         "openacc_nvidia_accel_selected".
7988         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
7989         Add num_workers(8) clause.
7991 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
7993         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
7994         hppa*-*-*.
7995         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
7996         include complex.h on hppa*-*-hpux*.
7997         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
7999 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
8001         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
8003         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
8004         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
8005         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
8006         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
8007         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
8008         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
8009         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
8010         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
8011         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
8012         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
8014 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
8016         * libgomp-plugin.h: #include <stdbool.h>.
8017         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
8018         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
8019         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
8020         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
8021         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
8022         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
8023         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
8024         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
8025         (GOMP_OFFLOAD_openacc_register_async_cleanup)
8026         (GOMP_OFFLOAD_openacc_async_test)
8027         (GOMP_OFFLOAD_openacc_async_test_all)
8028         (GOMP_OFFLOAD_openacc_async_wait)
8029         (GOMP_OFFLOAD_openacc_async_wait_async)
8030         (GOMP_OFFLOAD_openacc_async_wait_all)
8031         (GOMP_OFFLOAD_openacc_async_wait_all_async)
8032         (GOMP_OFFLOAD_openacc_async_set_async)
8033         (GOMP_OFFLOAD_openacc_create_thread_data)
8034         (GOMP_OFFLOAD_openacc_destroy_thread_data)
8035         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
8036         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
8037         (GOMP_OFFLOAD_openacc_get_cuda_stream)
8038         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
8039         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
8040         these.
8041         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
8042         (GOMP_OFFLOAD_unload_image): Fix argument types.
8044 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
8046         * testsuite/lib/libgomp.exp
8047         (check_effective_target_hsa_offloading_selected_nocache): Fix up
8048         check_compile invocation.  Fix up removal of executable.  Drop
8049         bogus "2>&1" argument.
8051         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
8052         directive.
8054 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
8055             Martin Jambor  <mjambor@suse.cz>
8057         * plugin/hsa.h: Moved to top level include.
8058         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
8060 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
8062         PR other/79046
8063         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
8064         of cat to get version from BASE-VER file.
8065         * testsuite/Makefile.in: Regenerated.
8067 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
8069         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
8070         for _WIN64.
8072 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
8074         * plugin/hsa.h: Add GCC runtime library exception.
8075         * plugin/hsa_ext_finalize.h: Likewise.
8077         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
8078         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
8079         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
8080         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
8081         plugin/include/cuda as include dir and -ldl instead of -lcuda as
8082         library to link ptx plugin against.
8083         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
8084         (CUDA_CALLS): Define.
8085         (cuda_lib, cuda_lib_inited): New variables.
8086         (init_cuda_lib): New function.
8087         (CUDA_CALL_PREFIX): Define.
8088         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
8089         (CUDA_CALL): Use FN instead of (FN).
8090         (CUDA_CALL_NOCHECK): Define.
8091         (cuda_error, fini_streams_for_device, select_stream_for_async,
8092         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
8093         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
8094         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
8095         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
8096         CUDA_CALL_NOCHECK.
8097         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
8098         CUDA_CALL_NOCHECK.
8099         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
8100         Use CUDA_CALL_NOCHECK.
8101         * plugin/cuda/cuda.h: New file.
8102         * config.h.in: Regenerated.
8103         * configure: Regenerated.
8105         PR other/79046
8106         * configure.ac: Add GCC_BASE_VER.
8107         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
8108         get version from BASE-VER file.
8109         * testsuite/Makefile.in: Regenerated.
8110         * configure: Regenerated.
8111         * Makefile.in: Regenerated.
8113 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8115         PR libgomp/60670
8116         * Makefile.am: Make fincludedir multilib-aware.
8117         * Makefile.in: Regenerate.
8119 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
8121         Update copyright years.
8123         * libgomp.texi: Bump @copying's copyright year.
8125 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8127         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
8128         pthread_spinlock_t instead of gomp_mutex_t lock.
8129         (gomp_get_thread_pool): Likewise.
8130         (gomp_release_thread_pool): Likewise.
8131         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
8132         Likewise.
8134 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8136         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
8137         thread pool in case nthreads == 1.
8139 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
8141         * config/nvptx/env.c: Delete.
8142         * icv.c: Move definitions of ICV variables back ...
8143         * env.c: ...here.  Do not compile environment-related functionality if
8144         LIBGOMP_OFFLOADED_ONLY is set.
8146 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
8148         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
8149         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
8150         * configure: Regenerate.
8151         * config.h.in: Likewise.
8153 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
8155         * Makefile.in: Regenerate with automake-1.11.6.
8156         * aclocal.m4: Likewise.
8157         * configure: Likewise.
8158         * testsuite/Makefile.in: Likewise.
8160 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
8162         * config/nvptx/critical.c: Delete to use generic implementation.
8164 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
8166         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
8167         ../../affinity.c as fallback.
8168         * config/nvptx/affinity.c: Delete to use fallback implementation.
8170 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
8171             Jakub Jelinek  <jakub@redhat.com>
8172             Dmitry Melnik  <dm@ispras.ru>
8174         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
8175         * Makefile.in. Regenerate.
8176         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
8177         (LIBGOMP_USE_PTHREADS): ...here; new define.
8178         * configure: Regenerate.
8179         * config.h.in: Likewise.
8180         * config/posix/affinity.c: Move to...
8181         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
8182         interface by LIBGOMP_USE_PTHREADS. 
8183         * critical.c: Split out GOMP_atomic_{start,end} into...
8184         * atomic.c: ...here (new file).
8185         * env.c: Split out ICV definitions into...
8186         * icv.c: ...here (new file) and...
8187         * icv-device.c: ...here. New file.
8188         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
8189         (gomp_destroy_lock_30): Ditto.
8190         (gomp_set_lock_30): Ditto.
8191         (gomp_unset_lock_30): Ditto.
8192         (gomp_test_lock_30): Ditto.
8193         (gomp_init_nest_lock_30): Ditto.
8194         (gomp_destroy_nest_lock_30): Ditto.
8195         (gomp_set_nest_lock_30): Ditto.
8196         (gomp_unset_nest_lock_30): Ditto.
8197         (gomp_test_nest_lock_30): Ditto.
8198         * lock.c: New.
8199         * config/nvptx/lock.c: New.
8200         * config/nvptx/bar.c: New.
8201         * config/nvptx/bar.h: New.
8202         * config/nvptx/doacross.h: New.
8203         * config/nvptx/error.c: New.
8204         * config/nvptx/icv-device.c: New.
8205         * config/nvptx/mutex.h: New.
8206         * config/nvptx/pool.h: New.
8207         * config/nvptx/proc.c: New.
8208         * config/nvptx/ptrlock.h: New.
8209         * config/nvptx/sem.h: New.
8210         * config/nvptx/simple-bar.h: New.
8211         * config/nvptx/target.c: New.
8212         * config/nvptx/task.c: New.
8213         * config/nvptx/team.c: New.
8214         * config/nvptx/time.c: New.
8215         * config/posix/simple-bar.h: New.
8216         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
8217         (gomp_num_teams_var): Declare.
8218         (struct gomp_thread_pool): Change threads_dock member to
8219         gomp_simple_barrier_t.
8220         [__nvptx__] (gomp_thread): New implementation.
8221         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
8222         (gomp_thread_destructor): Ditto.
8223         (gomp_init_thread_affinity): Ditto.
8224         * team.c: Guard uses of Pthreads-specific interfaces by
8225         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
8226         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
8227         * config/nvptx/alloc.c: Delete.
8228         * config/nvptx/barrier.c: Ditto.
8229         * config/nvptx/fortran.c: Ditto.
8230         * config/nvptx/iter.c: Ditto.
8231         * config/nvptx/iter_ull.c: Ditto.
8232         * config/nvptx/loop.c: Ditto.
8233         * config/nvptx/loop_ull.c: Ditto.
8234         * config/nvptx/ordered.c: Ditto.
8235         * config/nvptx/parallel.c: Ditto.
8236         * config/nvptx/priority_queue.c: Ditto.
8237         * config/nvptx/sections.c: Ditto.
8238         * config/nvptx/single.c: Ditto.
8239         * config/nvptx/splay-tree.c: Ditto.
8240         * config/nvptx/work.c: Ditto.
8241         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
8242         -foffload=-lgfortran in addition to -lgfortran.
8243         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
8244         * plugin/plugin-nvptx.c: Include <limits.h>.
8245         (struct targ_fn_descriptor): Add new fields.
8246         (struct ptx_device): Ditto.  Set them...
8247         (nvptx_open_device): ...here.
8248         (nvptx_adjust_launch_bounds): New.
8249         (nvptx_host2dev): Allow NULL 'nvthd'.
8250         (nvptx_dev2host): Ditto.
8251         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
8252         (link_ptx): Adjust log sizes.
8253         (nvptx_host2dev): Allow NULL 'nvthd'.
8254         (nvptx_dev2host): Ditto.
8255         (nvptx_set_clocktick): New.  Use it...
8256         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
8257         fields.
8258         (GOMP_OFFLOAD_dev2dev): New.
8259         (nvptx_adjust_launch_bounds): New.
8260         (nvptx_stacks_size): New.
8261         (nvptx_stacks_alloc): New.
8262         (nvptx_stacks_free): New.
8263         (GOMP_OFFLOAD_run): New.
8264         (GOMP_OFFLOAD_async_run): New (stub).
8266 2016-11-23  Martin Jambor  <mjambor@suse.cz>
8268         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
8269         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
8270         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8272 2016-11-23  Martin Liska  <mliska@suse.cz>
8273             Martin Jambor  <mjambor@suse.cz>
8275         * plugin/hsa.h: New file.
8276         * plugin/hsa_ext_finalize.h: New file.
8277         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
8278         header file unistd.h, and functions secure_getenv, __secure_getenv,
8279         getuid, geteuid, getgid and getegid.
8280         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
8281         -D_GNU_SOURCE.
8282         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
8283         Handle various cases of secure_getenv presence, add an implementation
8284         when we can test effective UID and GID.
8285         (struct hsa_runtime_fn_info): New structure.
8286         (hsa_runtime_fn_info hsa_fns): New variable.
8287         (hsa_runtime_lib): Likewise.
8288         (support_cpu_devices): Likewise.
8289         (init_enviroment_variables): Load newly introduced ENV
8290         variables.
8291         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
8292         (hsa_fatal): Likewise.
8293         (DLSYM_FN): New macro.
8294         (init_hsa_runtime_functions): New function.
8295         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
8296         structure.  Depending on environment, also allow CPU devices.
8297         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
8298         (get_kernarg_memory_region): Likewise.
8299         (GOMP_OFFLOAD_init_device): Likewise.
8300         (destroy_hsa_program): Likewise.
8301         (init_basic_kernel_info): New function.
8302         (GOMP_OFFLOAD_load_image): Use it.
8303         (create_and_finalize_hsa_program): Call hsa run-time functions via
8304         hsa_fns structure.
8305         (create_single_kernel_dispatch): Likewise.
8306         (release_kernel_dispatch): Likewise.
8307         (init_single_kernel): Likewise.
8308         (parse_target_attributes): Allow up multiple HSA grid dimensions.
8309         (get_group_size): New function.
8310         (run_kernel): Likewise.
8311         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
8312         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
8313         structure.
8314         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
8315         * testsuite/libgomp-test-support.exp.in: Likewise.
8316         * Makefile.in: Regenerated.
8317         * aclocal.m4: Likewise.
8318         * config.h.in: Likewise.
8319         * configure: Likewise.
8320         * testsuite/Makefile.in: Likewise.
8322 2016-11-15  Martin Jambor  <mjambor@suse.cz>
8323             Alexander Monakov  <amonakov@ispras.ru>
8325         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
8326         mapping clauses to target constructs.
8327         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
8329 2016-11-15  Matthias Klose  <doko@ubuntu.com>
8331         * configure: Regenerate.
8333 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
8335         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
8336         * omp_lib.h.in (openmp_version): Likewise.
8337         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
8338         of 201307.
8339         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8341         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
8342         (fib_wrapper): Add map(from: x) clause.
8343         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
8344         (e_53_2): Likewise.
8345         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
8346         (accum): Add map(tmp) clause.
8347         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
8348         (accum): Add map(tofrom: tmp) clause.
8349         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
8350         (gramSchmidt): Likewise.
8351         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
8352         map(tofrom: sum) clause.
8353         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
8354         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
8355         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
8356         only allowed on the loop iterator.
8357         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
8358         * testsuite/libgomp.fortran/taskloop2.f90: New test.
8359         * testsuite/libgomp.fortran/taskloop4.f90: New test.
8360         * testsuite/libgomp.fortran/doacross1.f90: New test.
8361         * testsuite/libgomp.fortran/doacross3.f90: New test.
8362         * testsuite/libgomp.fortran/taskloop1.f90: New test.
8363         * testsuite/libgomp.fortran/taskloop3.f90: New test.
8364         * testsuite/libgomp.fortran/doacross2.f90: New test.
8365         * testsuite/libgomp.c/doacross-1.c (main): Add missing
8366         #pragma omp atomic read.
8367         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
8368         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
8370 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
8371             Nathan Sidwell  <nathan@acm.org>
8373         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
8374         to determine default geometry.
8375         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
8376         dimension.
8378 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
8380         * hashtab.h: Use standard GPLv3 with runtime exception
8381         boilerplate.
8383 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
8385         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
8386         size when allocating new thread.
8388 2016-09-14  Marek Polacek  <polacek@redhat.com>
8390         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
8392 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
8394         PR fortran/71014
8395         * testsuite/libgomp.fortran/pr71014.f90: New test.
8397 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
8399         PR middle-end/70895
8400         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
8401         firstprivate clauses.
8402         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
8403         copy clauses.
8404         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
8405         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
8406         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
8407         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8408         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
8409         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8410         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
8411         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
8412         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
8413         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
8414         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
8415         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
8417 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
8419         PR fortran/70598
8420         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
8422 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
8424         PR c++/58706
8425         * testsuite/libgomp.c++/pr58706.C: New test.
8427 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
8429         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
8430         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
8431         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
8432         Likewise.
8433         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
8434         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
8435         Likewise.
8436         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
8438         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
8439         test, and don't hardcode -O0.
8441 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
8443         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
8445 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
8447         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
8448         test.
8450 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
8452         PR middle-end/71734
8453         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
8454         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
8456 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
8458         PR fortran/71717
8459         * testsuite/libgomp.fortran/associate3.f90: New test.
8461 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
8463         * testsuite/libgomp.c++/target-21.C: New test.
8465 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
8467         * testsuite/libgomp.c++/target-20.C: New test.
8469 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
8470             Cesar Philippidis  <cesar@codesourcery.com>
8472         PR middle-end/71373
8473         * libgomp.oacc-c/nested-function-1.c: New file.
8474         * libgomp.oacc-c/nested-function-2.c: Likewise.
8475         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
8476         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
8477         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
8479 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
8481         PR c/71381
8482         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
8483         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
8484         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
8486 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
8488         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
8489         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
8491 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
8493         PR c/70688
8494         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
8496 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
8498         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
8499         instead of invalid schedule(static, 0).
8500         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
8502 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
8504         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
8505         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
8506         parameter, use to set async stream around call to gomp_unmap_vars,
8507         call gomp_unmap_vars() with 'do_copyfrom' set to true.
8508         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
8509         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
8510         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
8511         (event_add): Add int parameter, initialize 'val' field when
8512         adding new ptx_event struct.
8513         (nvptx_evec): Adjust event_add() call arguments.
8514         (nvptx_host2dev): Likewise.
8515         (nvptx_dev2host): Likewise.
8516         (nvptx_wait_async): Likewise.
8517         (nvptx_wait_all_async): Likewise.
8518         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
8519         pass to event_add() call.
8520         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
8521         parameter.
8522         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
8523         call openacc.register_async_cleanup_func() hook.
8524         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
8525         * target.c (gomp_copy_from_async): Delete function.
8526         (gomp_map_vars): Remove async_refcount.
8527         (gomp_unmap_vars): Likewise.
8528         (gomp_load_image_to_device): Likewise.
8529         (omp_target_associate_ptr): Likewise.
8530         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
8531         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
8532         (gomp_copy_from_async): Remove.
8534 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
8536         * target.c (gomp_device_copy): New function.
8537         (gomp_copy_host2dev): Likewise.
8538         (gomp_copy_dev2host): Likewise.
8539         (gomp_free_device_memory): Likewise.
8540         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
8541         (gomp_map_pointer): Likewise.
8542         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
8543         NULL value from alloc_func plugin hook.
8544         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
8545         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
8546         (gomp_unmap_vars): Likewise.
8547         (gomp_update): Adjust to call gomp_copy_dev2host and
8548         gomp_copy_host2dev functions.
8549         (gomp_unload_image_from_device): Handle false value from
8550         unload_image_func plugin hook.
8551         (gomp_init_device): Handle false value from init_device_func
8552         plugin hook.
8553         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
8554         (omp_target_free): Adjust to call gomp_free_device_memory.
8555         (omp_target_memcpy): Handle return values from host2dev_func,
8556         dev2host_func, and dev2dev_func plugin hooks.
8557         (omp_target_memcpy_rect_worker): Likewise.
8558         (gomp_target_fini): Handle false value from fini_device_func
8559         plugin hook.
8560         * libgomp.h (struct gomp_device_descr): Adjust return type of
8561         init_device_func, fini_device_func, unload_image_func, free_func,
8562         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
8563         * oacc-init.c (acc_shutdown_1): Handle false value from
8564         fini_device_func plugin hook.
8565         * oacc-host.c (host_init_device): Change return type to bool.
8566         (host_fini_device): Likewise.
8567         (host_unload_image): Likewise.
8568         (host_free): Likewise.
8569         (host_dev2host): Likewise.
8570         (host_host2dev): Likewise.
8571         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
8572         (acc_memcpy_to_device): Likewise.
8573         (acc_memcpy_from_device): Likewise.
8574         (delete_copyout): Add libfnname parameter, handle free_func
8575         hook fatal error case.
8576         (acc_delete): Adjust delete_copyout call.
8577         (acc_copyout): Likewise.
8578         (update_dev_host): Move gomp_mutex_unlock to after
8579         host2dev/dev2host hook calls.
8581         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
8582         to 'hsa_error_msg', for clarity.
8583         (hsa_fatal): Likewise.
8584         (hsa_error): New function.
8585         (init_hsa_context): Change return type to bool, adjust to return
8586         false on error.
8587         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
8588         return value.
8589         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
8590         return false on error.
8591         (get_agent_info): Adjust to return NULL on error.
8592         (destroy_hsa_program): Change return type to bool, adjust to
8593         return false on error.
8594         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
8595         (destroy_module): Change return type to bool, adjust to
8596         return false on error.
8597         (GOMP_OFFLOAD_unload_image): Likewise.
8598         (GOMP_OFFLOAD_fini_device): Likewise.
8599         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
8600         (GOMP_OFFLOAD_free): Change to return false when called.
8601         (GOMP_OFFLOAD_dev2host): Likewise.
8602         (GOMP_OFFLOAD_host2dev): Likewise.
8603         (GOMP_OFFLOAD_dev2dev): Likewise.
8605         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
8606         (CUDA_CALL): Likewise.
8607         (CUDA_CALL_ASSERT): Likewise.
8608         (map_init): Change return type to bool, use CUDA_CALL* macros.
8609         (map_fini): Likewise.
8610         (init_streams_for_device): Change return type to bool, adjust
8611         call to map_init.
8612         (fini_streams_for_device): Change return type to bool, adjust
8613         call to map_fini.
8614         (select_stream_for_async): Release stream_lock before calls to
8615         GOMP_PLUGIN_fatal, adjust call to map_init.
8616         (nvptx_init): Use CUDA_CALL* macros.
8617         (nvptx_attach_host_thread_to_device): Change return type to bool,
8618         use CUDA_CALL* macros.
8619         (nvptx_open_device): Use CUDA_CALL* macros.
8620         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
8621         macros.
8622         (nvptx_get_num_devices): Use CUDA_CALL* macros.
8623         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
8624         (nvptx_exec): Use CUDA_CALL* macros.
8625         (nvptx_alloc): Use CUDA_CALL* macros.
8626         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
8627         (nvptx_host2dev): Likewise.
8628         (nvptx_dev2host): Likewise.
8629         (nvptx_wait): Use CUDA_CALL* macros.
8630         (nvptx_wait_async): Likewise.
8631         (nvptx_wait_all): Likewise.
8632         (nvptx_wait_all_async): Likewise.
8633         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
8634         use CUDA_CALL* macros, adjust call to map_fini.
8635         (GOMP_OFFLOAD_init_device): Change return type to bool,
8636         adjust code accordingly.
8637         (GOMP_OFFLOAD_fini_device): Likewise.
8638         (GOMP_OFFLOAD_load_image): Adjust calls to
8639         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
8640         use CUDA_CALL* macros.
8641         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
8642         return code.
8643         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
8644         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
8645         handle error return.
8646         (GOMP_OFFLOAD_dev2host): Likewise.
8647         (GOMP_OFFLOAD_host2dev): Likewise.
8648         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
8649         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
8651 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
8653         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
8654         (acc_free): Likewise.
8655         (acc_memcpy_to_device): Likewise.
8656         (acc_memcpy_from_device): Likewise.
8657         (acc_deviceptr): Likewise.
8658         (acc_hostptr): Likewise.
8659         (acc_is_present): Likewise.
8660         (acc_map_data): Likewise.
8661         (acc_unmap_data): Likewise.
8662         (present_create_copy): Likewise.
8663         (delete_copyout): Likewise.
8664         (update_dev_host): Likewise.
8665         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
8666         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
8667         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
8668         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8669         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
8670         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
8671         it only runs on nvptx targets.
8672         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8673         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8674         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8675         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8676         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8677         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8678         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8679         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8680         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8681         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8682         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8683         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8684         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8685         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8686         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8687         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8688         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8689         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8690         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8691         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8692         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8693         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8694         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8696 2016-05-23  Martin Jambor  <mjambor@suse.cz>
8698         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
8700 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
8702         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
8703         to gomp_init_targets_once.
8704         (acc_set_device_type): Remove !cached_base_dev condition on call to
8705         gomp_init_targets_once, move call to before acc_device_lock acquire,
8706         to avoid deadlock.
8707         (acc_get_device_num): Remove !cached_base_dev condition on call to
8708         gomp_init_targets_once.
8709         (acc_set_device_num): Likewise.
8711 2016-05-16  Martin Jambor  <mjambor@suse.cz>
8713         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
8715 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
8717         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
8718         expected partitioning.
8720 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
8722         PR middle-end/70626
8723         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
8724         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
8725         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
8727 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
8729         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
8730         non-fatal.
8732 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
8734         PR middle-end/70680
8735         * testsuite/libgomp.c/pr70680-1.c: New test.
8736         * testsuite/libgomp.c/pr70680-2.c: New test.
8738 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
8740         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
8741         pass parameter variables to subroutines.
8743 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
8745         PR middle-end/70643
8746         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
8748 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
8750         PR testsuite/68242
8751         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
8752         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8754 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
8756         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
8757         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
8758         GOACC_declare prototype.
8760         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
8761         Merge this file, and...
8762         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
8763         ... this file, and...
8764         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
8765         ... this file, and...
8766         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
8767         ... this file, and...
8768         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
8769         ... this file, and...
8770         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
8771         ... this file, and...
8772         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
8773         ... this file, and...
8774         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
8775         ... this file, and...
8776         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
8777         ... this file, and...
8778         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
8779         ... this file, and...
8780         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
8781         ... this file, and...
8782         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
8783         ... this file, and...
8784         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
8785         ... this file into...
8786         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
8787         file.
8789         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8790         Make failure observable.
8792 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
8794         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
8795         field.
8796         * target.c (gomp_target_fallback_firstprivate,
8797         gomp_target_unshare_firstprivate): Removed.
8798         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
8799         before waiting for dependencies.
8800         (gomp_target_task_fn): Don't copy firstprivate vars here.
8801         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
8802         firstprivate_copies here.
8803         (gomp_create_target_task): Don't initialize firstprivate_copies field.
8804         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
8805         explicit/implicit firstprivate.
8807 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
8809         PR lto/70289
8810         PR ipa/70348
8811         PR tree-optimization/70373
8812         PR middle-end/70533
8813         PR middle-end/70534
8814         PR middle-end/70535
8815         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
8816         test.
8817         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
8818         test.
8819         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
8820         test.
8821         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
8822         test.
8823         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
8824         test.
8825         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
8826         test.
8827         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
8828         test.
8829         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
8830         test.
8831         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
8832         test.
8833         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
8834         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
8835         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
8836         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
8837         test.
8838         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
8839         test.
8840         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
8841         test.
8842         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
8843         test.
8844         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
8845         coverage.
8846         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
8847         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
8848         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
8849         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
8850         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
8851         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
8852         coverage.
8853         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8854         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8855         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8856         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8857         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
8858         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
8859         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
8860         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
8861         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
8862         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8863         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8864         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8865         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8866         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8867         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
8869 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
8870             James Norris  <jnorris@codesourcery.com>
8871             Nathan Sidwell  <nathan@codesourcery.com>
8872             Julian Brown  <julian@codesourcery.com>
8873             Cesar Philippidis  <cesar@codesourcery.com>
8874             Chung-Lin Tang  <cltang@codesourcery.com>
8875             Tom de Vries  <tom@codesourcery.com>
8877         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
8878         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8879         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8880         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
8881         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8882         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8883         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8884         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
8885         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8886         XFAIL.
8887         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
8888         Incorporate...
8889         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
8890         file.
8891         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
8892         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
8893         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
8894         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
8895         Likewise.
8896         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
8897         Likewise.
8898         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
8899         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
8900         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
8901         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
8902         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
8903         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
8904         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
8905         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
8906         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
8907         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
8908         Likewise.
8909         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
8910         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
8911         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
8912         file...
8913         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
8914         file into...
8915         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
8916         file.  Update.
8917         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
8918         file.
8919         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
8920         Likewise.
8921         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
8922         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
8923         ... this new file.  Update.
8924         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
8925         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
8926         ... this new file.  Update.
8927         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
8928         file.  Incorporate...
8929         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
8930         file, and...
8931         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
8932         file, and...
8933         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
8934         file.
8935         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
8937 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
8939         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
8940         set-torture-options.
8942 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
8944         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
8945         gcc-dg-runtest.
8946         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8947         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
8948         -fno-builtin-acc_on_device instead of -O0.
8949         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
8950         -O0.
8951         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
8952         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
8953         Likewise.
8954         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
8955         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
8956         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
8957         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
8958         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
8959         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
8960         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
8961         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
8962         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
8963         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
8964         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
8965         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
8966         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
8967         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
8968         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
8969         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
8970         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
8971         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
8972         Don't specify -O2.
8973         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
8974         Likewise.
8975         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
8976         Likewise.
8978 2016-03-24  Martin Liska  <mliska@suse.cz>
8980         * plugin/plugin-hsa.c (packet_store_release): New function
8981         that is taken from the HSA runtime manual.
8982         (GOMP_OFFLOAD_run): Use the function.
8984 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
8986         PR c++/70376
8987         * testsuite/libgomp.c++/pr70376.C: New test.
8989 2016-03-23  Tom de Vries  <tom@codesourcery.com>
8991         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
8992         initialization of lresult and lvresult.
8993         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
8995 2016-03-23  James Norris  <jnorris@codesourcery.com>
8996             Daichi Fukuoka <dc-fukuoka@sgi.com>
8998         PR libgomp/69414
8999         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
9000         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
9001         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
9002         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
9004 2016-03-23  Martin Liska  <mliska@suse.cz>
9006         PR hsa/70337
9007         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
9008         argument just in case a dispatched kernel uses that argument.
9010 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
9012         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
9013         -ftree-parallelize-loops/-fopenacc changes.
9014         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
9015         Likewise.
9016         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
9017         Likewise.
9018         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
9019         Likewise.
9020         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
9021         Likewise.
9022         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
9023         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
9025 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
9027         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
9028         always_ld_library_path the path to libgcc_s.
9030 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
9032         PR testsuite/70009
9033         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
9035 2016-03-09  Tom de Vries  <tom@codesourcery.com>
9037         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
9038         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
9039         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
9040         Same.
9041         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
9042         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
9043         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
9044         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
9046 2016-03-07  Martin Jambor  <mjambor@suse.cz>
9048         * testsuite/lib/libgomp.exp
9049         (check_effective_target_hsa_offloading_selected_nocache): New.
9050         (check_effective_target_hsa_offloading_selected): Likewise.
9051         * testsuite/libgomp.hsa.c/c.exp: Likewise.
9052         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
9053         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
9054         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
9055         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
9056         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
9057         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
9058         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
9059         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
9060         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
9061         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
9062         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
9063         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
9064         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
9065         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
9066         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
9067         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
9069 2016-03-07  Martin Jambor  <mjambor@suse.cz>
9071         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
9072         non-shared memory accelerators.
9073         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
9074         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
9075         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
9076         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
9077         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
9078         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
9079         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
9080         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
9081         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
9083 2016-03-07  Martin Jambor  <mjambor@suse.cz>
9085         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
9086         ALWAYS_CFLAGS.
9088 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
9090         PR libgomp/69555
9091         * testsuite/libgomp.c++/pr69555-1.C: New test.
9092         * testsuite/libgomp.c++/pr69555-2.C: New test.
9094 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
9095             Martin Jambor  <mjambor@suse.cz>
9097         * testsuite/lib/libgomp.exp
9098         (check_effective_target_offload_device_shared_as): New proc.
9099         * testsuite/libgomp.c++/declare_target-1.C: New test.
9101 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
9103         PR driver/68463
9104         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
9106 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
9108         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
9109         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
9110         dims.
9111         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
9112         -ftree-parallelize-loops/-fopenacc changes.
9113         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
9114         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
9115         Likewise.
9116         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
9117         Likewise.
9118         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
9119         Likewise.
9120         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
9121         Likewise.
9122         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
9123         Likewise.
9124         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
9125         Likewise.
9126         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
9127         Likewise.
9128         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
9129         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
9130         Likewise.
9131         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
9132         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
9133         Likewise.
9134         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
9135         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
9136         Likewise.
9138 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
9140         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
9142 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
9144         PR driver/69805
9145         * testsuite/libgomp.c/pr69805.c: New test.
9147 2016-02-16  Tom de Vries  <tom@codesourcery.com>
9149         PR lto/67709
9150         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
9152 2016-02-09  Tom de Vries  <tom@codesourcery.com>
9154         PR tree-optimization/69599
9155         * testsuite/libgomp.c/omp-nested-3.c: New test.
9156         * testsuite/libgomp.c/pr46032-2.c: New test.
9157         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
9158         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
9160 2016-02-09  Tom de Vries  <tom@codesourcery.com>
9162         PR lto/69707
9163         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
9165 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
9167         * testsuite/libgomp.c/target-31.c: Fix testcase.
9169 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
9171         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
9172         clause.
9173         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
9174         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
9175         reduction and map clauses.
9176         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
9178 2016-02-02  James Norris  <jnorris@codesourcery.com>
9180         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
9182 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
9184         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
9185         * oacc-parallel.c (GOACC_host_data): Remove function definition.
9187         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
9188         cases.
9190         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
9191         variables.
9192         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
9193         (hsa_kmt_lib): Set variables.
9194         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
9195         always_ld_library_path.
9196         * Makefile.in: Regenerate.
9197         * configure: Likewise.
9198         * testsuite/Makefile.in: Likewise.
9200         * plugin/configfrag.ac (offload_additional_options)
9201         (offload_additional_lib_paths): Don't amend for hsa offloading.
9202         * configure: Regenerate.
9204         * plugin/configfrag.ac: Don't configure for offloading target if
9205         we don't build the corresponding plugin.
9206         * configure: Regenerate.
9208 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
9210         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
9211         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
9213 2016-01-26  Tom de Vries  <tom@codesourcery.com>
9215         PR tree-optimization/69110
9216         * testsuite/libgomp.c/pr69110.c: New test.
9218 2016-01-25  Richard Biener  <rguenther@suse.de>
9220         PR lto/69393
9221         * testsuite/libgomp.c++/pr69393.C: New testcase.
9223 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
9225         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
9226         function wasn't mapped to the device with non-shared memory.
9228 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
9230         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
9232 2016-01-19  Martin Jambor  <mjambor@suse.cz>
9233             Martin Liska  <mliska@suse.cz>
9235         * plugin/Makefrag.am: Add HSA plugin requirements.
9236         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
9237         (HSA_RUNTIME_LIB): Likewise.
9238         (HSA_RUNTIME_CPPFLAGS): Likewise.
9239         (HSA_RUNTIME_INCLUDE): New substitution.
9240         (HSA_RUNTIME_LIB): Likewise.
9241         (HSA_RUNTIME_LDFLAGS): Likewise.
9242         (hsa-runtime): New configure option.
9243         (hsa-runtime-include): Likewise.
9244         (hsa-runtime-lib): Likewise.
9245         (PLUGIN_HSA): New substitution variable.
9246         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
9247         configure options.
9248         (PLUGIN_HSA_CPPFLAGS): Likewise.
9249         (PLUGIN_HSA_LDFLAGS): Likewise.
9250         (PLUGIN_HSA_LIBS): Likewise.
9251         Check that we have access to HSA run-time.
9252         * libgomp-plugin.h (offload_target_type): New element
9253         OFFLOAD_TARGET_TYPE_HSA.
9254         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
9255         args.
9256         (bool gomp_create_target_task): Updated.
9257         (gomp_device_descr): Extra parameter of run_func and async_run_func,
9258         new field can_run_func.
9259         * libgomp_g.h (GOMP_target_ext): Update prototype.
9260         * oacc-host.c (host_run): Added a new parameter args.
9261         * target.c (calculate_firstprivate_requirements): New function.
9262         (copy_firstprivate_data): Likewise.
9263         (gomp_target_fallback_firstprivate): Use them.
9264         (gomp_target_unshare_firstprivate): New function.
9265         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
9266         devices.
9267         (GOMP_target): Do host fallback for all shared memory devices.  Do not
9268         pass any args to plugins.
9269         (GOMP_target_ext): Introduce device-specific argument parameter args.
9270         Allow host fallback if device shares memory.  Do not remap data if
9271         device has shared memory.
9272         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
9273         like host fallback for mappings.
9274         (GOMP_target_data): Treat shared memory devices like host fallback.
9275         (GOMP_target_data_ext): Likewise.
9276         (GOMP_target_update): Likewise.
9277         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
9278         gomp_create_target_task.
9279         (GOMP_target_enter_exit_data): Likewise.
9280         (omp_target_alloc): Treat shared memory devices like host fallback.
9281         (omp_target_free): Likewise.
9282         (omp_target_is_present): Likewise.
9283         (omp_target_memcpy): Likewise.
9284         (omp_target_memcpy_rect): Likewise.
9285         (omp_target_associate_ptr): Likewise.
9286         (gomp_load_plugin_for_device): Also load can_run.
9287         * task.c (GOMP_PLUGIN_target_task_completion): Free
9288         firstprivate_copies.
9289         (gomp_create_target_task): Accept new argument args and store it to
9290         ttask.
9291         * plugin/plugin-hsa.c: New file.
9293 2016-01-18  Tom de Vries  <tom@codesourcery.com>
9295         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
9296         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
9297         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
9298         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
9299         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
9300         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
9301         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
9302         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
9303         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
9304         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
9305         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
9306         Same.
9307         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
9308         Same.
9309         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
9310         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
9311         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
9312         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
9313         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
9314         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
9315         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
9316         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
9317         Same.
9318         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
9320 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
9322         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
9324 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
9326         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
9328 2016-01-12  James Norris  <jnorris@codesourcery.com>
9330         * libgomp.texi: Updates for OpenACC.
9332 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
9334         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
9336 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
9338         PR fortran/66680
9339         * testsuite/libgomp.fortran/pr66680.f90: New test.
9341 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
9343         PR middle-end/68960
9344         * testsuite/libgomp.c/pr68960.c: New test.
9346 2016-01-06  Nathan Sidwell  <nathan@acm.org>
9348         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
9349         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
9351 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
9353         Update copyright years.
9355         * libgomp.texi: Bump @copying's copyright year.
9357 2015-12-31  Nathan Sidwell  <nathan@acm.org>
9359         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
9360         dg-additional-options syntax.
9361         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
9362         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
9363         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
9364         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
9365         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
9366         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
9367         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
9368         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
9369         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
9370         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
9371         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
9372         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
9373         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
9374         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
9375         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
9376         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
9377         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
9378         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
9380 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
9382         * libgomp.h (REFCOUNT_LINK): Define.
9383         (struct splay_tree_key_s): Add link_key.
9384         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
9385         Replace target address of the pointer with target address of newly
9386         mapped object in the splay tree.  Set link pointer on target to the
9387         device address of the mapped object.
9388         (gomp_unmap_vars): Restore target address of the pointer in the splay
9389         tree for REFCOUNT_LINK objects after unmapping.
9390         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
9391         declare target link" objects.
9392         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
9393         "omp declare target link" objects, which were mapped for the image.
9394         (gomp_exit_data): Restore target address of the pointer in the splay
9395         tree for REFCOUNT_LINK objects after unmapping.
9396         * testsuite/libgomp.c/target-link-1.c: New file.
9398 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
9400         * libgomp.h (gomp_device_state): New enum.
9401         (struct gomp_device_descr): Replace is_initialized with state.
9402         (gomp_fini_device): Remove declaration.
9403         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
9404         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
9405         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
9406         (acc_set_device_type): Use state instead of is_initialized.
9407         (acc_set_device_num): Likewise.
9408         * target.c (resolve_device): Use state instead of is_initialized.
9409         Do not initialize finalized device.
9410         (gomp_map_vars): Do nothing if device is finalized.
9411         (gomp_unmap_vars): Likewise.
9412         (gomp_update): Likewise.
9413         (GOMP_offload_register_ver): Use state instead of is_initialized.
9414         (GOMP_offload_unregister_ver): Likewise.
9415         (gomp_init_device): Likewise.
9416         (gomp_unload_device): Likewise.
9417         (gomp_fini_device): Remove.
9418         (gomp_get_target_fn_addr): Do nothing if device is finalized.
9419         (GOMP_target): Go to host fallback if device is finalized.
9420         (GOMP_target_ext): Likewise.
9421         (gomp_exit_data): Do nothing if device is finalized.
9422         (gomp_target_task_fn): Go to host fallback if device is finalized.
9423         (gomp_target_fini): New static function.
9424         (gomp_target_init): Use state instead of is_initialized.
9425         Call gomp_target_fini at exit.
9427 2015-12-09  Tom de Vries  <tom@codesourcery.com>
9429         PR tree-optimization/68716
9430         * testsuite/libgomp.c/omp-nested-2.c: New test.
9432 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
9434         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
9435         target openacc_nvidia_accel_selected.
9436         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
9437         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
9438         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
9439         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
9441 2015-12-01  Julian Brown  <julian@codesourcery.com>
9442             James Norris  <James_Norris@mentor.com>
9444         * oacc-parallel.c (GOACC_host_data): New function.
9445         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
9446         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
9447         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
9448         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
9449         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
9450         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
9451         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
9453 2015-11-30  James Norris  <jnorris@codesourcery.com>
9454             Cesar Philippidis  <cesar@codesourcery.com>
9456         libgomp/
9457         * libgomp.oacc-fortran/routine-5.f90: New test.
9458         * libgomp.oacc-fortran/routine-7.f90: New test.
9459         * libgomp.oacc-fortran/routine-9.f90: New test.
9461 2015-11-30  Tom de Vries  <tom@codesourcery.com>
9463         PR tree-optimization/46032
9464         * testsuite/libgomp.c/pr46032.c: New test.
9466 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
9468         PR libgomp/68579
9469         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
9470         (gomp_create_target_task): Call it before freeing
9471         GOMP_TARGET_TASK_DATA tasks.
9473         PR c/63326
9474         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
9475         in between case label and OpenMP standalone directives.
9476         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
9478 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
9480         * configure: Regenerate.
9482 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
9484         * testsuite/libgomp.c/target-35.c: New test.
9486 2015-11-22  James Norris  <jnorris@codesourcery.com>
9487             Cesar Philippidis  <cesar@codesourcery.com>
9489         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
9490         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
9491         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
9492         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
9493         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
9495 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
9497         PR middle-end/68221
9498         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
9499         * testsuite/libgomp.c/reduction-12.c: Likewise.
9500         * testsuite/libgomp.c++/reduction-11.C: Likewise.
9501         * testsuite/libgomp.c++/reduction-12.C: Likewise.
9503 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
9505         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
9506         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
9507         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
9508         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
9509         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
9510         and fix.
9511         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9512         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9514 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
9516         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
9517         worker & gang cases.
9518         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
9520 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
9522         * config/nvptx/priority_queue.c: New file.
9524 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
9526         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
9527         sections.
9529 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
9530             Aldy Hernandez  <aldyh@redhat.com>
9531             Ilya Verbin  <ilya.verbin@intel.com>
9533         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
9534         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
9535         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
9536         iterators or IV by chunk size.
9537         * parallel.c (gomp_resolve_num_threads): Don't assume that
9538         if thr->ts.team is non-NULL, then pool must be non-NULL.
9539         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
9540         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
9541         GOMP_PLUGIN_target_task_completion.
9542         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
9543         * Makefile.in: Regenerate.
9544         * libgomp.h: Shuffle prototypes and forward definitions around so
9545         priority queues can be defined.
9546         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
9547         (enum gomp_target_task_state): New enum.
9548         (struct gomp_target_task): Add state, tgt, task and team fields.
9549         (gomp_create_target_task): Change return type to bool, add
9550         state argument.
9551         (gomp_target_task_fn): Change return type to bool.
9552         (struct gomp_device_descr): Add async_run_func.
9553         (struct gomp_task): Remove children, next_child, prev_child,
9554         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
9555         Add pnode field.
9556         (struct gomp_taskgroup): Remove children.
9557         Add taskgroup_queue.
9558         (struct gomp_team): Change task_queue type to a priority queue.
9559         (splay_compare): Define inline.
9560         (priority_queue_offset): New.
9561         (priority_node_to_task): New.
9562         (task_to_priority_node): New.
9563         * oacc-mem.c: Do not include splay-tree.h.
9564         * priority_queue.c: New file.
9565         * priority_queue.h: New file.
9566         * splay-tree.c: Do not include splay-tree.h.
9567         (splay_tree_foreach_internal): New.
9568         (splay_tree_foreach): New.
9569         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
9570         (splay_tree_callback): Define typedef.
9571         * target.c (splay_compare): Move to libgomp.h.
9572         (GOMP_target): Don't adjust *thr in any way around running offloaded
9573         task.
9574         (GOMP_target_ext): Likewise.  Handle target nowait.
9575         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
9576         return value from gomp_create_target_task, if false, fallthrough
9577         as if no dependencies exist.
9578         (gomp_target_task_fn): Change return type to bool, return true
9579         if the task should have another part scheduled later.  Handle
9580         target nowait.
9581         (gomp_load_plugin_for_device): Initialize async_run.
9582         * task.c (gomp_init_task): Initialize children_queue.
9583         (gomp_clear_parent_in_list): New.
9584         (gomp_clear_parent_in_tree): New.
9585         (gomp_clear_parent): Handle priorities.
9586         (GOMP_task): Likewise.
9587         (priority_queue_move_task_first,
9588         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
9589         New functions.
9590         (gomp_create_target_task): Use priority queues.  Change return type
9591         to bool, add state argument, return false if for async
9592         {{enter,exit} data,update} constructs no dependencies need to be
9593         waited for, handle target nowait.  Set task->fn to NULL instead of
9594         gomp_target_task_fn.
9595         (verify_children_queue): Remove.
9596         (priority_list_upgrade_task): New.
9597         (priority_queue_upgrade_task): New.
9598         (verify_task_queue): Remove.
9599         (priority_list_downgrade_task): New.
9600         (priority_queue_downgrade_task): New.
9601         (gomp_task_run_pre): Use priority queues.
9602         Abstract code out to priority_queue_downgrade_task.
9603         (gomp_task_run_post_handle_dependers): Use priority queues.
9604         (gomp_task_run_post_remove_parent): Likewise.
9605         (gomp_task_run_post_remove_taskgroup): Likewise.
9606         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
9607         tasks specially.
9608         (GOMP_taskwait): Likewise.
9609         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
9610         priority-queue_upgrade_task.
9611         (GOMP_taskgroup_start): Use priority queues.
9612         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
9613         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
9614         barrier.
9615         * taskloop.c (GOMP_taskloop): Handle priorities.
9616         * team.c (gomp_new_team): Call priority_queue_init.
9617         (free_team): Call priority_queue_free.
9618         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
9619         team created for target nowait in implicit parallel region.
9620         (gomp_team_start): For nested check, test thr->ts.level instead of
9621         thr->ts.team != NULL.
9622         * testsuite/libgomp.c/doacross-3.c: New test.
9623         * testsuite/libgomp.c/ordered-5.c: New test.
9624         * testsuite/libgomp.c/priority.c: New test.
9625         * testsuite/libgomp.c/target-31.c: New test.
9626         * testsuite/libgomp.c/target-32.c: New test.
9627         * testsuite/libgomp.c/target-33.c: New test.
9628         * testsuite/libgomp.c/target-34.c: New test.
9630 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
9632         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
9634         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
9635         loop is sequential.
9637 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
9639         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
9640         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
9642 2015-11-12  James Norris  <jnorris@codesourcery.com>
9643             Joseph Myers  <joseph@codesourcery.com>
9645         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
9646         * oacc-parallel.c (GOACC_declare): New function.
9647         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
9648         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
9649         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
9650         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
9651         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
9653 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
9655         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
9657 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
9659         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
9660         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
9662 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
9664         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
9665         inadvertent commit.
9667 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
9669         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
9670         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
9671         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
9672         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
9673         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
9675 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
9677         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
9678         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
9680 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
9681             Ilya Verbin  <ilya.verbin@intel.com>
9683         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
9684         GOMP_loop_nonmonotonic_dynamic_start,
9685         GOMP_loop_nonmonotonic_guided_next,
9686         GOMP_loop_nonmonotonic_guided_start,
9687         GOMP_loop_ull_nonmonotonic_dynamic_next,
9688         GOMP_loop_ull_nonmonotonic_dynamic_start,
9689         GOMP_loop_ull_nonmonotonic_guided_next,
9690         GOMP_loop_ull_nonmonotonic_guided_start,
9691         GOMP_parallel_loop_nonmonotonic_dynamic,
9692         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
9693         (GOMP_target_41): Renamed to ...
9694         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
9695         arguments.
9696         (GOMP_target_data_41): Renamed to ...
9697         (GOMP_target_data_ext): ... this.
9698         (GOMP_target_update_41): Renamed to ...
9699         (GOMP_target_update_ext): ... this.
9700         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
9701         GOMP_target_data_ext and GOMP_target_update_ext instead of
9702         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
9703         Export GOMP_loop_nonmonotonic_dynamic_next,
9704         GOMP_loop_nonmonotonic_dynamic_start,
9705         GOMP_loop_nonmonotonic_guided_next,
9706         GOMP_loop_nonmonotonic_guided_start,
9707         GOMP_loop_ull_nonmonotonic_dynamic_next,
9708         GOMP_loop_ull_nonmonotonic_dynamic_start,
9709         GOMP_loop_ull_nonmonotonic_guided_next,
9710         GOMP_loop_ull_nonmonotonic_guided_start,
9711         GOMP_parallel_loop_nonmonotonic_dynamic and
9712         GOMP_parallel_loop_nonmonotonic_guided.
9713         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
9714         GOMP_parallel_loop_nonmonotonic_guided,
9715         GOMP_loop_nonmonotonic_dynamic_start,
9716         GOMP_loop_nonmonotonic_guided_start,
9717         GOMP_loop_nonmonotonic_dynamic_next,
9718         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
9719         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
9720         GOMP_loop_ull_nonmonotonic_guided_start,
9721         GOMP_loop_ull_nonmonotonic_dynamic_next,
9722         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
9723         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
9724         functions.
9725         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
9726         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
9727         Use gomp_map_val function.
9728         (gomp_target_fallback_firstprivate): New static function.
9729         (GOMP_target_41): Renamed to ...
9730         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
9731         arguments.  Move firstprivate fallback handling into a new
9732         function.
9733         (GOMP_target_data_41): Renamed to ...
9734         (GOMP_target_data_ext): ... this.
9735         (GOMP_target_update_41): Renamed to ...
9736         (GOMP_target_update_ext): ... this.
9737         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
9738         gomp_map_0len_lookup instead of gomp_map_lookup.
9739         (omp_target_is_present): Use gomp_map_0len_lookup instead of
9740         gomp_map_lookup.
9741         * testsuite/libgomp.c/target-28.c: Likewise.
9742         * testsuite/libgomp.c/monotonic-1.c: New test.
9743         * testsuite/libgomp.c/monotonic-2.c: New test.
9744         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
9745         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
9746         * testsuite/libgomp.c/pr66199-5.c: New test.
9747         * testsuite/libgomp.c/pr66199-6.c: New test.
9748         * testsuite/libgomp.c/pr66199-7.c: New test.
9749         * testsuite/libgomp.c/pr66199-8.c: New test.
9750         * testsuite/libgomp.c/pr66199-9.c: New test.
9751         * testsuite/libgomp.c/reduction-11.c: New test.
9752         * testsuite/libgomp.c/reduction-12.c: New test.
9753         * testsuite/libgomp.c/reduction-13.c: New test.
9754         * testsuite/libgomp.c/reduction-14.c: New test.
9755         * testsuite/libgomp.c/reduction-15.c: New test.
9756         * testsuite/libgomp.c/target-12.c (main): Adjust for
9757         omp_target_is_present change for one-past-last element.
9758         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
9759         the same var is both mapped and privatized.
9760         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
9761         handling of zero-length array sections.
9762         * testsuite/libgomp.c/target-28.c: New test.
9763         * testsuite/libgomp.c/target-29.c: New test.
9764         * testsuite/libgomp.c/target-30.c: New test.
9765         * testsuite/libgomp.c/target-teams-1.c: New test.
9766         * testsuite/libgomp.c++/member-6.C: New test.
9767         * testsuite/libgomp.c++/member-7.C: New test.
9768         * testsuite/libgomp.c++/monotonic-1.C: New test.
9769         * testsuite/libgomp.c++/monotonic-2.C: New test.
9770         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
9771         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
9772         * testsuite/libgomp.c++/pr66199-3.C: New test.
9773         * testsuite/libgomp.c++/pr66199-4.C: New test.
9774         * testsuite/libgomp.c++/pr66199-5.C: New test.
9775         * testsuite/libgomp.c++/pr66199-6.C: New test.
9776         * testsuite/libgomp.c++/pr66199-7.C: New test.
9777         * testsuite/libgomp.c++/pr66199-8.C: New test.
9778         * testsuite/libgomp.c++/pr66199-9.C: New test.
9779         * testsuite/libgomp.c++/reduction-11.C: New test.
9780         * testsuite/libgomp.c++/reduction-12.C: New test.
9781         * testsuite/libgomp.c++/target-13.C: New test.
9782         * testsuite/libgomp.c++/target-14.C: New test.
9783         * testsuite/libgomp.c++/target-15.C: New test.
9784         * testsuite/libgomp.c++/target-16.C: New test.
9785         * testsuite/libgomp.c++/target-17.C: New test.
9786         * testsuite/libgomp.c++/target-18.C: New test.
9787         * testsuite/libgomp.c++/target-19.C: New test.
9789 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
9791         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
9792         and reduction copy.
9793         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
9794         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
9795         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
9796         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9797         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
9798         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9799         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
9800         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
9801         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9802         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
9803         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
9804         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
9805         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
9806         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
9808 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
9810         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
9811         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
9812         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
9813         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
9814         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
9815         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
9816         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
9817         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
9819 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
9821         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
9822         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
9823         (GOMP_OFFLOAD_openacc_parallel): Likewise.
9824         * oacc-host.c (host_openacc_exec): Likewise.
9825         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
9827 2015-11-03  Julian Brown  <julian@codesourcery.com>
9828             Thomas Schwinge  <thomas@codesourcery.com>
9830         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
9831         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
9832         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
9833         Likewise.
9834         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
9835         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
9837 2015-11-03  James Norris  <jnorris@codesourcery.com>
9839         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
9840         file.
9841         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
9842         Likewise.
9843         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
9844         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
9845         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
9846         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
9847         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
9849 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
9851         * openacc.h (enum acc_device_t): Reformat. Ensure layout
9852         compatibility.
9853         (enum acc_async_t): Reformat.
9854         (acc_on_device): Declare compatible with builtin and provide C++
9855         wrapper.
9856         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
9858 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
9859             Cesar Philippidis  <cesar@codesourcery.com>
9861         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
9862         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
9863         ... this.  Add a description of the test at the top of the file.
9864         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
9865         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
9866         ... this.  Add a description of the test at the top of the file.
9868 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
9870         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
9871         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
9872         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
9873         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
9874         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
9875         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
9877 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9879         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
9880         dimensions.
9882 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
9884         PR testsuite/68063
9885         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
9887 2015-10-27  James Norris  <jnorris@codesourcery.com>
9889         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
9890         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
9892 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
9894         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
9895         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
9897         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
9898         acc_device_nvidia usage.
9899         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
9900         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
9901         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
9903         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
9904         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
9906         PR libgomp/66518
9907         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
9909         PR libgomp/65437
9910         PR libgomp/66518
9911         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
9912         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
9914 2015-10-23  Tom de Vries  <tom@codesourcery.com>
9916         PR testsuite/68063
9917         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
9919 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
9921         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
9922         vector_length.
9923         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9925 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
9926             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
9928         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
9929         to 0 when mapnum is 0.
9931 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9933         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
9934         Cast to int from int32_t.
9936 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
9937             Aldy Hernandez  <aldyh@redhat.com>
9938             Ilya Verbin  <ilya.verbin@intel.com>
9940         * config/linux/affinity.c (omp_get_place_num_procs,
9941         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
9942         * config/linux/doacross.h: New file.
9943         * config/posix/affinity.c (omp_get_place_num_procs,
9944         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
9945         * config/posix/doacross.h: New file.
9946         * env.c: Include gomp-constants.h.
9947         (struct gomp_task_icv): Rename run_sched_modifier to
9948         run_sched_chunk_size.
9949         (gomp_max_task_priority_var): New variable.
9950         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
9951         (handle_omp_display_env): Change _OPENMP value from 201307 to
9952         201511.  Print OMP_MAX_TASK_PRIORITY.
9953         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
9954         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
9955         chunk_size and run_sched_modifier to run_sched_chunk_size.
9956         (omp_get_max_task_priority, omp_get_initial_device,
9957         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
9958         omp_get_partition_place_nums): New functions.
9959         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
9960         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
9961         to chunk_size.
9962         (omp_get_num_places_, omp_get_place_num_procs_,
9963         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
9964         omp_get_place_proc_ids_8_, omp_get_place_num_,
9965         omp_get_partition_num_places_, omp_get_partition_place_nums_,
9966         omp_get_partition_place_nums_8_, omp_get_initial_device_,
9967         omp_get_max_task_priority_): New functions.
9968         * libgomp_g.h (GOMP_loop_doacross_static_start,
9969         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
9970         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
9971         GOMP_loop_ull_doacross_dynamic_start,
9972         GOMP_loop_ull_doacross_guided_start,
9973         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
9974         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
9975         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
9976         GOMP_target_data_41, GOMP_target_update_41,
9977         GOMP_target_enter_exit_data): New prototypes.
9978         (GOMP_task): Add prototype argument.
9979         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
9980         (struct gomp_doacross_work_share): New type.
9981         (struct gomp_work_share): Add doacross field.
9982         (struct gomp_task_icv): Rename run_sched_modifier to
9983         run_sched_chunk_size.
9984         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
9985         GOMP_TASK_UNDEFERRED.  Add comments.
9986         (struct gomp_task_depend_entry): Add comments.
9987         (struct gomp_task): Likewise.
9988         (struct gomp_taskgroup): Likewise.
9989         (struct gomp_target_task): New type.
9990         (struct gomp_team): Add comment.
9991         (gomp_get_place_proc_ids_8, gomp_doacross_init,
9992         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
9993         gomp_create_target_task, gomp_target_task_fn): New prototypes.
9994         (struct target_var_desc): New type.
9995         (struct target_mem_desc): Adjust comment.  Use struct
9996         target_var_desc instead of splay_tree_key for list.
9997         (REFCOUNT_INFINITY): Define.
9998         (struct splay_tree_key_s): Remove copy_from field.
9999         (struct gomp_device_descr): Add dev2dev_func field.
10000         (enum gomp_map_vars_kind): New enum.
10001         (gomp_map_vars): Add one argument.
10002         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
10003         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
10004         omp_get_place_num_procs, omp_get_place_num_procs_,
10005         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
10006         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
10007         omp_get_place_num_, omp_get_partition_num_places,
10008         omp_get_partition_num_places_, omp_get_partition_place_nums,
10009         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
10010         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
10011         omp_target_free, omp_target_is_present, omp_target_memcpy,
10012         omp_target_memcpy_rect, omp_target_associate_ptr and
10013         omp_target_disassociate_ptr.
10014         (GOMP_4.0.2): Renamed to ...
10015         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
10016         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
10017         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
10018         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
10019         GOMP_loop_doacross_static_start, GOMP_doacross_post,
10020         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
10021         GOMP_loop_ull_doacross_guided_start,
10022         GOMP_loop_ull_doacross_runtime_start,
10023         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
10024         GOMP_doacross_ull_wait.
10025         * libgomp.texi: Document omp_get_max_task_priority.
10026         Rename modifier argument to chunk_size for omp_set_schedule and
10027         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
10028         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
10029         to run_sched_chunk_size renaming.
10030         (GOMP_loop_ordered_runtime_start): Likewise.
10031         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
10032         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
10033         GOMP_parallel_loop_runtime_start): New functions.
10034         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
10035         to run_sched_chunk_size renaming.
10036         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
10037         GOMP_loop_doacross_guided_start): New functions or aliases.
10038         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
10039         run_sched_modifier to run_sched_chunk_size renaming.
10040         (GOMP_loop_ull_ordered_runtime_start): Likewise.
10041         (gomp_loop_ull_doacross_static_start,
10042         gomp_loop_ull_doacross_dynamic_start,
10043         gomp_loop_ull_doacross_guided_start,
10044         GOMP_loop_ull_doacross_runtime_start): New functions.
10045         (GOMP_loop_ull_doacross_static_start,
10046         GOMP_loop_ull_doacross_dynamic_start,
10047         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
10048         * oacc-mem.c (acc_map_data, present_create_copy,
10049         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
10050         to gomp_map_vars.
10051         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
10052         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
10053         instead of false to gomp_map_vars.
10054         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
10055         * omp.h.in (omp_lock_hint_t): New type.
10056         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
10057         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
10058         omp_get_place_num, omp_get_partition_num_places,
10059         omp_get_partition_place_nums, omp_get_initial_device,
10060         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
10061         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
10062         omp_target_associate_ptr, omp_target_disassociate_ptr): New
10063         prototypes.
10064         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
10065         (omp_lock_hint_none, omp_lock_hint_uncontended,
10066         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
10067         omp_lock_hint_speculative): New parameters.
10068         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
10069         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
10070         omp_get_place_num, omp_get_partition_num_places,
10071         omp_get_partition_place_nums, omp_get_initial_device,
10072         omp_get_max_task_priority): New interfaces.
10073         (omp_set_schedule, omp_get_schedule): Rename modifier argument
10074         to chunk_size.
10075         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
10076         (omp_lock_hint_none, omp_lock_hint_uncontended,
10077         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
10078         omp_lock_hint_speculative): New parameters.
10079         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
10080         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
10081         omp_get_place_num, omp_get_partition_num_places,
10082         omp_get_partition_place_nums, omp_get_initial_device,
10083         omp_get_max_task_priority): New functions and subroutines.
10084         * ordered.c: Include stdarg.h and string.h.
10085         (MAX_COLLAPSED_BITS): Define.
10086         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
10087         gomp_doacross_ull_init, GOMP_doacross_ull_post,
10088         GOMP_doacross_ull_wait): New functions.
10089         * target.c: Include errno.h.
10090         (resolve_device): If device is not initialized, call
10091         gomp_init_device on it.
10092         (gomp_map_lookup): New function.
10093         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
10094         Don't bump refcount if REFCOUNT_INFINITY.  Handle
10095         GOMP_MAP_ALWAYS_TO_P.
10096         (get_kind): Rename is_openacc argument to short_mapkind.
10097         (gomp_map_pointer): Use gomp_map_lookup.
10098         (gomp_map_fields_existing): New function.
10099         (gomp_map_vars): Rename is_openacc argument to short_mapkind
10100         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
10101         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
10102         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
10103         Adjust for tgt->list changed type and copy_from living in there.
10104         (gomp_copy_from_async): Adjust for tgt->list changed type and
10105         copy_from living in there.
10106         (gomp_unmap_vars): Likewise.
10107         (gomp_update): Likewise.  Rename is_openacc argument to
10108         short_mapkind.  Don't fail if object is not mapped.
10109         (gomp_load_image_to_device): Initialize refcount to
10110         REFCOUNT_INFINITY.
10111         (gomp_target_fallback): New function.
10112         (gomp_get_target_fn_addr): Likewise.
10113         (GOMP_target): Adjust gomp_map_vars caller, use
10114         gomp_get_target_fn_addr and gomp_target_fallback.
10115         (GOMP_target_41): New function.
10116         (gomp_target_data_fallback): New function.
10117         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
10118         (GOMP_target_data_41): New function.
10119         (GOMP_target_update): Adjust gomp_update caller.
10120         (GOMP_target_update_41): New function.
10121         (gomp_exit_data, GOMP_target_enter_exit_data,
10122         gomp_target_task_fn, omp_target_alloc, omp_target_free,
10123         omp_target_is_present, omp_target_memcpy,
10124         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
10125         omp_target_associate_ptr, omp_target_disassociate_ptr,
10126         gomp_load_plugin_for_device): New functions.
10127         * task.c: Include gomp-constants.h.  Include taskloop.c
10128         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
10129         (gomp_task_handle_depend): New function.
10130         (GOMP_task): Use it.  Add priority argument.  Use
10131         gomp-constant.h constants instead of hardcoded numbers.
10132         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
10133         (gomp_create_target_task): New function.
10134         (verify_children_queue, verify_taskgroup_queue,
10135         verify_task_queue): New functions.
10136         (gomp_task_run_pre): Call verify_*_queue functions.
10137         If an upcoming tied task is about to leave the sibling or
10138         taskgroup queues in an invalid state, adjust appropriately.
10139         Remove taskgroup argument.  Add comments.
10140         (gomp_task_run_post_handle_dependers): Add comments.
10141         (gomp_task_run_post_remove_parent): Likewise.
10142         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
10143         (GOMP_taskwait): Likewise.  Add comments.
10144         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
10145         problem such that the first non parent_depends_on task does not
10146         end up at the end of the children queue.
10147         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
10148         GOMP_TASK_UNDEFERRED.
10149         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
10150         * taskloop.c: New file.
10151         * testsuite/lib/libgomp.exp
10152         (check_effective_target_offload_device_nonshared_as): New proc.
10153         * testsuite/libgomp.c/affinity-2.c: New test.
10154         * testsuite/libgomp.c/doacross-1.c: New test.
10155         * testsuite/libgomp.c/doacross-2.c: New test.
10156         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
10157         Add map clause to target.
10158         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
10159         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
10160         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
10161         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
10162         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
10163         Likewise.
10164         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
10165         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
10166         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
10167         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
10168         not defined.  Use those where needed.
10169         * testsuite/libgomp.c/for-4.c: New test.
10170         * testsuite/libgomp.c/for-5.c: New test.
10171         * testsuite/libgomp.c/for-6.c: New test.
10172         * testsuite/libgomp.c/linear-1.c: New test.
10173         * testsuite/libgomp.c/ordered-4.c: New test.
10174         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
10175         only allowed on the loop iterator.
10176         * testsuite/libgomp.c/pr66199-3.c: New test.
10177         * testsuite/libgomp.c/pr66199-4.c: New test.
10178         * testsuite/libgomp.c/reduction-7.c: New test.
10179         * testsuite/libgomp.c/reduction-8.c: New test.
10180         * testsuite/libgomp.c/reduction-9.c: New test.
10181         * testsuite/libgomp.c/reduction-10.c: New test.
10182         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
10183         map(tofrom:s).
10184         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
10185         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
10186         * testsuite/libgomp.c/target-11.c: New test.
10187         * testsuite/libgomp.c/target-12.c: New test.
10188         * testsuite/libgomp.c/target-13.c: New test.
10189         * testsuite/libgomp.c/target-14.c: New test.
10190         * testsuite/libgomp.c/target-15.c: New test.
10191         * testsuite/libgomp.c/target-16.c: New test.
10192         * testsuite/libgomp.c/target-17.c: New test.
10193         * testsuite/libgomp.c/target-18.c: New test.
10194         * testsuite/libgomp.c/target-19.c: New test.
10195         * testsuite/libgomp.c/target-20.c: New test.
10196         * testsuite/libgomp.c/target-21.c: New test.
10197         * testsuite/libgomp.c/target-22.c: New test.
10198         * testsuite/libgomp.c/target-23.c: New test.
10199         * testsuite/libgomp.c/target-24.c: New test.
10200         * testsuite/libgomp.c/target-25.c: New test.
10201         * testsuite/libgomp.c/target-26.c: New test.
10202         * testsuite/libgomp.c/target-27.c: New test.
10203         * testsuite/libgomp.c/taskloop-1.c: New test.
10204         * testsuite/libgomp.c/taskloop-2.c: New test.
10205         * testsuite/libgomp.c/taskloop-3.c: New test.
10206         * testsuite/libgomp.c/taskloop-4.c: New test.
10207         * testsuite/libgomp.c++/ctor-13.C: New test.
10208         * testsuite/libgomp.c++/doacross-1.C: New test.
10209         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
10210         Replace offload_device with offload_device_nonshared_as.
10211         * testsuite/libgomp.c++/for-12.C: New test.
10212         * testsuite/libgomp.c++/for-13.C: New test.
10213         * testsuite/libgomp.c++/for-14.C: New test.
10214         * testsuite/libgomp.c++/linear-1.C: New test.
10215         * testsuite/libgomp.c++/member-1.C: New test.
10216         * testsuite/libgomp.c++/member-2.C: New test.
10217         * testsuite/libgomp.c++/member-3.C: New test.
10218         * testsuite/libgomp.c++/member-4.C: New test.
10219         * testsuite/libgomp.c++/member-5.C: New test.
10220         * testsuite/libgomp.c++/ordered-1.C: New test.
10221         * testsuite/libgomp.c++/reduction-5.C: New test.
10222         * testsuite/libgomp.c++/reduction-6.C: New test.
10223         * testsuite/libgomp.c++/reduction-7.C: New test.
10224         * testsuite/libgomp.c++/reduction-8.C: New test.
10225         * testsuite/libgomp.c++/reduction-9.C: New test.
10226         * testsuite/libgomp.c++/reduction-10.C: New test.
10227         * testsuite/libgomp.c++/reference-1.C: New test.
10228         * testsuite/libgomp.c++/simd14.C: New test.
10229         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
10230         * testsuite/libgomp.c++/target-5.C: New test.
10231         * testsuite/libgomp.c++/target-6.C: New test.
10232         * testsuite/libgomp.c++/target-7.C: New test.
10233         * testsuite/libgomp.c++/target-8.C: New test.
10234         * testsuite/libgomp.c++/target-9.C: New test.
10235         * testsuite/libgomp.c++/target-10.C: New test.
10236         * testsuite/libgomp.c++/target-11.C: New test.
10237         * testsuite/libgomp.c++/target-12.C: New test.
10238         * testsuite/libgomp.c++/taskloop-1.C: New test.
10239         * testsuite/libgomp.c++/taskloop-2.C: New test.
10240         * testsuite/libgomp.c++/taskloop-3.C: New test.
10241         * testsuite/libgomp.c++/taskloop-4.C: New test.
10242         * testsuite/libgomp.c++/taskloop-5.C: New test.
10243         * testsuite/libgomp.c++/taskloop-6.C: New test.
10244         * testsuite/libgomp.c++/taskloop-7.C: New test.
10245         * testsuite/libgomp.c++/taskloop-8.C: New test.
10246         * testsuite/libgomp.c++/taskloop-9.C: New test.
10247         * testsuite/libgomp.fortran/affinity1.f90: New test.
10248         * testsuite/libgomp.fortran/affinity2.f90: New test.
10250 2015-10-13  Tom de Vries  <tom@codesourcery.com>
10252         PR tree-optimization/67476
10253         * testsuite/libgomp.c/autopar-3.c: New test.
10254         * testsuite/libgomp.c/autopar-4.c: New test.
10255         * testsuite/libgomp.c/autopar-5.c: New test.
10256         * testsuite/libgomp.c/autopar-6.c: New test.
10257         * testsuite/libgomp.c/autopar-7.c: New test.
10258         * testsuite/libgomp.c/autopar-8.c: New test.
10260 2015-10-12  James Norris  <jnorris@codesourcery.com>
10262         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
10263         initializer.
10265 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
10267         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
10268         using load_gcc_lib.
10270 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
10272         * oacc-ptx.h: Remove file, moving its content into...
10273         * config/nvptx/fortran.c: ... here...
10274         * config/nvptx/oacc-init.c: ..., here...
10275         * config/nvptx/oacc-parallel.c: ..., and here.
10276         * config/nvptx/openacc.f90: New file.
10277         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
10278         (link_ptx): Don't link in predefined bits of PTX code.
10280 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
10281             Bernd Schmidt <bernds@codesourcery.com>
10283         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
10284         (struct targ_ptx_obj): New.
10285         (nvptx_tdata): Move earlier, change data format.
10286         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
10287         objects.
10288         (GOMP_OFFLOAD_load_image): Adjust.
10290 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
10292         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
10293         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
10294         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
10295         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
10296         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10297         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10298         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10299         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10300         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10301         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10302         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10303         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
10304         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
10305         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10306         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
10307         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
10308         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
10309         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
10310         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
10311         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
10312         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
10313         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10314         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
10315         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
10316         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
10317         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
10318         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
10319         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
10320         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
10321         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
10322         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
10323         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
10324         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
10325         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
10326         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10327         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
10328         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
10329         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
10330         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
10331         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
10332         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
10333         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
10334         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
10335         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
10336         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
10337         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
10338         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
10339         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
10340         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
10341         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
10342         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
10343         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
10344         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
10345         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
10346         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
10347         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10348         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10349         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10350         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10351         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10352         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10353         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10354         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10356 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
10358         * oacc-init.c (acc_on_device): Force optimization level.
10360 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
10362         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
10363         (cuda_errlist): Delete.
10364         (cuda_error): Reimplement.
10366 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
10368         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
10369         array.
10370         * libgomp.map (GOACC_parallel_keyed): New.
10371         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
10372         all callers.
10373         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
10374         and take keyed varargs list.  Adjust call to exec_func.
10375         (GOACC_parallel): Force host fallback.
10376         * libgomp_g.h (GOACC_parallel): Remove.
10377         (GOACC_parallel_keyed): Declare.
10378         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
10379         (struct targ_gn_descriptor): Replace name field with launch field.
10380         (nvptx_exec): Lose separate geometry args, take array.  Process
10381         dynamic dimensions and adjust.
10382         (struct nvptx_tdata): Replace fn_names field with fn_descs.
10383         (GOMP_OFFLOAD_load_image): Adjust for change in function table
10384         data.
10385         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
10386         passing.
10387         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
10388         passing.
10390 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
10392         PR libgomp/67141
10393         * oacc-int.h (goacc_host_init): Add declaration.
10394         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
10395         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
10397 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
10398             Sebastian Pop  <s.pop@samsung.com>
10400         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
10401         match o/p.
10402         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
10403         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
10404         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
10405         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
10406         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
10408 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
10410         * configure.tgt: Add missing ;; in between nvptx and rtems
10411         snippets.
10413 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10415         * config/posix/pool.h (gomp_adjust_thread_attr): New.
10416         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
10417         (gomp_thread_pool_reservoir): Add priority member.
10418         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
10419         priority.
10420         (parse_thread_pools): Likewise.
10421         * team.c (gomp_team_start): Call configuration provided
10422         gomp_adjust_thread_attr(). Destroy thread attributes if
10423         necessary.
10424         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
10426 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10428         * config/posix/pool.h: New.
10429         * config/rtems/pool.h: Likewise.
10430         * config/rtems/proc.c: Likewise.
10431         * libgomp.h (gomp_thread_destructor): Declare.
10432         * team.c: Include configuration provided "pool.h".
10433         (gomp_get_thread_pool): Define in configuration.
10434         (gomp_team_end): Call configuration defined
10435         gomp_release_thread_pool().
10437 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10439         * config/rtems/bar.c: New.
10440         * config/rtems/bar.h: Likewise.
10441         * config/rtems/mutex.c: Likewise.
10442         * config/rtems/mutex.h: Likewise.
10443         * config/rtems/sem.c: Likewise.
10444         * config/rtems/sem.h: Likewise.
10445         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
10446         <sys/lock.h> header file.
10447         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
10448         supported by Newlib.
10449         * configure: Regenerate.
10451 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10453         * team.c (gomp_new_thread_pool): Delete and move content to ...
10454         (gomp_get_thread_pool): ... new function.  Allocate and
10455         initialize thread pool on demand.
10456         (get_last_team): Use gomp_get_thread_pool().
10457         (gomp_team_start): Delete thread pool initialization.
10459 2015-09-03  Tom de Vries  <tom@codesourcery.com>
10461         PR tree-optimization/65637
10462         * testsuite/libgomp.c/autopar-2.c: New test.
10464 2015-08-29  Tom de Vries  <tom@codesourcery.com>
10466         PR tree-optimization/46193
10467         * testsuite/libgomp.c/pr46193.c: New test.
10469 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
10471         libgomp/
10472         * libgomp.map: Add 4.0.2 version.
10473         * target.c (offload_image_descr): Add version field.
10474         (gomp_load_image_to_device): Add version argument.  Adjust plugin
10475         call.  Improve load mismatch diagnostic.
10476         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
10477         call.
10478         (GOMP_offload_regster): Make stub function, move bulk to ...
10479         (GOMP_offload_register_ver): ... here.  Process version argument.
10480         (GOMP_offload_unregister): Make stub function, move bulk to ...
10481         (GOMP_offload_unregister_ver): ... here.  Process version argument.
10482         (gomp_init_device): Process version field.
10483         (gomp_unload_device): Process version field.
10484         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
10485         macros.  Check plugin version.
10486         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
10487         loader and unloader types.
10488         * oacc-host.c: Include gomp-constants.h.
10489         (host_version): New.
10490         (host_load_image, host_unload_image): Adjust.
10491         (host_dispatch): Add host_version.
10492         * plugin/plugin-nvptx.c: Include gomp-constants.h.
10493         (GOMP_OFFLOAD_version): New.
10494         (GOMP_OFFLOAD_load_image): Add version arg and check it.
10495         (GOMP_OFFLOAD_unload_image): Likewise.
10496         * plugin/plugin-host.c: Include gomp-constants.h.
10497         (GOMP_OFFLOAD_version): New.
10498         (GOMP_OFFLOAD_load_image): Add version arg.
10499         (GOMP_OFFLOAD_unload_image): Likewise.
10501 2015-08-24  Tom de Vries  <tom@codesourcery.com>
10503         PR tree-optimization/65468
10504         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
10506 2015-08-24  Tom de Vries  <tom@codesourcery.com>
10508         PR tree-optimization/65468
10509         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
10511 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
10513         PR libgomp/66761
10514         PR libgomp/67303
10515         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
10516         (gomp_iter_guided_next): Idem.
10517         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
10518         (gomp_iter_ull_guided_next): Idem.
10519         * config/linux/wait.h (do_spin): Idem.
10521 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
10523         * libgomp-plugin.h (enum offload_target_type): Remove
10524         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
10525         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
10526         * openacc.h (enum acc_device_t): Likewise.
10527         * openacc_lib.h: Likewise.
10528         * oacc-init.c (name_of_acc_device_t): Don't handle it.
10529         (acc_on_device): Just use __builtin_acc_on_device.
10530         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
10531         of acc_on_device builtin.
10532         * plugin/plugin-host.h: Remove file.
10533         * plugin/plugin-host.c: Likewise, but salvage some content into...
10534         * oacc-host.c: ... this file.
10535         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
10536         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
10537         * Makefile.in: Regenerate.
10538         * configure: Likewise.
10539         * testsuite/lib/libgomp.exp
10540         (check_effective_target_openacc_host_nonshm_selected): Remove.
10541         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
10542         ACC_DEVICE_TYPE=host_nonshm.
10543         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10544         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10545         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
10546         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
10547         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
10548         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
10550 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
10551             Jakub Jelinek  <jakub@redhat.com>
10553         * config/nvptx/affinity.c: New file.
10554         * config/nvptx/alloc.c: Likewise.
10555         * config/nvptx/bar.c: Likewise.
10556         * config/nvptx/barrier.c: Likewise.
10557         * config/nvptx/critical.c: Likewise.
10558         * config/nvptx/env.c: Likewise.
10559         * config/nvptx/error.c: Likewise.
10560         * config/nvptx/fortran.c: Likewise.
10561         * config/nvptx/iter.c: Likewise.
10562         * config/nvptx/iter_ull.c: Likewise.
10563         * config/nvptx/libgomp-plugin.c: Likewise.
10564         * config/nvptx/lock.c: Likewise.
10565         * config/nvptx/loop.c: Likewise.
10566         * config/nvptx/loop_ull.c: Likewise.
10567         * config/nvptx/mutex.c: Likewise.
10568         * config/nvptx/oacc-async.c: Likewise.
10569         * config/nvptx/oacc-cuda.c: Likewise.
10570         * config/nvptx/oacc-host.c: Likewise.
10571         * config/nvptx/oacc-init.c: Likewise.
10572         * config/nvptx/oacc-mem.c: Likewise.
10573         * config/nvptx/oacc-parallel.c: Likewise.
10574         * config/nvptx/oacc-plugin.c: Likewise.
10575         * config/nvptx/omp-lock.h: Likewise.
10576         * config/nvptx/ordered.c: Likewise.
10577         * config/nvptx/parallel.c: Likewise.
10578         * config/nvptx/proc.c: Likewise.
10579         * config/nvptx/ptrlock.c: Likewise.
10580         * config/nvptx/sections.c: Likewise.
10581         * config/nvptx/sem.c: Likewise.
10582         * config/nvptx/single.c: Likewise.
10583         * config/nvptx/splay-tree.c: Likewise.
10584         * config/nvptx/target.c: Likewise.
10585         * config/nvptx/task.c: Likewise.
10586         * config/nvptx/team.c: Likewise.
10587         * config/nvptx/time.c: Likewise.
10588         * config/nvptx/work.c: Likewise.
10589         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
10590         * configure: Regenerate.
10591         * configure.tgt (config_path): Set to "nvptx" for target
10592         nvptx*-*-*.
10594 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
10596         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
10598 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
10600         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
10601         (cuda_errlist): Constify.
10602         (errmsg):  Move into ...
10603         (cuda_error): ... here.  Make smaller.
10604         (_XSTR, _STR): Delete.
10605         (cuda_synames): Delete.
10606         (verify_device_library): Delete.
10607         (nvptx_init): Don't call it.
10609 2015-07-28  Tom de Vries  <tom@codesourcery.com>
10611         * testsuite/libgomp.c/uns-outer-4.c: New test.
10613 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
10615         * testsuite/libgomp.c/pr66714.c: New test.
10617 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10619         PR libgomp/66950
10620         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
10621         (fib_ref): New function.
10622         (fib): Correct corner cases in the recursion.
10623         (main): Replace the non-simd loop with fib_ref call.
10624         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
10625         subroutine.
10626         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
10627         for the last array element value.  Replace the non-simd loop with
10628         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
10629         of the last array element with according Fibonacci sequence element.
10630         (fib): Correct corner cases in the recursion.
10632 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
10634         * target.c (gomp_offload_image_to_device): Rename to ...
10635         (gomp_load_image_to_device): ... here.
10636         (GOMP_offload_register): Adjust call.
10637         (gomp_init_device): Likewise.
10638         (gomp_unload_image_from_device): New.  Broken out of ...
10639         (GOMP_offload_unregister): ... here.  Call it.
10640         (gomp_unload_device): New.
10641         * libgomp.h (gomp_unload_device): Declare.
10642         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
10643         mem maps.
10645 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
10647         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
10648         wait=-specific if.
10649         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
10650         !=0 condition.
10651         (goacc_waits): Move !num_waits handling to ...
10652         (GOACC_wait): ... here, the only caller that might have zero waits.
10654         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
10655         (struct ptx_image_data): Move earlier, add fns field.
10656         (struct ptx_device): Add images and image_lock fields.
10657         (ptx_images, ptx_image_lock): Delete.
10658         (nvptx_open_device): Initialize images and image_lock fields.
10659         (nvptx_close_device): Destroy image_lock.
10660         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
10661         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
10662         fields.
10664 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
10666         * target.c (GOMP_offload_register): Use int for device type arg.
10667         (GOMP_offload_unregister): Likewise.
10669         * target.c (struct_offload_image_descr): Constify host_table.
10670         (gomp_offload_image_to_device): Likewise.
10671         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
10673         * libgomp.h (gomp_device_descr): Constify target data arguments.
10674         * target.c (struct offload_image_descr): Constify target_data.
10675         (gomp_offload_image_to_device): Likewise.
10676         (GOMP_offload_register): Likewise.
10677         (GOMP_offload_unregister): Likewise.
10678         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
10679         GOMP_OFFLOAD_unload_image): Constify target data.
10680         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
10681         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
10683 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
10685         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
10686         Workaround driver library const error.
10687         (struct nvptx_tdata, nvptx_tdata_t): New.
10688         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
10689         type.
10691 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10693         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
10694         of EPS parameter from integer to real.
10695         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
10696         type of EPS parameter from integer to real.
10698 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10700         * team.c (get_last_team): New.
10701         (gomp_new_team): Recycle last non-nested team if possible.
10702         (gomp_team_end): Move team work share list free lock destruction
10703         to ...
10704         (free_team): ... here.
10706 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10708         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
10709         and ref from int to double.  Replaced their comparison with
10710         an inequality of their difference and EPS.
10711         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
10712         comparison of pri and a reference number with an inequality of their
10713         difference and EPS.
10714         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
10715         the comparison of sum and sum_ref with an inequality of their
10716         difference and EPS.
10717         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
10718         the comparison of pri and a reference number with an inequality of
10719         their difference and EPS.
10721 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10723         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
10724         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
10725         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
10726         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
10727         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
10728         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
10729         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
10730         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
10731         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
10732         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
10733         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
10734         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
10735         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
10736         variables.
10737         (vec_mult): Likewise.  Add #pragma omp taskwait.
10738         (main): Adjust caller.
10739         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
10740         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
10741         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
10742         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
10743         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
10744         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
10745         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
10746         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
10747         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
10748         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
10749         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
10750         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
10751         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
10752         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
10753         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
10754         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
10755         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
10756         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
10757         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
10758         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
10759         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
10760         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
10761         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
10762         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
10763         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
10764         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
10765         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
10766         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
10767         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
10768         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
10769         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
10770         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
10771         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
10772         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
10773         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
10774         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
10775         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
10776         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
10777         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
10778         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
10779         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
10780         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
10781         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
10782         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
10783         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
10784         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
10785         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
10786         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
10787         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
10788         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
10789         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
10790         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
10791         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
10792         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
10793         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
10794         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
10795         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
10796         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
10797         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
10798         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
10799         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
10800         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
10801         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
10802         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
10803         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
10804         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
10805         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
10806         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
10807         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
10808         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
10809         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
10810         (vec_mult): Add !$omp taskwait.
10811         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
10812         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
10813         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
10814         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
10815         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
10816         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
10817         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
10818         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
10819         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
10820         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
10821         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
10822         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
10823         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
10824         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
10825         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
10826         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
10827         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
10828         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
10829         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
10830         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
10831         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
10832         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
10833         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
10834         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
10835         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
10836         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
10837         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
10838         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
10839         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
10840         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
10841         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
10842         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
10843         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
10844         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
10845         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
10846         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
10847         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
10848         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
10849         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
10850         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
10851         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
10852         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
10853         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
10854         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
10855         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
10856         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
10857         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
10858         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
10859         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
10860         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
10861         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
10862         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
10863         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
10864         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
10865         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
10866         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
10867         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
10868         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
10869         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
10870         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
10871         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
10872         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
10873         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
10874         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
10875         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
10876         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
10877         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
10879 2015-07-10  Tom de Vries  <tom@codesourcery.com>
10881         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
10882         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
10884 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
10886         PR libgomp/65099
10887         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
10888         in a 64-bit configuration.
10889         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
10890         offloading testing if no such device is available.
10891         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10892         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10894 2015-07-08  Tom de Vries  <tom@codesourcery.com>
10896         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
10897         second call to f.
10898         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10900 2015-07-07  Tom de Vries  <tom@codesourcery.com>
10902         PR tree-optimization/66642
10903         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
10904         iteration count case.
10905         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
10906         function, factor out of ...
10907         (main): ... here.  Test low iteration count case.
10909 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10911         * libgomp.h (gomp_thread_pool): Comment last_team field.
10913 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
10915         * testsuite/libgomp.c++/pr66702-1.C: Require
10916         vect_simd_clones effective target.
10917         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
10919 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10921         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
10922         already set.  Use DEFAULT_CFLAGS in dg-runtest.
10923         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
10924         "-O2".
10926 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10928         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
10929         already set.  Use DEFAULT_CFLAGS in dg-runtest.
10930         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
10931         * testsuite/libgomp.c++/pr64824.C: Same.
10932         * testsuite/libgomp.c++/pr64868.C: Same.
10933         * testsuite/libgomp.c++/pr66199-1.C: Same.
10934         * testsuite/libgomp.c++/pr66199-2.C: Same.
10935         * testsuite/libgomp.c++/target-2.C: Same.
10936         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
10937         -std=<standard> option.
10938         * testsuite/libgomp.c++/udr-11.C: Same.
10939         * testsuite/libgomp.c++/udr-12.C: Same.
10940         * testsuite/libgomp.c++/udr-13.C: Same.
10941         * testsuite/libgomp.c++/udr-14.C: Same.
10942         * testsuite/libgomp.c++/udr-15.C: Same.
10943         * testsuite/libgomp.c++/udr-16.C: Same.
10944         * testsuite/libgomp.c++/udr-17.C: Same.
10945         * testsuite/libgomp.c++/udr-18.C: Same.
10946         * testsuite/libgomp.c++/udr-19.C: Same.
10947         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
10948         * testsuite/libgomp.c++/simd-1.C: Same.
10949         * testsuite/libgomp.c++/simd-2.C: Same.
10950         * testsuite/libgomp.c++/simd-3.C: Same.
10951         * testsuite/libgomp.c++/simd-4.C: Same.
10952         * testsuite/libgomp.c++/simd-5.C: Same.
10953         * testsuite/libgomp.c++/simd-6.C: Same.
10954         * testsuite/libgomp.c++/simd-7.C: Same.
10955         * testsuite/libgomp.c++/simd-8.C: Same.
10956         * testsuite/libgomp.c++/simd-9.C: Same.
10957         * testsuite/libgomp.c++/simd10.C: Same.
10958         * testsuite/libgomp.c++/simd11.C: Same.
10959         * testsuite/libgomp.c++/simd12.C: Same.
10960         * testsuite/libgomp.c++/simd13.C: Same.
10962 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
10964         PR middle-end/66702
10965         * testsuite/libgomp.c++/pr66702-1.C: New test.
10966         * testsuite/libgomp.c++/pr66702-2.C: New test.
10968 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10970         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
10971         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
10972         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
10973         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
10975 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10977         PR tree-optimization/66652
10978         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
10979         using restrict pointers.
10980         (main): Add arguments to calls to f.
10981         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10983 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
10985         * configure.ac: Fix check for header <sys/sysctl.h>.
10986         * configure: Regenerate.
10987         * config.h.in: Likewise.
10989 2015-06-23  Tom de Vries  <tom@codesourcery.com>
10991         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
10992         abort.
10993         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
10995 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
10997         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
10998         acc_device_nvidia.
11000         PR libgomp/66518
11001         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
11002         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11004 2015-06-15  Tom de Vries  <tom@codesourcery.com>
11006         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
11007         dg-additional-options for any remaining options.
11008         * testsuite/libgomp.c/atomic-2.c: Same.
11009         * testsuite/libgomp.c/atomic-4.c: Same.
11010         * testsuite/libgomp.c/atomic-5.c: Same.
11011         * testsuite/libgomp.c/atomic-6.c: Same.
11012         * testsuite/libgomp.c/autopar-1.c: Same.
11013         * testsuite/libgomp.c/copyin-1.c: Same.
11014         * testsuite/libgomp.c/copyin-2.c: Same.
11015         * testsuite/libgomp.c/copyin-3.c: Same.
11016         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
11017         * testsuite/libgomp.c/nestedfn-5.c: Same.
11018         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
11019         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
11020         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
11021         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
11022         * testsuite/libgomp.c/pr32362-1.c: Same.
11023         * testsuite/libgomp.c/pr32362-2.c: Same.
11024         * testsuite/libgomp.c/pr32362-3.c: Same.
11025         * testsuite/libgomp.c/pr39591-1.c: Same.
11026         * testsuite/libgomp.c/pr39591-2.c: Same.
11027         * testsuite/libgomp.c/pr39591-3.c: Same.
11028         * testsuite/libgomp.c/pr58392.c: Same.
11029         * testsuite/libgomp.c/pr58756.c: Same.
11030         * testsuite/libgomp.c/simd-1.c: Same.
11031         * testsuite/libgomp.c/simd-10.c: Same.
11032         * testsuite/libgomp.c/simd-11.c: Same.
11033         * testsuite/libgomp.c/simd-12.c: Same.
11034         * testsuite/libgomp.c/simd-13.c: Same.
11035         * testsuite/libgomp.c/simd-14.c: Same.
11036         * testsuite/libgomp.c/simd-15.c: Same.
11037         * testsuite/libgomp.c/simd-2.c: Same.
11038         * testsuite/libgomp.c/simd-3.c: Same.
11039         * testsuite/libgomp.c/simd-4.c: Same.
11040         * testsuite/libgomp.c/simd-5.c: Same.
11041         * testsuite/libgomp.c/simd-6.c: Same.
11042         * testsuite/libgomp.c/simd-7.c: Same.
11043         * testsuite/libgomp.c/simd-8.c: Same.
11044         * testsuite/libgomp.c/simd-9.c: Same.
11046 2015-06-15  Tom de Vries  <tom@codesourcery.com>
11048         * testsuite/libgomp.c/pr35625.c: Fix typo.
11050 2015-06-15  Tom de Vries  <tom@codesourcery.com>
11052         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
11053         in dg-options.
11054         * testsuite/libgomp.c/atomic-3.c: Same.
11055         * testsuite/libgomp.c/debug-1.c: Same.
11056         * testsuite/libgomp.c/nqueens-1.c: Same.
11057         * testsuite/libgomp.c/pr26171.c: Same.
11058         * testsuite/libgomp.c/pr48591.c: Same.
11059         * testsuite/libgomp.c/pr64824.c: Same.
11060         * testsuite/libgomp.c/pr64868.c: Same.
11061         * testsuite/libgomp.c/pr66133.c: Same.
11062         * testsuite/libgomp.c/pr66199-1.c: Same.
11063         * testsuite/libgomp.c/pr66199-2.c: Same.
11064         * testsuite/libgomp.c/target-8.c: Same.
11066 2015-06-15  Tom de Vries  <tom@codesourcery.com>
11068         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
11069         -std={gnu99,c99}.
11070         * testsuite/libgomp.c/for-1.c: Same.
11071         * testsuite/libgomp.c/for-2.c: Same.
11072         * testsuite/libgomp.c/for-3.c: Same.
11073         * testsuite/libgomp.c/pr35625.c: Same.
11074         * testsuite/libgomp.c/pr39154.c: Same.
11075         * testsuite/libgomp.c/simd-16.c: Same.
11076         * testsuite/libgomp.c/simd-17.c: Same.
11078 2015-06-13  Tom de Vries  <tom@codesourcery.com>
11080         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
11082 2015-06-13  Tom de Vries  <tom@codesourcery.com>
11084         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
11085         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
11086         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
11087         (N): Define.
11088         (main): Use N instead of hardcoded constants.
11090 2015-06-05  Tom de Vries  <tom@codesourcery.com>
11092         merge from gomp4 branch:
11093         2015-05-28  Tom de Vries  <tom@codesourcery.com>
11095         PR tree-optimization/65443
11096         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
11097         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
11098         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
11100 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11102         * testsuite/libgomp.graphite/bounds.c: Adjust for
11103         cleanup-tree-dump removal.
11104         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
11105         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
11106         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
11107         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
11108         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
11109         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
11110         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
11111         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
11112         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
11113         * testsuite/libgomp.graphite/pr41118.c: Likewise.
11115 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
11117         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
11118         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
11119         (futex_wake) [!__x86_64__]: Ditto.
11121 2015-05-28  Julian Brown  <julian@codesourcery.com>
11123         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
11124         function comment. Only call gomp_fatal if new argument is true.
11125         (acc_dev_num_out_of_range): New function.
11126         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
11127         acc_dev_num_out_of_range as appropriate.
11128         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
11129         (acc_get_device_num, acc_set_device_num): Update calls to
11130         resolve_device.
11131         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
11132         output.
11134 2015-05-28  Julian Brown  <julian@codesourcery.com>
11136         PR libgomp/65742
11137         * oacc-init.c (plugin/plugin-host.h): Include.
11138         (acc_on_device): Check whether we're in an offloaded region for
11139         host_nonshm
11140         plugin. Don't use __builtin_acc_on_device.
11141         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
11142         nonshm_exec flag in thread-local data.
11143         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
11144         data for host_nonshm plugin.
11145         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
11146         for host_nonshm plugin.
11147         * plugin/plugin-host.h: New.
11149 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
11151         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
11153 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
11155         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
11156         Declare as int.
11157         (FUTEX_PRIVATE_FLAG): Remove L suffix.
11158         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
11159         Declare as int.
11161 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
11163         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
11165 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
11167         * target.c (gomp_map_pointer): New function abstracting out
11168         GOMP_MAP_POINTER handling.
11169         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
11170         gomp_map_pointer().
11172 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
11174         PR middle-end/66199
11175         * testsuite/libgomp.c/pr66199-1.c: New test.
11176         * testsuite/libgomp.c/pr66199-2.c: New test.
11177         * testsuite/libgomp.c++/pr66199-1.C: New test.
11178         * testsuite/libgomp.c++/pr66199-2.C: New test.
11179         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
11180         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
11182 2015-05-19  Julian Brown  <julian@codesourcery.com>
11184         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
11185         on cuInit failure.
11187 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
11189         PR middle-end/66133
11190         * testsuite/libgomp.c/pr66133.c: New test.
11192 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
11194         * Makefile.in: Regenerated with automake-1.11.6.
11195         * aclocal.m4: Likewise.
11196         * config.h.in: Likewise.
11197         * configure: Likewise.
11198         * testsuite/Makefile.in: Likewise.
11200 2015-05-08  Jason Merrill  <jason@redhat.com>
11202         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
11203         _Complex.
11205         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
11207 2015-05-06  Julian Brown  <julian@codesourcery.com>
11209         * oacc-init.c (acc_device_lock): Add explanatory comment.
11210         (resolve_device): Add comment about locking requirement.
11211         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
11212         gomp_init_device and gomp_fini_device calls.
11213         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
11214         (acc_get_device_num, acc_set_device_num): Add locking around
11215         resolve_device and gomp_init_device calls.
11217 2015-05-06  Julian Brown  <julian@codesourcery.com>
11219         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
11220         goacc_thread_lock on error paths.
11221         * oacc-mem.c (lookup_host): Remove locking from function. Note
11222         locking requirement for caller in function comment.
11223         (lookup_dev): Likewise.
11224         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
11225         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
11226         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
11227         Add locking.
11229 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
11231         PR testsuite/65205
11232         PR libgomp/65993
11233         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
11234         don't expect "0x" prefix for "%p" format specifier, don't expect
11235         "(nil)" for NULL pointer.
11236         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11237         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11238         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11239         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11240         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11241         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11242         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11243         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11244         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11245         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11246         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11247         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11248         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11249         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11250         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11251         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11252         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11253         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11254         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11255         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11256         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11257         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11258         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11259         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11260         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11261         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11262         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11263         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11264         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
11265         accurately specify what we're looking for.
11266         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11267         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11268         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11269         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11270         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11272 2015-04-30  James Norris  <jnorris@codesourcery.com>
11274         PR testsuite/65205
11275         * testsuite/lib/libgomp.exp
11276         (check_effective_target_openacc_host_selected)
11277         (check_effective_target_openacc_host_nonshm_selected): New
11278         procedures.
11279         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
11280         dg-shouldfail.
11281         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11282         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11283         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11284         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11285         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11286         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11287         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11288         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11289         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11290         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11291         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11292         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11293         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11294         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11295         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11296         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11297         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11298         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11299         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11300         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11301         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11302         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11303         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11304         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11305         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11306         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11307         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11308         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11309         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11310         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11311         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11312         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11313         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11314         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11315         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11316         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11317         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11318         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11319         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11320         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11321         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11322         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11323         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11325 2015-04-08  Julian Brown  <julian@codesourcery.com>
11327         * libgomp.h (target_mem_desc: Remove mem_map field.
11328         (acc_dispatch_t): Remove open_device_func, close_device_func,
11329         get_device_num_func, set_device_num_func, target_data members.
11330         Change create_thread_data_func argument to device number instead of
11331         generic pointer.
11332         * oacc-async.c (assert.h): Include.
11333         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
11334         (acc_wait_all, acc_wait_all_async): Use current host thread's
11335         active device, not base_dev.
11336         * oacc-cuda.c (acc_get_current_cuda_device)
11337         (acc_get_current_cuda_context, acc_get_cuda_stream)
11338         (acc_set_cuda_stream): Likewise.
11339         * oacc-host.c (host_dispatch): Don't set open_device_func,
11340         close_device_func, get_device_num_func or set_device_num_func.
11341         * oacc-init.c (base_dev, init_key): Remove.
11342         (cached_base_dev): New.
11343         (name_of_acc_device_t): New.
11344         (acc_init_1): Initialise default-numbered device, not zeroth.
11345         (acc_shutdown_1): Close all devices of a given type.
11346         (goacc_destroy_thread): Don't use base_dev.
11347         (lazy_open, lazy_init, lazy_init_and_open): Remove.
11348         (goacc_attach_host_thread_to_device): New.
11349         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
11350         (acc_get_num_devices): Don't use base_dev.
11351         (acc_set_device_type): Reimplement.
11352         (acc_get_device_type): Don't use base_dev.
11353         (acc_get_device_num): Tweak logic.
11354         (acc_set_device_num): Likewise.
11355         (acc_on_device): Use acc_get_device_type.
11356         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
11357         (goacc_lazy_initialize): Reimplement with acc_init and
11358         goacc_attach_host_thread_to_device.
11359         * oacc-int.h (goacc_thread): Add base_dev field.
11360         (base_dev): Remove extern declaration.
11361         (goacc_attach_host_thread_to_device): Add prototype.
11362         * oacc-mem.c (acc_malloc): Use current thread's device instead of
11363         base_dev.
11364         (acc_free): Likewise.
11365         (acc_memcpy_to_device): Likewise.
11366         (acc_memcpy_from_device): Likewise.
11367         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
11368         goacc_lazy_initialize (throughout).
11369         (GOACC_parallel): Use tgt_offset to locate target functions.
11370         * target.c (gomp_map_vars): Don't set tgt->mem_map.
11371         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
11372         (gomp_load_plugin_for_device): Remove open_device, close_device,
11373         get_device_num, set_device_num openacc hook initialisation. Don't set
11374         openacc.target_data.
11375         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
11376         (GOMP_OFFLOAD_openacc_close_device)
11377         (GOMP_OFFLOAD_openacc_get_device_num)
11378         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
11379         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
11380         to int.
11381         * plugin/plugin-nvptx.c (ptx_inited): Remove.
11382         (instantiated_devices, ptx_dev_lock): New.
11383         (struct ptx_image_data): New.
11384         (ptx_devices, ptx_images, ptx_image_lock): New.
11385         (fini_streams_for_device): Reorder cuStreamDestroy call.
11386         (nvptx_get_num_devices): Remove forward declaration.
11387         (nvptx_init): Change return type to bool.
11388         (nvptx_fini): Remove.
11389         (nvptx_attach_host_thread_to_device): New.
11390         (nvptx_open_device): Return struct ptx_device* instead of void*.
11391         (nvptx_close_device): Change argument type to struct ptx_device*,
11392         return type to void.
11393         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
11394         (kernel_target_data, kernel_host_table): Remove static globals.
11395         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
11396         (GOMP_OFFLOAD_init_device): Reimplement.
11397         (GOMP_OFFLOAD_fini_device): Likewise.
11398         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
11399         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
11400         (GOMP_OFFLOAD_host2dev): Use ORD argument.
11401         (GOMP_OFFLOAD_openacc_open_device)
11402         (GOMP_OFFLOAD_openacc_close_device)
11403         (GOMP_OFFLOAD_openacc_set_device_num)
11404         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
11405         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
11406         (device number).
11408         testsuite/
11409         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
11411 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
11413         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
11414         * libgomp.h (struct gomp_memory_mapping): Remove.
11415         (struct target_mem_desc): Change type of mem_map from
11416         gomp_memory_mapping * to splay_tree_s *.
11417         (struct gomp_device_descr): Remove register_image_func, get_table_func.
11418         Add load_image_func, unload_image_func.
11419         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
11420         Remove offload_regions_registered.
11421         (gomp_init_tables): Remove.
11422         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
11423         to splay_tree_s *.
11424         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
11425         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
11426         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
11427         offload_regions_registered.
11428         Initialize load_image_func, unload_image_func, mem_map.root.
11429         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
11430         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
11431         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
11432         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
11433         gomp_memory_mapping *.  Use dev's lock and splay_tree.
11434         (lookup_dev): Use dev's lock.
11435         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
11436         (acc_is_present): Likewise.
11437         (acc_map_data): Likewise.
11438         (acc_unmap_data): Likewise.  Use dev's lock.
11439         (present_create_copy): Likewise.
11440         (delete_copyout): Pass dev to lookup_host instead of mem_map.
11441         (update_dev_host): Likewise.
11442         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
11443         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
11444         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
11445         (GOMP_OFFLOAD_get_table): Remove
11446         (GOMP_OFFLOAD_load_image): New function.
11447         (GOMP_OFFLOAD_unload_image): New function.
11448         * target.c (register_lock): New mutex for offload image registration.
11449         (num_devices): Do not guard with PLUGIN_SUPPORT.
11450         (gomp_realloc_unlock): New static function.
11451         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
11452         before gomp_fatal.
11453         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
11454         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
11455         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
11456         mem_map's.
11457         (gomp_unmap_vars): Likewise.
11458         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
11459         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
11460         (gomp_offload_image_to_device): New static function.
11461         (GOMP_offload_register): Add mutex lock.
11462         Call gomp_offload_image_to_device for all initialized devices.
11463         Replace gomp_realloc with gomp_realloc_unlock.
11464         (GOMP_offload_unregister): New function.
11465         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
11466         get_table_func from the plugin with calls to init_device_func and
11467         gomp_offload_image_to_device.
11468         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
11469         to splay_tree_s *.
11470         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
11471         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
11472         (GOMP_target_data): Do not call gomp_init_tables.
11473         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
11474         (gomp_load_plugin_for_device): Replace register_image and get_table
11475         with load_image and unload_image in DLSYM ().
11476         (gomp_register_images_for_device): Remove function.
11477         (gomp_target_init): Do not initialize current_device.mem_map.*,
11478         current_device.offload_regions_registered.
11479         Remove call to gomp_register_images_for_device.
11480         Do not free offload_images and num_offload_images.
11482 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
11484         PR fortran/65597
11485         * testsuite/libgomp.fortran/pr65597.f90: New test.
11487 2015-03-27  Tom de Vries  <tom@codesourcery.com>
11489         PR testsuite/65594
11490         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
11491         (init, check): New function.
11492         (foo): Change return type to void.
11493         (main): Call init and check.
11495 2015-03-27  Tom de Vries  <tom@codesourcery.com>
11497         PR testsuite/65594
11498         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
11499         (foo): Use M for non-inner loops to scale down test-case.
11501 2015-03-25  Kai Tietz  <ktietz@redhat.com>
11503         PR libgomp/64972
11504         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
11505         (GOACC_data_start): Likewise.
11506         * target.c (gomp_map_vars): Likewise.
11508 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
11510         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
11511         hppa*-*-hpux*.
11513 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
11515         * testsuite/libgomp.c/target-10.c: New test.
11516         * testsuite/libgomp.c++/target-4.C: New test.
11518 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
11520         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
11521         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
11523 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11525         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
11526         * configure.ac (*-*-rtems*): Assume Pthread is supported.
11527         (pthread.h): Check for this header file.
11528         * configure: Regenerate.
11530 2015-02-25  Tom de Vries  <tom@codesourcery.com>
11532         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
11533         (check_reduction_op, check_reduction_macro, max, min):
11534         Declare.
11535         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
11536         function.
11537         (main): Use new functions.
11539 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
11541         * target.c (gomp_load_plugin_for_device): Use const char * instead of
11542         char * for variables holding dlerror return values.
11543         (DLSYM_OPT): Ditto.
11545 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
11547         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
11549 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
11550             Cesar Philippidis  <cesar@codesourcery.com>
11552         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
11553         GOACC_ctaid, and GOACC_nctaid routines.
11555 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
11557         PR c/64824
11558         * testsuite/libgomp.c/atomic-18.c: New test.
11559         * testsuite/libgomp.c++/atomic-16.C: New test.
11561 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
11563         PR c/64824
11564         PR c/64868
11565         * testsuite/libgomp.c/pr64824.c: New test.
11566         * testsuite/libgomp.c/pr64868.c: New test.
11567         * testsuite/libgomp.c++/pr64824.C: New test.
11568         * testsuite/libgomp.c++/pr64868.C: New test.
11570 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
11572         PR libgomp/64635
11573         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
11574         Link with -lpthread.
11575         * config/aix/plugin-suffix.h: Delete.
11577 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
11579         PR libgomp/64635
11580         * configure.tgt (*-*-aix*): Use config_path "aix posix".
11581         (*-*-darwin*): Use config_path "bsd darwin posix".
11582         (*-*-hpux*): Use config_path "hpux posix".
11583         * target.c: Add include of plugin-suffix.h and use
11584         SONAME_SUFFIX macro.
11585         * config/aix/plugin-suffix.h: New file.
11586         * config/darwin/plugin-suffix.h: New file.
11587         * config/hpux/plugin-suffix.h: New file.
11588         * config/posix/plugin-suffix.h: New file.
11590 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
11592         PR middle-end/64734
11593         * libgomp.c/pr64734.c: New test.
11595 2015-01-23  Tom de Vries  <tom@codesourcery.com>
11597         PR libgomp/64672
11598         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
11600 2015-01-23  Tom de Vries  <tom@codesourcery.com>
11602         PR libgomp/64707
11603         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
11604         dg-options.
11606 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
11608         PR libgomp/64625
11609         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
11610         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
11611         formal parameter.  Update all users.
11612         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
11613         Document unused formal parameter.
11615 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
11617         * oacc-parallel.c: Don't include <alloca.h>.
11618         (GOACC_parallel): Use gomp_alloca instead of alloca.
11620 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
11622         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
11624 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
11625             James Norris  <jnorris@codesourcery.com>
11626             Tom de Vries  <tom@codesourcery.com>
11627             Julian Brown  <julian@codesourcery.com>
11628             Cesar Philippidis  <cesar@codesourcery.com>
11629             Nathan Sidwell  <nathan@codesourcery.com>
11630             Tobias Burnus  <burnus@net-b.de>
11632         * Makefile.am (search_path): Add $(top_srcdir)/../include.
11633         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
11634         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
11635         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
11636         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
11637         Include $(top_srcdir)/plugin/Makefrag.am.
11638         (nodist_libsubinclude_HEADERS): Add openacc.h.
11639         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
11640         openacc.f90, openacc.mod, openacc_kinds.mod.
11641         (omp_lib.mod): Generalize into...
11642         (%.mod): ... this new rule.
11643         (openacc_kinds.mod, openacc.mod): New rules.
11644         * plugin/configfrag.ac: New file.
11645         * configure.ac: Move plugin/offloading support into it.  Include
11646         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
11647         * plugin/Makefrag.am: New file.
11648         * testsuite/Makefile.am (OFFLOAD_TARGETS)
11649         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
11650         export.
11651         (libgomp-test-support.exp): New rule.
11652         (all-local): Depend on it.
11653         * Makefile.in: Regenerate.
11654         * testsuite/Makefile.in: Regenerate.
11655         * config.h.in: Likewise.
11656         * configure: Likewise.
11657         * configure.tgt: Harden shell syntax.
11658         * env.c: Include "oacc-int.h".
11659         (parse_acc_device_type): New function.
11660         (gomp_debug_var, goacc_device_type, goacc_device_num): New
11661         variables.
11662         (initialize_env): Initialize those.  Call
11663         goacc_runtime_initialize.
11664         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
11665         (gomp_fatal): Call gomp_vfatal.
11666         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
11667         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
11668         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
11669         (splay_tree_node, splay_tree, splay_tree_key)
11670         (struct target_mem_desc, struct splay_tree_key_s)
11671         (struct gomp_memory_mapping, struct acc_dispatch_t)
11672         (struct gomp_device_descr, gomp_acc_insert_pointer)
11673         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
11674         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
11675         (gomp_free_memmap, gomp_fini_device): New declarations.
11676         (gomp_vdebug, gomp_debug): New macros.
11677         Include "splay-tree.h".
11678         * libgomp.map (OACC_2.0): New symbol version.  Use for
11679         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
11680         acc_set_device_type_h_, acc_get_device_type,
11681         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
11682         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
11683         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
11684         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
11685         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
11686         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
11687         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
11688         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
11689         acc_copyin_array_h_, acc_present_or_copyin,
11690         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
11691         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
11692         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
11693         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
11694         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
11695         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
11696         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
11697         acc_update_device, acc_update_device_32_h_,
11698         acc_update_device_64_h_, acc_update_device_array_h_,
11699         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
11700         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
11701         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
11702         acc_is_present_64_h_, acc_is_present_array_h_,
11703         acc_memcpy_to_device, acc_memcpy_from_device,
11704         acc_get_current_cuda_device, acc_get_current_cuda_context,
11705         acc_get_cuda_stream, acc_set_cuda_stream.
11706         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
11707         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
11708         GOACC_update, GOACC_wait, GOACC_get_thread_num,
11709         GOACC_get_num_threads.
11710         (GOMP_PLUGIN_1.0): New symbol version.  Use for
11711         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
11712         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
11713         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
11714         GOMP_PLUGIN_acc_thread.
11715         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
11716         environment variable.
11717         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
11718         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
11719         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
11720         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
11721         (splay_tree_remove): New declarations.
11722         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
11723         (splay_tree_remove, splay_tree_lookup): Move into...
11724         * splay-tree.c: ... this new file.
11725         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
11726         (splay_tree_node, splay_tree, splay_tree_key)
11727         (struct target_mem_desc, struct splay_tree_key_s)
11728         (struct gomp_device_descr): Don't declare.
11729         (num_devices_openmp): New variable.
11730         (gomp_get_num_devices ): Use it.
11731         (gomp_init_targets_once): New function.
11732         (gomp_get_num_devices ): Use it.
11733         (get_kind, gomp_copy_from_async, gomp_free_memmap)
11734         (gomp_fini_device, gomp_register_image_for_device): New functions.
11735         (gomp_map_vars): Add devaddrs parameter.
11736         (gomp_update): Add mm parameter.
11737         (gomp_init_device): Move most of it into...
11738         (gomp_init_tables): ... this new function.
11739         (gomp_register_images_for_device): Remove function.
11740         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
11741         Make them hidden instead of static.
11742         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
11743         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
11744         (GOMP_target_end_data, GOMP_target_update)
11745         (gomp_load_plugin_for_device, gomp_target_init): Update for
11746         OpenACC changes.
11747         * oacc-async.c: New file.
11748         * oacc-cuda.c: Likewise.
11749         * oacc-host.c: Likewise.
11750         * oacc-init.c: Likewise.
11751         * oacc-int.h: Likewise.
11752         * oacc-mem.c: Likewise.
11753         * oacc-parallel.c: Likewise.
11754         * oacc-plugin.c: Likewise.
11755         * oacc-plugin.h: Likewise.
11756         * oacc-ptx.h: Likewise.
11757         * openacc.f90: Likewise.
11758         * openacc.h: Likewise.
11759         * openacc_lib.h: Likewise.
11760         * plugin/plugin-host.c: Likewise.
11761         * plugin/plugin-nvptx.c: Likewise.
11762         * libgomp-plugin.c: Likewise.
11763         * libgomp-plugin.h: Likewise.
11764         * libgomp_target.h: Remove file after merging content into the
11765         former file.  Update all users.
11766         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
11767         (offload_targets_s, offload_targets_s_openacc): New variables.
11768         (check_effective_target_openacc_nvidia_accel_present)
11769         (check_effective_target_openacc_nvidia_accel_selected): New
11770         procedures.
11771         (libgomp_init): Update for OpenACC changes.
11772         * testsuite/libgomp-test-support.exp.in: New file.
11773         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
11774         * testsuite/libgomp.oacc-c/c.exp: Likewise.
11775         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
11776         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
11777         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
11778         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
11779         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
11780         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
11781         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
11782         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
11783         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
11784         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
11785         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
11786         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11787         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
11788         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
11789         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
11790         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
11791         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
11792         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
11793         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
11794         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
11795         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
11796         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
11797         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11798         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11799         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11800         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11801         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11802         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11803         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11804         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
11805         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
11806         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
11807         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
11808         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11809         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
11810         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11811         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
11812         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
11813         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
11814         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
11815         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11816         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11817         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11818         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
11819         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11820         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11821         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11822         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11823         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11824         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
11825         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11826         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11827         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11828         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11829         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11830         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11831         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11832         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
11833         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
11834         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
11835         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11836         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11837         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11838         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
11839         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
11840         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11841         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11842         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11843         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
11844         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11845         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11846         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11847         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
11848         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
11849         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11850         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11851         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
11852         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
11853         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
11854         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
11855         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11856         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11857         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11858         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
11859         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
11860         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11861         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11862         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
11863         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
11864         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
11865         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
11866         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11867         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11868         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11869         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11870         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
11871         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11872         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11873         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
11874         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
11875         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
11876         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11877         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
11878         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
11879         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
11880         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
11881         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
11882         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11883         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
11884         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
11885         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11886         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
11887         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
11888         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
11889         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
11890         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
11891         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
11892         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
11893         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
11894         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
11895         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
11896         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
11897         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
11898         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
11899         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
11900         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
11901         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
11902         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
11903         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
11904         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
11905         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11906         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
11907         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
11908         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11909         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11910         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11911         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
11912         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
11913         Likewise.
11914         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
11915         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
11916         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
11917         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
11918         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
11919         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11920         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11921         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11922         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11923         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11924         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11925         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11926         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11927         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11928         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11929         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11930         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11931         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11932         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11933         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11934         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11935         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11936         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11937         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11938         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11939         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11940         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11941         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11942         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11943         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11944         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11945         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11946         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11947         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11948         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11949         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11950         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11951         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11952         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11953         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11954         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11955         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11956         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11957         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11958         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11959         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11960         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11961         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11962         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11963         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11964         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11965         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11966         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11967         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11968         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11969         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11970         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11971         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11972         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11973         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11975 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
11976             Julian Brown  <julian@codesourcery.com>
11977             David Malcolm  <dmalcolm@redhat.com>
11979         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
11980         to "GNU Offloading and Multi Processing Runtime Library".  Change
11981         all users.
11982         * configure: Regenerate.
11983         * libgomp.texi: Update.
11985 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
11987         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
11988         "$tgt_dir/lib32".
11989         * configure: Regenerate.
11991         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
11992         "intelmic" in $offload_targets.
11994 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
11996         Update copyright years.
11998         * libgomp.texi: Bump @copying's copyright year.
12000 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12002         * testsuite/lib/libgomp.exp: Load target-utils.exp.
12003         Move load of target-supports.exp earlier.
12005 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
12007         * testsuite/libgomp.c/target-9.c: New test.
12009 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
12011         * config.h.in: Regenerate.
12012         * configure: Regenerate.
12013         * configure.ac: Add GCC_CHECK_EMUTLS.
12014         * libgomp.h: Add check for USE_EMUTLS: this case
12015         is equal to HAVE_TLS.
12016         * team.c: Likewise.
12018 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
12020         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
12022 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
12023             Ilya Verbin  <ilya.verbin@intel.com>
12025         * testsuite/libgomp.c/target-critical-1.c: New test.
12027 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
12029         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
12030         to dg-options unless expensive testing is on.
12031         (TESTITERS): Define to N if not defined.
12032         (main): Use TESTITERS instead of N.
12033         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
12034         dg-additional-options depending on whether expensive testing is on.
12035         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
12036         Decrease N to 100000 and CHUNKSZ to 10000.
12038 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
12040         PR fortran/63938
12041         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
12042         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
12044 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
12046         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
12048 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
12050         PR bootstrap/63784
12051         * configure: Regenerated.
12053 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
12055         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
12056         vect_simd_clones effective target.
12057         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
12059 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
12061         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
12062         of 32 as block_size.
12063         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
12064         instead of 32 as block_size.
12066 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
12067             Ilya Verbin  <ilya.verbin@intel.com>
12069         * Makefile.in: Regenerate.
12070         * configure: Regenerate.
12071         * configure.ac: Set up offload_additional_options,
12072         offload_additional_lib_paths and offload_targets.
12073         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
12074         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
12075         * testsuite/Makefile.in: Regenerate.
12076         * testsuite/lib/libgomp.exp (libgomp_init): Append
12077         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
12078         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
12079         build directory to LD_LIBRARY_PATH for intelmic offload targets.
12081 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
12082             Ilya Verbin  <ilya.verbin@intel.com>
12083             Kirill Yukhin  <kirill.yukhin@intel.com>
12084             Ilya Tocar  <ilya.tocar@intel.com>
12086         * testsuite/lib/libgomp.exp
12087         (check_effective_target_offload_device): New.
12088         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
12089         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
12090         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
12091         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
12092         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
12093         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
12094         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
12095         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
12096         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
12097         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
12098         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
12099         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
12100         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
12101         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
12102         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
12103         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
12104         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
12105         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
12106         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
12107         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
12108         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
12109         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
12110         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
12111         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
12112         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
12113         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
12114         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
12115         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
12116         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
12117         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
12118         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
12119         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
12120         * testsuite/libgomp.c/target-7.c: Fix test.
12121         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
12122         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
12123         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
12124         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
12125         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
12126         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
12127         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
12128         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
12129         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
12130         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
12131         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
12132         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
12133         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
12134         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
12135         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
12136         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
12137         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
12138         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
12139         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
12140         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
12141         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
12142         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
12143         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
12144         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
12145         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
12146         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
12147         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
12148         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
12149         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
12150         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
12151         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
12153 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
12154             Ilya Verbin  <ilya.verbin@intel.com>
12155             Thomas Schwinge  <thomas@codesourcery.com>
12156             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12158         * libgomp.map (GOMP_4.0.1): New symbol version.
12159         Add GOMP_offload_register.
12160         * libgomp_target.h: New file.
12161         * splay-tree.h: New file.
12162         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
12163         (gomp_target_init): New forward declaration.
12164         (gomp_is_initialized): New static variable.
12165         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
12166         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
12167         New structures.
12168         (offload_images, num_offload_images, devices, num_devices): New static
12169         variables.
12170         (splay_compare): New static function.
12171         (struct gomp_device_descr): New structure.
12172         (gomp_get_num_devices): Call gomp_target_init.
12173         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
12174         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
12175         (GOMP_offload_register): New function.
12176         (GOMP_target): Arrange for host callback to be performed in a separate
12177         initial thread and contention group, inheriting ICVs from
12178         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
12179         Add device initialization and lookup for target function in splay tree.
12180         (GOMP_target_data): Add device initialization and call gomp_map_vars.
12181         (GOMP_target_end_data): Call gomp_unmap_vars.
12182         (GOMP_target_update): Add device initialization and call gomp_update.
12183         (gomp_load_plugin_for_device, gomp_register_images_for_device)
12184         (gomp_target_init): New static functions.
12186 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
12187             Thomas Schwinge  <thomas@codesourcery.com>
12188             Ilya Verbin  <ilya.verbin@intel.com>
12189             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12191         * config.h.in: Regenerate.
12192         * configure: Regenerate.
12193         * configure.ac: Check for libdl, required for plugin support.
12194         (PLUGIN_SUPPORT): Define if plugins are supported.
12195         (enable_offload_targets): Support Intel MIC targets.
12196         (OFFLOAD_TARGETS): List of target names suitable for offloading.
12198 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12200         PR target/63610
12201         * configure: Regenerate.
12203 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12205         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
12207 2014-10-06  Marek Polacek  <polacek@redhat.com>
12209         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
12210         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
12211         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
12212         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
12214 2014-10-06  Marek Polacek  <polacek@redhat.com>
12216         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
12217         * testsuite/libgomp.c/nqueens-1.c: Likewise.
12218         * testsuite/libgomp.c/pr26943-3.c: Likewise.
12219         * testsuite/libgomp.c/pr26943-4.c: Likewise.
12220         * testsuite/libgomp.c/pr36802-2.c: Likewise.
12221         * testsuite/libgomp.c/pr36802-3.c: Likewise.
12222         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
12223         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
12224         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
12225         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
12226         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
12227         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
12228         * testsuite/libgomp.c/omp-single-1.c: Likewise.
12229         * testsuite/libgomp.c/omp-single-2.c: Likewise.
12230         * testsuite/libgomp.c/omp_matvec.c: Likewise.
12231         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
12232         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
12233         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
12234         declarations.
12236 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
12238         PR libgomp/61200
12239         * testsuite/libgomp.c/pr61200.c: New test.
12241 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
12243         PR c++/63248
12244         * testsuite/libgomp.c++/pr63248.C: New test.
12246 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
12248         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
12249         is not zero, but taskgroup->children is NULL and there are
12250         any task->children, schedule those instead of waiting.
12251         * testsuite/libgomp.c/depend-6.c: New test.
12252         * testsuite/libgomp.c/depend-7.c: New test.
12253         * testsuite/libgomp.c/depend-8.c: New test.
12254         * testsuite/libgomp.c/depend-9.c: New test.
12255         * testsuite/libgomp.c/depend-10.c: New test.
12257 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
12259         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
12260         (struct gomp_taskwait): New type.
12261         (struct gomp_task): Add taskwait and parent_depends_on, remove
12262         in_taskwait and taskwait_sem fields.
12263         (gomp_finish_task): Don't destroy taskwait_sem.
12264         * task.c (gomp_init_task): Don't init in_taskwait, instead init
12265         taskwait and parent_depends_on.
12266         (GOMP_task): For if (0) tasks with depend clause that depend on
12267         earlier tasks don't defer them, instead call
12268         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
12269         Initialize redundant_out field, for redundant out entries just
12270         move them at the end of linked list instead of removing them
12271         completely, and set redundant_out flag instead of redundant.
12272         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
12273         that task.
12274         (gomp_task_run_post_handle_dependers): If parent is in
12275         gomp_task_maybe_wait_for_dependencies and newly runnable task
12276         is not parent_depends_on, queue it in parent->children linked
12277         list after all runnable tasks with parent_depends_on set.
12278         Adjust for addition of taskwait indirection.
12279         (gomp_task_run_post_remove_parent): If parent is in
12280         gomp_task_maybe_wait_for_dependencies and task to be removed
12281         is parent_depends_on, decrement n_depend and if needed awake
12282         parent.  Adjust for addition of taskwait indirection.
12283         (GOMP_taskwait): Adjust for addition of taskwait indirection.
12284         (gomp_task_maybe_wait_for_dependencies): New function.
12285         * testsuite/libgomp.c/depend-5.c: New test.
12287 2014-07-13  Tobias Burnus  <burnus@net-b.de>
12289         * testsuite/libgomp.fortran/pr34020.f90: Make compile
12290         with TS 18508/Fortran 2015.
12292 2014-07-06  Marek Polacek  <polacek@redhat.com>
12294         PR c/6940
12295         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
12297 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
12299         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
12300         matches regex $lang_source_re, add $lang_include_flags to options.
12301         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
12302         * testsuite/libgomp.c++/c++.exp: Likewise.
12303         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
12304         and lang_include_flags instead of adding -fintrinsic-modules-path= to
12305         ALWAYS_CFLAGS.
12306         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
12308 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
12310         * testsuite/libgomp.fortran/fortran.exp: Explain
12311         gfortran-dg-runtest usage.
12313 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
12315         * testsuite/libgomp.fortran/simd5.f90: New test.
12316         * testsuite/libgomp.fortran/simd6.f90: New test.
12317         * testsuite/libgomp.fortran/simd7.f90: New test.
12319 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
12321         * testsuite/libgomp.c/for-2.c: Define SC to static for
12322         #pragma omp for simd testing.
12323         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
12324         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
12325         SC macro.
12326         * testsuite/libgomp.c/simd-14.c: New test.
12327         * testsuite/libgomp.c/simd-15.c: New test.
12328         * testsuite/libgomp.c/simd-16.c: New test.
12329         * testsuite/libgomp.c/simd-17.c: New test.
12330         * testsuite/libgomp.c++/for-10.C: Define SC to static for
12331         #pragma omp for simd testing.
12332         * testsuite/libgomp.c++/simd10.C: New test.
12333         * testsuite/libgomp.c++/simd11.C: New test.
12334         * testsuite/libgomp.c++/simd12.C: New test.
12335         * testsuite/libgomp.c++/simd13.C: New test.
12337         * testsuite/libgomp.fortran/aligned1.f03: New test.
12338         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
12339         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
12340         tasks with !$omp parallel !$omp single.
12341         * testsuite/libgomp.fortran/target8.f90: New test.
12342         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
12343         not to use trim in the combiner, instead call elemental function.
12344         (fn): New elemental function.
12345         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
12346         Make elemental.
12347         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
12348         omp_in): Likewise.
12349         * testsuite/libgomp.fortran/udr12.f90: New test.
12350         * testsuite/libgomp.fortran/udr13.f90: New test.
12351         * testsuite/libgomp.fortran/udr14.f90: New test.
12352         * testsuite/libgomp.fortran/udr15.f90: New test.
12354 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
12356         * omp_lib.f90.in (openmp_version): Set to 201307.
12357         * omp_lib.h.in (openmp_version): Likewise.
12358         * testsuite/libgomp.c/target-8.c: New test.
12359         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
12360         and inbranch clauses.
12361         * testsuite/libgomp.fortran/depend-3.f90: New test.
12362         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
12363         openmp_version.
12364         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12365         * testsuite/libgomp.fortran/target1.f90: New test.
12366         * testsuite/libgomp.fortran/target2.f90: New test.
12367         * testsuite/libgomp.fortran/target3.f90: New test.
12368         * testsuite/libgomp.fortran/target4.f90: New test.
12369         * testsuite/libgomp.fortran/target5.f90: New test.
12370         * testsuite/libgomp.fortran/target6.f90: New test.
12371         * testsuite/libgomp.fortran/target7.f90: New test.
12373 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
12375         PR fortran/60928
12376         * testsuite/libgomp.fortran/allocatable9.f90: New test.
12377         * testsuite/libgomp.fortran/allocatable10.f90: New test.
12378         * testsuite/libgomp.fortran/allocatable11.f90: New test.
12379         * testsuite/libgomp.fortran/allocatable12.f90: New test.
12380         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
12381         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
12382         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
12383         * testsuite/libgomp.fortran/associate1.f90: New test.
12384         * testsuite/libgomp.fortran/associate2.f90: New test.
12385         * testsuite/libgomp.fortran/procptr1.f90: New test.
12387 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
12389         * testsuite/libgomp.fortran/simd1.f90: New test.
12390         * testsuite/libgomp.fortran/udr1.f90: New test.
12391         * testsuite/libgomp.fortran/udr2.f90: New test.
12392         * testsuite/libgomp.fortran/udr3.f90: New test.
12393         * testsuite/libgomp.fortran/udr4.f90: New test.
12394         * testsuite/libgomp.fortran/udr5.f90: New test.
12395         * testsuite/libgomp.fortran/udr6.f90: New test.
12396         * testsuite/libgomp.fortran/udr7.f90: New test.
12397         * testsuite/libgomp.fortran/udr8.f90: New test.
12398         * testsuite/libgomp.fortran/udr9.f90: New test.
12399         * testsuite/libgomp.fortran/udr10.f90: New test.
12400         * testsuite/libgomp.fortran/udr11.f90: New test.
12402 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
12404         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
12405         vect_simd_clones effective target.
12406         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
12408 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
12410         PR middle-end/61252
12411         * testsuite/libgomp.c++/simd-9.C: New test.
12413 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
12415         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
12416         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
12417         texts according to their @menu entry positions.
12419 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
12421         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
12422         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
12423         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
12424         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
12425         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
12426         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
12427         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
12428         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
12429         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
12430         * testsuite/libgomp.fortran/depend-1.f90: New test.
12431         * testsuite/libgomp.fortran/depend-2.f90: New test.
12432         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
12433         * testsuite/libgomp.fortran/simd1.f90: New test.
12434         * testsuite/libgomp.fortran/simd2.f90: New test.
12435         * testsuite/libgomp.fortran/simd3.f90: New test.
12436         * testsuite/libgomp.fortran/simd4.f90: New test.
12437         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
12439 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
12441         * testsuite/libgomp.c/simd-10.c: New test.
12442         * testsuite/libgomp.c/simd-11.c: New test.
12443         * testsuite/libgomp.c/simd-12.c: New test.
12444         * testsuite/libgomp.c/simd-13.c: New test.
12446 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
12448         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
12449         atomic type clauses in any order and optional comma in between.
12450         * testsuite/libgomp.c++/atomic-15.C: Likewise.
12451         * testsuite/libgomp.c/atomic-17.c: Likewise.
12453         * testsuite/libgomp.c/simd-7.c: New test.
12454         * testsuite/libgomp.c/simd-8.c: New test.
12455         * testsuite/libgomp.c/simd-9.c: New test.
12456         * testsuite/libgomp.c/loop-16.c: New test.
12458 2014-04-02  Richard Henderson  <rth@redhat.com>
12460         * config/linux/futex.h (futex_wait): Get error value from errno.
12461         (futex_wake): Likewise.
12463 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
12465         PR c++/60331
12466         * testsuite/libgomp.c++/udr-11.C: New test.
12467         * testsuite/libgomp.c++/udr-12.C: New test.
12468         * testsuite/libgomp.c++/udr-13.C: New test.
12469         * testsuite/libgomp.c++/udr-14.C: New test.
12470         * testsuite/libgomp.c++/udr-15.C: New test.
12471         * testsuite/libgomp.c++/udr-16.C: New test.
12472         * testsuite/libgomp.c++/udr-17.C: New test.
12473         * testsuite/libgomp.c++/udr-18.C: New test.
12474         * testsuite/libgomp.c++/udr-19.C: New test.
12476 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
12478         Update copyright years
12480 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
12482         * hashtab.h: Use the standard form for the copyright notice.
12484 2014-01-02  Tobias Burnus  <burnus@net-b.de>
12486         * libgomp.texi: Bump @copying's copyright year.
12488 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
12490         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
12491         alloca () with __builtin_alloca ().
12492         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
12493         * testsuite/libgomp.c/lock-3.c: Likewise.
12494         * testsuite/libgomp.c/pr48591.c: Likewise.
12496 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
12498         PR testsuite/59534
12499         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
12500         comparisons.
12502 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
12504         PR libgomp/58756
12505         * testsuite/libgomp.c/pr58756.c: New test.
12507 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
12509         PR libgomp/59467
12510         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
12511         !$omp parallel.
12513 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
12515         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
12516         ALWAYS_CFLAGS.
12517         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
12518         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
12519         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
12520         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
12521         Likewise.
12523         * libgomp_g.h: Include <stddef.h> for size_t.
12525         * libgomp.spec.in: Update comment about libgomp's dependencies.
12526         * configure.ac: Likewise.
12527         * configure: Regenerate.
12529 2013-10-16  Tobias Burnus  <burnus@net-b.de>
12531         * libgomp.texi: (Runtime Library Routines): Update references for
12532         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
12533         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
12534         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
12535         (Environment Variables): Update references for OpenMP 4.0. Add
12536         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
12537         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
12538         order.
12540 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
12542         * env.c (parse_bind_var): Initialize value to avoid
12543         (false positive) warning.
12545 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
12547         PR libgomp/58691
12548         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
12549         to check variable.
12550         (gomp_init_num_threads): Move i variable declaration into
12551         #ifdef CPU_ALLOC_SIZE block.
12552         * config/linux/affinity.c (gomp_affinity_init_level): Test
12553         gomp_places_list_len == 0 rather than gomp_places_list == 0
12554         when checking for topology reading error.
12555         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
12556         * env.c (parse_affinity): Add ignore argument, if true, don't populate
12557         gomp_places_list, only parse env var and always return false.
12558         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
12559         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
12560         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
12561         and either of these variables were parsed correctly into a places
12562         list.
12564 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
12565             Jakub Jelinek  <jakub@redhat.com>
12567         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
12568         of 5 loopfn matches.
12569         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
12570         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
12571         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
12572         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
12573         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
12574         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
12575         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
12576         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
12578 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
12580         * Makefile.am (omp_lib.mod): Streamline rule.
12581         * Makefile.in: Regenerate.
12583         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
12584         exceptions.
12586         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
12587         * testsuite/libgomp.fortran/lib1.f90: Likewise.
12588         * testsuite/libgomp.fortran/lib2.f: Likewise.
12589         * testsuite/libgomp.fortran/lib3.f: Likewise.
12591         * configure.ac: Typo fix.
12592         * configure: Regenerate.
12594         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
12595         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12597         * omp.h.in: Don't touch the user's namespace.
12599 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
12600             Tobias Burnus  <burnus@net-b.de>
12601             Richard Henderson  <rth@redhat.com>
12603         * target.c: New file.
12604         * Makefile.am (libgomp_la_SOURCES): Add target.c.
12605         * Makefile.in: Regenerated.
12606         * libgomp_g.h (GOMP_task): Add depend argument.
12607         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
12608         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
12609         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
12610         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
12611         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
12612         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
12613         GOMP_taskgroup_start, GOMP_taskgroup_end,
12614         GOMP_parallel_sections): New prototypes.
12615         * fortran.c (omp_is_initial_device): Add ialias_redirect.
12616         (omp_is_initial_device_): New function.
12617         (ULP, STR1, STR2, ialias_redirect): Removed.
12618         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
12619         omp_set_default_device_8_, omp_get_default_device_,
12620         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
12621         functions.
12622         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
12623         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
12624         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
12625         @@GOMP_4.0.
12626         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
12627         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
12628         omp_set_default_device, omp_set_default_device_,
12629         omp_set_default_device_8_, omp_get_default_device,
12630         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
12631         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
12632         omp_get_team_num_): Export @@OMP_4.0.
12633         * team.c (struct gomp_thread_start_data): Add place field.
12634         (gomp_thread_start): Clear thr->thread_pool and
12635         thr->task before returning.  Use gomp_team_barrier_wait_final
12636         instead of gomp_team_barrier_wait.  Initialize thr->place.
12637         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
12638         team_cancelled and task_queued_count fields.
12639         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
12640         before calling pthread_exit.
12641         (gomp_free_thread): No longer static.  Use
12642         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
12643         (gomp_team_start): Add flags argument.  Set
12644         thr->thread_pool->threads_busy to nthreads immediately after creating
12645         new pool.  Use gomp_managed_threads_lock instead of
12646         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
12647         (gomp_team_end): Use gomp_managed_threads_lock instead of
12648         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
12649         of gomp_team_barrier_wait.  If team->team_cancelled, call
12650         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
12651         rather than thr->ts.work_share.
12652         (initialize_team): Don't call gomp_sem_init here.
12653         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
12654         caller.
12655         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
12656         * env.c (gomp_global_icv): Add default_device_var, target_data and
12657         bind_var initializers.
12658         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
12659         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
12660         gomp_places_list_len): New variables.
12661         (parse_bind_var, parse_one_place, parse_places_var): New functions.
12662         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
12663         sized places.
12664         (gomp_cancel_var): New global variable.
12665         (parse_int): New function.
12666         (handle_omp_display_env): New function.
12667         (initialize_env): Use it.  Initialize default_device_var.
12668         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
12669         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
12670         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
12671         been successfully parsed (and call gomp_init_affinity in that case).
12672         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12673         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12674         omp_get_team_num, omp_is_initial_device): New functions.
12675         * libgomp.h: Include stdlib.h.
12676         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
12677         Define.
12678         (struct target_mem_desc): Forward declare.
12679         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
12680         and thread_limit_var fields.
12681         (gomp_get_num_devices): New prototype.
12682         (gomp_cancel_var): New extern decl.
12683         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
12684         team_cancelled and task_queued_count fields.  Add comments about
12685         task_{,queued_,running_}count.
12686         (gomp_cancel_kind): New enum.
12687         (gomp_work_share_end_cancel): New prototype.
12688         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
12689         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
12690         and depend fields.
12691         (struct gomp_taskgroup): New type.
12692         (struct gomp_task_depend_entry,
12693         struct gomp_dependers_vec): New types.
12694         (gomp_finish_task): Free depend_hash if non-NULL.
12695         (struct gomp_team_state): Add place_partition_off
12696         and place_partition_len fields.
12697         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
12698         gomp_places_list_len): New extern decls.
12699         (struct gomp_thread): Add place field.
12700         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
12701         (gomp_init_thread_affinity): Add place argument.
12702         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12703         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12704         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12705         gomp_affinity_init_level, gomp_affinity_print_place): New
12706         prototypes.
12707         (gomp_team_start): Add flags argument.
12708         (gomp_thread_limit_var, gomp_remaining_threads_count,
12709         gomp_remaining_threads_lock): Remove.
12710         (gomp_managed_threads_lock): New variable.
12711         (struct gomp_thread_pool): Add threads_busy field.
12712         (gomp_free_thread): New prototype.
12713         * task.c: Include hashtab.h.
12714         (hash_entry_type): New typedef.
12715         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
12716         (gomp_init_task): Clear dependers, depend_hash, depend_count,
12717         copy_ctors_done and taskgroup fields.
12718         (GOMP_task): Add depend argument, handle depend clauses.  If
12719         gomp_team_barrier_cancelled or if it's taskgroup has been
12720         cancelled, don't queue or start new tasks.  Set copy_ctors_done
12721         field if needed.  Initialize taskgroup field.  If copy_ctors_done
12722         and already cancelled, don't discard the task.  If taskgroup is
12723         non-NULL, enqueue the task into taskgroup queue.  Increment
12724         num_children field in taskgroup.  Increment task_queued_count.
12725         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
12726         gomp_task_run_post_remove_taskgroup): New inline functions.
12727         (gomp_task_run_post_handle_depend_hash,
12728         gomp_task_run_post_handle_dependers,
12729         gomp_task_run_post_handle_depend): New functions.
12730         (GOMP_taskwait): Use them.  If more than one new tasks
12731         have been queued, wake other threads if needed.
12732         (gomp_barrier_handle_tasks): Likewise.  If
12733         gomp_team_barrier_cancelled, don't start any new tasks, just free
12734         all tasks.
12735         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
12736         * omp_lib.f90.in
12737         (omp_proc_bind_kind, omp_proc_bind_false,
12738         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
12739         omp_proc_bind_spread): New params.
12740         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12741         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12742         omp_get_team_num, omp_is_initial_device): New interfaces.
12743         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
12744         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
12745         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
12746         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
12747         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
12748         useless use omp_lib_kinds.
12749         * omp.h.in (omp_proc_bind_t): New typedef.
12750         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12751         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12752         omp_get_team_num, omp_is_initial_device): New prototypes.
12753         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
12754         through to gomp_team_start.
12755         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
12756         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
12757         Adjust gomp_parallel_loop_start callers.
12758         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
12759         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
12760         GOMP_loop_end_cancel): New functions.
12761         (GOMP_parallel_end): Add ialias_redirect.
12762         * hashtab.h: New file.
12763         * libgomp.texi (Environment Variables): Minor cleanup,
12764         update section refs to OpenMP 4.0rc2.
12765         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
12766         environment variables.
12767         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
12768         team->work_shares_to_free to thr->ts.work_share before calling
12769         free_work_share.
12770         (gomp_work_share_end_cancel): New function.
12771         * config/linux/proc.c: Include errno.h.
12772         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
12773         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
12774         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
12775         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
12776         gomp_cpuset_size is sizeof (cpu_set_t).
12777         (gomp_init_num_threads): Initialize gomp_cpuset_size,
12778         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
12779         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
12780         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
12781         contain any logical CPUs.
12782         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
12783         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
12784         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
12785         pthread_getaffinity_np.  Check gomp_places_list instead of
12786         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
12787         * config/linux/bar.c (gomp_barrier_wait_end,
12788         gomp_barrier_wait_last): Use BAR_* defines.
12789         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
12790         from state where needed.  Set work_share_cancelled to 0 on last
12791         thread.
12792         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
12793         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
12794         functions.
12795         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
12796         Add cpusetsize argument.
12797         (gomp_cpuset_size, gomp_cpusetp): Declare.
12798         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
12799         (affinity_counter): Remove.
12800         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
12801         if CPU_ALLOC_SIZE isn't defined.
12802         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
12803         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
12804         bind current thread to the first place.
12805         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
12806         pthread_setaffinity_np to gomp_places_list[place].
12807         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12808         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12809         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12810         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
12811         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
12812         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
12813         (gomp_barrier_t): Add awaited_final field.
12814         (gomp_barrier_init): Initialize awaited_final field.
12815         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
12816         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
12817         prototypes.
12818         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
12819         defines.
12820         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
12821         gomp_team_barrier_cancelled): New inline functions.
12822         (gomp_barrier_last_thread,
12823         gomp_team_barrier_set_task_pending,
12824         gomp_team_barrier_clear_task_pending,
12825         gomp_team_barrier_set_waiting_for_tasks,
12826         gomp_team_barrier_waiting_for_tasks,
12827         gomp_team_barrier_done): Use BAR_* defines.
12828         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
12829         (gomp_barrier_wait_end): Use BAR_* defines.
12830         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
12831         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
12832         Use BAR_* defines.
12833         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
12834         gomp_team_barrier_cancel): New functions.
12835         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
12836         argument.
12837         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12838         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12839         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12840         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
12841         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
12842         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
12843         (gomp_barrier_t): Add cancellable field.
12844         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
12845         gomp_team_barrier_cancel): New prototypes.
12846         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
12847         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
12848         gomp_team_barrier_cancelled): New inline functions.
12849         (gomp_barrier_wait_start, gomp_barrier_last_thread,
12850         gomp_team_barrier_set_task_pending,
12851         gomp_team_barrier_clear_task_pending,
12852         gomp_team_barrier_set_waiting_for_tasks,
12853         gomp_team_barrier_waiting_for_tasks,
12854         gomp_team_barrier_done): Use BAR_* defines.
12855         * barrier.c (GOMP_barrier_cancel): New function.
12856         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
12857         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
12858         omp_proc_bind_spread): New params.
12859         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12860         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12861         omp_get_team_num, omp_is_initial_device): New externals.
12862         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
12863         New functions.
12864         (gomp_resolve_num_threads): Adjust for thread_limit now being in
12865         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
12866         infinity.  If not nested, just return minimum of max_num_threads
12867         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
12868         to the returned value.  Otherwise, don't update atomically
12869         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
12870         (GOMP_parallel_end): Adjust for thread_limit now being in
12871         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
12872         infinity.  Adjust threads_busy in the pool rather than
12873         gomp_remaining_threads_count.  Remember team->nthreads and call
12874         gomp_team_end before adjusting threads_busy, if not nested
12875         afterwards, just set it to 1 non-atomically.  Add ialias.
12876         (GOMP_parallel_start): Adjust gomp_team_start caller.
12877         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
12878         * testsuite/libgomp.c/affinity-1.c: New test.
12879         * testsuite/libgomp.c/atomic-15.c: New test.
12880         * testsuite/libgomp.c/atomic-16.c: New test.
12881         * testsuite/libgomp.c/atomic-17.c: New test.
12882         * testsuite/libgomp.c/cancel-for-1.c: New test.
12883         * testsuite/libgomp.c/cancel-for-2.c: New test.
12884         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
12885         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
12886         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
12887         * testsuite/libgomp.c/cancel-sections-1.c: New test.
12888         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
12889         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
12890         * testsuite/libgomp.c/depend-1.c: New test.
12891         * testsuite/libgomp.c/depend-2.c: New test.
12892         * testsuite/libgomp.c/depend-3.c: New test.
12893         * testsuite/libgomp.c/depend-4.c: New test.
12894         * testsuite/libgomp.c/for-1.c: New test.
12895         * testsuite/libgomp.c/for-1.h: New file.
12896         * testsuite/libgomp.c/for-2.c: New test.
12897         * testsuite/libgomp.c/for-2.h: New file.
12898         * testsuite/libgomp.c/for-3.c: New test.
12899         * testsuite/libgomp.c/pr58392.c: New test.
12900         * testsuite/libgomp.c/simd-1.c: New test.
12901         * testsuite/libgomp.c/simd-2.c: New test.
12902         * testsuite/libgomp.c/simd-3.c: New test.
12903         * testsuite/libgomp.c/simd-4.c: New test.
12904         * testsuite/libgomp.c/simd-5.c: New test.
12905         * testsuite/libgomp.c/simd-6.c: New test.
12906         * testsuite/libgomp.c/target-1.c: New test.
12907         * testsuite/libgomp.c/target-2.c: New test.
12908         * testsuite/libgomp.c/target-3.c: New test.
12909         * testsuite/libgomp.c/target-4.c: New test.
12910         * testsuite/libgomp.c/target-5.c: New test.
12911         * testsuite/libgomp.c/target-6.c: New test.
12912         * testsuite/libgomp.c/target-7.c: New test.
12913         * testsuite/libgomp.c/taskgroup-1.c: New test.
12914         * testsuite/libgomp.c/thread-limit-1.c: New test.
12915         * testsuite/libgomp.c/thread-limit-2.c: New test.
12916         * testsuite/libgomp.c/thread-limit-3.c: New test.
12917         * testsuite/libgomp.c/udr-1.c: New test.
12918         * testsuite/libgomp.c/udr-2.c: New test.
12919         * testsuite/libgomp.c/udr-3.c: New test.
12920         * testsuite/libgomp.c++/affinity-1.C: New test.
12921         * testsuite/libgomp.c++/atomic-10.C: New test.
12922         * testsuite/libgomp.c++/atomic-11.C: New test.
12923         * testsuite/libgomp.c++/atomic-12.C: New test.
12924         * testsuite/libgomp.c++/atomic-13.C: New test.
12925         * testsuite/libgomp.c++/atomic-14.C: New test.
12926         * testsuite/libgomp.c++/atomic-15.C: New test.
12927         * testsuite/libgomp.c++/cancel-for-1.C: New test.
12928         * testsuite/libgomp.c++/cancel-for-2.C: New test.
12929         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
12930         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
12931         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
12932         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
12933         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
12934         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
12935         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
12936         * testsuite/libgomp.c++/cancel-test.h: New file.
12937         * testsuite/libgomp.c++/for-9.C: New test.
12938         * testsuite/libgomp.c++/for-10.C: New test.
12939         * testsuite/libgomp.c++/for-11.C: New test.
12940         * testsuite/libgomp.c++/simd-1.C: New test.
12941         * testsuite/libgomp.c++/simd-2.C: New test.
12942         * testsuite/libgomp.c++/simd-3.C: New test.
12943         * testsuite/libgomp.c++/simd-4.C: New test.
12944         * testsuite/libgomp.c++/simd-5.C: New test.
12945         * testsuite/libgomp.c++/simd-6.C: New test.
12946         * testsuite/libgomp.c++/simd-7.C: New test.
12947         * testsuite/libgomp.c++/simd-8.C: New test.
12948         * testsuite/libgomp.c++/target-1.C: New test.
12949         * testsuite/libgomp.c++/target-2.C: New test.
12950         * testsuite/libgomp.c++/target-2-aux.cc: New file.
12951         * testsuite/libgomp.c++/target-3.C: New test.
12952         * testsuite/libgomp.c++/taskgroup-1.C: New test.
12953         * testsuite/libgomp.c++/udr-1.C: New test.
12954         * testsuite/libgomp.c++/udr-2.C: New test.
12955         * testsuite/libgomp.c++/udr-3.C: New test.
12956         * testsuite/libgomp.c++/udr-4.C: New test.
12957         * testsuite/libgomp.c++/udr-5.C: New test.
12958         * testsuite/libgomp.c++/udr-6.C: New test.
12959         * testsuite/libgomp.c++/udr-7.C: New test.
12960         * testsuite/libgomp.c++/udr-8.C: New test.
12961         * testsuite/libgomp.c++/udr-9.C: New test.
12963 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
12965         PR testsuite/57605
12966         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
12967         ALWAYS_CFLAGS.
12969 2013-09-20  Alan Modra  <amodra@gmail.com>
12971         * configure: Regenerate.
12973 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
12975         * testsuite/libgomp.c/sections-2.c: New test.
12977 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12979         * testsuite/libgomp.fortran/strassen.f90:
12980         Add dg-skip-if aarch64_tiny.
12982 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
12983             Cesar Philippidis  <cesar@codesourcery.com>
12985         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
12986         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
12987         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
12988         * testsuite/libgomp.fortran/fortran.exp: Likewise.
12989         * testsuite/libgomp.graphite/graphite.exp: Likewise.
12990         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
12991         Use dg-runtest rather than gfortran-dg-runtest.
12993 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
12995         * testsuite/libgomp.c/icv-2.c: Extend current handling of
12996         Linux-based x86 systems to cover all GNU systems.
12997         * testsuite/libgomp.c/lock-3.c: Likewise.
12998         * testsuite/libgomp.c/pr48591.c: Likewise.
13000 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
13002         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
13003         GNU/Hurd, as done for Linux-based systems.
13005         * config/posix/ptrlock.h: Fix comment.
13007 2013-05-27  Tobias Burnus  <burnus@net-b.de>
13009         PR fortran/57423
13010         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
13011         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
13012         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
13013         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
13014         omp_destroy_nest_lock): Correct arguments to match the one in
13015         the OpenMP spec.
13016         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
13017         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
13018         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
13019         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
13021 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
13023         * testsuite/libgomp.c/loop-13.c: New test.
13024         * testsuite/libgomp.c/loop-14.c: New test.
13025         * testsuite/libgomp.c/loop-15.c: New test.
13026         * testsuite/libgomp.c++/loop-13.C: New test.
13027         * testsuite/libgomp.c++/loop-14.C: New test.
13028         * testsuite/libgomp.c++/loop-15.C: New test.
13030 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
13032         PR middle-end/56217
13033         * testsuite/libgomp.c++/pr56217.C: New test.
13035 2013-02-01  Alan Modra  <amodra@gmail.com>
13037         * task.c (GOMP_task, GOMP_taskwait): Comment.
13039 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
13040             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
13042         PR libgomp/55561
13043         * config/linux/wait.h (do_spin): Use atomic load for addr.
13044         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
13045         for intptr and ptrlock.
13046         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
13047         for ptrlock.
13049 2013-01-22  Alan Modra  <amodra@gmail.com>
13051         PR libgomp/51376
13052         PR libgomp/56073
13053         * task.c (GOMP_task): Revert 2011-12-09 change.
13054         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
13055         barrier to read task->children..
13056         (gomp_barrier_handle_tasks): ..and matching atomic store with
13057         release barrier here when setting parent->children to NULL.
13059 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
13060             Tobias Burnus  <burnus@net-b.de>
13062         PR driver/55884
13063         * testsuite/libgomp.fortran/fortran.exp: Use
13064         -fintrinsic-modules-path= instead of
13065         -fintrinsic-modules-path.
13067 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
13069         Update copyright years.
13071 2012-12-19  Tobias Burnus  <burnus@net-b.de>
13073         * testsuite/libgomp.fortran/fortran.exp: Set
13074         -fintrinsic-modules-path.
13076 2012-12-19  Tobias Burnus  <burnus@net-b.de>
13078         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
13079         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
13081 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
13083         PR libgomp/55411
13084         * team.c (gomp_free_thread): Decrease gomp_managed_threads
13085         if pool had any threads_used.
13087 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
13089         * testsuite/libgomp.c++/pr24455.C: Use
13090         -Wl,-undefined,dynamic_lookup on darwin.
13092 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
13094         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
13096 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
13098         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
13100 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
13101             Jim MacArthur  <jim.macarthur@arm.com>
13102             Marcus Shawcroft  <marcus.shawcroft@arm.com>
13103             Nigel Stephens  <nigel.stephens@arm.com>
13104             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13105             Richard Earnshaw  <rearnsha@arm.com>
13106             Sofiane Naci  <sofiane.naci@arm.com>
13107             Stephen Thomas  <stephen.thomas@arm.com>
13108             Tejas Belagod  <tejas.belagod@arm.com>
13109             Yufeng Zhang  <yufeng.zhang@arm.com>
13111         * configure.tgt: Add AArch64.
13113 2012-10-04  Jason Merrill  <jason@redhat.com>
13115         * testsuite/libgomp.c++/tls-init1.C: New.
13117 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
13119         * configure: Regenerated.
13121 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
13123         * config/linux/mips/futex.h (sys_futex0): Change to static
13124         function with noinline, nomips16 attributes under MIPS16. Adjust
13125         asm statement to place 'li v0,SYS_futex' immediately before
13126         syscall insn.
13128 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
13130         * libgomp.texi (Library Index): Renamed from "Index" to prevent
13131         conflict with index.html on case-insensitive file systems.
13133 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
13135         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
13136         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
13138 2012-07-02  Richard Guenther  <rguenther@suse.de>
13139             Michael Matz  <matz@suse.de>
13140             Tobias Grosser <tobias@grosser.es>
13141             Sebastian Pop <sebpop@gmail.com>
13143         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
13144         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
13145         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
13146         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
13148 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
13150         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
13152 2012-06-22  Richard Guenther  <rguenther@suse.de>
13154         Merge from graphite branch
13155         2012-01-13  Tobias Grosser  <tobias@grosser.es>
13157         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13158         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
13160 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
13162         PR middle-end/53580
13163         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
13164         use GOMP_barrier () call instead.
13165         * testsuite/libgomp.c/pr26943-3.c: Likewise.
13166         * testsuite/libgomp.c/pr26943-4.c: Likewise.
13167         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
13168         call GOMP_barrier instead.
13169         * testsuite/libgomp.fortran/vla5.f90: Likewise.
13171 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
13173         PR libgomp/52993
13174         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
13175         argument to memset call.
13177 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13179         * configure: Regenerated.
13181 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13183         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
13185 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
13187         PR bootstrap/52812
13188         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
13190 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
13192         PR middle-end/52547
13193         * testsuite/libgomp.c/pr52547.c: New test.
13195 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
13197         * testsuite/lib/libgomp.exp: load fortran-modules.exp
13199 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13201         * configure.tgt (mips-sgi-irix6*): Remove.
13203 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13205         * configure.tgt (alpha*-dec-osf*): Remove.
13207         * config/osf/sem.h: Remove.
13208         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
13210 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
13212         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
13214 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13216         PR libstdc++/52188
13217         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
13218         Remove ENABLE_SYMVERS_SOL2.
13219         * configure: Regenerate.
13220         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
13221         (PREPROCESS): New variable.
13222         (libgomp.ver): New target.
13223         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
13224         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
13225         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
13226         Use libgomp.ver.
13227         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
13228         * Makefile.in: Regenerate.
13230 2012-02-14  Walter Lee  <walt@tilera.com>
13232         * configure.tgt: Handle tilegx and tilepro.
13233         * config/linux/tile/futex.h: New file.
13235 2012-02-08  Richard Guenther  <rguenther@suse.de>
13237         PR tree-optimization/46886
13238         * testsuite/libgomp.c/pr46886.c: New testcase.
13240 2012-01-25  Matthias Klose  <doko@ubuntu.com>
13242         * config/linux/arm: Remove empty directory.
13243         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
13245 2011-12-09  Alan Modra  <amodra@gmail.com>
13247         PR libgomp/51376
13248         * task.c (GOMP_taskwait): Don't access task->children outside of
13249         task_lock mutex region.
13250         (GOMP_task): Likewise.
13252 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
13254         PR libgomp/51132
13255         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
13256         to file scope.
13257         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
13258         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
13259         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
13260         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
13261         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
13263 2011-12-02  Alan Modra  <amodra@gmail.com>
13265         * config/linux/affinity.c: Use atomic rather than sync builtin.
13266         * config/linux/lock.c: Likewise.
13267         * config/linux/ptrlock.h: Likewise.
13268         * config/linux/ptrlock.c: Likewise.
13269         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
13270         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
13271         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
13272         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
13273         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
13274         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
13275         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
13276         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
13277         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
13278         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
13280 2011-11-30  Alan Modra  <amodra@gmail.com>
13282         PR libgomp/51298
13283         * config/linux/bar.h: Use atomic rather than sync builtins.
13284         * config/linux/bar.c: Likewise.  Add missing acquire
13285         synchronisation on generation field.
13286         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
13287         double unlock.
13289 2011-11-30  Alan Modra  <amodra@gmail.com>
13291         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
13292         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
13293         * config/linux/mutex.h: Use atomic rather than sync builtins.
13294         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
13295         * config/linux/omp-lock.h: Comment fix.
13296         * config/linux/arm/mutex.h: Delete.
13297         * config/linux/powerpc/mutex.h: Delete.
13298         * config/linux/ia64/mutex.h: Delete.
13299         * config/linux/mips/mutex.h: Delete.
13301 2011-11-30  Alan Modra  <amodra@gmail.com>
13303         PR libgomp/51249
13304         * config/linux/sem.h: Rewrite.
13305         * config/linux/sem.c: Rewrite.
13307 2011-11-28  Richard Henderson  <rth@redhat.com>
13309         * libgomp.h (enum memmodel): New.
13311 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
13313         * configure: Regenerate.
13315 2011-10-10  Matthias Klose  <doko@ubuntu.com>
13317         * config/posix95: Remove empty directory.
13319 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
13321         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
13323 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
13325         PR fortran/49792
13326         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
13327         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
13329 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13331         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
13333 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13335         PR libgomp/49965
13336         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
13338 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
13340         * config/linux/proc.h: New.
13341         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
13342         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
13343         (gomp_init_num_threads): Update call to cpuset_popcount.
13344         (get_num_procs): Ditto.
13345         * config/linux/affinity.c (gomp_init_affinity): Call
13346         gomp_cpuset_popcount.
13348 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
13350         PR fortran/42041
13351         PR fortran/46752
13352         * omp.h.in (omp_in_final): New prototype.
13353         * omp_lib.f90.in (omp_in_final): New interface.
13354         (omp_integer_kind, omp_logical_kind): Remove
13355         and replace all its uses in the module with 4.
13356         (openmp_version): Change to 201107.
13357         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
13358         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
13359         kind for the parameters.
13360         (omp_in_final): New external.
13361         (openmp_version): Change to 201107.
13362         * task.c (omp_in_final): New function.
13363         (gomp_init_task): Initialize final_task.
13364         (GOMP_task): Remove unused attribute from flags.  Handle final
13365         tasks.
13366         (GOMP_taskyield): New function.
13367         (omp_in_final): Return true if if (false) or final (true) task
13368         or descendant of final (true).
13369         * fortran.c (omp_in_final_): New function.
13370         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
13371         (GOMP_3.0): Export GOMP_taskyield.
13372         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
13373         variables.
13374         (parse_unsigned_long_list): New function.
13375         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
13376         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
13377         even if parse_affinity returned false.
13378         * config/linux/affinity.c (gomp_init_affinity): Handle
13379         gomp_cpu_affinity_len == 0.
13380         * libgomp_g.h (GOMP_taskyield): New prototype.
13381         * libgomp.h (struct gomp_task): Add final_task field.
13382         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
13383         * team.c (gomp_team_start): Override new task's nthreads_var icv
13384         if list form OMP_NUM_THREADS has been used and it has value for
13385         the new nesting level.
13387         * testsuite/libgomp.c/atomic-11.c: New test.
13388         * testsuite/libgomp.c/atomic-12.c: New test.
13389         * testsuite/libgomp.c/atomic-13.c: New test.
13390         * testsuite/libgomp.c/atomic-14.c: New test.
13391         * testsuite/libgomp.c/reduction-6.c: New test.
13392         * testsuite/libgomp.c/task-5.c: New test.
13393         * testsuite/libgomp.c++/atomic-2.C: New test.
13394         * testsuite/libgomp.c++/atomic-3.C: New test.
13395         * testsuite/libgomp.c++/atomic-4.C: New test.
13396         * testsuite/libgomp.c++/atomic-5.C: New test.
13397         * testsuite/libgomp.c++/atomic-6.C: New test.
13398         * testsuite/libgomp.c++/atomic-7.C: New test.
13399         * testsuite/libgomp.c++/atomic-8.C: New test.
13400         * testsuite/libgomp.c++/atomic-9.C: New test.
13401         * testsuite/libgomp.c++/task-8.C: New test.
13402         * testsuite/libgomp.c++/reduction-4.C: New test.
13403         * testsuite/libgomp.fortran/allocatable7.f90: New test.
13404         * testsuite/libgomp.fortran/allocatable8.f90: New test.
13405         * testsuite/libgomp.fortran/crayptr3.f90: New test.
13406         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
13407         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
13408         * testsuite/libgomp.fortran/pointer1.f90: New test.
13409         * testsuite/libgomp.fortran/pointer2.f90: New test.
13410         * testsuite/libgomp.fortran/task4.f90: New test.
13412 2011-08-02  Tobias Burnus  <burnus@net-b.de>
13414         * libgomp.texi: Update OpenMP spec references to 3.1.
13415         (omp_in_final,OMP_PROC_BIND): New sections.
13416         (OMP_NUM_THREADS): Document that the value can be now a list.
13417         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
13419 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
13421         * config/linux/x86/futex.h: Check __x86_64__ instead of
13422         __LP64__.
13424 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
13426         PR middle-end/49897
13427         PR middle-end/49898
13428         * testsuite/libgomp.c/pr49897-1.c: New test.
13429         * testsuite/libgomp.c/pr49897-2.c: New test.
13430         * testsuite/libgomp.c/pr49898-1.c: New test.
13431         * testsuite/libgomp.c/pr49898-2.c: New test.
13433 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
13435         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
13436         for ia32 instead of ilp32.
13438         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
13439         * testsuite/libgomp.c/atomic-6.c: Likewise.
13441 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
13443         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
13444         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
13446 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13448         PR libgomp/45351
13449         * config/osf/sem.h: New file.
13450         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
13452 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13454         PR target/49541
13455         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
13456         ldflags.
13458 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
13460         * config/linux/wait.h (do_spin): New inline, largely copied
13461         from do_wait, just don't do futex_wait here, instead return true if
13462         it should be done.
13463         (do_wait): Implement using do_spin.
13464         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
13465         to prototype.
13466         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
13467         __sync_bool_compare_and_swap, pass the oldval to
13468         gomp_mutex_lock_slow.
13469         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
13470         If all mutex contenders are just spinning and not sleeping, don't
13471         change state to 2 unnecessarily.  Optimize the loop when state has
13472         already become 2 to use just one atomic operation per loop instead
13473         of two.
13474         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
13475         to prototype.
13476         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
13477         __sync_bool_compare_and_swap, pass the oldval to
13478         gomp_mutex_lock_slow.
13480 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
13482         PR libgomp/49490
13483         * iter.c (gomp_iter_static_next): For chunk size 0
13484         only use n ceil/ nthreads size for the first
13485         n % nthreads threads in the team instead of
13486         all threads except for the last few ones which
13487         get less work or none at all.
13488         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
13489         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
13490         chunk argument, set run_sched_modifier to 0 for static
13491         resp. 1 for other kinds.  If chunk argument is 0
13492         and not static, set value to 1.
13494 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
13496         PR c++/49043
13497         * testsuite/libgomp.c++/pr49043.C: New test.
13499         PR c++/48869
13500         * testsuite/libgomp.c++/pr48869.C: New test.
13502 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
13504         PR fortran/48894
13505         * fortran.c: Include limits.h.
13506         (TO_INT): Define.
13507         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
13508         *set.
13509         (omp_set_num_threads_8_, omp_set_schedule_8_,
13510         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
13511         omp_get_team_size_8_): Use TO_INT macro.
13512         * testsuite/libgomp.fortran/pr48894.f90: New test.
13514 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
13516         PR middle-end/48591
13517         * testsuite/libgomp.c/pr48591.c: New test.
13519 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13521         PR bootstrap/48135
13522         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
13523         * configure: Regenerate.
13525 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
13527         PR fortran/47886
13528         * testsuite/libgomp.fortran/task3.f90: New test.
13530 2011-02-24  Tobias Burnus  <burnus@net-b.de>
13532         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
13534 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
13536         PR libgomp/47854
13537         * libgomp.texi (omp_get_wtime): Don't say time in the past
13538         must be Unix Epoch.
13540 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
13542         PR libgomp/47804
13543         * testsuite/libgomp.fortran/fortran.exp: Check for both
13544         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
13545         but $blddir != "", still append ${blddir}/${lang_library_path}
13546         to ld_library_path.
13548 2011-02-16  Tobias Burnus  <burnus@net-b.de>
13550         PR libgomp/47758
13551         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
13552         of libquadmath.a before adding its libpath to ldflags.
13554 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
13556         PR libgomp/47731
13557         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
13558         to FUTEX_WAIT futex syscall.
13559         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
13561 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13563         * configure: Regenerate.
13565 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
13567         PR libstdc++/36104
13568         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
13570 2011-01-16  Gerald Pfeifer
13572         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
13574 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
13576         PR fortran/46874
13577         * libgomp.fortran/allocatable6.f90: New test.
13579 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13581         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
13582         * configure: Regenerate.
13584 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
13586         PR target/40125
13587         PR lto/46695
13588         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
13589         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
13590         * aclocal.m4: Regenerate.
13591         * configure: Regenerate.
13592         * Makefile.in: Regenerate.
13593         * testsuite/Makefile.in: Regenerate.
13595 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
13597         PR fortran/46753
13598         * libgomp.fortran/pr46753.f90: New test.
13600         PR libgomp/43706
13601         * env.c (initialize_env): Default to spin count 300000
13602         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
13603         is specified.
13605         PR libgomp/45240
13606         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
13607         at the end if sync builtins aren't supported.
13609 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13611         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
13613 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13615         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
13617 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
13619         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
13621 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13622             Tobias Burnus  <burnus@net-b.de>
13624         PR fortran/32049
13625         * configure.ac:
13626         * configure: Regenerate.
13628 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13630         * config/linux/futex.h: New.
13631         * config/linux/arm/mutex.h: New.
13632         * configure.tgt (arm*-*-linux*): Add config path.
13634 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
13636         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13638 2010-09-23  Tobias Burnus  <burnus@net-b.de>
13640         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
13641         Change Fortran datatype to LOGICAL.
13642         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
13643         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
13645 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13647         * configure: Regenerate.
13649 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
13651         * libgomp.texi: Add function keyword to a couple of Fortran
13652         interfaces, use integer instead of int for Fortran.
13654 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
13656         * libgomp.texi: Fix spelling and pasto problems throughout.
13657         Adjust prototypes to match code.
13659 2010-07-24  Tobias Burnus  <burnus@net-b.de>
13661         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
13662         silence -fwhole-file warning.
13664 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13666         * configure.tgt (*-*-solaris2.[56]*): Removed.
13668 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13670         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
13671         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
13672         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
13673         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
13674         targetting solaris2*.
13675         * configure: Regenerate.
13676         * config.h.in: Regenerate.
13678         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
13679         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
13680         Add libgomp_version_dep.
13681         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
13682         versioning.
13683         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
13684         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
13685         * Makefile.in: Regenerate.
13687         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
13688         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
13689         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
13690         to common block, protected by
13691         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
13693 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
13695         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
13697 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
13699         PR bootstrap/43170
13700         * configure: Regenerate.
13702 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13704         PR other/43620
13705         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
13706         * configure: Regenerate.
13707         * Makefile.in: Regenerate.
13708         * testsuite/Makefile.in: Regenerate.
13710 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
13712         PR c/43893
13713         * testsuite/libgomp.c/pr43893.c: New test.
13714         * testsuite/libgomp.c++/pr43893.C: New test.
13716 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
13718         PR middle-end/43570
13719         * testsuite/libgomp.fortran/vla8.f90: New test.
13721 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
13723         PR libgomp/43706
13724         * config/linux/affinity.c (gomp_init_affinity): Decrease
13725         gomp_available_cpus if affinity mask confines the process to fewer
13726         CPUs.
13727         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
13728         non-NULL, just return gomp_available_cpus.
13730         PR libgomp/43569
13731         * sections.c (gomp_sections_init): Initialize ws->mode.
13733 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13735         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
13736         not unused bar variable.
13737         * configure: Regenerate.
13739 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13741         * Makefile.in: Regenerate.
13742         * aclocal.m4: Regenerate.
13743         * testsuite/Makefile.in: Regenerate.
13745 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
13747         PR libgomp/42942
13748         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
13749         (initialize_env): Adjust callers.
13750         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
13751         when the argument is 0.
13753         * testsuite/libgomp.c/pr42942.c: New test.
13755 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
13757         PR middle-end/42644
13758         PR middle-end/42130
13759         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13760         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
13762 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13764         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
13765         * testsuite/libgomp.c++/task-6.C: Likewise.
13767 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
13769         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
13771 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
13773         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
13774         * configure: Regenerate.
13776 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
13778         PR fortran/42866
13779         * testsuite/libgomp.fortran/allocatable5.f90: New test.
13781 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
13783         * configure.ac: Test for executability of GFORTRAN.
13784         * configure: Regenerate.
13786 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13788         * configure: Regenerate.
13790 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
13792         PR libgomp/42602
13793         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
13795 2010-01-03  Richard Guenther  <rguenther@suse.de>
13797         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
13799 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
13801         * testsuite/libgomp.graphite/pr4118.c: New.
13803 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
13805         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
13806         for darwin, protect the test with require-effective-target tls_runtime.
13807         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
13809 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
13811         PR target/41605
13812         * testsuite/lib/libgomp.exp: Provide -B options to allow for
13813         link spec %s substitutions for static libraries.
13815 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
13817         PR testsuite/42135
13818         * libgomp.graphite/force-parallel-2.c: Reduce array size.
13820 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13822         * Makefile.in: Regenerate.
13823         * configure: Regenerate.
13824         * testsuite/Makefile.in: Regenerate.
13826 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
13828         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
13829         settings for LC_ALL and LANG.
13831 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
13833         PR fortran/42162
13834         * testsuite/libgomp.fortran/pr42162.f90: New test.
13836 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
13838         PR middle-end/42029
13839         * testsuite/libgomp.c/pr42029.c: New test.
13841 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
13843         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
13844         *s.  Accept ld version without text in ()s.
13845         * configure: Regenerated.
13847 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
13849         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
13851 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13853         PR libgomp/41418
13854         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
13855         or a hyphen (happens with fortran language disabled).
13856         * configure: Regenerate.
13858 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13860         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
13861         use sed script portable to Solaris /bin/sed for extracting ld
13862         version.
13863         * configure: Regenerate.
13865 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
13867         * testsuite/libgomp.graphite/bounds.c: New test.
13869 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13871         * Makefile.am (libgomp_la_LINK): New.
13872         * Makefile.in: Regenerate.
13874 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13876         * configure.ac (AC_PREREQ): Bump to 2.64.
13878 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13880         * Makefile.am (install-html, install-pdf): Remove.
13881         * Makefile.in: Regenerate.
13883         * Makefile.in: Regenerate.
13884         * aclocal.m4: Regenerate.
13885         * config.h.in: Regenerate.
13886         * configure: Regenerate.
13887         * testsuite/Makefile.in: Regenerate.
13889 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13891         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
13892         * Makefile.in: Regenerate.
13894 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
13896         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
13897         * Makefile.in: Regenerate.
13899 2009-08-19  Tobias Burnus  <burnus@net-b.de>
13901         PR fortran/41102
13902         omp_lib.h.in: Fix -std=f95 errors.
13904 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
13906         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
13907         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
13908         * testsuite/libgomp.graphite/graphite.exp: New.
13910 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
13912         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
13913         only build.
13915 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
13917         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
13918         needed memory barrier semantics.
13919         * config/linux/mips/mutex.h: New file.
13921 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13923         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
13925 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
13927         * configure: Regenerate.
13929 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
13931         PR testsuite/40699
13932         PR testsuite/40707
13933         PR testsuite/40709
13934         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
13935         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
13936         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
13938 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
13940         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
13941         options when choosing a multilib.
13943 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
13945         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
13946         ld_library_path.  Use add_path.  Add just find_libgcc_s to
13947         ld_library_path, not every libgcc multilib directory.
13948         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
13949         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
13950         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
13951         Use add_path.
13952         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
13954 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
13956         * Makefile.am (LTLDFLAGS): Define.
13957         (LINK): Define.
13958         * Makefile.in: Regenerate.
13960 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
13962         PR fortran/39718
13963         * testsuite/libgomp.fortran/fortran.exp: Don't link with
13964         libgfortranbegin, check existence of libgfortran.a instead of
13965         libgfortranbegin.a.
13967 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
13969         PR libgomp/40174
13970         * team.c (gomp_thread_start): Destroy thr->release semaphore.
13971         (gomp_free_pool_helper): Likewise.
13973 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
13974             Jakub Jelinek  <jakub@redhat.com>
13976         PR fortran/35423
13977         * testsuite/libgomp.fortran/workshare2.f90: New test.
13979 2009-04-09  Nick Clifton  <nickc@redhat.com>
13981         * iter.c: Change copyright header to refer to version 3 of the
13982         GNU General Public License with version 3.1 of the GCC Runtime
13983         Library Exception and to point readers at the COPYING3 and
13984         COPYING3.RUNTIME files and the FSF's license web page.
13985         * alloc.c: Likewise.
13986         * barrier.c: Likewise.
13987         * config/bsd/proc.c: Likewise.
13988         * config/linux/affinity.c: Likewise.
13989         * config/linux/alpha/futex.h: Likewise.
13990         * config/linux/bar.c: Likewise.
13991         * config/linux/bar.h: Likewise.
13992         * config/linux/ia64/futex.h: Likewise.
13993         * config/linux/ia64/mutex.h: Likewise.
13994         * config/linux/lock.c: Likewise.
13995         * config/linux/mips/futex.h: Likewise.
13996         * config/linux/mutex.c: Likewise.
13997         * config/linux/mutex.h: Likewise.
13998         * config/linux/powerpc/futex.h: Likewise.
13999         * config/linux/proc.c: Likewise.
14000         * config/linux/ptrlock.c: Likewise.
14001         * config/linux/ptrlock.h: Likewise.
14002         * config/linux/s390/futex.h: Likewise.
14003         * config/linux/sem.c: Likewise.
14004         * config/linux/sem.h: Likewise.
14005         * config/linux/sparc/futex.h: Likewise.
14006         * config/linux/wait.h: Likewise.
14007         * config/linux/x86/futex.h: Likewise.
14008         * config/mingw32/proc.c: Likewise.
14009         * config/mingw32/time.c: Likewise.
14010         * config/posix/affinity.c: Likewise.
14011         * config/posix/bar.c: Likewise.
14012         * config/posix/bar.h: Likewise.
14013         * config/posix/lock.c: Likewise.
14014         * config/posix/mutex.h: Likewise.
14015         * config/posix/proc.c: Likewise.
14016         * config/posix/ptrlock.h: Likewise.
14017         * config/posix/sem.c: Likewise.
14018         * config/posix/sem.h: Likewise.
14019         * config/posix/time.c: Likewise.
14020         * config/posix95/lock.c: Likewise.
14021         * critical.c: Likewise.
14022         * env.c: Likewise.
14023         * error.c: Likewise.
14024         * fortran.c: Likewise.
14025         * iter_ull.c: Likewise.
14026         * libgomp.h: Likewise.
14027         * libgomp_f.h.in: Likewise.
14028         * libgomp_g.h: Likewise.
14029         * loop.c: Likewise.
14030         * loop_ull.c: Likewise.
14031         * omp.h.in: Likewise.
14032         * omp_lib.f90.in: Likewise.
14033         * omp_lib.h.in: Likewise.
14034         * ordered.c: Likewise.
14035         * parallel.c: Likewise.
14036         * sections.c: Likewise.
14037         * single.c: Likewise.
14038         * task.c: Likewise.
14039         * team.c: Likewise.
14040         * work.c: Likewise.
14042 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
14044         * testsuite/config/default.exp: Change copyright header to refer to
14045         version 3 of the GNU General Public License and to point readers
14046         at the COPYING3 file and the FSF's license web page.
14048 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
14050         PR middle-end/39573
14051         * libgomp.c++/pr39573.C: New test.
14053 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
14055         PR other/39591
14056         * testsuite/libgomp.c/pr39591-1.c: New test.
14057         * testsuite/libgomp.c/pr39591-2.c: New test.
14058         * testsuite/libgomp.c/pr39591-3.c: New test.
14060 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
14062         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
14063         * testsuite/libgomp.c/atomic-6.c: Ditto.
14065 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
14067         PR c/39495
14068         * testsuite/libgomp.c/loop-12.c: New test.
14069         * testsuite/libgomp.c/loop-11.c: New test.
14070         * testsuite/libgomp.c++/loop-11.C: New test.
14071         * testsuite/libgomp.c++/loop-12.C: New test.
14072         * testsuite/libgomp.c++/for-8.C: New test.
14074 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14076         * configure: Regenerate.
14078 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
14080         PR middle-end/39154
14081         * testsuite/libgomp.c/pr39154.c: New test.
14083 2009-01-30  Ian Lance Taylor  <iant@google.com>
14085         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
14086         libgomp_ld_is_gold.  Get gold version number.
14087         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
14088         * configure: Rebuild.
14090 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
14092         * testsuite/lib/libgomp.exp: Add -B option for targets that
14093         use libgfortran.a%s in their specs.
14095 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
14097         PR libgomp/38086
14098         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
14099         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
14100         HAVE_AS_SYMVER_DIRECTIVE is not defined.
14101         * configure: Regenerated.
14102         * config.h.in: Likewise.
14104 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
14106         PR c++/38650
14107         * testsuite/libgomp.c/pr38650.c: New test.
14108         * testsuite/libgomp.c++/pr38650.C: New test.
14110 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
14112         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
14114 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
14116         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
14118 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14120         * configure: Regenerate.
14122 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
14124         PR middle-end/36802
14125         * testsuite/libgomp.c/pr36802-1.c: New test.
14126         * testsuite/libgomp.c/pr36802-2.c: New test.
14127         * testsuite/libgomp.c/pr36802-3.c: New test.
14129 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
14131         PR libgomp/38270
14132         * config/linux/powerpc/mutex.h: New.
14134 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
14136         PR c++/38257
14137         * testsuite/libgomp.c++/for-7.C: New test.
14139         PR c++/38348
14140         * testsuite/libgomp.c++/for-6.C: New test.
14142 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
14144         PR testsuite/28870
14145         * testsuite/lib/libgomp.exp: Include new timeout library files.
14146         (libgomp_target_compile): Set timeout value from new proc.
14148 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
14150         PR libgomp/37938
14151         * config/linux/ia64/mutex.h: New.
14153 2008-11-04  Tobias Burnus  <burnus@net-b.de>
14155         PR libgomp/37935
14156         * libgomp.texi (Runtime library routines, environment variables):
14157         Update for OpenMP version 3.0.
14159 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
14160             Steve Ellcey  <sje@cup.hp.com>
14162         * configure: Regenerate for new libtool.
14163         * Makefile.in: Ditto.
14164         * testsuite/Makefile.in: Ditto.
14166 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
14167             Andreas Tobler  <a.tobler@schweiz.org>
14169         * config/bsd/proc.c: New file.
14170         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
14171         * configure.ac: Check for header <sys/sysctl.h>
14172         * configure: Regenerate.
14173         * config.h.in: Likewise.
14175 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
14177         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
14179 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
14181         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
14182         * Makefile.in: Regenerated.
14183         * testsuite/Makefile.in: Regenerated.
14185 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
14187         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
14188         depend on blddir if blddir exists.
14189         (libgomp_target_compile): Likewise.
14190         * testsuite/libgomp.c++/c++.exp: Likewise.
14191         * testsuite/libgomp.fortran/fortran.exp: Likewise.
14193 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14195         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
14196         Do not list GPL as Invariant Section.
14198 2008-07-28  Ilie Garbacea  <ilie@mips.com>
14199             Chao-ying Fu  <fu@mips.com>
14201         * configure.tgt: Enable futex for MIPS.
14202         * config/linux/mips/futex.h: New file.
14204 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
14206         * team.c (gomp_team_end): Free team immediately if it has
14207         just one thread.
14209 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
14211         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
14212         * testsuite/libgomp.fortran/fortran.exp: Same.
14213         * testsuite/libgomp.c/c.exp: Same.
14214         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
14215         directory to library path first.
14217 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
14219         * env.c (parse_stacksize): Add cast to avoid warning.
14220         (parse_spincount): Likewise.
14222 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
14224         * testsuite/libgomp.c/loop-10.c: New test.
14225         * libgomp.c/loop-3.c (main): Add lastprivate clause.
14226         * libgomp.c++/loop-6.C (main): Likewise.
14228         PR debug/36617
14229         * testsuite/libgomp.c/debug-1.c: New test.
14231 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
14233         * testsuite/libgomp.c/nqueens-1.c: New test.
14235         PR c++/36523
14236         * testsuite/libgomp.c++/task-7.C: New function.
14238 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14240         * configure: Regenerate.
14242 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14244         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
14245         mutex when HAVE_SYNC_BUILTINS isn't defined.
14247 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14249         * libgomp.texi (omp_test_lock): Fix typo.
14251 2008-06-12  Tobias Burnus  <burnus@net-b.de>
14253         * omp_lib.f90.in: Add "implicit none".
14255 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
14257         PR middle-end/36506
14258         * testsuite/libgomp.c/reduction-5.c: New test.
14260 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
14262         * libgomp.h (struct gomp_task): Add in_tied_task field.
14263         * task.c (gomp_init_task): Initialize it.
14264         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
14265         unconditionally.  Don't call gomp_team_barrier_wake if
14266         current task is implicit or if(0) from implicit and number of
14267         running tasks is equal to nthreads - 1.
14269         PR libgomp/36471
14270         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
14271         omp_get_team_size_8): Fix pastos.
14273         PR libgomp/36469
14274         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
14275         * configure: Regenerated.
14276         * config.h.in: Regenerated.
14277         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
14278         defined.
14280 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
14282         PR bootstrap/36452
14283         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
14284         (GOMP_loop_ull_dynamic_start): Likewise.
14285         (GOMP_loop_ull_guided_start): Likewise.
14286         (GOMP_loop_ull_ordered_static_start): Likewise.
14287         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
14288         (GOMP_loop_ull_ordered_guided_start): Likewise.
14290 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
14291             Richard Henderson  <rth@redhat.com>
14292             Ulrich Drepper  <drepper@redhat.com>
14293             Jakob Blomer  <jakob.blomer@ira.uka.de>
14295         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
14296         Substitute also OMP_*LOCK_25*.
14297         * configure: Regenerated.
14298         * config.h.in: Regenerated.
14299         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
14300         ptrlock.c and task.c.
14301         * Makefile.in: Regenerated.
14302         * testsuite/Makefile.in: Regenerated.
14303         * task.c: New file.
14304         * loop_ull.c: New file.
14305         * iter_ull.c: New file.
14306         * libgomp.h: Include ptrlock.h.
14307         (enum gomp_task_kind): New type.
14308         (struct gomp_team): Add task_lock, task_queue, task_count,
14309         task_running_count, single_count fields.  Add
14310         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
14311         Remove work_share_lock, generation_mask,
14312         oldest_live_gen, num_live_gen and init_work_shares fields, add
14313         work work_share_list_alloc, work_share_list_free and work_share_chunk
14314         fields.  Change work_shares from pointer to pointers into an array.
14315         Change ordered_release field into gomp_sem_t ** from flexible array
14316         member.  Add implicit_task and initial_work_shares fields.
14317         Move close to the end of the struct.
14318         (struct gomp_team_state): Add single_count, last_work_share,
14319         active_level and level fields, remove work_share_generation.
14320         (gomp_barrier_handle_tasks): New prototype.
14321         (gomp_finish_task): New inline function.
14322         (struct gomp_work_share): Move chunk_size, end, incr into
14323         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
14324         next_ll fields.  Reshuffle fields.  Add next_alloc,
14325         next_ws, next_free and inline_ordered_team_ids fields, change
14326         ordered_team_ids into pointer from flexible array member.
14327         Add mode field.  Put lock and next into a different cache line
14328         from most of the write-once fields.
14329         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
14330         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
14331         gomp_iter_ull_guided_next): New prototypes.
14332         (gomp_new_icv): New prototype.
14333         (struct gomp_thread): Add thread_pool and task fields.
14334         (struct gomp_thread_pool): New type.
14335         (gomp_new_team): New prototype.
14336         (gomp_team_start): Change type of last argument.
14337         (gomp_new_work_share): Removed.
14338         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
14339         (gomp_work_share_init_done): New static inline.
14340         (gomp_throttled_spin_count_var, gomp_available_cpus,
14341         gomp_managed_threads): New extern decls.
14342         (gomp_init_task): New prototype.
14343         (gomp_spin_count_var): New extern var decl.
14344         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
14345         or no alias support, or if not PIC.
14346         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
14347         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
14348         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
14349         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
14350         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
14351         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
14352         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
14353         gomp_test_nest_lock_25): New prototypes.
14354         (omp_lock_symver, strong_alias): Define.
14355         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
14356         decls.
14357         (gomp_end_task): New.
14358         (struct gomp_task_icv, gomp_global_icv): New.
14359         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
14360         (struct gomp_task): New.
14361         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
14362         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
14363         (gomp_icv): New.
14364         (gomp_schedule_type): Reorder enum to match
14365         omp_sched_t.
14366         * team.c (struct gomp_thread_start_data): Add thread_pool and task
14367         fields.
14368         (gomp_thread_start): Add gomp_team_barrier_wait call.
14369         For non-nested case remove clearing of docked thread thr fields.
14370         Use pool fields instead of global gomp_* variables.  Use
14371         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
14372         Create tasks for each member thread.
14373         (free_team): Only destroy team barrier, task_lock here and free it.
14374         (gomp_free_thread): Free last_team if non-NULL.
14375         (gomp_team_end): Call gomp_team_barrier_wait instead of
14376         gomp_barrier_wait.  For nested case call one extra
14377         gomp_barrier_wait.  Move here some destruction from free_team.
14378         Call free_team on pool->last_team if any, rather than freeing
14379         current team.  Destroy work_share_list_free_lock ifndef
14380         HAVE_SYNC_BUILTINS.
14381         (gomp_new_icv): New function.
14382         (gomp_threads, gomp_threads_size, gomp_threads_used,
14383         gomp_threads_dock): Removed.
14384         (gomp_thread_destructor): New variable.
14385         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
14386         functions.
14387         (gomp_team_start): Create new pool if current thread doesn't have
14388         one.  Use pool fields instead of global gomp_* variables.
14389         Initialize thread_pool field for new threads.  Clear single_count.
14390         Change last argument from ws to team, don't create
14391         new team, set ts.work_share to &team->work_shares[0] and clear
14392         ts.last_work_share.  Don't clear ts.work_share_generation.
14393         If number of threads changed, adjust atomically gomp_managed_threads.
14394         Use gomp_init_task instead of gomp_new_task,
14395         set thr->task to the corresponding implicit_task array entry.
14396         Create tasks for each member thread.  Initialize ts.level.
14397         (initialize_team): Call pthread_key_create on
14398         gomp_thread_destructor.
14399         (team_destructor): New function.
14400         (new_team): Removed.
14401         (gomp_new_team): New function.
14402         (free_team): Free gomp_work_share blocks chained through next_alloc,
14403         instead of freeing work_shares and destroying work_share_lock.
14404         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
14405         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
14406         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
14407         of gomp_barrier_wait.
14408         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
14409         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
14410         if gomp_work_share_start returned true.  Don't unlock ws->lock.
14411         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
14412         of gomp_barrier_wait.
14413         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
14414         gomp_work_share_init_done if gomp_work_share_start returned true.
14415         Don't unlock ws->lock.
14416         * work.c: Include stddef.h.
14417         (free_work_share): Use work_share_list_free_lock instead
14418         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
14419         Call gomp_fini_work_share and then either free ws if orphaned, or
14420         put it into work_share_list_free list of the current team.
14421         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
14422         functions.
14423         (gomp_work_share_start, gomp_work_share_end,
14424         gomp_work_share_end_nowait): Rewritten.
14425         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
14426         (openmp_version): Set to 200805.
14427         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
14428         omp_sched_guided, omp_sched_auto): New parameters.
14429         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14430         omp_set_max_active_levels, omp_get_max_active_levels,
14431         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14432         omp_get_active_level): New interfaces.
14433         * omp_lib.h.in (openmp_version): Set to 200805.
14434         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
14435         omp_sched_guided, omp_sched_auto): New parameters.
14436         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14437         omp_set_max_active_levels, omp_get_max_active_levels,
14438         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14439         omp_get_active_level): New externals.
14440         * loop.c: Include limits.h.
14441         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
14442         GFS_AUTO.
14443         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
14444         Likewise.  Use gomp_icv.
14445         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
14446         ts.static_trip here.
14447         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
14448         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
14449         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
14450         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
14451         don't unlock ws->lock, otherwise lock it.
14452         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
14453         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
14454         (gomp_parallel_loop_start): Call gomp_new_team instead of
14455         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
14456         Adjust gomp_team_start caller.  Pass 0 as second argument to
14457         gomp_resolve_num_threads.
14458         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
14459         If adding ws->chunk_size nthreads + 1 times after end won't
14460         overflow, set ws->mode to 1.
14461         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
14462         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
14463         GOMP_loop_ull_ordered_static_start,
14464         GOMP_loop_ull_ordered_dynamic_start,
14465         GOMP_loop_ull_ordered_guided_start,
14466         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
14467         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
14468         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
14469         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
14470         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
14471         prototypes.
14472         * libgomp.map: Export lock routines also @@OMP_2.0.
14473         (GOMP_loop_ordered_dynamic_first,
14474         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
14475         GOMP_loop_ordered_static_first): Remove.
14476         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
14477         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
14478         GOMP_loop_ull_ordered_dynamic_next,
14479         GOMP_loop_ull_ordered_dynamic_start,
14480         GOMP_loop_ull_ordered_guided_next,
14481         GOMP_loop_ull_ordered_guided_start,
14482         GOMP_loop_ull_ordered_runtime_next,
14483         GOMP_loop_ull_ordered_runtime_start,
14484         GOMP_loop_ull_ordered_static_next,
14485         GOMP_loop_ull_ordered_static_start,
14486         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
14487         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
14488         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
14489         (omp_set_schedule, omp_get_schedule,
14490         omp_get_thread_limit, omp_set_max_active_levels,
14491         omp_get_max_active_levels, omp_get_level,
14492         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
14493         omp_set_schedule_, omp_set_schedule_8_,
14494         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
14495         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
14496         omp_get_max_active_levels_, omp_get_level_,
14497         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
14498         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
14499         New exports @@OMP_3.0.
14500         * omp.h.in (omp_sched_t): New type.
14501         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14502         omp_set_max_active_levels, omp_get_max_active_levels,
14503         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14504         omp_get_active_level): New prototypes.
14505         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
14506         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
14507         gomp_thread_limit_var, gomp_remaining_threads_count,
14508         gomp_remaining_threads_lock): New variables.
14509         (parse_spincount): New function.
14510         (initialize_env): Call gomp_init_num_threads unconditionally.
14511         Initialize gomp_available_cpus.  Call parse_spincount,
14512         initialize gomp_{,throttled_}spin_count_var
14513         depending on presence and value of OMP_WAIT_POLICY and
14514         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
14515         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
14516         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
14517         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
14518         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
14519         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
14520         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
14521         (gomp_global_icv): New.
14522         (parse_schedule): Use it.  Parse "auto".
14523         (omp_set_num_threads): Use gomp_icv.
14524         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
14525         Likewise.
14526         (omp_get_max_threads): Move from parallel.c.
14527         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14528         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
14529         add ialias.
14530         (parse_stacksize, parse_wait_policy): New functions.
14531         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
14532         both wrappers for compatibility and new locks.
14533         (omp_set_schedule, omp_get_schedule,
14534         omp_get_thread_limit, omp_set_max_active_levels,
14535         omp_get_max_active_levels, omp_get_level,
14536         omp_get_ancestor_thread_num, omp_get_team_size,
14537         omp_get_active_level): New ialias_redirect.
14538         (omp_set_schedule_, omp_set_schedule_8_,
14539         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
14540         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
14541         omp_get_max_active_levels_, omp_get_level_,
14542         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
14543         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
14544         New functions.
14545         * parallel.c: Include limits.h.
14546         (gomp_resolve_num_threads): Add count argument.  Rewritten.
14547         (GOMP_parallel_start): Call gomp_new_team and pass that as last
14548         argument to gomp_team_start.  Pass 0 as second argument to
14549         gomp_resolve_num_threads.
14550         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
14551         if gomp_thread_limit_var != ULONG_MAX.
14552         (omp_in_parallel): Implement using ts.active_level.
14553         (omp_get_max_threads): Move to env.c.
14554         (omp_get_level, omp_get_ancestor_thread_num,
14555         omp_get_team_size, omp_get_active_level): New functions,
14556         add ialias.
14557         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
14558         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
14559         gomp_iter_dynamic_next instead of the _locked variant and don't take
14560         lock around it, otherwise acquire it before calling
14561         gomp_iter_dynamic_next_locked.
14562         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
14563         gomp_iter_dynamic_next instead of the _locked variant and don't take
14564         lock around it.
14565         (GOMP_parallel_sections_start): Call gomp_new_team instead of
14566         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
14567         Adjust gomp_team_start caller.  Pass count as second argument to
14568         gomp_resolve_num_threads, don't adjust num_threads after the call.
14569         Use gomp_icv.
14570         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
14571         ws->chunk_size by incr.
14572         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
14573         code.
14574         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
14575         types.
14576         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
14577         (omp_check_defines): Check even the compat defines.
14578         * config/linux/ptrlock.c: New file.
14579         * config/linux/ptrlock.h: New file.
14580         * config/linux/wait.h: New file.
14581         * config/posix/ptrlock.c: New file.
14582         * config/posix/ptrlock.h: New file.
14583         * config/linux/bar.h (gomp_team_barrier_wait,
14584         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
14585         (gomp_team_barrier_set_task_pending,
14586         gomp_team_barrier_clear_task_pending,
14587         gomp_team_barrier_set_waiting_for_tasks,
14588         gomp_team_barrier_waiting_for_tasks,
14589         gomp_team_barrier_done): New inlines.
14590         (gomp_barrier_t): Rewritten.
14591         (gomp_barrier_state_t): New typedef.
14592         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
14593         gomp_barrier_wait_start): Rewritten.
14594         (gomp_barrier_wait_end): Change second argument to
14595         gomp_barrier_state_t.
14596         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
14597         inlines.
14598         * config/linux/bar.c: Include wait.h instead of libgomp.h and
14599         futex.h.
14600         (gomp_barrier_wait_end): Rewritten.
14601         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
14602         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
14603         * config/posix/bar.h (gomp_barrier_t): Add generation field.
14604         (gomp_barrier_state_t): New typedef.
14605         (gomp_team_barrier_wait,
14606         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
14607         (gomp_barrier_wait_start): Or all but low 2 bits from generation
14608         into the return value.  Return gomp_barrier_state_t.
14609         (gomp_team_barrier_set_task_pending,
14610         gomp_team_barrier_clear_task_pending,
14611         gomp_team_barrier_set_waiting_for_tasks,
14612         gomp_team_barrier_waiting_for_tasks,
14613         gomp_team_barrier_done): New inlines.
14614         (gomp_barrier_wait_end): Change second argument to
14615         gomp_barrier_state_t.
14616         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
14617         inlines.
14618         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
14619         (gomp_barrier_wait_end): Change second argument to
14620         gomp_barrier_state_t.
14621         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
14622         gomp_team_barrier_wake): New functions.
14623         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
14624         futex.h.
14625         (gomp_futex_wake, gomp_futex_wait): New variables.
14626         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
14627         * config/linux/lock.c: Rewrite to make locks task owned,
14628         for backwards compatibility provide the old entrypoints
14629         if symbol versioning.  Include wait.h instead of libgomp.h and
14630         futex.h.
14631         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
14632         * config/posix95/lock.c: Rewrite to make locks task owned,
14633         for backwards compatibility provide the old entrypoints
14634         if symbol versioning.
14635         * config/posix/lock.c: Rewrite to make locks task owned,
14636         for backwards compatibility provide the old entrypoints
14637         if symbol versioning.
14638         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
14639         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
14640         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
14641         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14642         (sys_futex0): Return error code.
14643         (futex_wake, futex_wait): If ENOSYS was returned, clear
14644         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14645         (cpu_relax, atomic_write_barrier): New static inlines.
14646         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14647         (futex_wake, futex_wait): If ENOSYS was returned, clear
14648         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14649         (cpu_relax, atomic_write_barrier): New static inlines.
14650         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14651         (sys_futex0): Return error code.
14652         (futex_wake, futex_wait): If ENOSYS was returned, clear
14653         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14654         (cpu_relax, atomic_write_barrier): New static inlines.
14655         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14656         (sys_futex0): Return error code.
14657         (futex_wake, futex_wait): If ENOSYS was returned, clear
14658         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14659         (cpu_relax, atomic_write_barrier): New static inlines.
14660         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14661         (sys_futex0): Return error code.
14662         (futex_wake, futex_wait): If ENOSYS was returned, clear
14663         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14664         (cpu_relax, atomic_write_barrier): New static inlines.
14665         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14666         (sys_futex0): Return error code.
14667         (futex_wake, futex_wait): If ENOSYS was returned, clear
14668         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14669         (cpu_relax, atomic_write_barrier): New static inlines.
14670         * config/linux/sem.c: Include wait.h instead of libgomp.h and
14671         futex.h.
14672         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
14673         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
14674         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
14675         types.
14676         (omp_nest_lock_t): Change owner into void *, add lock field.
14677         * config/posix95/omp-lock.h: Include semaphore.h.
14678         (omp_lock_25_t, omp_nest_lock_25_t): New types.
14679         (omp_lock_t): Use sem_t instead of mutex if semaphores
14680         aren't broken.
14681         (omp_nest_lock_t): Likewise.  Change owner to void *.
14682         * config/posix/omp-lock.h: Include semaphore.h.
14683         (omp_lock_25_t, omp_nest_lock_25_t): New types.
14684         (omp_lock_t): Use sem_t instead of mutex if semaphores
14685         aren't broken.
14686         (omp_nest_lock_t): Likewise.  Add owner field.
14688 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
14690         * testsuite/libgomp.c/collapse-1.c: New test.
14691         * testsuite/libgomp.c/collapse-2.c: New test.
14692         * testsuite/libgomp.c/collapse-3.c: New test.
14693         * testsuite/libgomp.c/icv-1.c: New test.
14694         * testsuite/libgomp.c/icv-2.c: New test.
14695         * testsuite/libgomp.c/lib-2.c: New test.
14696         * testsuite/libgomp.c/lock-1.c: New test.
14697         * testsuite/libgomp.c/lock-2.c: New test.
14698         * testsuite/libgomp.c/lock-3.c: New test.
14699         * testsuite/libgomp.c/loop-4.c: New test.
14700         * testsuite/libgomp.c/loop-5.c: New test.
14701         * testsuite/libgomp.c/loop-6.c: New test.
14702         * testsuite/libgomp.c/loop-7.c: New test.
14703         * testsuite/libgomp.c/loop-8.c: New test.
14704         * testsuite/libgomp.c/loop-9.c: New test.
14705         * testsuite/libgomp.c/nested-3.c: New test.
14706         * testsuite/libgomp.c/nestedfn-6.c: New test.
14707         * testsuite/libgomp.c/sort-1.c: New test.
14708         * testsuite/libgomp.c/task-1.c: New test.
14709         * testsuite/libgomp.c/task-2.c: New test.
14710         * testsuite/libgomp.c/task-3.c: New test.
14711         * testsuite/libgomp.c/task-4.c: New test.
14712         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
14713         to C++ testsuite default compiler options.
14714         * testsuite/libgomp.c++/collapse-1.C: New test.
14715         * testsuite/libgomp.c++/collapse-2.C: New test.
14716         * testsuite/libgomp.c++/ctor-10.C: New test.
14717         * testsuite/libgomp.c++/for-1.C: New test.
14718         * testsuite/libgomp.c++/for-2.C: New test.
14719         * testsuite/libgomp.c++/for-3.C: New test.
14720         * testsuite/libgomp.c++/for-4.C: New test.
14721         * testsuite/libgomp.c++/for-5.C: New test.
14722         * testsuite/libgomp.c++/loop-8.C: New test.
14723         * testsuite/libgomp.c++/loop-9.C: New test.
14724         * testsuite/libgomp.c++/loop-10.C: New test.
14725         * testsuite/libgomp.c++/task-1.C: New test.
14726         * testsuite/libgomp.c++/task-2.C: New test.
14727         * testsuite/libgomp.c++/task-3.C: New test.
14728         * testsuite/libgomp.c++/task-4.C: New test.
14729         * testsuite/libgomp.c++/task-5.C: New test.
14730         * testsuite/libgomp.c++/task-6.C: New test.
14731         * testsuite/libgomp.fortran/allocatable1.f90: New test.
14732         * testsuite/libgomp.fortran/allocatable2.f90: New test.
14733         * testsuite/libgomp.fortran/allocatable3.f90: New test.
14734         * testsuite/libgomp.fortran/allocatable4.f90: New test.
14735         * testsuite/libgomp.fortran/collapse1.f90: New test.
14736         * testsuite/libgomp.fortran/collapse2.f90: New test.
14737         * testsuite/libgomp.fortran/collapse3.f90: New test.
14738         * testsuite/libgomp.fortran/collapse4.f90: New test.
14739         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
14740         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
14741         * testsuite/libgomp.fortran/lib4.f90: New test.
14742         * testsuite/libgomp.fortran/lock-1.f90: New test.
14743         * testsuite/libgomp.fortran/lock-2.f90: New test.
14744         * testsuite/libgomp.fortran/nested1.f90: New test.
14745         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
14746         * testsuite/libgomp.fortran/strassen.f90: New test.
14747         * testsuite/libgomp.fortran/tabs1.f90: New test.
14748         * testsuite/libgomp.fortran/tabs2.f: New test.
14749         * testsuite/libgomp.fortran/task1.f90: New test.
14750         * testsuite/libgomp.fortran/task2.f90: New test.
14751         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
14752         * testsuite/libgomp.fortran/vla5.f90: Likewise.
14753         * testsuite/libgomp.c/pr26943-2.c: Likewise.
14754         * testsuite/libgomp.c/pr26943-3.c: Likewise.
14755         * testsuite/libgomp.c/pr26943-4.c: Likewise.
14757 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
14759         PR c++/36308
14760         * testsuite/libgomp.c++/ctor-11.C: New test.
14761         * testsuite/libgomp.c++/ctor-12.C: New test.
14763 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
14765         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
14767 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
14769         PR middle-end/36106
14770         * testsuite/libgomp.c/atomic-5.c: New test.
14771         * testsuite/libgomp.c/atomic-6.c: New test.
14772         * testsuite/libgomp.c/autopar-1.c: New test.
14774 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14776         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
14777         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
14778         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
14779         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
14780         * configure: Regenerate.
14781         * Makefile.in, testsuite/Makefile.in: Likewise.
14783 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
14785         PR bootstrap/35457
14786         * aclocal.m4: Regenerate.
14787         * configure: Regenerate.
14789 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
14791         PR middle-end/35611
14792         * testsuite/libgomp.c/atomic-4.c: New test.
14794         PR libgomp/35625
14795         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
14796         (gomp_iter_guided_next): Likewise.
14797         * testsuite/libgomp.c/pr35625.c: New test.
14799 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14801         * aclocal.m4: Regenerate.
14802         * configure: Likewise.
14803         * Makefile.in: Likewise.
14804         * testsuite/Makefile.in: Likewise.
14806 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
14808         PR middle-end/35185
14809         * testsuite/libgomp.c++/pr35185.C: New test.
14811 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
14813         PR middle-end/35549
14814         * testsuite/libgomp.c/pr35549.c: New test.
14816 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
14818         * testsuite/libgomp.c/atomic-3.c: New test.
14820 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14822         PR fortran/33197
14823         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
14824         .F08 file suffixes.
14826 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
14828         PR libgomp/33131
14829         * configure.ac: Add ACX_HEADER_STRING.
14830         * env.c: Include strings.h.
14831         * aclocal.m4: Regenerate.
14832         * config.h.in: Regenerate.
14833         * configure: Regenerate.
14834         * Makefile.in: Regenerate.
14835         * testsuite/Makefile.in: Regenerate.
14837 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
14839         PR middle-end/35196
14840         * testsuite/libgomp.c/pr35196.c: New test.
14842         PR middle-end/35130
14843         * testsuite/libgomp.fortran/pr35130.f90: New test.
14844         * testsuite/libgomp.c/pr35130.c: New test.
14846 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
14848         PR middle-end/33880
14849         * testsuite/libgomp.c/pr33880.c: New test.
14850         * testsuite/libgomp.fortran/pr33880.f90: New test.
14852 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
14854         * configure: Regenerate.
14856 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
14858         * configure.ac: Move futex checking into ../config/futex.m4.
14859         * configure: Rebuilt.
14860         * aclocal.m4: Rebuilt.
14861         * Makefile.in: Rebuilt.
14863         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
14864         2007-10-15 ../config/tls.m4 change.
14866 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
14868         PR c++/34513
14869         * testsuite/libgomp.c/pr34513.c: New test.
14870         * testsuite/libgomp.c++/pr34513.C: New test.
14872 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
14874         PR target/32765
14875         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
14877 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
14879         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
14881 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
14883         * testsuite/libgomp.c/private-1.c: New test.
14885 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
14886             Paolo Bonzini  <bonzini@gnu.org>
14888         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
14889         instead of 'VPATH ='.
14890         * Makefile.in: Regenerate.
14892 2007-11-23  Matthias Klose  <doko@ubuntu.com>
14894         * configure.ac: Adjust makeinfo version check.
14895         * configure: Regenerate.
14897 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
14899         PR fortran/34020
14900         * testsuite/libgomp.fortran/pr34020.f90: New test.
14902 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
14904         PR c++/33894
14905         * testsuite/libgomp.c++/atomic-1.C: New test.
14907 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
14909         PR libgomp/33275
14910         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
14911         Make x and y integers rather than (implicit) reals.  Add private (j)
14912         clause to the last omp parallel.
14914 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
14916         * configure: Regenerate following changes to ../config/tls.m4.
14918 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
14920         * testsuite/libgomp.fortran/stack.f90: New test.
14922 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
14924         * config/mingw32/proc.c: New file.
14926 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
14928         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
14929         (main): Use __get_cpuid to get i386 target fetaures.
14930         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
14931         (main): Use __get_cpuid to get x86_64 target fetaures.
14933 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
14935         PR target/32765
14936         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
14937         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
14939 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
14941         PR fortran/32550
14942         * testsuite/libgomp.fortran/pr32550.f90: New test.
14943         * testsuite/libgomp.fortran/crayptr2.f90: New test.
14945 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
14947         * aclocal.m4: Regenerated.
14949 2007-07-05  Tobias Burnus  <burnus@net-b.de>
14951         PR fortran/32359
14952         * testsuite/libgomp.fortran/pr32359.f90: New.
14954 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
14956         PR libgomp/32468
14957         * sections.c (GOMP_parallel_sections_start): Only decrease
14958         number of threads to COUNT if dyn_var is true.
14959         * testsuite/libgomp.c/pr32468.c: New test.
14961 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14963         PR libgomp/26308
14964         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
14966 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
14968         PR middle-end/32362
14969         * testsuite/libgomp.c/pr32362-1.c: New test.
14970         * testsuite/libgomp.c/pr32362-2.c: New test.
14971         * testsuite/libgomp.c/pr32362-3.c: New test.
14973 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
14975         * team.c (gomp_team_start): Fix setting up thread_attr
14976         stack size.
14978 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
14980         * configure: Regenerate.
14982 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
14984         * Makefile.in: Regenerate.
14985         * configure: Regenerate.
14986         * aclocal.m4: Regenerate.
14987         * testsuite/Makefile.in: Regenerate.
14989 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
14991         * config/linux/proc.c: New file.
14993         PR libgomp/28482
14994         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
14996 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
14998         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
15000 2007-04-16  Matthias Klose  <doko@debian.org>
15002         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
15003         flags if not building with -m64.
15004         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
15005         flag for i?86-*-* targets, if current target matches -m64.
15007 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
15009         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
15010         * Makefile.in: Regenerate.
15012 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15014         PR testsuite/31369
15015         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
15016         ld_library_path.
15017         * testsuite/libgomp.fortran/fortran.exp: Likewise.
15019 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
15021         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
15022         decls.
15023         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
15024         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
15025         (parse_affinity): New function.
15026         (initialize_env): Call it and gomp_init_affinity.
15027         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
15028         create new pthread_attr_t and call gomp_init_thread_affinity
15029         on it for each thread before passing the attribute to pthread_create.
15030         * config/linux/affinity.c: New file.
15031         * config/posix/affinity.c: New file.
15032         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
15033         * configure: Rebuilt.
15034         * config.h.in: Rebuilt.
15035         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
15036         * Makefile.in: Rebuilt.
15038 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
15040         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
15041         *-*-darwin*.
15042         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
15043         and use it if found.
15045 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
15047         * testsuite/config/default.exp: New file.
15048         * testsuite/lib/libgomp.exp: New file.
15049         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
15050         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
15051         load_lib *, load_gcc_lib *): Move to libgomp.exp.
15052         (libgomp_load): Remove.
15053         * testsuite/lib/libgomp.exp (libgomp_init): Compute
15054         always_ld_library_path, not ld_library_path.  Set additional_flags
15055         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
15056         (target_compile): Do not call libgomp_init.  Append lang_library_path
15057         and lang_link_flags to options.
15058         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
15059         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
15060         here.
15061         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
15062         always_ld_library_path.  Set LD_LIBRARY_PATH here.
15063         * testsuite/libgomp.fortran/fortran.exp: Ditto.
15064         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
15065         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
15066         CX8 flag.
15067         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
15068         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
15069         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
15070         * testsuite/libgomp.c/pr29947-1.c: Ditto.
15071         * testsuite/libgomp.c/atomic-10.c: Ditto.
15073 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
15075         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
15076         dg-final cleanup-modules line.
15077         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
15078         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
15079         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
15080         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
15081         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
15082         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
15083         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
15085 2007-03-18  Andreas Schwab  <schwab@suse.de>
15087         * acinclude.m4: Adjust regular expression for ld version
15088         extraction.
15089         * configure: Regenerate.
15091 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
15093         * Makefile.am: Add install-pdf target as copied from
15094         automake v1.10 rules.
15095         * Makefile.in: Regenerate
15097 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
15099         PR libgomp/28486
15100         * configure: Regenerate.
15102         PR c++/30703
15103         * testsuite/libgomp.c++/pr30703.C: New test.
15105 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
15107         Revert:
15108         2006-07-05  Eric Christopher  <echristo@apple.com>
15109         * configure.ac: Depend addition of -pthread on host OS.
15110         * configure: Regenerate.
15112 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15114         * libgomp.texi: Fix spacing after abbreviations.
15116 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
15118         PR libgomp/30546
15119         * configure.ac: Add check for makeinfo
15120         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
15121         if an appropriate version of makeinfo is found.
15122         * aclocal.m4: Regenerated.
15123         * configure: Regenerated.
15124         * Makefile.in: Regenerated.
15125         * testsuite/Makefile.in: Regenerated.
15127 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
15129         PR libgomp/30540
15130         * libgomp.texi: More about implementation-dependent settings.
15132 2007-01-26  Tobias Burnus  <burnus@net-b.de>
15134         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
15136 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
15138         PR middle-end/30494
15139         * testsuite/libgomp.c/pr30494.c: New test.
15141 2007-01-15  Tom Tromey  <tromey@redhat.com>
15143         * configure: Rebuilt.
15144         * configure.ac: Fixed comment.
15146 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
15148         * libgomp.texi: Document implementation specific default values of
15149         environment variables.
15151 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
15153         PR libgomp/28209
15154         * libgomp.texi: New file.
15155         * configure.ac: Add --enable-generated-files-in-srcdir option.
15156         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
15157         files to srcdir.
15158         * Makefile.in: Regenerated.
15159         * config.h.in: Regenerated.
15160         * testsuite/Makefile.in: Regenerated.
15161         * NOTES: Removed.
15163 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
15165         PR libgomp/29949
15166         * env.c (omp_set_num_threads): Set illegal thread count to 1.
15168 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
15170         * configure: Regenerate.
15172 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
15174         PR libgomp/29947
15175         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
15176         start if there shouldn't be any loop iterations.
15177         (gomp_loop_ordered_static_start): Remove start == end test.
15178         * testsuite/libgomp.c/pr29947-1.c: New test.
15179         * testsuite/libgomp.c/pr29947-2.c: New test.
15181 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
15183         * configure.tgt: Force initial-exec TLS model on Linux only.
15185 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
15187         * configure: Regenerated.
15189 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
15191         * env.c (parse_schedule): Reject out of range values.
15192         (parse_unsigned_long): Reject out of range, negative or zero values.
15194 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
15196         PR fortran/29629
15197         * testsuite/libgomp.fortran/pr29629.f90: New test.
15199 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
15201         PR libgomp/29494
15202         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
15203         * config/posix95: New directory.
15204         * config/posix95/omp-lock.h: New file.
15205         * config/posix95/lock.c: Likewise.
15207 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
15209         * aclocal.m4: Regenerate.
15210         * configure: Regenerate.
15212 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
15214         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
15215         '<' to '<='.
15217 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
15219         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
15220         test.
15221         * configure: Regenerate.
15222         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
15224 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
15226         PR middle-end/25261
15227         PR middle-end/28790
15228         * testsuite/libgomp.c/nestedfn-4.c: New test.
15229         * testsuite/libgomp.c/nestedfn-5.c: New test.
15230         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
15232         PR fortran/29097
15233         * testsuite/libgomp.fortran/condinc1.f: New test.
15234         * testsuite/libgomp.fortran/condinc2.f: New test.
15235         * testsuite/libgomp.fortran/condinc3.f90: New test.
15236         * testsuite/libgomp.fortran/condinc4.f90: New test.
15237         * testsuite/libgomp.fortran/condinc1.inc: New file.
15239 2006-09-18  Tom Tromey  <tromey@redhat.com>
15241         * configure: Rebuilt.
15243 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
15245         PR c/28768
15246         PR preprocessor/14634
15247         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
15248         to AC_DEFINE.
15249         * configure: Regenerate.
15251 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
15253         * testsuite/libgomp.fortran/reduction3.f90: Change
15254         -2147483648 to -huge(i)-1 to avoid overflow.
15255         * testsuite/libgomp.fortran/reduction4.f90: Change
15256         Z'ffffffff' to not(0) to avoid overflow.
15258 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
15260         PR libgomp/25938
15261         * Makefile.am (libsubincludedir): New.
15262         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
15263         * Makefile.in: Regenerate.
15265 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
15267         PR libgomp/28725
15268         * env.c: Include ctype.h.
15269         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
15270         leading and/or trailing whitespace and compare strings case
15271         insensitively.
15273 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
15275         PR fortran/28390
15276         * testsuite/libgomp.fortran/pr28390.f: New test.
15278 2006-07-05  Eric Christopher  <echristo@apple.com>
15280         * configure.ac: Depend addition of -pthread on host OS.
15281         * configure: Regenerate.
15283 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
15285         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
15286         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
15287         defined.
15289 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
15291         PR libgomp/26175
15292         PR libgomp/26477
15293         * configure.ac: If neither --enable-linux-futex nor
15294         --disable-linux-futex is passed, determine the default by checking
15295         for compiling and/or running against NPTL.  With --enable-linux-futex,
15296         check if SYS_gettid and SYS_futex are defined.
15297         * configure: Rebuilt.
15299 2006-06-14  Richard Henderson  <rth@redhat.com>
15301         PR libgomp/28008
15302         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
15303         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
15305 2006-06-09  Richard Henderson  <rth@redhat.com>
15307         * env.c (gomp_nthreads_var): Change to unsigned long.
15308         (gomp_run_sched_chunk): Likewise.
15309         (parse_unsigned_long): Rename from parse_num_threads and generalize.
15310         (initialize_env): Initialize gomp_thread_attr.
15311         * libgomp.h (gomp_nthreads_var): Update decl.
15312         (gomp_run_sched_chunk): Likewise.
15313         (gomp_thread_attr): Declare.
15314         * team.c (gomp_thread_attr): Export.
15315         (initialize_team): Don't initialize it.
15317 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
15319         PR fortran/27916
15320         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
15321         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
15323 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
15325         * config/mingw32/time.c: New file.
15326         * configure.tgt: Use it.
15328 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
15330         * Makefile.am: Add install-html target. Add install-html to .PHONY
15331         * Makefile.in: Regenerate.
15333 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15335         PR libgomp/27612
15336         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
15337         * testsuite/libgomp.c/critical-1.c: Likewise.
15338         * testsuite/libgomp.c/loop-1.c: Likewise.
15339         * testsuite/libgomp.c/loop-2.c: Likewise.
15340         * testsuite/libgomp.c/single-1.c: Likewise.
15341         * testsuite/libgomp.c/ordered-1.c: Likewise.
15342         * testsuite/libgomp.c/ordered-2.c: Likewise.
15344 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
15346         PR middle-end/27416
15347         * libgomp.fortran/pr27416-1.f90: New test.
15349 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
15351         PR fortran/27395
15352         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
15353         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
15355 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
15357         PR c++/26943
15358         * testsuite/libgomp.c/pr26943-1.c: New test.
15359         * testsuite/libgomp.c/pr26943-2.c: New test.
15360         * testsuite/libgomp.c/pr26943-3.c: New test.
15361         * testsuite/libgomp.c/pr26943-4.c: New test.
15362         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
15363         * testsuite/libgomp.c++/pr26943.C: New test.
15365 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
15367         PR middle-end/27337
15368         * testsuite/libgomp.c++/pr27337.C: New test.
15370 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
15372         PR c/26171
15373         * testsuite/libgomp.c/pr26171.c: New test.
15375 2006-04-25  Richard Henderson  <rth@redhat.com>
15377         PR libgomp/25865
15378         * configure.ac: Use GCC_CHECK_TLS.
15379         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
15380         * Makefile.in, aclocal.m4, configure: Regenerate.
15382 2006-04-10  Matthias Klose  <doko@debian.org>
15384         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
15385         directory names containing underscores.
15387 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
15389         PR c++/26691
15390         * testsuite/libgomp.c++/pr26691.C: New test.
15392 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
15394         * testsuite/libgomp.fortran/retval2.f90: New test.
15396 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
15398         * testsuite/libgomp.c++: New directory.
15400 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
15402         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
15403         * config/posix/sem.c: Implement the above.
15405 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
15407         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
15408         define HAVE_BROKEN_POSIX_SEMAPHORES.
15409         * configure: Rebuilt.
15410         * config.h.in: Rebuilt.
15412 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
15414         PR bootstrap/26161
15415         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
15416         for the other pthread check.
15417         * configure: Regenerate.
15418         * config.h.in: Regenerate.
15420 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
15422         PR libgomp/25938
15423         PR libgomp/25984
15424         * Makefile.am (fincludedir): New variable.
15425         (nodist_include_HEADERS): Remove Fortran files.
15426         (nodist_finclude_HEADERS): New variable.
15427         * Makefile.in: Regenerated.
15429 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
15431         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
15432         Remove tests for returning assumed character length arrays.
15434 2006-02-12  Roger Sayle  <roger@eyesopen.com>
15435             John David Anglin  <dave@hiauly1.hia.nrc.ca>
15437         PR libgomp/25936
15438         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
15440 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
15442         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
15444 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
15446         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
15447         part of LD_LIBRARY_PATH manually.
15449 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
15451         PR libgomp/25852
15452         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
15453         libgomp_init.
15455 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
15457         PR libgomp/25884
15458         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
15459         * configure.ac (PERL): Don't set.
15460         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
15461         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
15462         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
15463         * omp.h.in: Wrap the new configure substitutions with @ characters.
15464         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
15465         * aclocal.m4, configure, Makefile.in: Regenerate.
15466         * mkomp_h.pl: Delete.
15468 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
15470         PR libgomp/25259
15471         * configure.ac: Use GCC_HEADER_STDINT.
15472         * libgomp.h: Include gstdint.h.
15473         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
15474         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
15476 2006-01-24  Richard Henderson  <rth@redhat.com>
15478         PR libgomp/25942
15479         * configure.ac: Add AM_MAINTAINER_MODE.
15480         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
15482 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
15484         * Makefile.in: Regenerate.
15485         * testsuite/Makefile.in: Regenerate.
15486         * aclocal.m4: Regenerate.
15488 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
15490         * config/posix/proc.c: Conditional include of sys/loadavg.h for
15491         Solaris.
15492         * configure.ac: Add check for loadavg.h.
15493         (link_gomp): Adjust comment.
15494         * configure: Regenerate.
15495         * config.h.in: Regenerate.
15497 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
15499         PR libgomp/25877
15500         * configure.ac: Remove check for alloca.h.
15501         * configure: Regenerate.
15502         * config.h.in: Regenerate.
15503         * libgomp.h: define gomp_alloca to be __builtin_alloca.
15504         * team.c: Remove use of alloca.h.
15505         Call gomp_alloca instead of alloca.
15507 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
15509         PR libgomp/25877
15510         * team.c: Add include of alloca.h.
15511         * configure.ac: Add check for alloca.h.
15512         * configure: Regenerate.
15513         * config.h.in: Regenerate.
15515 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
15517         PR fortran/25219
15518         * testsuite/libgomp.fortran/pr25219.f90: New test.
15520 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
15522         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
15523         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
15524         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
15525         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
15526         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
15527         testsuite/libgomp.fortran/threadprivate1.f90,
15528         testsuite/libgomp.fortran/threadprivate2.f90,
15529         testsuite/libgomp.fortran/threadprivate3.f90,
15530         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
15531         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
15532         testsuite/libgomp.fortran/omp_parse3.f90: Change required
15533         effective-target to TLS runtime.
15535         * testsuite/libgomp.fortran/pr25162.f: Require
15536         effective-target TLS runtime.
15538 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
15540         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
15541         * testsuite/libgomp.c/nestedfn-3.c: New test.
15543 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
15545         PR fortran/25162
15546         * testsuite/libgomp.fortran/pr25162.f: New test.
15548 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
15550         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
15551         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
15553 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
15555         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
15556         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
15557         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
15558         single.c, team.c, work.c, config/linux/alpha/futex.h,
15559         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
15560         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
15561         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
15562         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
15563         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
15564         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
15565         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
15566         FSF address.
15568 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
15570         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
15571         to nodist_noinst_HEADERS.
15572         * Makefile.in: Rebuilt.
15574         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
15575         add integer count field.
15576         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
15577         omp_nest_lock_t type change.
15578         (omp_init_nest_lock): Likewise.  Initialize count to 0.
15579         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
15580         Increment count.
15581         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
15582         Decrement count.
15583         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
15584         Increment count if successful and return the new nesting level.
15585         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
15586         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
15587         * testsuite/libgomp.c/lib-1.c: New test.
15588         * testsuite/libgomp.fortran/lib1.f90: New test.
15589         * testsuite/libgomp.fortran/lib2.f: New test.
15590         * testsuite/libgomp.fortran/lib3.f: New test.
15592 2005-11-17  Richard Henderson  <rth@redhat.com>
15594         PR 24845
15595         * Makefile.am (nodist_toolexeclib_HEADERS): New.
15596         * configure.ac (link_gomp): New.  Substitute it.
15597         (AC_CONFIG_FILES): Add libgomp.spec.
15598         * libgomp.spec.in: New file.
15599         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
15600         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
15602 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
15604         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
15605         reduction(-:var) behaving the same as reduction(+:var).
15606         * testsuite/libgomp.c/reduction-4.c: New test.
15608 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
15610         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
15611         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
15612         testsuite/libgomp.c/copyin-3.c,
15613         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
15614         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
15615         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
15616         testsuite/libgomp.c++/pr24455.C,
15617         testsuite/libgomp.fortran/threadprivate1.f90,
15618         testsuite/libgomp.fortran/threadprivate2.f90,
15619         testsuite/libgomp.fortran/threadprivate3.f90,
15620         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
15621         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
15622         testsuite/libgomp.fortran/omp_parse3.f90: Require
15623         effective-target TLS.
15625 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
15627         * HEADER: Remove.
15629 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
15631         PR libgomp/24797
15632         * team.c (initialize_team): Pass NULL rather than free as
15633         pthread_key_create destructor.  Initialize thread specific data
15634         pointer in initial thread to a static local variable rather than
15635         malloced memory.
15637 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
15639         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
15640         its location to ld_library_path.
15642 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
15644         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
15646 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
15648         * testsuite/libgomp.c: Rename from libgomp.dg.
15650 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
15652         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
15653         threadprivate variable 'i'.
15655 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
15657         * config/linux/s390/futex.h: New file.
15658         * configure.tgt: Use it.
15660         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
15661         before the parallel.
15663 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
15665         PR c++/24734
15666         * testsuite/libgomp.c++/master-1.C: New test.
15668 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
15670         * testsuite/libgomp.dg/copyin-3.c: New test.
15672 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
15674         * testsuite/libgomp.fortran/retval1.f90: New test.
15675         * testsuite/libgomp.fortran/vla7.f90: New test.
15677 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
15679         * testsuite/libgomp.fortran/vla2.f90: New test.
15680         * testsuite/libgomp.fortran/vla3.f90: New test.
15681         * testsuite/libgomp.fortran/vla4.f90: New test.
15682         * testsuite/libgomp.fortran/vla5.f90: New test.
15683         * testsuite/libgomp.fortran/vla6.f90: New test.
15685 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
15687         * config/linux/sparc/futex.h: New file.
15688         * configure.tgt: Use it.
15689         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
15691         * critical.c: Include stdlib.h.
15692         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
15693         ignoring return value.
15694         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
15695         LIBGOMP_CHECK_SYNC_BUILTINS check.
15696         * configure: Rebuilt.
15698 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
15700         * testsuite/libgomp.fortran/vla1.f90: New test.
15702 2005-10-31  Richard Henderson  <rth@redhat.com>
15704         * testsuite/libgomp.fortran/character2.f90: Fix race condition
15705         setting 's' in different threads.
15707 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
15709         * libgomp.h (attribute_hidden, ialias): Define.
15710         * config/posix/proc.c (omp_get_num_procs): Add ialias.
15711         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
15712         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
15713         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
15714         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
15715         omp_test_lock, omp_test_nest_lock): Likewise.
15716         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
15717         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
15718         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
15719         omp_test_lock, omp_test_nest_lock): Likewise.
15720         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
15721         omp_get_dynamic, omp_get_nested): Likewise.
15722         * parallel.c (omp_get_num_threads, omp_get_max_threads,
15723         omp_get_thread_num, omp_in_parallel): Likewise.
15724         * fortran.c (ialias_redirect): Define.
15725         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
15726         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
15727         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
15728         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
15729         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
15730         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
15731         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
15732         omp_get_wtime): Add ialias_redirect.
15734 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
15736         * fortran.c: Include stdlib.h.
15738 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
15740         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
15741         * Makefile.in: Regenerated.
15743 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
15745         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
15746         * libgomp_f.h.in (omp_check_defines): New function.
15747         * env.c: Include libgomp_f.h.
15748         (initialize_env): Call omp_check_defines.
15750         * testsuite/libgomp.dg/copyin-2.c: New test.
15751         * testsuite/libgomp.c++/copyin-2.C: New test.
15752         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
15754         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
15755         * testsuite/libgomp.fortran/sharing2.f90: New test.
15757         * testsuite/libgomp.dg/copyin-1.c: New test.
15758         * testsuite/libgomp.c++/copyin-1.C: New test.
15760 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
15762         * testsuite/libgomp.fortran/crayptr1.f90: New test.
15764         * testsuite/libgomp.fortran/workshare1.f90: New test.
15766         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
15767         only test.
15768         * libgomp.fortran/sharing1.f90: New test.
15770 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
15772         PR c++/24502
15773         * testsuite/libgomp.c++/loop-7.C: New test.
15775         * testsuite/libgomp.dg/nestedfn-2.c: New test.
15777         * testsuite/libgomp.dg/nestedfn-1.c: New test.
15778         * testsuite/libgomp.fortran/reduction6.f90: New test.
15779         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
15781 2005-10-23  Richard Henderson  <rth@redhat.com>
15783         * testsuite/libgomp.c++/ctor-1.C: New.
15784         * testsuite/libgomp.c++/ctor-2.C: New.
15785         * testsuite/libgomp.c++/ctor-3.C: New.
15786         * testsuite/libgomp.c++/ctor-4.C: New.
15787         * testsuite/libgomp.c++/ctor-5.C: New.
15788         * testsuite/libgomp.c++/ctor-6.C: New.
15789         * testsuite/libgomp.c++/ctor-7.C: New.
15790         * testsuite/libgomp.c++/ctor-8.C: New.
15791         * testsuite/libgomp.c++/ctor-9.C: New.
15793 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
15795         PR 24455
15796         * testsuite/libgomp.c++/pr24455-1.C: New test.
15797         * testsuite/libgomp.c++/pr24455.C: New test.
15798         * testsuite/libgomp.dg/pr24455-1.c: New test.
15799         * testsuite/libgomp.dg/pr24455.c: New test.
15801 2005-10-20  Richard Henderson  <rth@redhat.com>
15803         * testsuite/libgomp.c++/loop-6.C: New.
15804         * testsuite/libgomp.dg/loop-3.c: New.
15806 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
15808         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
15809         explicitly private.
15810         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
15811         explicitly shared.
15813 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
15815         * testsuite/libgomp.fortran/jacobi.f: New test.
15817 2005-10-19  Richard Henderson  <rth@redhat.com>
15819         * configure.tgt (i?86-linux): Default to with_arch instead of
15820         CFLAGS.  Add -mtune to match target_cpu.
15821         (x86_64-linux): Tune to i686.
15823         * fortran.c (omp_test_nest_lock_): Fix typo.
15825 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
15827         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
15828         gomp_ordered_sync): Do nothing if team->nthreads == 1.
15829         * testsuite/libgomp.dg/ordered-3.c: New test.
15831         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
15832         Remove volatile keyword.
15834         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
15835         in COMMON block to avoid warnings on 64-bit targets.
15837 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
15839         * testsuite/libgomp.dg/shared-3.c: New test.
15841 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
15843         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
15844         * testsuite/libgomp.fortran/reduction5.f90: New test.
15846 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
15848         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
15849         dg-options.
15850         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
15851         flush loop now that __sync_synchronize has proper memory barrier.
15852         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
15853         Add -ffixed-form to dg-options.
15855 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
15857         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
15858         from subdirectories.
15859         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
15860         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
15861         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
15862         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
15863         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
15864         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
15865         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
15866         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
15867         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
15868         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
15869         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
15870         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
15871         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
15872         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
15873         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
15874         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
15875         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
15876         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
15877         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
15878         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
15879         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
15880         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
15881         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
15882         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
15883         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
15885 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
15887         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
15888         lang_library_path exists.  Use find instead of glob to gather tests.
15889         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
15891 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
15893         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
15894         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
15895         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
15896         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
15897         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
15898         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
15899         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
15900         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
15901         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
15902         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
15903         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
15904         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
15905         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
15907 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
15909         * testsuite/libgomp.dg/vla-1.c: New test.
15911         * testsuite/libgomp.fortran/reference2.f90: New test.
15913         * testsuite/libgomp.fortran/character2.f90: Remove explicit
15914         declaration of omp_get_thread_num.
15915         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
15916         use omp_lib.
15918         * testsuite/libgomp.fortran/reduction1.f90: New test.
15919         * testsuite/libgomp.fortran/reduction2.f90: New test.
15920         * testsuite/libgomp.fortran/reduction3.f90: New test.
15921         * testsuite/libgomp.fortran/reduction4.f90: New test.
15923 2005-10-13  Richard Henderson  <rth@redhat.com>
15925         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
15926         * Makefile.in: Regenerate.
15927         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
15928         * libgomp.h: Include bar.h.
15929         (struct gomp_barrier): Remove.
15930         (struct gomp_team): Add barrier.  Replace master_barrier with
15931         master_release.  Replace threads with ordered_release.
15932         (struct gomp_thread): Replace barrier with release.
15933         * ordered.c (gomp_ordered_first): Update for ordered_release change.
15934         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
15935         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
15936         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
15937         (GOMP_single_copy_end): Likewise.
15938         * team.c (gomp_threads_dock): New.
15939         (gomp_barrier_init, gomp_barrier_destroy): Remove.
15940         (gomp_thread_start): Use gomp_barrier_wait.
15941         (new_team, free_team): Update for gomp_team changes.
15942         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
15943         (gomp_team_end): Use gomp_barrier_wait.
15944         (initialize_team): Update for gomp_thread changes.
15945         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
15946         (gomp_work_share_end_nowait): Use atomic ops when available.
15947         * config/linux/bar.c, config/linux/bar.h: New files.
15948         * config/posix/bar.c, config/posix/bar.h: New files.
15950 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
15952         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
15953         * testsuite/libgomp.dg/single-2.c: New test.
15955         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
15956         lang_link_flags): Unset, so that they aren't inherited from previously
15957         sourced *.exp.
15959         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
15961 2005-10-12  Richard Henderson  <rth@redhat.com>
15963         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
15964         (libgomp_init): Use lang_test_file, lang_library_path, and
15965         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
15967         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
15968         (lang_test_file, lang_link_flags): New.
15969         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
15971         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
15972         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
15973         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
15974         testsuite/libgomp.c++/parallel-1.C,
15975         testsuite/libgomp.c++/reduction-1.C,
15976         testsuite/libgomp.c++/reduction-2.C,
15977         testsuite/libgomp.c++/reduction-3.C,
15978         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
15979         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
15980         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
15981         New files, largely cribbed from the C testsuite.
15983 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
15985         * testsuite/libgomp.fortran/character1.f90: New test.
15986         * testsuite/libgomp.fortran/character2.f90: New test.
15988         * testsuite/libgomp.dg/nested-1.c: New test.
15989         * testsuite/libgomp.dg/nested-2.c: New test.
15990         * testsuite/libgomp.fortran/do1.f90: New test.
15991         * testsuite/libgomp.fortran/do2.f90: New test.
15993         * testsuite/libgomp.fortran/reference1.f90: New test.
15995 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
15997         * testsuite/libgomp.dg/reduction-1.c: New test.
15998         * testsuite/libgomp.dg/reduction-2.c: New test.
15999         * testsuite/libgomp.dg/reduction-3.c: New test.
16001 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
16003         * testsuite/libgomp.dg/atomic-1.c: New test.
16004         * testsuite/libgomp.dg/atomic-2.c: New test.
16006 2005-10-09  Richard Henderson  <rth@redhat.com>
16008         * critical.c (atomic_lock): New.
16009         (initialize_critical): Initialize it.
16010         (GOMP_atomic_start, GOMP_atomic_end): New.
16011         * libgomp.map: Export them.
16012         * libgomp_g.h: Declare them.
16014         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
16016 2005-10-02  Richard Henderson  <rth@redhat.com>
16018         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
16019         to XCFLAGS instead of CFLAGS.
16021 2005-09-30  Richard Henderson  <rth@redhat.com>
16023         * configure.ac: Determine whether -pthread or -lpthread is needed.
16024         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
16025         * Makefile.in, configure: Rebuild.
16027 2005-09-28  Richard Henderson  <rth@redhat.com>
16029         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
16030         * testsuite/libgomp.dg/omp-single-3.c: New test.
16032 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
16034         * testsuite/libgomp.dg/omp-single-2.c: New test.
16035         * testsuite/libgomp.dg/shared-2.c: Fix return code.
16037 2005-09-27  Richard Henderson  <rth@redhat.com>
16039         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
16040         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
16042 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
16044         * testsuite/libgomp.dg/omp-loop03.c: New test.
16046 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
16048         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
16050 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
16052         * testsuite/libgomp.dg/omp-single-1.c: New test.
16053         * testsuite/libgomp.dg/shared-1.c: Return 0.
16054         Add prototype for abort.
16055         * testsuite/libgomp.dg/shared-2.c: Likewise.
16057 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
16059         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
16060         constructs.
16062 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
16064         * testsuite/libgomp.dg/shared-1.c: New test.
16065         * testsuite/libgomp.dg/shared-2.c: New test.
16067 2005-09-24  Richard Henderson  <rth@redhat.com>
16069         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
16071 2005-09-24  Richard Henderson  <rth@redhat.com>
16073         * iter.c (gomp_iter_static_next): Round up when computing number
16074         of iterations.  Don't bother distributing a remainder equally.
16076         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
16077         Don't call srand.  Zero b before testing.
16078         (main): New.
16080 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
16082         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
16083         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
16085 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
16087         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
16088         without !$omp end do, followed immediately by subroutine end.
16090 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
16092         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
16094 2005-09-22  Richard Henderson  <rth@redhat.com>
16096         * critical.c (GOMP_critical_name_start): Change argument to void**.
16097         Reuse the pointer space if the mutex fits.
16098         (GOMP_critical_name_end): Likewise.
16099         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
16100         * libgomp_g.h (GOMP_critical_name_start): Update decl.
16101         (GOMP_critical_name_end): Likewise.
16102         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
16103         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
16105 2005-09-20  Richard Henderson  <rth@redhat.com>
16107         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
16108         (create_lock_lock): New.
16109         (initialize_critical): Initialize it.
16110         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
16111         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
16113 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
16115         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
16117 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
16119         * testsuite/libgomp.dg/omp-loop01.c: New test.
16120         * testsuite/libgomp.dg/omp-loop02.c: New test.
16122 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
16124         * configure.ac (AC_PROG_FC): Add.
16125         (USE_FORTRAN): New automake conditional.
16126         * configure: Rebuilt.
16127         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
16128         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
16129         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
16130         Add rules to build them.
16131         * Makefile.in: Rebuilt.
16132         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
16133         OMP_NEST_LOCK_KIND.
16134         * libgomp.map: Add Fortran wrappers.
16135         * libgomp_f.h.in: New file.
16136         * omp_lib.h.in: New file.
16137         * omp_lib.f90.in: New file.
16138         * fortran.c: New file.
16139         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
16140         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
16141         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
16142         libgfortran has been built.
16143         * testsuite/libgomp.fortran/fortran.exp: New file.
16144         * testsuite/libgomp.fortran/omp_cond1.f: New test.
16145         * testsuite/libgomp.fortran/omp_cond2.f: New test.
16146         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
16147         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
16148         * testsuite/libgomp.fortran/omp_hello.f: New test.
16149         * testsuite/libgomp.fortran/omp_orphan.f: New test.
16150         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
16151         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
16152         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
16153         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
16154         * testsuite/libgomp.fortran/omp_reduction.f: New test.
16155         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
16156         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
16158 2005-08-30  Richard Henderson  <rth@redhat.com>
16160         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
16161         function for when aliases are not usable.
16162         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
16163         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
16164         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
16165         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
16166         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
16167         GOMP_loop_ordered_guided_next): Likewise.
16168         * ordered.c (GOMP_ordered_start): Likewise.
16170 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
16172         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
16173         * testsuite/libgomp.dg/omp_hello.c: Fix return code
16174         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
16175         * testsuite/libgomp.dg/omp_orphan.c: Likewise
16176         * testsuite/libgomp.dg/omp_reduction.c: Likewise
16177         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
16178         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
16179         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
16180         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
16182 2005-07-07  Eric Christopher  <echristo@redhat.com>
16183             Diego Novillo  <dnovillo@redhat.com>
16185         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
16186         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
16187         up code.
16188         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
16189         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
16190         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
16191         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
16192         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
16193         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
16194         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
16196 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
16198         * TOPLEVEL.patch: Remove.
16200 2005-05-16  Richard Henderson  <rth@redhat.com>
16202         * configure.ac: Test for clock_gettime.
16203         * config.h.in, configure: Rebuild.
16204         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
16205         (omp_get_wtime): Use clock_gettime if available.
16206         (omp_get_wtick): Use clock_getres if available.
16208 2005-05-11  Richard Henderson  <rth@redhat.com>
16210         * config/linux/ia64/futex.h: New file.
16211         * configure.tgt: Use it.
16213         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
16215 2005-05-07  Richard Henderson  <rth@redhat.com>
16217         * config/linux/powerpc/futex.h: New file.
16218         * configure.tgt: Use it.
16220         * config/linux/i486/futex.h: Merge ...
16221         * config/linux/x86_64/futex.h: ... into ...
16222         * config/linux/x86/futex.h: ... here.
16223         * configure.tgt: Update to match.
16225 2005-05-06  Richard Henderson  <rth@redhat.com>
16227         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
16228         * config/linux/i486/futex.h: Likewise.
16229         * config/linux/x86_64/futex.h: Likewise.
16231         * config/linux/lock.c: New file.
16232         * config/linux/omp-lock.h: New file.
16234         * critical.c, env.h: Don't include omp.h
16235         * config/posix/lock.c: Include libgomp.h instead of omp.h.
16236         * config/posix/time.c: Likewise.
16237         * config/posix/omp-lock.h: New file.
16238         * libgomp.h: Include omp-lock.h and omp.h.
16239         * Makefile.am (nodist_include_HEADERS): New.
16240         (omp.h): New rule.
16241         * configure.ac (PERL): New.
16242         * mkomp_h.pl: New file.
16243         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
16244         with templates.
16245         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
16247         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
16248         build directory.  Re-add -march=i486 hack.
16250         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
16251         (libgomp_link_flags): Remove.
16252         (libgomp_initialized): Remove.
16253         (libgomp_init): Don't protect from reinitialization.  Copy code
16254         from libstdc++ for getting the multilib set correctly.
16256 2005-05-05  Richard Henderson  <rth@redhat.com>
16258         * config/linux/alpha/futex.h: New file.
16259         * configure.tgt (alpha*-*-linux*): Use it.
16261         * config/posix/mutex.c: New file.
16262         * config/posix/sem.c: Use libgomp.h.
16264         * configure.tgt (x86_64-linux): Also test CC for -m32.
16265         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
16267         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
16268         after $gccpath.
16270         * Makefile.am (SUBDIRS): New.
16271         (libgomp_la_LDFLAGS): Add -lpthread.
16272         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
16273         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
16275         * libgomp_g.h: New file.
16276         * libgomp.h: Split out all public declarations to libgomp_g.h.
16277         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
16278         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
16279         * config/linux/sem.h: Likewise.
16280         * config/posix/sem.h: Likewise.
16282         * Makefile.am (AM_LDFLAGS): New.
16283         (libgomp_version_script): Split out from ...
16284         (libgomp_la_LDFLAGS): ... here.
16285         (libgomp_version_info): New.
16286         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
16287         (LIBGOMP_ENABLE): New.
16288         (LIBGOMP_CHECK_LINKER_FEATURES): New.
16289         (LIBGOMP_ENABLE_SYMVERS): New.
16290         * configure.ac (AC_INIT): Version 1.0.
16291         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
16292         (enable-linux-futex): Likewise.  Rename from enable-futex.
16293         (libtool_VERSION): New.
16294         (LIBGOMP_ENABLE_SYMVERS): Use it.
16295         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
16296         * Makefile.in, aclocal.m4, configure: Rebuild.
16298         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
16299         (gomp_mutex_unlock_slow): Fix typo.
16300         * config/linux/sem.c: Similarly.
16301         (gomp_sem_post_slow): Fix typo.
16302         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
16303         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
16304         [__PIC__] (sys_futex0): Don't use tmp output in asm.
16306         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
16307         (libgomp_la_LDFLAGS): Add top_srcdir to path.
16308         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
16309         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
16310         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
16311         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
16312         LDFLAGS.  Pull enable_futex check to top-level.
16313         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
16314         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
16316         First attempt at real configury.
16317         * Makefile, config.h: Remove file.
16318         * Makefile.am, Makefile.in: New file.
16319         * acinclude.m4 aclocal.m4: New file.
16320         * configure.ac, configure.tgt, configure: New file.
16322         * config/posix/lock.c: Rename from sys-lock.c.
16323         * config/posix/mutex.h: Rename from sys-mutex.h.
16324         * config/posix/sem.c: Rename from sys-sem.c.
16325         * config/posix/sem.h: Rename from sys-sem.h.
16326         * config/posix/proc.c: Rename from sys-proc.c.
16327         * config/posix/time.c: Rename from sys-proc.c.
16329         * config/linux/mutex.c: New file.
16330         * config/linux/mutex.h: New file.
16331         * config/linux/sem.c: New file.
16332         * config/linux/sem.h: New file.
16333         * config/linux/i486/futex.h: New file.
16334         * config/linux/x86_64/futex.h: New file.
16336 2005-05-04  Richard Henderson  <rth@redhat.com>
16338         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
16339         * libgomp.h: Declare them.
16340         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
16341         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
16343 2005-05-04  Richard Henderson  <rth@redhat.com>
16345         * libgomp-1 code drop
16347 2005-05-04  Richard Henderson  <rth@redhat.com>
16349         * iter.c (gomp_iter_static_next): Return tri-state on 0.
16350         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
16351         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
16352         (gomp_iter_static_next): Update.
16353         (gomp_ordered_static_next): Update.
16354         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
16355         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
16356         totally empty range.
16357         (gomp_loop_ordered_static_next): Refine test for calling
16358         gomp_ordered_static_next.
16359         * testsuite/ordered-1.c: Add case for more threads than iterations.
16361         * iter.c (gomp_iter_runtime_next_locked): Remove.
16362         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
16363         gomp_loop_guided_start, gomp_loop_ordered_static_start,
16364         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
16365         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
16366         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
16367         gomp_loop_ordered_guided_next): Downcase name, make static, add
16368         an external alias with the old name.
16369         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
16370         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
16371         switch and call one of the above static functions.
16372         * libgomp.h: Update.
16374         * work.c (gomp_work_share_start): Lock the mutex for !first too.
16375         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
16376         GOMP_loop_guided_start, GOMP_loop_runtime_start,
16377         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
16378         GOMP_loop_ordered_guided_start): Update to match.
16379         * sections.c (GOMP_sections_start): Likewise.
16380         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
16382         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
16383         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
16384         Use bounds check instead of modulus.
16385         (gomp_ordered_sync): Split out of GOMP_ordered_start.
16386         (gomp_ordered_last): Don't sync with ordered_owner here.
16387         (gomp_ordered_next): Likewise.
16388         (gomp_ordered_static_loop_next): Likewise.
16389         * loop.c, libgomp.h: Update to match.
16391         * libgomp.h (GOMP_barrier): Declare.
16393         * testsuite/barrier-1.c: New file.
16394         * testsuite/critical-1.c: New file.
16395         * testsuite/ordered-2.c: New file.
16396         * testsuite/ordered-1.c: New file.
16397         * testsuite/sections-1.c: New file.
16398         * testsuite/single-1.c: New file.
16399         * testsuite/Makefile (TESTS): Add them.
16401 2005-05-04  Richard Henderson  <rth@redhat.com>
16403         * libgomp.h (struct gomp_work_share): Add ordered_owner.
16404         * loop.c (GOMP_loop_static_start): If not the startup thread,
16405         acquire the mutex to wait for initialization complete.
16406         (GOMP_loop_ordered_static_start): Likewise.
16407         (GOMP_loop_ordered_runtime_start): Likewise.
16408         (GOMP_loop_ordered_static_first): Remove.
16409         (GOMP_loop_ordered_dynamic_first): Remove.
16410         (GOMP_loop_ordered_guided_first): Remove.
16411         (GOMP_loop_ordered_runtime_first): Remove.
16412         * ordered.c (gomp_ordered_loop_first): Post to own release when
16413         we're the first thread.
16414         (gomp_ordered_loop_last): Wait on release if not owner.
16415         (gomp_ordered_loop_next): Likewise.
16416         (gomp_ordered_static_loop_init): New.
16417         (gomp_ordered_static_loop_next): Use ordered_owner.
16418         (GOMP_ordered_start): Likewise.
16419         * work.c (gomp_new_work_share): Initialize ordered_owner.
16421 2005-05-03  Richard Henderson  <rth@redhat.com>
16423         * Makefile (OPT): New.
16424         (CFLAGS): Use it.
16426         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
16427         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
16428         * libgomp.h, libgomp.map, NOTES: Update to match.
16430         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
16431         Add initialized and thr members.
16432         (gomp_thread_start): Pause when initially spawned to wait for
16433         the whole team to be created.
16434         (gomp_team_start): Release team members at the end.
16436         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
16437         (f_foo_1): Use GOMP_loop_end.
16438         (f_foo_2): Use GOMP_loop_end_nowait.
16440         * testsuite/loop-2.c: New file.
16441         * testsuite/Makefile (TESTS): Add it.
16443 2005-05-03  Richard Henderson  <rth@redhat.com>
16445         * iter.c (gomp_iter_static_next): Fix overflow check typo.
16446         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
16447         * team.c (new_team): Initialize oldest_live_gen to 1 if no
16448         initial work_share.
16450         * testsuite/Makefile: New file.
16451         * testsuite/loop-1.c: New file.
16453 2005-05-03  Richard Henderson  <rth@redhat.com>
16455         Initial implementation and checkin.
16457 Copyright (C) 2005-2021 Free Software Foundation, Inc.
16459 Copying and distribution of this file, with or without modification,
16460 are permitted in any medium without royalty provided the copyright
16461 notice and this notice are preserved.