Daily bump.
[official-gcc.git] / libgomp / ChangeLog
blob8e3bf91f49cf0df23b2eabcd1c70c869b41d3675
1 2021-10-30  Tobias Burnus  <tobias@codesourcery.com>
3         PR middle-end/102972
4         * testsuite/libgomp.c-c++-common/icv-3.c: Nest API calls inside
5         parallel construct.
6         * testsuite/libgomp.c-c++-common/icv-4.c: Likewise.
7         * testsuite/libgomp.c/target-3.c: Likewise.
8         * testsuite/libgomp.c/target-5.c: Likewise.
9         * testsuite/libgomp.c/target-6.c: Likewise.
10         * testsuite/libgomp.c/target-teams-1.c: Likewise.
11         * testsuite/libgomp.c/teams-1.c: Likewise.
12         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
13         * testsuite/libgomp.c/thread-limit-3.c: Likewise.
14         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
15         * testsuite/libgomp.c/thread-limit-5.c: Likewise.
16         * testsuite/libgomp.fortran/icv-3.f90: Likewise.
17         * testsuite/libgomp.fortran/icv-4.f90: Likewise.
18         * testsuite/libgomp.fortran/teams1.f90: Likewise.
20 2021-10-29  Aldy Hernandez  <aldyh@redhat.com>
22         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for threading changes.
23         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
25 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
27         * libgomp.texi (OpenMP 5.0): Mention that Non-rectangular loop nests
28         aren't implemented for Fortran yet.
30 2021-10-27  Jakub Jelinek  <jakub@redhat.com>
32         * testsuite/libgomp.c/loop-26.c: New test.
33         * testsuite/libgomp.c/loop-27.c: New test.
35 2021-10-25  Tobias Burnus  <tobias@codesourcery.com>
37         PR testsuite/102910
38         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Use __builtin_alloca
39         instead of #include <alloca.h> + alloca.
41 2021-10-21  Chung-Lin Tang  <cltang@codesourcery.com>
43         * libgomp.texi (Support of strictly structured blocks in Fortran):
44         Adjust to 'Y'.
45         * testsuite/libgomp.fortran/task-reduction-16.f90: Adjust testcase.
47 2021-10-20  Chung-Lin Tang  <cltang@codesourcery.com>
49         * testsuite/libgomp.fortran/target-in-reduction-1.f90: New test.
50         * testsuite/libgomp.fortran/target-in-reduction-2.f90: New test.
52 2021-10-20  Jakub Jelinek  <jakub@redhat.com>
54         PR libgomp/102838
55         * libgomp.h (struct gomp_work_share_1st_cacheline): New type.
56         (struct gomp_work_share): Only use aligned(64) attribute if
57         GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined, otherwise just
58         add padding before lock to ensure lock is at offset 64 bytes
59         into the structure.
60         (gomp_workshare_struct_check1, gomp_workshare_struct_check2):
61         New poor man's static assertions.
62         * work.c (gomp_work_share_start): Use gomp_aligned_alloc instead of
63         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC.
65 2021-10-20  Aldy Hernandez  <aldyh@redhat.com>
66             Richard Biener  <rguenther@suse.de>
68         * testsuite/libgomp.graphite/force-parallel-5.c: Remove xfail.
70 2021-10-18  Jakub Jelinek  <jakub@redhat.com>
72         * config/linux/affinity.c (gomp_affinity_init_numa_domains): Add
73         && gomp_places_list_len < count after nfirst <= nlast loop condition.
75 2021-10-18  Tobias Burnus  <tobias@codesourcery.com>
77         PR fortran/102086
78         PR fortran/92189
79         PR fortran/92621
80         PR fortran/101308
81         PR fortran/101309
82         PR fortran/101635
83         PR fortran/92482
84         * testsuite/libgomp.fortran/optional-bind-c.f90: New test.
86 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
88         * testsuite/libgomp.c/affinity-1.c (struct places): Change name field
89         type from char [50] to const char *.
90         (places_array): Add a testcase for simplified syntax place followed
91         by length or length and stride.
93 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
95         * env.c (parse_one_place): Handle non-negative-number the same
96         as { non-negative-number }.  Reject even !number:1 and
97         !number:1:stride or !place:1 or !place:1:stride instead of just
98         length other than 1.
99         * libgomp.texi (OpenMP 5.1): Document OMP_PLACES syntax extensions
100         and OMP_NUM_TEAMS/OMP_TEAMS_THREAD_LIMIT and
101         omp_{set_num,get_max}_teams/omp_{s,g}et_teams_thread_limit features
102         as implemented.
103         * testsuite/libgomp.c/affinity-1.c: Add a test for the 5.1 place
104         simplified syntax.
106 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
108         * env.c (parse_schedule): For strtoul or strtoull calls which don't
109         clearly reject return value 0 as invalid handle the case where end
110         pointer is the same as first argument as invalid.
111         (parse_unsigned_long_1): Likewise.
112         (parse_one_place): Likewise.
113         (parse_places_var): Likewise.
114         (parse_stacksize): Likewise.
115         (parse_spincount): Likewise.
116         (parse_affinity): Likewise.
117         (parse_gomp_openacc_dim): Likewise.  Avoid strict aliasing violation.
118         Make code valid C89.
119         * config/linux/affinity.c (gomp_affinity_find_last_cache_level):
120         For strtoul calls which don't clearly reject return value 0 as
121         invalid handle the case where end pointer is the same as first
122         argument as invalid.
123         (gomp_affinity_init_level_1): Likewise.
124         (gomp_affinity_init_numa_domains): Likewise.
125         * config/rtems/proc.c (parse_thread_pools): Likewise.
127 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
129         * config/linux/affinity.c (gomp_affinity_init_level_1): For level 1
130         after creating count places clean up and return immediately.
131         * testsuite/libgomp.c/places-6.c: New test.
132         * testsuite/libgomp.c/places-7.c: New test.
133         * testsuite/libgomp.c/places-8.c: New test.
134         * testsuite/libgomp.c/places-9.c: New test.
135         * testsuite/libgomp.c/places-10.c: New test.
137 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
139         * env.c (parse_places_var): Handle numa_domains as level 5.
140         * config/linux/affinity.c (gomp_affinity_init_numa_domains): New
141         function.
142         (gomp_affinity_init_level): Use it instead of
143         gomp_affinity_init_level_1 for level == 5.
144         * testsuite/libgomp.c/places-5.c: New test.
146 2021-10-15  Jakub Jelinek  <jakub@redhat.com>
148         * env.c (parse_places_var): Handle ll_caches as level 4.
149         * config/linux/affinity.c (gomp_affinity_find_last_cache_level): New
150         function.
151         (gomp_affinity_init_level_1): Handle level 4 as logical cpus sharing
152         last level cache.
153         (gomp_affinity_init_level): Likewise.
154         * testsuite/libgomp.c/places-1.c: New test.
155         * testsuite/libgomp.c/places-2.c: New test.
156         * testsuite/libgomp.c/places-3.c: New test.
157         * testsuite/libgomp.c/places-4.c: New test.
159 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
161         * libgomp.texi (OpenMP 5.0): Update entry for declare variant
162         directive.
164 2021-10-14  Kwok Cheung Yeung  <kcy@codesourcery.com>
166         * testsuite/libgomp.fortran/declare-variant-1.f90: New test.
168 2021-10-12  Julian Brown  <julian@codesourcery.com>
170         * target.c (gomp_copy_host2dev): Release device lock on cbuf
171         error path.
173 2021-10-12  Tobias Burnus  <tobias@codesourcery.com>
175         * testsuite/libgomp.fortran/icv-3.f90: New.
176         * testsuite/libgomp.fortran/icv-4.f90: New.
178 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
180         * libgomp.texi (omp_get_max_teams, omp_get_teams_thread_limit,
181         omp_set_num_teams, omp_set_teams_thread_limit, OMP_NUM_TEAMS,
182         OMP_TEAMS_THREAD_LIMIT): Document.
184 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
186         * libgomp.texi (omp_get_device_num): Move @node before omp_get_dynamic
187         to avoid makeinfo warnings.
189 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
191         * testsuite/libgomp.c-c++-common/icv-3.c: New test.
192         * testsuite/libgomp.c-c++-common/icv-4.c: New test.
194 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
196         PR libgomp/102628
197         PR libgomp/102668
198         * testsuite/libgomp.c-c++-common/alloc-9.c (main): Decrease
199         allocation sizes from 420 to 320 and from 768 to 568.
200         * testsuite/libgomp.fortran/alloc-11.f90: Likewise.
201         * testsuite/libgomp.fortran/alloc-1.F90: Change expected alignment
202         for cr from 16 to 4.
204 2021-10-12  Jakub Jelinek  <jakub@redhat.com>
206         * testsuite/libgomp.c/scan-11.c: Remove option -fvect-cost-model=cheap.
207         * testsuite/libgomp.c/scan-12.c: Likewise.
208         * testsuite/libgomp.c/scan-13.c: Likewise.
209         * testsuite/libgomp.c/scan-14.c: Likewise.
210         * testsuite/libgomp.c/scan-15.c: Likewise.
211         * testsuite/libgomp.c/scan-16.c: Likewise.
212         * testsuite/libgomp.c/scan-17.c: Likewise.
213         * testsuite/libgomp.c/scan-18.c: Likewise.
214         * testsuite/libgomp.c/scan-19.c: Likewise.
215         * testsuite/libgomp.c/scan-20.c: Likewise.
216         * testsuite/libgomp.c/scan-21.c: Likewise.
217         * testsuite/libgomp.c/scan-22.c: Likewise.
218         * testsuite/libgomp.c++/scan-9.C: Likewise.
219         * testsuite/libgomp.c++/scan-10.C: Likewise.
220         * testsuite/libgomp.c++/scan-11.C: Likewise.
221         * testsuite/libgomp.c++/scan-12.C: Likewise.
222         * testsuite/libgomp.c++/scan-13.C: Likewise.
223         * testsuite/libgomp.c++/scan-14.C: Likewise.
224         * testsuite/libgomp.c++/scan-15.C: Likewise.
225         * testsuite/libgomp.c++/scan-16.C: Likewise.
227 2021-10-12  Kewen Lin  <linkw@linux.ibm.com>
229         * testsuite/libgomp.graphite/force-parallel-8.c: Add --param max-stores-to-sink=0.
231 2021-10-11  Marcel Vollweiler  <marcel@codesourcery.com>
233         * allocator.c (omp_init_allocator): Replace omp_atv_sequential with
234         omp_atv_serialized.
235         * omp.h.in: Add deprecated flag for omp_atv_sequential.
236         * omp_lib.f90.in: Add deprecated flag for omp_atv_sequential.
237         * testsuite/libgomp.c-c++-common/alloc-10.c: New test.
238         * testsuite/libgomp.fortran/alloc-12.f90: New test.
240 2021-10-11  Jakub Jelinek  <jakub@redhat.com>
242         * omp.h.in (omp_set_num_teams, omp_get_max_teams,
243         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
244         * omp_lib.f90.in (omp_set_num_teams, omp_get_max_teams,
245         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
246         * omp_lib.h.in (omp_set_num_teams, omp_get_max_teams,
247         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Declare.
248         * libgomp.h (gomp_nteams_var, gomp_teams_thread_limit_var): Declare.
249         * libgomp.map (OMP_5.1): Export omp_get_max_teams{,_},
250         omp_get_teams_thread_limit{,_}, omp_set_num_teams{,_,_8_} and
251         omp_set_teams_thread_limit{,_,_8_}.
252         * icv.c (omp_set_num_teams, omp_get_max_teams,
253         omp_set_teams_thread_limit, omp_get_teams_thread_limit): New
254         functions.
255         * env.c (gomp_nteams_var, gomp_teams_thread_limit_var): Define.
256         (omp_display_env): Print OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT.
257         (initialize_env): Handle OMP_NUM_TEAMS and OMP_TEAMS_THREAD_LIMIT env
258         vars.
259         * teams.c (GOMP_teams_reg): If thread_limit is not specified, use
260         gomp_teams_thread_limit_var as fallback if not zero.  If num_teams
261         is not specified, use gomp_nteams_var.
262         * fortran.c (omp_set_num_teams, omp_get_max_teams,
263         omp_set_teams_thread_limit, omp_get_teams_thread_limit): Add
264         ialias_redirect.
265         (omp_set_num_teams_, omp_set_num_teams_8_, omp_get_max_teams_,
266         omp_set_teams_thread_limit_, omp_set_teams_thread_limit_8_,
267         omp_get_teams_thread_limit_): New functions.
269 2021-10-09  liuhongt  <hongtao.liu@intel.com>
271         * testsuite/libgomp.c++/scan-10.C: Add option -fvect-cost-model=cheap.
272         * testsuite/libgomp.c++/scan-11.C: Ditto.
273         * testsuite/libgomp.c++/scan-12.C: Ditto.
274         * testsuite/libgomp.c++/scan-13.C: Ditto.
275         * testsuite/libgomp.c++/scan-14.C: Ditto.
276         * testsuite/libgomp.c++/scan-15.C: Ditto.
277         * testsuite/libgomp.c++/scan-16.C: Ditto.
278         * testsuite/libgomp.c++/scan-9.C: Ditto.
279         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: Ditto.
280         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: Ditto.
281         * testsuite/libgomp.c/scan-11.c: Ditto.
282         * testsuite/libgomp.c/scan-12.c: Ditto.
283         * testsuite/libgomp.c/scan-13.c: Ditto.
284         * testsuite/libgomp.c/scan-14.c: Ditto.
285         * testsuite/libgomp.c/scan-15.c: Ditto.
286         * testsuite/libgomp.c/scan-16.c: Ditto.
287         * testsuite/libgomp.c/scan-17.c: Ditto.
288         * testsuite/libgomp.c/scan-18.c: Ditto.
289         * testsuite/libgomp.c/scan-19.c: Ditto.
290         * testsuite/libgomp.c/scan-20.c: Ditto.
291         * testsuite/libgomp.c/scan-21.c: Ditto.
292         * testsuite/libgomp.c/scan-22.c: Ditto.
294 2021-10-09  Jakub Jelinek  <jakub@redhat.com>
296         * libgomp.texi (OpenMP 5.1): Mention implemented support for
297         structured block sequences in C/C++.  Mention support for
298         unconstrained/reproducible modifiers on order clause.
299         Mention partial (C/C++ only) support of extentensions to atomics
300         construct.  Mention partial (C/C++ on clause only) support of
301         align/allocator modifiers on allocate clause.
303 2021-10-02  Tobias Burnus  <tobias@codesourcery.com>
305         * testsuite/libgomp.fortran/order-reproducible-1.f90: New test
306         based on libgomp.c-c++-common/order-reproducible-1.c.
307         * testsuite/libgomp.fortran/order-reproducible-2.f90: Likewise.
308         * testsuite/libgomp.fortran/my-usleep.c: New test.
310 2021-10-01  Tobias Burnus  <tobias@codesourcery.com>
312         * testsuite/libgomp.fortran/alloc-10.f90: Fix alignment check.
313         * testsuite/libgomp.fortran/alloc-7.f90: Fix array access.
314         * testsuite/libgomp.fortran/alloc-8.f90: Likewise.
315         * testsuite/libgomp.fortran/alloc-11.f90: New test for omp_realloc,
316         based on libgomp.c-c++-common/alloc-9.c.
318 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
320         * testsuite/libgomp.c-c++-common/order-reproducible-1.c: New test.
321         * testsuite/libgomp.c-c++-common/order-reproducible-2.c: New test.
323 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
325         * affinity-fmt.c (omp_get_team_num, omp_get_num_teams): Add
326         ialias_redirect.
327         * env.c (handle_omp_display_env): Use ialias_call.
328         * icv-device.c: Move ialias right below each function.
329         (omp_get_device_num): Use ialias_call.
330         * fortran.c (omp_fulfill_event): Add ialias_redirect.
331         * icv.c (omp_get_active_level): Add ialias_redirect.
333 2021-10-01  Jakub Jelinek  <jakub@redhat.com>
335         * omp.h.in (omp_aligned_alloc, omp_aligned_calloc): Add
336         __alloc_align__ (1) attribute.
337         * testsuite/libgomp.c-c++-common/alloc-9.c: New test.
339 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
341         * testsuite/libgomp.fortran/alloc-7.f90: Add dg-prune-output
342         for -fintrinsic-modules-path= warning of the C compiler.
343         * testsuite/libgomp.fortran/alloc-9.f90: Likewise.
344         * testsuite/libgomp.fortran/alloc-10.f90: Likewise.
346 2021-09-30  Tobias Burnus  <tobias@codesourcery.com>
348         * libgomp.texi (OpenMP 5.1): Set implementation status to Y for
349         omp_aligned_{,c}alloc and omp_{c,re}alloc routines.
350         * omp_lib.f90.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
351         omp_realloc): Add.
352         * omp_lib.h.in (omp_aligned_alloc, omp_aligned_calloc, omp_calloc,
353         omp_realloc): Add.
354         * testsuite/libgomp.fortran/alloc-10.f90: New test.
355         * testsuite/libgomp.fortran/alloc-6.f90: New test.
356         * testsuite/libgomp.fortran/alloc-7.c: New test.
357         * testsuite/libgomp.fortran/alloc-7.f90: New test.
358         * testsuite/libgomp.fortran/alloc-8.f90: New test.
359         * testsuite/libgomp.fortran/alloc-9.f90: New test.
361 2021-09-30  Jakub Jelinek  <jakub@redhat.com>
363         * omp.h.in (omp_aligned_alloc, omp_calloc, omp_aligned_calloc,
364         omp_realloc): New prototypes.
365         (omp_alloc): Move after omp_free prototype, add __malloc__ (omp_free)
366         attribute.
367         * allocator.c: Include string.h.
368         (omp_aligned_alloc): No longer static, add ialias.  Add new_alignment
369         variable and use it instead of alignment so that when retrying the old
370         alignment is used again.  Don't retry if new alignment is the same
371         as old alignment, unless allocator had pool size.
372         (omp_alloc, GOMP_alloc, GOMP_free): Use ialias_call.
373         (omp_aligned_calloc, omp_calloc, omp_realloc): New functions.
374         * libgomp.map (OMP_5.0.2): Export omp_aligned_alloc, omp_calloc,
375         omp_aligned_calloc and omp_realloc.
376         * testsuite/libgomp.c-c++-common/alloc-4.c (main): Add
377         omp_aligned_alloc, omp_calloc and omp_aligned_calloc tests.
378         * testsuite/libgomp.c-c++-common/alloc-5.c: New test.
379         * testsuite/libgomp.c-c++-common/alloc-6.c: New test.
380         * testsuite/libgomp.c-c++-common/alloc-7.c: New test.
381         * testsuite/libgomp.c-c++-common/alloc-8.c: New test.
383 2021-09-28  Tobias Burnus  <tobias@codesourcery.com>
385         PR libgomp/96661
386         * configure.ac: Only check for int-type = 2*size_t support when
387         building with Fortran support.
388         * configure: Regenerate.
390 2021-09-28  Thomas Schwinge  <thomas@codesourcery.com>
392         * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
393         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
395 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
397         * team.c: Initialize start_data.
398         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
399         * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
401 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
403         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
404         dg-message back to dg-note.
406 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
408         PR fortran/94070
409         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
410         expected dg-note output.
412 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
414         PR fortran/55534
415         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
416         r12-3722 by removing -Wno-missing-include-dirs.
417         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
419 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
421         * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
422         * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
424 2021-09-21  Tobias Burnus  <tobias@codesourcery.com>
426         PR fortran/55534
427         * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
428         to ALWAYS_CFLAGS.
429         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
431 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
433         * testsuite/libgomp.c++/default-1.C: New test.
434         * testsuite/libgomp.c-c++-common/default-1.c: New test.
435         * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
436         to default clause in C and C++" as implemented.
438 2021-09-17  Julian Brown  <julian@codesourcery.com>
440         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
442 2021-09-17  Julian Brown  <julian@codesourcery.com>
444         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
446 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
448         * libgomp.texi (OpenMP 5.1): Spelling fix,
449         declare variante -> declare variant.
451 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
453         * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
454         Use /* */ comments instead of //.
455         * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
456         * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
457         * testsuite/libgomp.c++/atomic-16.C: New test.
458         * testsuite/libgomp.c++/atomic-17.C: New test.
460 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
462         * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
463         * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
464         * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
466 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
468         * libgomp.texi (OpenMP Implementation Status): Extend
469         OpenMP 5.0 section.
470         (OpenACC Profiling Interface): Fix typo.
472 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
474         * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
475         not to 4.5; link to new section.
476         (OpenMP Implementation Status): New.
478 2021-09-06  Thomas Schwinge  <thomas@codesourcery.com>
480         * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
482 2021-09-03  Tobias Burnus  <tobias@codesourcery.com>
484         * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
485         dg-output.
486         * testsuite/libgomp.fortran/error-1.f90: Likewise.
488 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
489             Jakub Jelinek  <jakub@redhat.com>
491         * testsuite/libgomp.c/address-space-1.c: New file.
493 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
495         * testsuite/lib/libgomp.exp
496         (check_effective_target_offload_target_intelmic): Remove 'proc'.
497         (check_effective_target_offload_device_intel_mic): New 'proc'.
498         * testsuite/libgomp.c-c++-common/on_device_arch.h
499         (device_arch_intel_mic, on_device_arch_intel_mic): New.
500         * testsuite/libgomp.c-c++-common/target-45.c: Use that for
501         'dg-xfail-run-if'.
502         * testsuite/libgomp.fortran/target10.f90: Likewise.
504 2021-08-23  Tobias Burnus  <tobias@codesourcery.com>
506         * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
507         * testsuite/libgomp.fortran/taskloop-4.f90: New test.
508         * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
509         * testsuite/libgomp.fortran/taskloop-5.f90: New test.
511 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
513         * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
514         * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
515         * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
517 2021-08-22  Thomas Schwinge  <thomas@codesourcery.com>
519         * config/nvptx/error.c (fwrite, exit): Override, too.
520         * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
521         of offloading testing.
522         * testsuite/libgomp.fortran/error-1.f90: Likewise.
524 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
526         * testsuite/libgomp.fortran/error-1.f90: New test.
528 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
530         * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
531         * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
532         * error.c (GOMP_warning, GOMP_error): New functions.
533         * testsuite/libgomp.c-c++-common/error-1.c: New test.
535 2021-08-18  Tobias Burnus  <tobias@codesourcery.com>
537         * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
538         omp_target_free. omp_target_is_present, omp_target_memcpy,
539         omp_target_memcpy_rect, omp_target_associate_ptr,
540         omp_target_disassociate_ptr): Add interface.
541         * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
542         omp_target_free. omp_target_is_present, omp_target_memcpy,
543         omp_target_memcpy_rect, omp_target_associate_ptr,
544         omp_target_disassociate_ptr): Add interface.
545         * testsuite/libgomp.fortran/alloc-1.F90: Remove local
546         interface block for omp_alloc + omp_free.
547         * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
548         * testsuite/libgomp.fortran/refcount-1.f90: New test.
549         * testsuite/libgomp.fortran/target-12.f90: New test.
551 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
553         * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
555 2021-08-17  Tobias Burnus  <tobias@codesourcery.com>
557         * testsuite/libgomp.fortran/scope-1.f90: New test.
558         * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
560 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
562         * Makefile.am (libgomp_la_SOURCES): Add scope.c
563         * Makefile.in: Regenerated.
564         * libgomp_g.h (GOMP_scope_start): Declare.
565         * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
566         * scope.c: New file.
567         * testsuite/libgomp.c-c++-common/scope-1.c: New test.
568         * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
570 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
572         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
573         '?:' issues.
575 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
577         * testsuite/libgomp.fortran/masked-1.f90: New test.
579 2021-08-13  Thomas Schwinge  <thomas@codesourcery.com>
581         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
583 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
585         * testsuite/libgomp.c-c++-common/masked-1.c: New test.
587 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
589         * env.c (parse_bind_var): Accept 'primary' as alias for
590         'master'.
591         (omp_display_env): Add TODO comment to
592         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
593         * libgomp.texi: Change 'master thread' to 'primary thread'
594         in line with OpenMP 5.1.
595         (omp_get_proc_bind): Add omp_proc_bind_primary and note that
596         omp_proc_bind_master is an alias of it.
597         (OMP_PROC_BIND): Mention 'PRIMARY'.
598         * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
599         (omp_proc_bind_primary): Add.
600         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
601         * omp_lib.f90.in (omp_proc_bind_primary): Add.
602         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
603         * omp_lib.h.in (omp_proc_bind_primary): Add.
604         * testsuite/libgomp.c/affinity-1.c: Check that
605         'primary' works and is identical to 'master'.
607 2021-08-09  Julian Brown  <julian@codesourcery.com>
608             Kwok Cheung Yeung  <kcy@codesourcery.com>
609             Thomas Schwinge  <thomas@codesourcery.com>
611         * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
612         16.
613         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
614         [acc_device_radeon]: Update.
615         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
616         [ACC_DEVICE_TYPE_radeon]: Likewise.
617         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
618         [acc_device_radeon]: Likewise.
619         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
620         [ACC_DEVICE_TYPE_radeon]: Likewise.
621         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
622         'openacc_radeon_accel_selected' and '-O0'.
623         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
625 2021-08-05  Chung-Lin Tang  <cltang@codesourcery.com>
627         * icv-device.c (omp_get_device_num): New API function, host side.
628         * fortran.c (omp_get_device_num_): New interface function.
629         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
630         * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
631         omp_get_device_num_.
632         * libgomp.texi (omp_get_device_num): Add documentation for new API
633         function.
634         * omp.h.in (omp_get_device_num): Add declaration.
635         * omp_lib.f90.in (omp_get_device_num): Likewise.
636         * omp_lib.h.in (omp_get_device_num): Likewise.
637         * target.c (gomp_load_image_to_device): If additional entry for device
638         number exists at end of returned entries from 'load_image_func' hook,
639         copy the assigned device number over to the device variable.
640         * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
641         (omp_get_device_num): New API function, device side.
642         * plugin/plugin-gcn.c ("symcat.h"): Add include.
643         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
644         at end of returned 'target_table' entries.
645         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
646         (omp_get_device_num): New API function, device side.
647         * plugin/plugin-nvptx.c ("symcat.h"): Add include.
648         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
649         at end of returned 'target_table' entries.
650         * testsuite/lib/libgomp.exp
651         (check_effective_target_offload_target_intelmic): New function for
652         testing for intelmic offloading.
653         * testsuite/libgomp.c-c++-common/target-45.c: New test.
654         * testsuite/libgomp.fortran/target10.f90: New test.
656 2021-07-30  Thomas Schwinge  <thomas@codesourcery.com>
657             Ulrich Drepper  <drepper@redhat.com>
659         * fortran.c (omp_display_env_, omp_display_env_8_): Only
660         '#ifndef LIBGOMP_OFFLOADED_ONLY'.
662 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
663             Julian Brown  <julian@codesourcery.com>
664             Kwok Cheung Yeung  <kcy@codesourcery.com>
666         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
667         's%oaccdevlow%oaccloops%g'.
668         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
669         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
670         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
671         Likewise.
672         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
673         Likewise.
674         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
675         Likewise.
676         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
677         Likewise.
678         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
679         Likewise.
680         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
681         Likewise.
682         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
683         Likewise.
684         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
685         Likewise.
686         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
688 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
690         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
691         threader.
692         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
694 2021-07-27  Ulrich Drepper  <drepper@gmail.com>
696         * env.c (wait_policy, stacksize): New static variables,
697         move out of handle_omp_display_env.
698         (omp_display_env): New function.  The meat of the old
699         handle_omp_display_env function.
700         (handle_omp_display_env): Change to not take parameters
701         and instead use the global variables.  Only perform
702         parsing, defer to omp_display_env for the implementation.
703         (initialize_env): Remove local variables wait_policy and
704         stacksize.  Don't pass parameters to handle_omp_display_env.
705         * fortran.c: Add ialias_redirect for omp_display_env.
706         (omp_display_env_, omp_display_env_8_): New functions.
707         * libgomp.map (OMP_5.1): New version.  Add omp_display_env,
708         omp_display_env_, and omp_display_env_8_.
709         * omp.h.in: Declare omp_display_env.
710         * omp_lib.f90.in: Likewise.
711         * omp_lib.h.in: Likewise.
713 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
714             Julian Brown  <julian@codesourcery.com>
716         * target.c (gomp_coalesce_buf_add): Update comment.
717         (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
718         'aq && cbuf'.
719         (gomp_map_vars_internal): Only 'if (!aq)', do
720         'gomp_coalesce_buf_add'.
721         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
722         XFAIL.
724 2021-07-27  Julian Brown  <julian@codesourcery.com>
725             Thomas Schwinge  <thomas@codesourcery.com>
727         * libgomp.h (gomp_copy_host2dev): Update prototype.
728         * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
729         argument to gomp_copy_host2dev (false).
730         * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
731         (copy_data): Don't free src.
732         (queue_push_copy): Remove free_src handling.
733         (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
734         (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
735         snapshotting.
736         (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
737         queue_push_copy.
738         * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
739         (gomp_copy_host2dev): Add EPHEMERAL parameter.  Snapshot source
740         data when true, and set up deferred freeing of temporary buffer.
741         (gomp_copy_dev2host): Update call to goacc_device_copy_async.
742         (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
743         (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
744         calls to gomp_copy_host2dev with appropriate ephemeral argument.
745         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
746         XFAIL.
748 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
749             Tom de Vries  <tom@codesourcery.com>
751         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
752         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
754 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
756         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
757         sequencing of 'async' data copying vs. profiling events.
758         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
759         Likewise.
761 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
762             Julian Brown  <julian@codesourcery.com>
764         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
765         'async'/'wait' issue.
766         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
767         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
768         * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
770 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
771             Joseph Myers  <joseph@codesourcery.com>
772             Cesar Philippidis  <cesar@codesourcery.com>
774         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
775         file.
776         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
777         Likewise.
778         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
779         Likewise.
780         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
782 2021-07-20  Thomas Schwinge  <thomas@codesourcery.com>
784         PR target/101484
785         * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
786         '-Wno-error=array-bounds'.
787         * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
788         * libgomp.h [__AMDGCN__]: Likewise.
790 2021-07-19  Thomas Schwinge  <thomas@codesourcery.com>
792         PR target/101484
793         * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
794         * libgomp.h [__AMDGCN__]: Likewise.
796 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
797             Florian Weimer  <fweimer@redhat.com>
799         * config/linux/sem.h: Don't include limits.h.
800         (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
801         * config/linux/affinity.c: Include limits.h.
803 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
805         PR middle-end/94366
806         * testsuite/libgomp.c-c++-common/pr94366.c: New test.
808 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
810         PR other/67300
811         * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
812         -foffload=nvptx-none= by -foffload-options=nvptx-none= to
813         avoid disabling other offload targets.
814         * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
815         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
816         * testsuite/libgomp.c/target-44.c: Likewise.
818 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
820         * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
821         target has shared memory and disable some scalar pointer/allocatable
822         checks if not as firstprivate does not work.
824 2021-06-25  Chung-Lin Tang  <cltang@codesourcery.com>
826         PR testsuite/101114
827         * testsuite/libgomp.c-c++-common/struct-elem-5.c:
828         Add "target offload_device_nonshared_as" condition for enabling test.
830 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
832         * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
833         * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
834         * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
835         * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
837 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
839         PR middle-end/101167
840         * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
842 2021-06-17  Chung-Lin Tang  <cltang@codesourcery.com>
844         * hashtab.h (htab_clear): New function with initialization code
845         factored out from...
846         (htab_create): ...here, adjust to use htab_clear function.
847         * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
848         special refcount values, add comments.
849         (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
850         (REFCOUNT_LINK): Likewise.
851         (REFCOUNT_STRUCTELEM): New special refcount range for structure
852         element siblings.
853         (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
854         sibling maps.
855         (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
856         (REFCOUNT_STRUCTELEM_FLAG_LAST):  Flag to indicate last sibling.
857         (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
858         (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
859         (struct splay_tree_key_s): Add structelem_refcount and
860         structelem_refcount_ptr fields into a union with dynamic_refcount.
861         Add comments.
862         (gomp_map_vars): Delete declaration.
863         (gomp_map_vars_async): Likewise.
864         (gomp_unmap_vars): Likewise.
865         (gomp_unmap_vars_async): Likewise.
866         (goacc_map_vars): New declaration.
867         (goacc_unmap_vars): Likewise.
868         * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
869         (goacc_enter_datum): Likewise.
870         (goacc_enter_data_internal): Likewise.
871         * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
872         and goacc_unmap_vars.
873         (GOACC_data_start): Adjust to use goacc_map_vars.
874         (GOACC_data_end): Adjust to use goacc_unmap_vars.
875         * target.c (hash_entry_type): New typedef.
876         (htab_alloc): New function hook for hashtab.h.
877         (htab_free): Likewise.
878         (htab_hash): Likewise.
879         (htab_eq): Likewise.
880         (hashtab.h): Add file include.
881         (gomp_increment_refcount): New function.
882         (gomp_decrement_refcount): Likewise.
883         (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
884         gomp_increment_refcount.
885         (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
886         to gomp_map_vars_existing.
887         (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
888         variable to guard OpenMP specific paths, adjust calls to
889         gomp_map_vars_existing, add structure element sibling splay_tree_key
890         sequence creation code, adjust Fortran map case to avoid increment
891         under OpenMP.
892         (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
893         local refcount_set if caller passed in NULL, adjust call to
894         gomp_map_vars_internal.
895         (gomp_map_vars_async): Adjust and rename into...
896         (goacc_map_vars): ...this new function, adjust call to
897         gomp_map_vars_internal.
898         (gomp_remove_splay_tree_key): New function with code factored out from
899         gomp_remove_var_internal.
900         (gomp_remove_var_internal): Add code to handle removing multiple
901         splay_tree_key sequence for structure elements, adjust code to use
902         gomp_remove_splay_tree_key for splay-tree key removal.
903         (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
904         gomp_decrement_refcount.
905         (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
906         local refcount_set if caller passed in NULL, adjust call to
907         gomp_unmap_vars_internal.
908         (gomp_unmap_vars_async): Adjust and rename into...
909         (goacc_unmap_vars): ...this new function, adjust call to
910         gomp_unmap_vars_internal.
911         (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
912         gomp_unmap_vars.
913         (GOMP_target_ext): Likewise.
914         (gomp_target_data_fallback): Adjust call to gomp_map_vars.
915         (GOMP_target_data): Likewise.
916         (GOMP_target_data_ext): Likewise.
917         (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
918         (gomp_exit_data): Add refcount_set parameter, adjust to use
919         gomp_decrement_refcount, adjust to queue splay-tree keys for removal
920         after main loop.
921         (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
922         gomp_map_vars and gomp_exit_data.
923         (gomp_target_task_fn): Likewise.
924         * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
925         * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
926         * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
927         * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
928         * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
929         * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
931 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
933         PR fortran/92568
934         * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
936 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
937             Thomas Schwinge  <thomas@codesourcery.com>
939         * libgomp.map (GOACC_2.0.2): New symbol version.
940         * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
941         * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
943 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
944             Andrew Stubbs  <ams@codesourcery.com>
946         * oacc-mem.c (goacc_enter_exit_data_internal): New function,
947         extracted from...
948         (GOACC_enter_exit_data): ... here.
949         (GOACC_declare): Use it.
951 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
953         * oacc-parallel.c (GOACC_declare): Move...
954         * oacc-mem.c: ... here.
955         * libgomp_g.h: Adjust.
957 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
958             Thomas Schwinge  <thomas@codesourcery.com>
960         * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
961         handling.
963 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
965         PR tree-optimization/100981
966         * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
967         dsdotr and dsdoti to 0.
969 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
971         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
972         if atomic compare-and-swap is supported on 'int'.
974 2021-06-09  Richard Biener  <rguenther@suse.de>
976         PR tree-optimization/100981
977         * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
979 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
981         * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
982         unconditionally.
983         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
984         Update.
985         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
986         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
988 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
990         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
991         '-DACC_MEM_SHARED=0'.
992         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
993         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
994         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
995         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
996         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
997         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
998         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
999         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
1000         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
1001         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
1002         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
1003         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
1004         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
1005         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
1006         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
1007         'acc_device_radeon' testing.
1008         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
1009         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
1010         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
1011         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
1012         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
1013         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
1014         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
1015         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
1016         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
1017         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
1018         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
1019         for non-'openacc_nvidia_accel_selected'.
1020         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
1021         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
1022         all implement this checking".
1023         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
1024         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
1025         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
1026         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
1027         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
1029 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1031         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
1032         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
1034 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1036         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
1037         for 'acc_device_radeon'.
1039 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1041         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
1042         for non-'acc_device_nvidia'.
1044 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1046         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
1047         'acc_device_radeon' testing.
1048         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1049         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1050         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1052 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1054         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
1055         require 'openacc_nvidia_accel_selected'.  Fix up for
1056         'ACC_DEVICE_TYPE_radeon'.
1058 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1060         * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
1061         'openacc_nvidia_accel_selected'.
1062         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
1064 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1066         * testsuite/lib/libgomp.exp
1067         (check_effective_target_openacc_radeon_accel_selected):
1068         Streamline.
1070 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1072         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
1073         PR80547 workaround.
1075 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
1077         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
1078         <acc_device_nvidia>: Update comment.
1080 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
1082         * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
1084 2021-05-27  Jakub Jelinek  <jakub@redhat.com>
1086         * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
1087         check_effective_target_openacc_cublas,
1088         check_effective_target_openacc_cudart): New.
1089         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
1090         target openacc_cublas.
1091         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
1092         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
1093         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
1094         target openacc_cuda.
1095         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
1096         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
1097         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
1098         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
1099         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
1100         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
1101         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
1102         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
1103         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
1104         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
1105         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
1106         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1107         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
1108         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
1109         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
1110         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
1111         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
1112         targets openacc_cublas and openacc_cudart.
1113         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
1114         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
1115         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
1116         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
1117         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
1118         Require effective target openacc_cudart.
1119         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
1120         for effective target openacc_cuda and add && defined USE_CUDA_H to
1121         preprocessor conditionals.  Guard -lcuda also on openacc_cuda
1122         effective target.
1124 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
1126         PR libgomp/100573
1127         * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
1128         GOMP_target_end_data, GOMP_target_update_ext,
1129         GOMP_target_enter_exit_data): New dummy entrypoints.
1130         * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
1131         GOMP_target_end_data, GOMP_target_update_ext,
1132         GOMP_target_enter_exit_data): Likewise.
1133         * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
1134         OMPFROM, OMPTO): Define.
1135         (main): Remove #pragma omp target teams around all the tests.
1136         * testsuite/libgomp.c-c++-common/target-41.c: New test.
1137         * testsuite/libgomp.c-c++-common/target-42.c: New test.
1139 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
1141         PR middle-end/99928
1142         * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
1144 2021-05-24  Tobias Burnus  <tobias@codesourcery.com>
1146         PR fortran/86470
1147         * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
1148         * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
1149         * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
1151 2021-05-22  Thomas Schwinge  <thomas@codesourcery.com>
1153         PR testsuite/90115
1154         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
1155         uninteresting/varying diagnostics.
1157 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
1159         PR middle-end/90115
1160         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
1161         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1163 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
1165         PR middle-end/90115
1166         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
1167         file.
1168         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
1169         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
1170         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1171         Likewise.
1172         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1173         Likewise.
1174         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1175         Likewise.
1176         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1177         Likewise.
1178         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1179         Likewise.
1180         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1181         Likewise.
1182         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1183         Likewise.
1184         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1185         Likewise.
1186         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1187         Likewise.
1188         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1189         Likewise.
1190         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1191         Likewise.
1192         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1193         Likewise.
1194         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1195         Likewise.
1196         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1197         Likewise.
1198         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1199         Likewise.
1200         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1201         Likewise.
1202         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1203         Likewise.
1204         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1205         Likewise.
1206         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1207         Likewise.
1208         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1209         Likewise.
1210         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1211         Likewise.
1212         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
1213         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
1214         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
1215         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
1216         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
1217         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
1218         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
1219         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
1220         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1221         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1222         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
1223         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
1224         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1225         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
1226         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1227         Likewise.
1228         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
1229         Likewise.
1230         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
1231         Likewise.
1232         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
1233         Likewise.
1234         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
1235         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
1236         Likewise.
1237         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1238         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1239         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1240         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
1241         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
1242         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
1243         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1244         Likewise.
1245         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1246         Likewise.
1247         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1248         Likewise.
1249         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1250         Likewise.
1251         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1252         Likewise.
1253         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1254         Likewise.
1255         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1256         Likewise.
1257         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1258         Likewise.
1259         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1260         Likewise.
1261         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1262         Likewise.
1263         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1264         Likewise.
1265         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1266         Likewise.
1267         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1268         Likewise.
1269         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1270         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1271         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
1272         Likewise.
1273         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
1274         Likewise.
1275         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1276         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
1277         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1279 2021-05-21  Julian Brown  <julian@codesourcery.com>
1280             Chung-Lin Tang  <cltang@codesourcery.com>
1281             Thomas Schwinge  <thomas@codesourcery.com>
1283         PR middle-end/90115
1284         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
1285         test.
1286         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
1287         Likewise.
1288         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
1289         Likewise.
1291 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
1293         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
1294         for nvptx offloading.
1296 2021-05-21  Tobias Burnus  <tobias@codesourcery.com>
1298         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
1300 2021-05-19  Thomas Schwinge  <thomas@codesourcery.com>
1302         PR target/83812
1303         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
1305 2021-05-19  Julian Brown  <julian@codesourcery.com>
1307         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
1309 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
1311         * testsuite/lib/libgomp.exp
1312         (check_effective_target_offload_target_nvptx): Don't shadow global
1313         'offload_targets' variable.
1315 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
1317         * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
1318         '-latomic' to nvptx offloading compilation.
1319         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
1321 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
1323         * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
1324         offloading compilation.
1326 2021-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
1328         * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
1329         if new tasks generated.
1330         * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
1332 2021-05-14  Tobias Burnus  <tobias@codesourcery.com>
1334         * testsuite/libgomp.fortran/parallel-master.f90: New test.
1336 2021-05-13  Martin Liska  <mliska@suse.cz>
1338         PR testsuite/100569
1339         * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
1340         * testsuite/libgomp.c/pr46032-2.c: Likewise.
1341         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
1342         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
1344 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
1346         * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
1347         * testsuite/libgomp.fortran/task-detach-12.f90: New test.
1349 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
1351         PR middle-end/100471
1352         * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
1353         GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
1354         reduction pointer.
1355         * testsuite/libgomp.c/task-reduction-4.c: New test.
1357 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
1358             Tom de Vries  <tdevries@suse.de>
1360         * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
1361         complex/floating-point || + && reduction with 'omp target'.
1362         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
1364 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
1366         * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
1367         * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
1368         * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
1369         * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
1371 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
1373         PR testsuite/100397
1374         * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
1375         declaration to scope of non-'depend'-guarded assignment to avoid races.
1377 2021-05-03  Tom de Vries  <tdevries@suse.de>
1379         PR target/100321
1380         * testsuite/libgomp.c/target-44.c: New test.
1382 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
1384         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
1386 2021-04-29  Tom de Vries  <tdevries@suse.de>
1388         * testsuite/libgomp.c/pr81778.c: New test.
1390 2021-04-29  Tom de Vries  <tdevries@suse.de>
1392         PR target/100232
1393         * testsuite/libgomp.c/target-43.c: New file.
1395 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
1396             Tobias Burnus  <tobias@codesourcery.com>
1398         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
1399         * target.c (gomp_load_plugin_for_device): If set and if a plugin
1400         can't be dlopened, silently assume it has no devices.
1401         * Makefile.in: Regenerate.
1402         * config.h.in: Regenerate.
1403         * configure: Regenerate.
1405 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
1407         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
1408         Use [Ww]arning in dg-bogus as FE diagnostic and default
1409         diagnostic differ and the result depends on ENABLE_OFFLOAD.
1410         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1411         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1412         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1414 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
1416         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
1417         Correct spelling in dg-bogus to match -Wopenacc-parallelism.
1418         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1419         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1420         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1422 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
1423             Nathan Sidwell  <nathan@codesourcery.com>
1424             Tom de Vries  <vries@codesourcery.com>
1425             Julian Brown  <julian@codesourcery.com>
1426             Kwok Cheung Yeung  <kcy@codesourcery.com>
1428         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
1429         '-Wopenacc-parallelism', and match diagnostics, as appropriate.
1430         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
1431         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1432         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1433         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1434         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
1435         Likewise.
1436         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
1437         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1438         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1439         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1440         Likewise.
1441         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
1442         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
1443         Likewise.
1444         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1445         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
1446         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
1447         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
1448         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
1449         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
1450         Likewise.
1451         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1452         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
1453         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1454         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1455         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1456         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
1457         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1458         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1459         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1460         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1461         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1463 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
1465         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
1466         compile with '-w'.
1467         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1468         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1469         Likewise.
1470         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1471         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
1472         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1473         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1474         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1475         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1476         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
1478 2021-04-22  Richard Biener  <rguenther@suse.de>
1480         * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
1481         only on nvptx-none.
1483 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
1485         * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
1486         omp_depend_kind instead of defining it as 16.
1488 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
1490         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
1491         New, based on check_effective_target_offload_target_nvptx.
1492         (check_effective_target_offload_target_nvptx): Call it.
1493         (check_effective_target_offload_target_amdgcn): New.
1494         * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
1495         Require target offload_target_nvptx || offload_target_amdgcn.
1496         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
1497         * testsuite/libgomp.c/pr86416-1.c: Likewise.
1498         * testsuite/libgomp.c/pr86416-2.c: Likewise.
1500 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
1502         * testsuite/libgomp.fortran/depobj-1.f90: New test.
1504 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
1506         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1507         '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
1508         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1509         Likewise.
1510         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1511         Likewise.
1512         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1514 2021-04-15  Thomas Schwinge  <thomas@codesourcery.com>
1516         PR target/99555
1517         * testsuite/lib/libgomp.exp
1518         (check_effective_target_offload_device_nvptx): New.
1519         * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
1520         resolved, make sure that we exit quickly, with error status,
1521         XFAILed.
1522         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
1523         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
1525 2021-04-14  Jakub Jelinek  <jakub@redhat.com>
1527         PR testsuite/100071
1528         * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
1529         cp = omp_alloc with cp, p arguments instead of cq, q and call
1530         c_f_pointer after last cq = omp_alloc with cq, q.
1532 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
1534         PR middle-end/98088
1535         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
1536         for loop with GT/GE condition.
1537         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
1539 2021-04-09  Thomas Schwinge  <thomas@codesourcery.com>
1541         PR middle-end/84991
1542         PR middle-end/84992
1543         PR middle-end/90779
1544         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
1546 2021-04-09  Jakub Jelinek  <jakub@redhat.com>
1548         PR libgomp/99984
1549         * team.c (gomp_thread_start): Call pthread_setspecific for
1550         !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
1551         has been initialized to avoid false positive warning.
1553 2021-03-29  Tobias Burnus  <tobias@codesourcery.com>
1555         PR target/99555
1556         * testsuite/lib/on_device_arch.c: Move to ...
1557         * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
1558         * testsuite/libgomp.fortran/on_device_arch.c: New file;
1559         #include on_device_arch.h.
1560         * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
1561         on_device_arch.h instead of using dg-additional-source.
1562         * testsuite/libgomp.c/pr99555-1.c: Likewise.
1563         * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
1564         on_device_arch.c without relative paths.
1566 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
1568         * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
1569         the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
1570         * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
1571         * config.h.in: Regenerate.
1572         * configure: Likewise.
1574 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
1576         PR target/99555
1577         * testsuite/lib/on_device_arch.c: New file.
1578         * testsuite/libgomp.c/pr99555-1.c: Likewise.
1579         * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
1580         skip for nvptx offloading, with error status.
1581         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
1583 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
1585         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
1586         OpenACC 'serial' construct diagnostic for nvptx offloading.
1588 2021-03-15  Tobias Burnus  <tobias@codesourcery.com>
1590         PR c++/99509
1591         * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
1593 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
1595         PR fortran/98858
1596         * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
1598 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
1600         * configure.ac: Add AC_CHECK_SIZEOF([void *]).
1601         * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
1602         checking of -m32 or -mx32 options on the command line.
1603         * config.h.in: Regenerated.
1604         * configure: Regenerated.
1606 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
1608         * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
1609         support from the target.
1611 2021-02-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
1612             Jakub Jelinek  <jakub@redhat.com>
1614         PR libgomp/98738
1615         * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
1616         (struct gomp_task): Replace detach and completion_sem fields with
1617         union containing completion_sem and detach_team.  Add deferred_p
1618         field.
1619         (struct gomp_team): Remove task_detach_queue.
1620         * task.c: Include assert.h.
1621         (gomp_init_task): Initialize deferred_p and completion_sem fields.
1622         Rearrange initialization order of fields.
1623         (task_fulfilled_p): Delete.
1624         (GOMP_task): Use address of task as the event handle.  Remove
1625         initialization of detach field.  Initialize deferred_p field.
1626         Use automatic local for completion_sem.  Initialize detach_team field
1627         for deferred tasks.
1628         (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
1629         Set kind of suspended detach task to GOMP_TASK_DETACHED and
1630         decrement task_running_count.  Move finish_cancelled block out of
1631         else branch.  Relocate call to gomp_team_barrier_done.
1632         (GOMP_taskwait): Handle tasks with completion events that have not
1633         been fulfilled.
1634         (GOMP_taskgroup_end): Likewise.
1635         (omp_fulfill_event): Use address of task as event handle.  Post to
1636         completion_sem for undeferred tasks.  Clear detach_team if task
1637         has not finished.  For finished tasks, handle post-execution tasks,
1638         call gomp_team_barrier_wake if necessary, and free task.
1639         * team.c (gomp_new_team): Remove initialization of task_detach_queue.
1640         (free_team): Remove free of task_detach_queue.
1641         * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
1642         * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
1643         * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
1644         * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
1645         * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
1646         Change data-sharing of detach events on enclosing parallel to private.
1647         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.  Remove
1648         taskwait directive.
1649         * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
1650         * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
1651         * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
1652         * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
1653         * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
1654         * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
1655         * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
1656         * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
1657         * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
1658         * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
1659         Change data-sharing of detach events on enclosing parallel to private.
1660         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.  Remove
1661         taskwait directive.
1662         * testsuite/libgomp.fortran/task-detach-7.f90: New.
1663         * testsuite/libgomp.fortran/task-detach-8.f90: New.
1664         * testsuite/libgomp.fortran/task-detach-9.f90: New.
1665         * testsuite/libgomp.fortran/task-detach-10.f90: New.
1666         * testsuite/libgomp.fortran/task-detach-11.f90: New.
1668 2021-02-22  Tobias Burnus  <tobias@codesourcery.com>
1670         PR fortran/99171
1671         * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
1673 2021-02-17  Julian Brown  <julian@codesourcery.com>
1675         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
1676         expected errors.
1678 2021-02-17  Julian Brown  <julian@codesourcery.com>
1680         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
1681         * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
1683 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1685         * config/linux/x86/futex.h (__futex_wait):
1686         Revert output type back to long.
1687         (__futex_wake): Ditto.
1688         (futex_wait): Update for revert.
1689         (futex_wake): Ditto.
1691 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1693         * config/linux/x86/futex.h (__futex_wait): New static inline
1694         wrapper function.  Correct output type to int and
1695         timeout type to void *.
1696         (__futex_wake): New static inline wrapper function.
1697         Correct output type to int.
1698         (futex_wait): Use __futex_wait.
1699         (futex_wake): Use __futex_wake.
1701 2021-02-10  Julian Brown  <julian@codesourcery.com>
1703         PR fortran/98979
1704         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
1705         errors.
1707 2021-02-04  Julian Brown  <julian@codesourcery.com>
1709         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
1711 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
1713         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
1714         EF_AMDGPU_MACH_AMDGCN_GFX908.
1715         (gcn_gfx908_s): New constant string.
1716         (isa_hsa_name): Add gfx908.
1717         (isa_code): Add gfx908.
1719 2021-01-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
1721         * libgomp.texi (omp_fulfill_event): New entry.
1723 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
1725         * task.c (GOMP_task): Rename priority argument to priority_arg,
1726         add priority automatic variable and modify that variable.  Instead of
1727         clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
1728         check flags for that bit.
1730 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
1732         PR fortran/98476
1733         * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
1735 2021-01-18  Andreas Schwab  <schwab@suse.de>
1737         * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
1739 2021-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1741         * config/rtems/sem.h (gomp_sem_getcount): New function.
1743 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
1745         * config/linux/sem.h (gomp_sem_getcount): New function.
1746         * config/posix/sem.h (gomp_sem_getcount): New function.
1747         * config/posix/sem.c (gomp_sem_getcount): New function.
1748         * config/accel/sem.h (gomp_sem_getcount): New function.
1749         * task.c (task_fulfilled_p): Use gomp_sem_getcount.
1750         (omp_fulfill_event): Likewise.
1752 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
1754         * fortran.c (omp_fulfill_event_): New.
1755         * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
1756         (struct gomp_team): Add task_detach_queue and task_detach_count
1757         fields.
1758         * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
1759         * libgomp_g.h (GOMP_task): Add extra argument.
1760         * omp.h.in (enum omp_event_handle_t): New.
1761         (omp_fulfill_event): New.
1762         * omp_lib.f90.in (omp_event_handle_kind): New.
1763         (omp_fulfill_event): New.
1764         * omp_lib.h.in (omp_event_handle_kind): New.
1765         (omp_fulfill_event): Declare.
1766         * priority_queue.c (priority_tree_find): New.
1767         (priority_list_find): New.
1768         (priority_queue_find): New.
1769         * priority_queue.h (priority_queue_predicate): New.
1770         (priority_queue_find): New.
1771         * task.c (gomp_init_task): Initialize detach field.
1772         (task_fulfilled_p): New.
1773         (GOMP_task): Add detach argument.  Ignore detach argument if
1774         GOMP_TASK_FLAG_DETACH not set in flags.  Initialize completion_sem
1775         field.  Copy address of completion_sem into detach argument and
1776         into the start of the data record.  Wait for detach event if task
1777         not deferred.
1778         (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
1779         Remove completed tasks and requeue dependent tasks.
1780         (omp_fulfill_event): New.
1781         * team.c (gomp_new_team): Initialize task_detach_queue and
1782         task_detach_count fields.
1783         (free_team): Free task_detach_queue field.
1784         * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
1785         * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
1786         * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
1787         * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
1788         * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
1789         * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
1790         * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
1791         * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
1792         * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
1793         * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
1794         * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
1795         * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
1797 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
1799         PR target/70454
1800         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
1801         be added through preprocessor check on
1802         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
1804 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
1806         PR libgomp/65099
1807         * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
1808         configurations.
1809         * configure: Regenerate.
1810         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
1811         check.
1813 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1815         * configure: Re-generate.
1817 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1819         * configure: Re-generate.
1821 2021-01-05  Julian Brown  <julian@codesourcery.com>
1823         * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
1824         (struct ptx_device): Add omp_stacks struct.
1825         (nvptx_open_device): Initialise cached-stacks housekeeping info.
1826         (nvptx_close_device): Free cached stacks block and mutex.
1827         (nvptx_stacks_free): New function.
1828         (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
1829         (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
1830         (nvptx_stacks_alloc): Rename to...
1831         (nvptx_stacks_acquire): This.  Cache stacks block between runs if same
1832         size or smaller is required.
1833         (nvptx_stacks_free): Remove.
1834         (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
1835         during kernel execution.
1837 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
1839         * libgomp.texi: Bump @copying's copyright year.
1841 2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
1843         * libgomp.texi (Top): Avoid bad "up" link.
1845 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
1847         * testsuite/libgomp.c/task-6.c: New test.
1849 2020-12-09  Andrew Stubbs  <ams@codesourcery.com>
1851         * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
1852         (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
1854 2020-12-08  Tobias Burnus  <tobias@codesourcery.com>
1856         * testsuite/libgomp.fortran/scan-1.f90: New test.
1858 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
1860         PR target/97865
1861         * configure: Regenerate.
1863 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
1865         * configure: Regenerate.
1867 2020-11-25  Thomas Schwinge  <thomas@codesourcery.com>
1869         * testsuite/libgomp.oacc-c++/cache-1.C: New.
1870         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
1872 2020-11-25  Andrew Stubbs  <ams@codesourcery.com>
1874         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
1875         expected results.
1877 2020-11-24  Andrew Stubbs  <ams@codesourcery.com>
1879         * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
1880         (reserved): Delete unused define.
1882 2020-11-24  Thomas Schwinge  <thomas@codesourcery.com>
1884         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
1885         Tcl 8.5-specific behavior.
1886         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1888 2020-11-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
1890         * env.c (gomp_global_icv): Remove nest_var field.  Add
1891         max_active_levels_var field.
1892         (gomp_max_active_levels_var): Remove.
1893         (parse_boolean): Return true on success.
1894         (handle_omp_display_env): Express OMP_NESTED in terms of
1895         max_active_levels_var.  Change format specifier for
1896         max_active_levels_var.
1897         (initialize_env): Set max_active_levels_var from
1898         OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
1899         OMP_PROC_BIND.
1900         * icv.c (omp_set_nested): Express in terms of
1901         max_active_levels_var.
1902         (omp_get_nested): Likewise.
1903         (omp_set_max_active_levels): Use max_active_levels_var field instead
1904         of gomp_max_active_levels_var.
1905         (omp_get_max_active_levels): Likewise.
1906         * libgomp.h (struct gomp_task_icv): Remove nest_var field.  Add
1907         max_active_levels_var field.
1908         (gomp_supported_active_levels): Set to UCHAR_MAX.
1909         (gomp_max_active_levels_var): Delete.
1910         * libgomp.texi (omp_get_nested): Update documentation.
1911         (omp_set_nested): Likewise.
1912         (OMP_MAX_ACTIVE_LEVELS): Likewise.
1913         (OMP_NESTED): Likewise.
1914         (OMP_NUM_THREADS): Likewise.
1915         (OMP_PROC_BIND): Likewise.
1916         * parallel.c (gomp_resolve_num_threads): Replace reference
1917         to nest_var with max_active_levels_var.  Use max_active_levels_var
1918         field instead of gomp_max_active_levels_var.
1920 2020-11-18  Tobias Burnus  <tobias@codesourcery.com>
1922         * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
1923         nvptx_usleep; use also for device={arch(gcn)}.
1925 2020-11-14  Jakub Jelinek  <jakub@redhat.com>
1927         * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
1928         (foo): Add tests for non-VLA private and firstprivate clauses on
1929         omp task.
1930         (bar): Likewise.  Remove taking of address from private/firstprivate
1931         variables.
1932         * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
1933         (foo): Add p, q, px and s arguments.  Add tests for array reductions
1934         and for non-VLA private and firstprivate clauses on omp task.
1935         (bar): Removed.
1936         (main): Adjust foo caller.  Don't call bar.
1938 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
1939             Thomas Schwinge  <thomas@codesourcery.com>
1941         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1942         New.
1943         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1944         Likewise.
1945         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1946         Likewise.
1947         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
1948         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1950 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
1951             Thomas Schwinge  <thomas@codesourcery.com>
1953         PR fortran/94358
1954         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
1956 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
1958         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
1959         for array reductions.
1960         (main): Adjust foo callers.
1962 2020-11-12  Jakub Jelinek  <jakub@redhat.com>
1964         * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
1965         * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
1966         * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
1967         * allocator.c (omp_aligned_alloc): New for now static function,
1968         add alignment argument and handle it.
1969         (omp_alloc): Reimplement using omp_aligned_alloc.
1970         (GOMP_alloc, GOMP_free): New functions.
1971         (omp_free): Add ialias.
1972         * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
1973         * testsuite/libgomp.c++/allocate-1.C: New test.
1975 2020-11-12  Thomas Schwinge  <thomas@codesourcery.com>
1977         PR fortran/97782
1978         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
1980 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
1982         * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
1983         usable.
1984         * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
1985         'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
1986         (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
1987         (goacc_enter_data_internal): Likewise.
1988         * target.c (gomp_map_vars_internal):
1989         Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
1990         of gomp_attach_pointer for OpenMP cases.
1991         (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
1992         (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
1993         * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
1995 2020-11-05  Ulrich Drepper  <drepper@redhat.com>
1996             Kwok Cheung Yeung  <kcy@codesourcery.com>
1998         * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
1999         * Makefile.in: Regenerate.
2000         * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
2001         pragmas to ignore -Wdeprecated-declarations warnings.
2002         * icv.c: Likewise.
2003         * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
2004         Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
2005         and omp_get_nested with __GOMP_DEPRECATED_5_0.
2006         * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
2007         deprecated.
2008         * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
2009         to test options.
2010         * testsuite/libgomp.c/affinity-1.c: Likewise.
2011         * testsuite/libgomp.c/affinity-2.c: Likewise.
2012         * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
2013         * testsuite/libgomp.c/lib-1.c: Likewise.
2014         * testsuite/libgomp.c/nested-1.c: Likewise.
2015         * testsuite/libgomp.c/nested-2.c: Likewise.
2016         * testsuite/libgomp.c/nested-3.c: Likewise.
2017         * testsuite/libgomp.c/pr32362-1.c: Likewise.
2018         * testsuite/libgomp.c/pr32362-2.c: Likewise.
2019         * testsuite/libgomp.c/pr32362-3.c: Likewise.
2020         * testsuite/libgomp.c/pr35549.c: Likewise.
2021         * testsuite/libgomp.c/pr42942.c: Likewise.
2022         * testsuite/libgomp.c/pr61200.c: Likewise.
2023         * testsuite/libgomp.c/sort-1.c: Likewise.
2024         * testsuite/libgomp.c/target-5.c: Likewise.
2025         * testsuite/libgomp.c/target-6.c: Likewise.
2026         * testsuite/libgomp.c/teams-1.c: Likewise.
2027         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
2028         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
2029         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
2030         * testsuite/libgomp.fortran/affinity1.f90: Likewise.
2031         * testsuite/libgomp.fortran/lib1.f90: Likewise.
2032         * testsuite/libgomp.fortran/lib2.f: Likewise.
2033         * testsuite/libgomp.fortran/nested1.f90: Likewise.
2034         * testsuite/libgomp.fortran/teams1.f90: Likewise.
2036 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2038         PR target/85486
2039         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
2040         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
2041         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
2043 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
2045         PR testsuite/80219
2046         PR testsuite/85303
2047         * testsuite/lib/libgomp.exp (libgomp_init): Set
2048         'gcc_warning_prefix', 'gcc_error_prefix'.
2050 2020-10-30  Jakub Jelinek  <jakub@redhat.com>
2052         * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
2053         even in field_tgt_clear initializer.
2055 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
2057         * testsuite/libgomp.c/target-42.c: New test.
2059 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
2060             Tom de Vries  <tdevries@suse.de>
2062         PR testsuite/81690
2063         * testsuite/libgomp.c/usleep.h: New file.
2064         * testsuite/libgomp.c/target-32.c: Include usleep.h.
2065         (main): Use tgt_usleep instead of usleep.
2066         * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
2067         (main): Use tgt_usleep instead of usleep.
2069 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
2071         PR lto/96680
2072         * testsuite/libgomp.c/declare-variant-1.c: New test.
2074 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
2076         * testsuite/libgomp.c/target-41.c: New test.
2078 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
2080         * icv.c (omp_get_initial_device): Remove including corresponding
2081         ialias.
2082         * icv-device.c (omp_get_initial_device): New function.  Return
2083         gomp_get_num_devices ().  Add ialias.
2084         * target.c (resolve_device): Don't fail with
2085         OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
2086         gomp_get_num_devices ().
2087         (omp_target_alloc, omp_target_free, omp_target_is_present,
2088         omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
2089         omp_target_disassociate_ptr, omp_pause_resource): Use
2090         gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
2091         first use in the functions, in uses dominated by the
2092         gomp_get_num_devices call use num_devices_openmp instead.
2093         * libgomp.texi (omp_get_initial_device): Document.
2094         * config/gcn/icv-device.c (omp_get_initial_device): New function.
2095         Add ialias.
2096         * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
2097         * testsuite/libgomp.c/target-40.c: New test.
2099 2020-10-21  Jakub Jelinek  <jakub@redhat.com>
2101         * env.c (parse_target_offload): Change new_offload var type to int,
2102         preinitialize to -1, remove found var and test new_offload != -1
2103         instead of found.
2105 2020-10-20  Jakub Jelinek  <jakub@redhat.com>
2107         * target.c (gomp_target_init): Inside of the function, use automatic
2108         variables corresponding to num_devices, num_devices_openmp and devices
2109         global variables and update the globals only at the end of the
2110         function.
2112 2020-10-20  Kwok Cheung Yeung  <kcy@codesourcery.com>
2114         * env.c (gomp_target_offload_var): New.
2115         (parse_target_offload): New.
2116         (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
2117         (initialize_env): Parse OMP_TARGET_OFFLOAD.
2118         * libgomp.h (gomp_target_offload_t): New.
2119         (gomp_target_offload_var): New.
2120         * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
2121         * target.c (resolve_device): Generate error if device not found and
2122         offloading is mandatory.
2123         (gomp_target_fallback): Generate error if offloading is mandatory.
2124         (GOMP_target): Add argument in call to gomp_target_fallback.
2125         (GOMP_target_ext): Likewise.
2126         (gomp_target_data_fallback): Generate error if offloading is mandatory.
2127         (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
2128         (GOMP_target_data_ext): Likewise.
2129         (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
2130         (gomp_target_init): Return early if offloading is disabled.
2132 2020-10-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
2134         * libgomp.texi (omp_get_max_active_levels): Modify description.
2135         (omp_get_supported_active_levels): Make descriptions consistent.
2137 2020-10-14  Jakub Jelinek  <jakub@redhat.com>
2139         * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
2141 2020-10-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
2143         * env.c (gomp_max_active_levels_var): Initialize to
2144         gomp_supported_active_levels.
2145         (initialize_env): Limit gomp_max_active_levels_var to be at most
2146         equal to gomp_supported_active_levels.
2147         * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
2148         (omp_get_supported_active_levels_): New.
2149         * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
2150         to at most equal to gomp_supported_active_levels.
2151         (omp_get_supported_active_levels): New.
2152         * libgomp.h (gomp_supported_active_levels): New.
2153         * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
2154         omp_get_supported_active_levels_.
2155         * libgomp.texi (omp_get_supported_active_levels): New.
2156         (omp_set_max_active_levels): Update.  Add reference to
2157         omp_get_supported_active_levels.
2158         * omp.h.in (omp_get_supported_active_levels): New.
2159         * omp_lib.f90.in (omp_get_supported_active_levels): New.
2160         * omp_lib.h.in (omp_get_supported_active_levels): New.
2161         * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
2162         against omp_get_supported_active_levels.
2163         * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
2165 2020-10-11  Clement Chigot  <clement.chigot@atos.net>
2167         * config/t-aix: Delete and recreate libgomp before creating
2168         FAT library.
2170 2020-10-08  Tom de Vries  <tdevries@suse.de>
2172         PR libgomp/81802
2173         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
2174         dimensions.
2176 2020-10-06  Tom de Vries  <tdevries@suse.de>
2178         * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
2180 2020-10-06  Tom de Vries  <tdevries@suse.de>
2182         PR middle-end/90861
2183         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
2185 2020-10-05  Tom de Vries  <tdevries@suse.de>
2187         PR fortran/95654
2188         * testsuite/libgomp.fortran/pr95654.f90: New test.
2190 2020-10-02  Tobias Burnus  <tobias@codesourcery.com>
2192         * Makefile.in: Regenerate with automake 1.15.1.
2193         * aclocal.m4: Likewise.
2194         * configure: Likewise.
2195         * testsuite/Makefile.in: Likewise.
2197 2020-09-30  Andrew Stubbs  <ams@codesourcery.com>
2199         * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
2200         and amdgcn targets.
2202 2020-09-30  Tobias Burnus  <tobias@codesourcery.com>
2204         * testsuite/libgomp.fortran/declare-target-3.f90: New test.
2206 2020-09-29  Andrew Stubbs  <ams@codesourcery.com>
2208         * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
2209         total number of threads is one.
2210         (gomp_team_barrier_wake): Likewise.
2211         (gomp_team_barrier_wait_end): Likewise.
2212         (gomp_team_barrier_wait_cancel_end): Likewise.
2213         * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
2214         (gomp_team_barrier_wake): Likewise.
2215         (gomp_team_barrier_wait_end): Likewise.
2216         (gomp_team_barrier_wait_cancel_end): Likewise.
2217         * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
2219 2020-09-28  Tobias Burnus  <tobias@codesourcery.com>
2221         PR middle-end/96390
2222         * testsuite/libgomp.c++/pr96390.C: New test.
2223         * testsuite/libgomp.c-c++-common/pr96390.c: New test.
2225 2020-09-27  Clement Chigot  <clement.chigot@atos.net>
2227         * config/t-aix: Use $(AR) without -X32_64.
2229 2020-09-25  Jakub Jelinek  <jakub@redhat.com>
2231         * testsuite/libgomp.c/loop-25.c: New test.
2233 2020-09-22  Tobias Burnus  <tobias@codesourcery.com>
2235         PR fortran/95654
2236         * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
2238 2020-09-22  Tom de Vries  <tdevries@suse.de>
2240         * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
2241         fails.
2243 2020-09-16  Nathan Sidwell  <nathan@acm.org>
2245         * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
2247 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
2249         PR fortran/96668
2250         * target.c (gomp_map_vars_internal): Initialize has_nullptr.
2252 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
2254         PR fortran/96668
2255         * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
2256         * target.c (gomp_map_vars_existing): Add always_to_flag flag.
2257         (gomp_map_vars_existing): Update call to it.
2258         (gomp_map_fields_existing): Likewise
2259         (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
2260         now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
2261         remapped.
2262         (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
2263         GOMP_MAP_POINTER.
2264         * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
2265         * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
2267 2020-09-14  Tom de Vries  <tdevries@suse.de>
2269         * config/nvptx/atomic.c: New file.  Add
2270         __sync_val_compare_and_swap_16.
2271         * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
2272         target offload_target_nvptx.
2274 2020-09-08  Julian Brown  <julian@codesourcery.com>
2276         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
2277         iteration-ordering assumptions.
2279 2020-09-08  Julian Brown  <julian@codesourcery.com>
2281         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
2282         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
2284 2020-08-20  Chung-Lin Tang  <cltang@codesourcery.com>
2286         * plugin/plugin-nvptx.c (nvptx_free):
2287         Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
2288         CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
2289         comments.
2291 2020-08-20  Tobias Burnus  <tobias@codesourcery.com>
2293         * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
2295 2020-08-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
2297         * testsuite/libgomp.c-c++-common/reduction-16.c: New.
2299 2020-08-13  Jakub Jelinek  <jakub@redhat.com>
2301         * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
2302         * testsuite/libgomp.c/loop-23.c (main): Likewise.
2303         * testsuite/libgomp.c/loop-24.c: New test.
2305 2020-08-08  Jakub Jelinek  <jakub@redhat.com>
2306             Tobias Burnus  <tobias@codesourcery.com>
2308         PR fortran/93553
2309         * testsuite/libgomp.fortran/pr93553.f90: New test.
2311 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
2313         * testsuite/libgomp.c/loop-22.c: New test.
2314         * testsuite/libgomp.c/loop-23.c: New test.
2316 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
2318         PR middle-end/96459
2319         * testsuite/libgomp.c/teams-3.c: New test.
2320         * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
2321         if not defined yet.
2322         (N(test)): Use it before all N(f*) calls.
2323         * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
2324         (main): Don't call all test_* functions from within
2325         #pragma omp teams reduction(|:err), call them directly.
2327 2020-08-04  Tom de Vries  <tdevries@suse.de>
2329         PR target/96428
2330         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
2331         * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
2333 2020-08-03  Julian Brown  <julian@codesourcery.com>
2334             Thomas Schwinge  <thomas@codesourcery.com>
2336         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
2337         shared-memory devices.  Extend with further checking.
2339 2020-08-03  Martin Jambor  <mjambor@suse.cz>
2341         * plugin/Makefrag.am: Remove configuration of HSA plugin.
2342         * aclocal.m4: Regenerated.
2343         * Makefile.in: Regenerated.
2344         * config.h.in: Regenerated.
2345         * configure: Regenerated.
2346         * plugin/configfrag.ac: Likewise.
2347         * plugin/hsa_ext_finalize.h: Removed.
2348         * plugin/plugin-hsa.c: Likewise.
2349         * testsuite/Makefile.in: Regenerated.
2350         * testsuite/lib/libgomp.exp
2351         (offload_target_to_openacc_device_type): Remove hsa case.
2352         (check_effective_target_hsa_offloading_selected_nocache): Removed
2353         (check_effective_target_hsa_offloading_selected): Likewise.
2354         (libgomp_init): Do not add -Wno-hsa to additional_flags.
2355         * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
2356         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
2357         * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
2358         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
2359         * testsuite/libgomp.hsa.c/c.exp: Likewise.
2360         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
2361         * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
2362         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
2363         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
2364         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
2365         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
2366         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
2367         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
2368         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
2369         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
2370         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
2371         * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
2372         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
2373         * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
2374         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
2375         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
2376         * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
2377         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
2378         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
2380 2020-07-27  Julian Brown  <julian@codesourcery.com>
2381             Thomas Schwinge  <thomas@codesourcery.com>
2383         * libgomp.h (struct target_var_desc): Rename do_detach field to
2384         is_attach.
2385         * oacc-mem.c (goacc_exit_datum_1): Add assert.  Don't set finalize for
2386         GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
2387         (goacc_enter_data_internal): Don't affect reference counts
2388         for attach mappings.
2389         (goacc_exit_data_internal): Don't affect reference counts for detach
2390         mappings.
2391         * target.c (gomp_map_vars_existing): Don't affect reference counts for
2392         attach mappings.
2393         (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
2394         mark attach mappings.
2395         (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
2396         reference count for attach mappings.
2397         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
2398         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
2399         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
2400         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
2401         test as shouldfail.
2402         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
2403         gracefully in no-finalize mode.
2404         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
2406 2020-07-24  Thomas Schwinge  <thomas@codesourcery.com>
2408         * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
2409         use.
2410         * testsuite/libgomp.oacc-c/c.exp: Likewise.
2411         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2413 2020-07-23  Julian Brown  <julian@codesourcery.com>
2414             Thomas Schwinge  <thomas@codesourcery.com>
2416         * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
2417         finalization for detach operation.
2418         * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
2419         New test.
2421 2020-07-23  Tobias Burnus  <tobias@codesourcery.com>
2423         * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
2424         * libgomp_f.h.in (omp_check_defines): Check whether
2425         sizeof of determined Fortran kind and C typedef match.
2426         * omp_lib.f90.in: Add omp_depened_kind.
2427         * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
2428         * configure: Regenerate.
2429         * Makefile.in: Regenerate.
2430         * testsuite/Makefile.in: Regenerate.
2432 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
2434         * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
2435         gcc/testsuite/c-c++-common/gomp/.
2436         * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
2437         * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
2438         from gcc/testsuite/gfortran.dg/gomp/.
2439         * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
2441 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
2443         * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
2444         * omp_lib.h.in: Likewise.
2446 2020-07-18  H.J. Lu  <hjl.tools@gmail.com>
2448         PR target/95620
2449         * testsuite/libgomp.c/pr95620.c: New test.
2451 2020-07-16  Julian Brown  <julian@codesourcery.com>
2452             Thomas Schwinge  <thomas@codesourcery.com>
2454         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
2455         * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
2457 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
2459         * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
2460         avoid conversion on 32bit systems from 32bit to 64bit due
2461         to -fdefault-integer-8.
2463 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
2465         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
2466         variables; add character(kind=4) tests; update TODO comment.
2468 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
2470         * allocator.c: Add ialias for omp_init_allocator and
2471         omp_destroy_allocator.
2472         * configure.ac: Set INTPTR_T_KIND.
2473         * configure: Regenerate.
2474         * Makefile.in: Regenerate.
2475         * testsuite/Makefile.in: Regenerate.
2476         * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
2477         omp_set_default_allocator_, omp_get_default_allocator_): New
2478         functions and ialias_redirect.
2479         * icv.c: Add ialias for omp_set_default_allocator and
2480         omp_get_default_allocator.
2481         * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
2482         omp_destroy_allocator_, omp_set_default_allocator_ and
2483         omp_get_default_allocator_.
2484         * omp_lib.f90.in: Add allocator traits parameters, declare
2485         allocator routines and add related kind parameters.
2486         * omp_lib.h.in: Likewise.
2487         * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
2488         * testsuite/libgomp.fortran/alloc-1.F90: New test.
2489         * testsuite/libgomp.fortran/alloc-2.F90: New test.
2490         * testsuite/libgomp.fortran/alloc-3.F: New test.
2491         * testsuite/libgomp.fortran/alloc-4.f90: New test.
2492         * testsuite/libgomp.fortran/alloc-5.f90: New test.
2494 2020-07-14  Tom de Vries  <tom@codesourcery.com>
2495             Cesar Philippidis  <cesar@codesourcery.com>
2496             Thomas Schwinge  <thomas@codesourcery.com>
2497             Kwok Cheung Yeung  <kcy@codesourcery.com>
2499         * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
2500         New variable.
2501         (acc_init_1): Set acc_init_thread to pthread_self ().  Set
2502         acc_init_state to initializing at the start, and to initialized at the
2503         end.
2504         (self_initializing_p): New function.
2505         (acc_get_device_type): Return acc_device_none if called by thread that
2506         is currently executing acc_init_1.
2507         * libgomp.texi (acc_get_device_type): Update documentation.
2508         (Implementation Status and Implementation-Defined Behavior): Likewise.
2509         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
2511 2020-07-14  David Edelsohn  <dje.gcc@gmail.com>
2513         * config/t-aix: Set BITS from compiler cpp macro.
2515 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
2517         * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
2519 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
2521         PR fortran/67311
2522         * testsuite/libgomp.fortran/target-map-1.f90: New test.
2524 2020-07-14  Jakub Jelinek  <jakub@redhat.com>
2526         * testsuite/libgomp.c/loop-21.c: New test.
2528 2020-07-13  Julian Brown  <julian@codesourcery.com>
2529             Thomas Schwinge  <thomas@codesourcery.com>
2531         * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
2533 2020-07-10  Julian Brown  <julian@codesourcery.com>
2534             Thomas Schwinge  <thomas@codesourcery.com>
2536         * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
2537         dynamic_refcount.
2538         (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
2539         * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
2540         dynamic_refcount.
2541         (acc_unmap_data): Update comment.
2542         (goacc_map_var_existing, goacc_enter_datum): Adjust for
2543         dynamic_refcount semantics.
2544         (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
2545         Adjust for dynamic_refcount semantics.
2546         (goacc_enter_data_internal): Implement "present" case of dynamic
2547         memory-map handling here.  Update "non-present" case for
2548         dynamic_refcount semantics.
2549         (goacc_exit_data_internal): Use goacc_exit_datum_1.
2550         * target.c (gomp_map_vars_internal): Remove
2551         GOMP_MAP_VARS_OPENACC_ENTER_DATA handling.  Update for dynamic_refcount
2552         handling.
2553         (gomp_unmap_vars_internal): Remove virtual_refcount handling.
2554         (gomp_load_image_to_device): Substitute dynamic_refcount for
2555         virtual_refcount.
2556         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
2557         * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
2558         * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
2559         * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
2560         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
2561         trace output.
2562         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
2563         trace output.
2564         * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
2565         test.
2566         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
2567         Remove stale comment.
2568         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
2569         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
2570         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2571         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2572         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2573         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
2575 2020-07-10  Julian Brown  <julian@codesourcery.com>
2576             Thomas Schwinge  <thomas@codesourcery.com>
2578         * oacc-mem.c (goacc_map_var_existing): New function.
2579         (goacc_enter_datum): Use above function.
2580         (goacc_exit_datum_1): New function.
2581         (goacc_exit_datum): Use above function.
2583 2020-07-09  Julian Brown  <julian@codesourcery.com>
2584             Thomas Schwinge  <thomas@codesourcery.com>
2586         PR middle-end/95270
2587         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
2588         * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
2590 2020-07-09  Julian Brown  <julian@codesourcery.com>
2592         * oacc-mem.c (find_group_last): Group data-movement clauses
2593         (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
2594         GOMP_MAP_ATTACH.  Allow standalone GOMP_MAP_ATTACH also.
2596 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
2598         * testsuite/libgomp.c/loop-19.c: New test.
2599         * testsuite/libgomp.c/loop-20.c: New test.
2601 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
2603         * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
2604         2 to -1.  Add omp_atv_serialized and define omp_atv_sequential using
2605         it.  Remove __omp_alloctrait_value_max__.
2606         * allocator.c (omp_init_allocator): Handle omp_atv_default for
2607         omp_atk_alignment and omp_atk_pool_size.
2609 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
2611         * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
2612         behavior for 'GOMP_MAP_FORCE_FROM'.
2613         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
2615 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
2617         * oacc-mem.c (goacc_exit_data_internal): Remove
2618         'GOMP_MAP_ALWAYS_FROM' handling.
2620 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
2622         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
2623         'scan-assembler' with 'scan-offload-rtl'.
2624         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
2625         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
2626         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
2627         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
2629 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
2631         * target.c (gomp_map_vars_existing): Assert 'kind !=
2632         GOMP_MAP_ATTACH'.
2633         (gomp_map_vars_internal): Clean up.
2635 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
2637         * testsuite/libgomp.c/loop-17.c: New test.
2638         * testsuite/libgomp.c/loop-18.c: New test.
2640 2020-06-26  Marek Polacek  <polacek@redhat.com>
2642         * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
2644 2020-06-23  Alexandre Oliva  <oliva@adacore.com>
2646         * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
2647         * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
2649 2020-06-22  David Edelsohn  <dje.gcc@gmail.com>
2651         * Makefile.am: Use -include.
2652         * Makefile.in: Regenerate.
2654 2020-06-21  David Edelsohn  <dje.gcc@gmail.com>
2656         * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
2657         * Makefile.in: Regenerate
2658         * configure.ac (tmake_file): Substitute.
2659         * configure: Regenerate.
2660         * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
2661         * config/t-aix: New file.
2663 2020-06-17  Thomas Schwinge  <thomas@codesourcery.com>
2665         PR lto/94848
2666         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
2667         'dg-do run'.
2669 2020-06-17  Andrew Stubbs  <ams@codesourcery.com>
2671         * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
2672         variant for HSA_RUNTIME_LIB name.
2673         (find_executable_symbol_1): Delete.
2674         (find_executable_symbol): Delete.
2675         (init_kernel_properties): Add ".kd" suffix to symbol names.
2676         (find_load_offset): Delete.
2677         (create_and_finalize_hsa_program): Remove relocation handling.
2679 2020-06-16  Tobias Burnus  <tobias@codesourcery.com>
2681         * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
2683 2020-06-08  Tobias Burnus  <tobias@codesourcery.com>
2685         PR lto/94848
2686         PR middle-end/95551
2687         * testsuite/libgomp.fortran/target-var.f90: New test.
2689 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
2690             Julian Brown  <julian@codesourcery.com>
2692         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
2693         special handling.
2695 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
2696             Julian Brown  <julian@codesourcery.com>
2698         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2699         Simplify.
2701 2020-06-05  Julian Brown  <julian@codesourcery.com>
2703         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
2704         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
2706 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2708         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2709         Evaluate 'copyfrom' individually for each entry.
2710         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
2712 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2714         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2715         Evaluate 'finalize' individually for each entry.
2716         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
2717         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
2718         file.
2720 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2722         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
2723         usage.
2724         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
2726 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2727             Julian Brown  <julian@codesourcery.com>
2729         * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
2730         checking.
2731         (acc_unmap_data, goacc_exit_data_internal): Restore
2732         'is_tgt_unmapped' checking.
2733         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
2734         file.
2735         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
2736         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
2737         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2738         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2739         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2740         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
2742 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2743             Julian Brown  <julian@codesourcery.com>
2745         * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
2747 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2749         PR libgomp/92854
2750         * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
2752 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2754         PR libgomp/92854
2755         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
2756         more.
2758 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2759             Julian Brown  <julian@codesourcery.com>
2761         * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
2762         'gomp_map_vars'.
2763          (acc_map_data): Clean up accordingly.
2765 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2767         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
2768         of over-eager 'finalize' clause.
2769         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
2770         file.
2771         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
2772         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
2773         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2774         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2775         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2776         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
2777         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
2778         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
2780 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2782         * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
2784 2020-06-04  Julian Brown  <julian@codesourcery.com>
2786         * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
2787         error path.
2788         (goacc_detach_internal): Likewise.
2790 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2792         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
2793         the checkpoint.
2794         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
2795         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
2796         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
2797         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
2798         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
2800 2020-06-02  Jakub Jelinek  <jakub@redhat.com>
2802         * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
2803         defined.
2805 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
2807         * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
2809 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
2811         * allocator.c (omp_alloc): For size == 0, return NULL early.
2813 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
2815         PR bootstrap/95413
2816         * configure: Regenerated.
2818 2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
2820         PR libfortran/95191
2821         * testsuite/libgomp.fortran/async_io_9.f90: New test.
2823 2020-05-19  Jakub Jelinek  <jakub@redhat.com>
2825         * omp.h.in (omp_uintptr_t): New typedef.
2826         (__GOMP_UINTPTR_T_ENUM): Define.
2827         (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
2828         omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
2829         (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
2830         (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
2831         omp_get_default_allocator, omp_alloc, omp_free): Declare.
2832         * libgomp.h (struct gomp_team_state): Add def_allocator field.
2833         (gomp_def_allocator): Declare.
2834         * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
2835         omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
2836         omp_alloc and omp_free.
2837         * team.c (gomp_team_start): Copy over ts.def_allocator.
2838         * env.c (gomp_def_allocator): New variable.
2839         (parse_wait_policy): Adjust function comment.
2840         (parse_allocator): New function.
2841         (handle_omp_display_env): Print OMP_ALLOCATOR.
2842         (initialize_env): Call parse_allocator.
2843         * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
2844         * allocator.c: New file.
2845         * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
2846         functions.
2847         * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
2848         * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
2849         * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
2850         * Makefile.in: Regenerated.
2852 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2854         PR bootstrap/95147
2855         * configure: Regenerated.
2857 2020-05-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
2859         PR libfortran/95119
2860         * testsuite/libgomp.fortran/close_errors_1.f90: New test.
2862 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2864         * configure: Regenerated.
2866 2020-05-14  Jakub Jelinek  <jakub@redhat.com>
2868         * testsuite/libgomp.c-c++-common/target-40.c: New test.
2870 2020-05-13  Tobias Burnus  <tobias@codesourcery.com>
2872         PR fortran/94690
2873         * testsuite/libgomp.fortran/pr66199-3.f90: New.
2874         * testsuite/libgomp.fortran/pr66199-4.f90: New.
2875         * testsuite/libgomp.fortran/pr66199-5.f90: New.
2876         * testsuite/libgomp.fortran/pr66199-6.f90: New.
2877         * testsuite/libgomp.fortran/pr66199-7.f90: New.
2878         * testsuite/libgomp.fortran/pr66199-8.f90: New.
2879         * testsuite/libgomp.fortran/pr66199-9.f90: New.
2881 2020-05-12  Jakub Jelinek  <jakub@redhat.com>
2883         * testsuite/libgomp.c/target-39.c: New test.
2885 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
2887         * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
2888         * openacc.f90 (acc_device_current): Likewise.
2889         * openacc.h (acc_device_current): Likewise.
2890         * openacc_lib.h (acc_device_current): Likewise.
2892         PR target/94282
2893         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
2894         'dg-allow-blank-lines-in-output'.
2896         * oacc-init.c (get_openacc_name): Handle 'gcn'.
2897         * testsuite/lib/libgomp.exp
2898         (offload_target_to_openacc_device_type) [amdgcn*]: Return
2899         'radeon'.  Adjust all users.
2900         (check_effective_target_openacc_amdgcn_accel_present): Rename
2901         to...
2902         (check_effective_target_openacc_radeon_accel_present): ... this.
2903         Adjust all users.
2904         (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
2905         (check_effective_target_openacc_radeon_accel_selected): ... this.
2906         Adjust all users.
2908         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
2909         'dg-do run'.
2911 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
2913         PR other/94629
2915         * plugin/plugin-gcn.c (init_hsa_context): Check return value from
2916         hsa_iterate_agents.
2917         (GOMP_OFFLOAD_init_device): Check return values from both calls to
2918         hsa_agent_iterate_regions.
2920 2020-04-20  Thomas Schwinge  <thomas@codesourcery.com>
2922         PR middle-end/94635
2923         * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
2924         run'.
2926 2020-04-20  Tobias Burnus  <tobias@codesourcery.com>
2928         PR middle-end/94120
2929         * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
2930         test case.
2932 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
2934         PR middle-end/94635
2935         * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
2937 2020-04-13  Thomas Schwinge  <thomas@codesourcery.com>
2939         PR libgomp/92843
2940         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
2941         Rename to...
2942         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
2943         ... this.
2944         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
2945         Rename to...
2946         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
2947         ... this.
2948         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
2949         Rename to...
2950         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
2951         ... this.
2952         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
2953         Rename to...
2954         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
2955         ... this.
2956         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
2957         Rename to...
2958         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
2959         ... this.
2960         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
2961         Rename to...
2962         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
2963         ... this.
2964         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
2965         Rename to...
2966         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
2967         ... this.
2968         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
2969         Rename to...
2970         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
2971         ... this.
2972         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
2973         Rename to...
2974         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
2975         ... this.
2976         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
2977         Rename to...
2978         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
2979         ... this.
2980         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
2981         Rename to...
2982         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
2983         ... this.
2984         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
2985         Rename to...
2986         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
2987         ... this.
2988         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
2989         Rename to...
2990         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
2991         ... this.
2992         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
2993         Rename to...
2994         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
2995         ... this.
2996         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
2997         Rename to...
2998         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
2999         ... this.
3000         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
3001         Rename to...
3002         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
3003         ... this.
3005 2020-04-10  Julian Brown  <julian@codesourcery.com>
3006             Thomas Schwinge  <thomas@codesourcery.com>
3008         PR libgomp/92843
3009         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
3010         New file.
3011         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
3012         Likewise.
3013         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
3014         Likewise.
3015         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
3016         Likewise.
3017         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
3018         Likewise.
3019         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
3020         Likewise.
3021         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
3022         Likewise.
3023         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
3024         Likewise.
3025         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
3026         Likewise.
3027         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
3028         Likewise.
3029         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
3030         Likewise.
3031         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
3032         Likewise.
3033         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
3034         Likewise.
3035         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
3036         Likewise.
3037         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
3038         Likewise.
3039         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
3040         Likewise.
3042 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
3044         * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
3045         run'.
3047 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
3049         PR middle-end/94120
3050         * libgomp.oacc-c++/declare-pr94120.C: New.
3052 2020-04-06  Maciej W. Rozycki  <macro@wdc.com>
3054         * configure.ac: Add testsuite/libgomp-site-extra.exp to output
3055         files.
3056         * configure: Regenerate.
3057         * testsuite/libgomp-site-extra.exp.in: New file.
3058         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
3059         variable.
3060         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
3061         variable.
3062         * testsuite/Makefile.in: Regenerate.
3064 2020-04-03  Thomas Schwinge  <thomas@codesourcery.com>
3066         PR tree-optimization/89713
3067         PR c/94392
3068         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
3069         'bar.sync'.
3070         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
3072 2020-03-31  Tobias Burnus  <tobias@codesourcery.com>
3074         * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
3075         * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
3077 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
3079         PR libgomp/81689
3080         * testsuite/libgomp.c/target-link-1.c: Remove xfail.
3082 2020-03-20  Tobias Burnus  <tobias@codesourcery.com>
3084         PR libgomp/94251
3085         * target.c (gomp_load_image_to_device): Fix link
3086         variable handling.
3088 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
3090         PR c++/93931
3091         * testsuite/libgomp.c++/pr93931.C: New test.
3093 2020-03-19  Tobias Burnus  <tobias@codesourcery.com>
3095         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
3096         dg-allow-blank-lines-in-output.
3098 2020-03-18  Julian Brown <julian@codesourcery.com>
3099             Tobias Burnus  <tobias@codesourcery.com>
3101         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
3102         it work concurrently.
3104 2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
3106         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
3107         #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
3108         * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
3110 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
3112         PR middle-end/93566
3113         * testsuite/libgomp.c/pr93566.c: New test.
3115 2020-02-21  Frederik Harwath  <frederik@codesourcery.com>
3117         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
3118         changes from 2020-02-19, i.e. use integer(c_size_t) instead of
3119         integer(acc_device_property) for the type of the return value of
3120         acc_get_property.
3122 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
3124         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
3125         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
3126         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
3127         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
3128         (acc_set_device_num): Fix Fortran argument name, use same name for C.
3129         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
3130         corrections; add note about the previous interface and named constant.
3131         (OpenACC library and environment variables): Fix two typos.
3132         * openacc.f90: Use for all procedures the argument names from the spec
3133         as for â€¦_h they are user visible.
3134         (openacc_kinds): Rename acc_device_property to
3135         acc_device_property_kinds and change value to int32 ; and update users.
3136         Re-add acc_device_property for for backward compatibility.
3137         (acc_get_property_string_h): Clean up as acc_device_property_kind
3138         changed.
3139         (acc_get_property_h): Likewise and return c_size_t instead of
3140         acc_device_property.
3141         (openacc): Also export acc_device_property_kinds.
3142         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
3143         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
3144         handling; check against /= 0 instead of == 1 to match C.
3145         * openacc_lib.h: Use for all procedures the argument names from the spec
3146         as for â€¦_h they are user visible. Place !GCC$ into the first column to
3147         be active also for fixed-form souce form.
3148         (acc_device_current, acc_device_property_kind, acc_device_property,
3149         acc_property_memory, acc_property_free_memory, acc_property_name,
3150         acc_property_vendor, acc_property_driver): New named constants.
3151         (acc_get_property, acc_get_property_string): New generic interface.
3153 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
3155         PR libgomp/93481
3156         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
3157         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
3158         optional.
3159         (gomp_target_task_fn): Assert "devicep->async_run_func".
3160         (clear_unsupported_flags): New function to remove unsupported flags
3161         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
3162         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
3163         * testsuite/libgomp.c/target-33.c:
3164         Remove xfail for offload_target_nvptx.
3165         * testsuite/libgomp.c/target-34.c: Likewise.
3167 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
3169         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
3170         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
3171         * testsuite/libgomp.c/target-34.c: Likewise.
3172         * testsuite/libgomp.c/target-link-1.c: Add xfail for
3173         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
3175 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
3177         * testsuite/libgomp.c/target-38.c: New test.
3179 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
3181         PR libgomp/93515
3182         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
3184 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
3186         * testsuite/lib/libgomp.exp
3187         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
3188         and not as 'source' argument to libgomp_target_compile.
3190 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
3192         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
3193         (gcn_gfx801_s): Remove.
3194         (isa_hsa_name): Remove gfx801.
3195         (isa_gcc_name): Remove gfx801/carizzo.
3196         (isa_code): Remove gfx801.
3198 2020-02-03  Julian Brown  <julian@codesourcery.com>
3199             Tobias Burnus  <tobias@codesourcery.com>
3201         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
3202         and *_finalize variants; document acc_attach and acc_detach; update
3203         references from OpenACC 2.0 to 2.6.
3204         * openacc.f90 (openacc_version): Update to 201711.
3205         * openacc_lib.h (openacc_version): Update to 201711.
3206         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
3207         openacc_version to 201711.
3208         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3210 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
3212         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
3213         and vgpr_count fields.
3214         (struct kernel_info): Add a field for a hsa_kernel_description.
3215         (run_kernel): Reduce the number of threads/workers if the requested
3216         number would require too many VGPRs.
3217         (init_basic_kernel_info): Initialize description field with
3218         the hsa_kernel_description entry for the kernel.
3220 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
3222         PR bootstrap/93409
3223         * plugin/configfrag.ac (enable_offload_targets): Skip
3224         HSA and GCN plugin besides -m32 also for -mx32.
3225         * configure: Regenerate.
3227 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
3229         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
3231 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
3233         * plugin-gcn.c (struct agent_info): Add fields "name" and
3234         "vendor_name" ...
3235         (GOMP_OFFLOAD_init_device): ... and init from here.
3236         (struct hsa_context_info): Add field "driver_version_s" ...
3237         (init_hsa_contest): ... and init from here.
3238         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
3239         implementation.
3240         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
3241         Enable test execution for amdgcn and host offloading targets.
3242         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
3243         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
3244         (expect_device_properties): Split function into ...
3245         (expect_device_string_properties): ... this new function ...
3246         (expect_device_memory): ... and this new function.
3247         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
3248         Add test.
3250 2020-01-28  Julian Brown  <julian@codesourcery.com>
3252         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
3253         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
3254         component/non-component variable refs in a single directive.
3255         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
3257 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
3259         * configure.ac: Handle `--with-toolexeclibdir='.
3260         * Makefile.in: Regenerate.
3261         * aclocal.m4: Regenerate.
3262         * configure: Regenerate.
3263         * testsuite/Makefile.in: Regenerate.
3265 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
3267         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
3268         (expect_device_properties): Remove "expected_free_mem" argument,
3269         change "expected_total_mem" argument type to size_t;
3270         change types of acc_get_property results to size_t,
3271         adapt format strings.
3272         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
3273         Use %zu instead of %zd to print size_t values.
3274         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
3275         rename to ...
3276         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
3277         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
3278         rename to ...
3279         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
3281 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
3283         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
3284         the device id.
3286 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
3288         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
3289         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
3290         Adjust test dimensions for amdgcn.
3291         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
3292         gang/worker/vector expectations dynamically.
3293         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
3294         (main): Likewise.
3295         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
3296         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
3297         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
3298         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
3299         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
3300         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
3301         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
3302         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
3303         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
3304         (acc_gang): Recognise acc_device_radeon.
3305         (acc_worker): Likewise.
3306         (acc_vector): Likewise.
3307         (main): Set expectations for amdgcn.
3308         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
3309         (main): Adjust gang/worker/vector expectations dynamically.
3310         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
3311         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
3312         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
3313         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
3314         for amdgcn.
3316 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
3318         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
3319         acc_device_radeon.
3320         (openacc): Likewise.
3321         * openacc.f90 (openacc_kinds): Likewise.
3322         (openacc): Likewise.
3323         * openacc.h (acc_device_t): Likewise.
3324         * openacc_lib.h: Likewise.
3325         * testsuite/lib/libgomp.exp
3326         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
3327         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
3328         (cb_compute_construct_end): Likewise.
3329         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
3330         (cb_enqueue_launch_start): Likewise.
3331         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
3332         (cb_enter_data_end): Likewise.
3333         (cb_exit_data_start): Likewise.
3334         (cb_exit_data_end): Likewise.
3335         (cb_compute_construct_end): Likewise.
3336         (cb_enqueue_launch_start): Likewise.
3337         (cb_enqueue_launch_end): Likewise.
3338         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
3339         (main): Likewise.
3341 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
3343         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
3344         to use this instead of 'enum gomp_device_property'.
3345         (GOMP_OFFLOAD_get_property): Rename to...
3346         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
3347         * libgomp.h (struct gomp_device_descr): Move
3348         'GOMP_OFFLOAD_openacc_get_property'...
3349         (struct acc_dispatch_t): ... here.  Adjust all users.
3350         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
3352         * target.c (gomp_map_vars_internal)
3353         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
3354         paths.
3356 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
3358         PR libgomp/93219
3359         * libgomp.h (gomp_print_string): Change return type from void to int.
3360         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
3361         not all characters have been written.
3363 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
3365         * libgomp.texi: Fix typos, use https.
3367 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
3369         * testsuite/libgomp.fortran/optional-map.f90: Add test for
3370         unallocated/disassociated actual arguments to nonallocatable/nonpointer
3371         dummy arguments; those are/shall be regarded as absent arguments.
3372         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
3373         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
3375 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
3377         Update copyright years.
3379         * libgomp.texi: Bump @copying's copyright year.
3381 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
3383         PR libgomp/93065
3384         * oacc-init.c (goacc_runtime_deinitialize): New function.
3386 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
3388         PR bootstrap/93074
3389         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
3390         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
3392 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
3393             Frederik Harwath  <frederik@codesourcery.com>
3394             Thomas Schwinge  <tschwinge@codesourcery.com>
3396         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
3397         * libgomp-plugin.h (gomp_device_property_value): New union.
3398         (gomp_device_property_value): New prototype.
3399         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
3400         constant.
3401         (acc_device_property_t): New enum.
3402         (acc_get_property, acc_get_property_string): New prototypes.
3403         * oacc-init.c (acc_get_device_type): Also assert that result
3404         is not `acc_device_current'.
3405         (get_property_any, acc_get_property, acc_get_property_string):
3406         New functions.
3407         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
3408         `acc_property_memory', `acc_property_free_memory',
3409         `acc_property_name', `acc_property_vendor' and
3410         `acc_property_driver' constants.  Add `acc_device_property' data
3411         type.
3412         (openacc_internal): Add `acc_get_property' and
3413         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
3414         `acc_get_property_string_h', `acc_get_property_l' and
3415         `acc_get_property_string_l'.
3416         * oacc-host.c (host_get_property): New function.
3417         (host_dispatch): Wire it.
3418         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
3419         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
3420         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
3421         * libgomp.texi (OpenACC Runtime Library Routines): Add
3422         `acc_get_property'.
3423         (acc_get_property): New node.
3424         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
3425         function (stub).
3426         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
3427         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
3428         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
3429         calls.
3430         (GOMP_OFFLOAD_get_property): New function.
3431         (struct ptx_device): Add new field "name".
3432         (cuda_driver_version_s): Add new static variable ...
3433         (nvptx_init): ... and init from here.
3435         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
3436         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
3437         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
3438         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
3439         with test helper functions.
3441         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
3443 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
3445         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
3446         variable.
3448 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
3450         * target.c (gomp_map_vars_internal): Restore 'omp declare target
3451         link' handling.
3453 2019-12-19  Julian Brown  <julian@codesourcery.com>
3455         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
3456         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
3457         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
3459 2019-12-19  Julian Brown  <julian@codesourcery.com>
3460             Cesar Philippidis  <cesar@codesourcery.com>
3462         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
3463         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
3464         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
3465         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
3466         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
3467         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
3468         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
3469         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
3470         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
3471         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
3472         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
3473         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
3474         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
3476 2019-12-19  Julian Brown  <julian@codesourcery.com>
3478         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
3479         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
3480         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
3481         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
3482         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
3483         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
3484         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
3485         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
3486         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
3487         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
3488         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
3489         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
3491 2019-12-19  Julian Brown  <julian@codesourcery.com>
3493         * libgomp.h (struct target_var_desc): Add do_detach flag.
3494         * oacc-init.c (acc_shutdown_1): Free aux block if present.
3495         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
3496         struct components.  Tidy up and add some new checks.
3497         (goacc_enter_data_internal): Update call to find_group_last.
3498         (goacc_exit_data_internal): Support detach operations and
3499         GOMP_MAP_STRUCT.
3500         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
3501         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
3502         attach/detach in enter/exit data detection code.
3503         * target.c (gomp_map_vars_existing): Initialise do_detach field of
3504         tgt_var_desc.
3505         (gomp_map_vars_internal): Support attach.
3506         (gomp_unmap_vars_internal): Support detach.
3508 2019-12-19  Julian Brown  <julian@codesourcery.com>
3509             Thomas Schwinge  <thomas@codesourcery.com>
3511         * libgomp.h (struct splay_tree_aux): Add attach_count field.
3512         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
3513         * libgomp.map (OACC_2.6): New section. Add acc_attach,
3514         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
3515         acc_detach_finalize_async.
3516         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
3517         acc_detach, acc_detach_async, acc_detach_finalize,
3518         acc_detach_finalize_async): New functions.
3519         * openacc.h (acc_attach, acc_attach_async, acc_detach,
3520         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
3521         prototypes.
3522         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
3523         (gomp_remove_var_internal): Free attachment counts if present.
3524         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
3525         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
3527 2019-12-19  Julian Brown  <julian@codesourcery.com>
3528             Cesar Philippidis  <cesar@codesourcery.com>
3530         * libgomp.h (gomp_map_val): Add prototype.
3531         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
3532         open-coding device-address calculation.
3533         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
3534         non-present case.
3536 2019-12-19  Julian Brown  <julian@codesourcery.com>
3538         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
3539         field for virtual_refcount.
3540         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
3541         (gomp_free_memmap): Remove prototype.
3542         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
3543         instead of calling gomp_free_memmap.
3544         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
3545         dynamic_refcount.
3546         (acc_unmap_data): Open code instead of forcing target_mem_desc's
3547         to_free field to NULL then calling gomp_unmap_vars.  Handle
3548         REFCOUNT_INFINITY on target blocks.
3549         (goacc_enter_data): Rename to...
3550         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
3551         handling for mapping groups.  Use virtual_refcount instead of
3552         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
3553         map_map_vars_async call.  Re-do lookup for target pointer return value.
3554         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
3555         renamed goacc_enter_datum function.
3556         (goacc_exit_data): Rename to...
3557         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
3558         (acc_delete, acc_delete_async, acc_delete_finalize,
3559         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
3560         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
3561         goacc_exit_datum function.
3562         (gomp_acc_remove_pointer, find_pointer): Remove functions.
3563         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
3564         New functions.
3565         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
3566         goacc_exit_data_internal helper functions.
3567         * target.c (gomp_map_vars_internal): Handle
3568         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
3569         semantics.
3570         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
3571         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
3572         virtual_refcount field instead of dynamic_refcount.
3573         (gomp_free_memmap): Remove function.
3574         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
3575         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
3576         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
3578 2019-12-19  Julian Brown  <julian@codesourcery.com>
3579             Thomas Schwinge  <thomas@codesourcery.com>
3581         * libgomp.h (struct splay_tree_aux): New.
3582         (struct splay_tree_key_s): Replace link_key field with aux pointer.
3583         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
3584         to aux struct.
3585         (gomp_remove_var_internal): Free aux block if present.
3586         (gomp_load_image_to_device): Zero-initialise aux field instead of
3587         link_key field.
3588         (omp_target_associate_pointer): Zero-initialise aux field.
3590 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
3592         PR middle-end/86416
3593         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
3594         q or none.
3595         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
3596         L or none.
3598 2019-12-19  Julian Brown  <julian@codesourcery.com>
3599             Maciej W. Rozycki  <macro@codesourcery.com>
3600             Tobias Burnus  <tobias@codesourcery.com>
3601             Thomas Schwinge  <thomas@codesourcery.com>
3603         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
3604         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
3605         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
3606         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
3607         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
3608         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
3609         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
3610         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
3611         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
3613 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
3615         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
3616         called...
3617         (goacc_insert_pointer): ... from here, "present" case.
3618         (goacc_insert_pointer): Inline function into...
3619         (GOACC_enter_exit_data): ... here, and simplify.
3621         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
3622         called...
3623         (goacc_insert_pointer): ... from here, "not present" case.
3625         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
3626         all users.
3628         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
3629         'goacc_enter_data', 'goacc_exit_data'.
3631         * oacc-mem.c (delete_copyout): Refactor into...
3632         (goacc_exit_data): ... this.  Adjust all users.
3634         * oacc-mem.c (present_create_copy): Refactor into...
3635         (goacc_enter_data): ... this.  Adjust all users.
3637         * target.c (gomp_unmap_vars_internal): Add a safeguard to
3638         'gomp_remove_var'.
3640         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
3641         like 'GOMP_MAP_FROM'.
3643         PR libgomp/92726
3644         PR libgomp/92970
3645         PR libgomp/92984
3646         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
3647         fails.
3648         (GOACC_enter_exit_data): Simplify accordingly.
3649         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
3650         subsuming...
3651         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
3652         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
3653         file.
3654         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
3655         subsuming...
3656         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
3657         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
3658         file.
3659         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
3660         subsuming...
3661         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
3663         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
3664         'finalize' handling.
3666         PR libgomp/92848
3667         * oacc-mem.c (acc_map_data, present_create_copy)
3668         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
3669         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
3670         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
3671         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
3672         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
3673         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
3674         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
3675         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
3676         Remove "XFAIL"s.
3678         * target.c (gomp_unmap_tgt): Make it 'static'.
3679         * libgomp.h (gomp_unmap_tgt): Remove.
3681 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
3683         PR middle-end/86416
3684         * testsuite/libgomp.c/pr86416-1.c: New.
3685         * testsuite/libgomp.c/pr86416-2.c: New.
3687 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
3689         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
3690         all symbols as public except for the 'use â€¦, only' imported symbol,
3691         which is private.
3692         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
3693         all symbols from module openacc_kinds as PUBLIC
3694         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
3695         fix comment typo.
3696         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
3698 2019-12-13  Julian Brown  <julian@codesourcery.com>
3700         PR libgomp/92881
3702         * libgomp.h (gomp_remove_var_async): Add prototype.
3703         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
3704         gomp_remove_var.
3705         * target.c (gomp_unref_tgt): Change return type to bool, indicating
3706         whether target_mem_desc was unmapped.
3707         (gomp_unref_tgt_void): New.
3708         (gomp_remove_var): Reimplement in terms of...
3709         (gomp_remove_var_internal): ...this new helper function.
3710         (gomp_remove_var_async): New, implemented using above helper function.
3711         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
3712         gomp_unref_tgt.
3714 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
3716         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
3717         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3718         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
3719         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
3720         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
3721         Likewise.
3722         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
3723         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
3725 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
3727         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
3728         as public except for the 'use â€¦, only' imported symbol, which is
3729         private.
3730         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
3731         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
3732         attributes for acc_copyout_finalize and acc_delete_finalize.
3734 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
3736         PR fortran/92899
3737         * testsuite/libgomp.fortran/atomic1.f90: New test.
3739 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
3741         PR libgomp/92843
3742         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
3743         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
3744         assertions.
3745         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
3746         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
3747         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
3748         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
3749         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
3751         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
3752         * oacc-mem.c: ... here.
3753         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
3754         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
3755         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
3756         Remove.
3757         * libgomp_g.h: Update.
3759         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
3760         * oacc-async.c: ... here.
3761         * oacc-int.h (goacc_wait): Declare.
3762         * libgomp_g.h: Update
3764         PR libgomp/92854
3765         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
3766         New file.
3767         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
3768         Likewise.
3769         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
3770         Likewise.
3771         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
3772         Likewise.
3773         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
3774         Likewise.
3775         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
3776         Likewise.
3778 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
3779             Julian Brown  <julian@codesourcery.com>
3781         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
3782         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
3784 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
3786         * omp_lib.h.in: Fix spelling of function declaration
3787         omp_get_cancell(l)ation.
3788         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
3789         Fix typos.
3790         * env.c: Fix comment typos.
3791         * oacc-host.c: Likewise.
3792         * ordered.c: Likewise.
3793         * task.c: Likewise.
3794         * team.c: Likewise.
3795         * config/gcn/task.c: Likewise.
3796         * config/gcn/team.c: Likewise.
3797         * config/nvptx/task.c: Likewise.
3798         * config/nvptx/team.c: Likewise.
3799         * plugin/plugin-gcn.c: Likewise.
3800         * testsuite/libgomp.fortran/jacobi.f: Likewise.
3801         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
3802         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
3804 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
3806         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
3807         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
3808         unnecessary 'dg-additional-options "-w"'.
3810 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
3811             Julian Brown  <julian@codesourcery.com>
3813         PR libgomp/92116
3814         PR libgomp/92877
3816         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
3817         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
3818         Adjust all users.
3819         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
3820         Remove XFAIL.
3821         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
3822         Likewise.
3823         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
3825 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
3827         PR libgomp/92503
3828         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
3829         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
3830         file.
3831         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
3832         Likewise.
3833         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
3834         Likewise.
3835         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
3836         Likewise.
3837         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
3838         Likewise.
3839         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
3840         Likewise.
3841         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
3842         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
3843         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
3844         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
3845         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
3846         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
3847         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3848         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3849         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
3850         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
3852         PR libgomp/92840
3853         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
3854         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
3855         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
3856         New file.
3857         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
3858         Likewise.
3859         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
3860         Likewise.
3861         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
3862         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
3864         PR libgomp/92511
3865         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
3866         this file...
3867         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
3868         this file...
3869         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
3870         file...
3871         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
3872         file...
3873         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
3874         ... with their content moved into, and extended in this new file.
3875         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
3876         New file.
3877         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
3878         Likewise.
3879         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
3880         Likewise.
3881         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
3882         Likewise.
3884         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
3886         PR libgomp/92854
3887         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
3889         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
3891         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
3893 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
3895         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
3896         unique.
3897         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
3898         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
3899         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
3900         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
3901         Ditto.
3902         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
3903         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
3905 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
3907         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
3909 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
3910             Kwok Cheung Yeung <kcy@codesourcery.com>
3912         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
3913         if input it a NULL pointer.
3914         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
3915         diagnostic of NULL pointer.
3916         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
3917         * testsuite/libgomp.fortran/optional-map.f90: New.
3918         * testsuite/libgomp.fortran/use_device_addr-1.f90
3919         (test_dummy_opt_callee_1_absent): New.
3920         (test_dummy_opt_call_1): Call it.
3921         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
3922         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
3923         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
3924         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
3925         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
3926         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
3927         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
3928         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
3929         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
3930         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
3931         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
3932         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
3933         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
3934         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
3935         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
3936         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
3938 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
3940         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
3941         expect dg-output of 'Error termination.' for GCN.
3942         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3943         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3945 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
3947         PR fortran/92756
3948         * testsuite/libgomp.fortran/teams1.f90: New test.
3949         * testsuite/libgomp.fortran/teams2.f90: New test.
3951 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
3953         * oacc-init.c (acc_known_device_type): Add function.
3954         (unknown_device_type_error): Add function.
3955         (name_of_acc_device_t): Change to call unknown_device_type_error
3956         on unknown type.
3957         (resolve_device): Use acc_known_device_type.
3958         (acc_init): Fail if acc_device_t argument is not valid.
3959         (acc_shutdown): Likewise.
3960         (acc_get_num_devices): Likewise.
3961         (acc_set_device_type): Likewise.
3962         (acc_get_device_num): Likewise.
3963         (acc_set_device_num): Likewise.
3964         (acc_on_device): Add comment that argument validity is not checked.
3966 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
3968         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
3969         Recognize amdgcn.
3970         (check_effective_target_openacc_amdgcn_accel_present): New proc.
3971         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
3972         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
3973         * testsuite/libgomp.oacc-c/c.exp: Likewise.
3974         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3976 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3978         PR libgomp/91938
3979         * configure.tgt: Avoid IE tls on *-*-musl*.
3981 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
3983         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
3984         adding a common-block test case.
3986 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
3988         PR c++/60228
3989         * testsuite/libgomp.c++/udr-20.C: New test.
3990         * testsuite/libgomp.c++/udr-21.C: New test.
3992 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
3994         * testsuite/lib/libgomp.exp
3995         (check_effective_target_offload_target_nvptx): New proc.
3996         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
3997         'dg-skip-if'.
3998         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
3999         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
4000         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
4002 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4004         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
4005         * testsuite/libgomp.c/pr39591-2.c: Likewise.
4006         * testsuite/libgomp.c/pr39591-3.c: Likewise.
4007         * testsuite/libgomp.c/private-1.c: Likewise.
4008         * testsuite/libgomp.c/task-1.c: Likewise.
4009         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
4011 2019-11-20  Julian Brown  <julian@codesourcery.com>
4013         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
4014         aq->mutex here.
4015         (queue_push_launch): Lock aq->mutex before calling
4016         wait_for_queue_nonfull.
4017         (queue_push_callback): Likewise.
4018         (queue_push_asyncwait): Likewise.
4019         (queue_push_placeholder): Likewise.
4021 2019-11-20  Julian Brown  <julian@codesourcery.com>
4023         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
4024         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
4025         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
4026         return code.
4028 2019-11-20  Julian Brown  <julian@codesourcery.com>
4030         PR libgomp/92511
4032         * oacc-mem.c (present_create_copy): Fix device pointer return value in
4033         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
4034         in non-present/create case.
4035         (delete_copyout): Change error condition to fail only on copies outside
4036         of mapped block.  Adjust error message accordingly.
4037         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
4038         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
4039         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
4040         message.
4041         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4042         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
4043         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
4045 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
4047         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
4048         libatomic in build-tree testing.
4050 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
4052         * testsuite/Makefile.in: Regenerate.
4054 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
4056         * testsuite/libgomp.c/target-print-1.c: New file.
4057         * testsuite/libgomp.fortran/target-print-1.f90: New file.
4058         * testsuite/libgomp.oacc-c/print-1.c: New file.
4059         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
4061 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4062             Kwok Cheung Yeung  <kcy@codesourcery.com>
4063             Julian Brown  <julian@codesourcery.com>
4064             Tom de Vries  <tom@codesourcery.com>
4066         * plugin/Makefrag.am: Add amdgcn plugin support.
4067         * plugin/configfrag.ac: Likewise.
4068         * plugin/plugin-gcn.c: New file.
4069         * configure: Regenerate.
4070         * Makefile.in: Regenerate.
4071         * testsuite/Makefile.in: Regenerate.
4073 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4075         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
4076         and use team_malloc variants.
4077         (gomp_gcn_exit_kernel): Use team_free.
4078         * libgomp.h (TEAM_ARENA_SIZE): Define.
4079         (TEAM_ARENA_START): Define.
4080         (TEAM_ARENA_FREE): Define.
4081         (TEAM_ARENA_END): Define.
4082         (team_malloc): New function.
4083         (team_malloc_cleared): New function.
4084         (team_free): New function.
4085         * team.c (gomp_new_team): Initialize and use team_malloc.
4086         (free_team): Use team_free.
4087         (gomp_free_thread): Use team_free.
4088         (gomp_pause_host): Use team_free.
4089         * work.c (gomp_init_work_share): Use team_malloc.
4090         (gomp_fini_work_share): Use team_free.
4092 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4093             Kwok Cheung Yeung  <kcy@codesourcery.com>
4094             Julian Brown  <julian@codesourcery.com>
4095             Tom de Vries  <tom@codesourcery.com>
4097         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
4098         * Makefile.in: Regenerate.
4099         * config.h.in (PLUGIN_GCN): Add new undef.
4100         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
4101         * config/gcn/affinity-fmt.c: New file.
4102         * config/gcn/bar.c: New file.
4103         * config/gcn/bar.h: New file.
4104         * config/gcn/doacross.h: New file.
4105         * config/gcn/icv-device.c: New file.
4106         * config/gcn/oacc-target.c: New file.
4107         * config/gcn/simple-bar.h: New file.
4108         * config/gcn/target.c: New file.
4109         * config/gcn/task.c: New file.
4110         * config/gcn/team.c: New file.
4111         * config/gcn/time.c: New file.
4112         * configure.ac: Add amdgcn*-*-*.
4113         * configure: Regenerate.
4114         * configure.tgt: Add amdgcn*-*-*.
4115         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
4116         * libgomp.h (gcn_thrs): Add amdgcn variant.
4117         (set_gcn_thrs): Likewise.
4118         (gomp_thread): Likewise.
4119         * oacc-int.h (goacc_thread): Likewise.
4120         * oacc-target.c: New file.
4121         * openacc.f90 (acc_device_gcn): New parameter.
4122         * openacc.h (acc_device_t): Add acc_device_gcn.
4123         * team.c (gomp_free_pool_helper): Add amdgcn support.
4125 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4126             Julian Brown  <julian@codesourcery.com>
4128         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
4129         parameter.
4130         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
4131         queue constructor.
4132         * oacc-host.c (host_openacc_async_construct): Add device parameter.
4133         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
4134         device parameter.
4136 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
4138         * configure.tgt (nvptx*-*-*): Add "accel" directory.
4139         * config/nvptx/libgomp-plugin.c: Move ...
4140         * config/accel/libgomp-plugin.c: ... to here.
4141         * config/nvptx/lock.c: Move ...
4142         * config/accel/lock.c: ... to here.
4143         * config/nvptx/mutex.c: Move ...
4144         * config/accel/mutex.c: ... to here.
4145         * config/nvptx/mutex.h: Move ...
4146         * config/accel/mutex.h: ... to here.
4147         * config/nvptx/oacc-async.c: Move ...
4148         * config/accel/oacc-async.c: ... to here.
4149         * config/nvptx/oacc-cuda.c: Move ...
4150         * config/accel/oacc-cuda.c: ... to here.
4151         * config/nvptx/oacc-host.c: Move ...
4152         * config/accel/oacc-host.c: ... to here.
4153         * config/nvptx/oacc-init.c: Move ...
4154         * config/accel/oacc-init.c: ... to here.
4155         * config/nvptx/oacc-mem.c: Move ...
4156         * config/accel/oacc-mem.c: ... to here.
4157         * config/nvptx/oacc-plugin.c: Move ...
4158         * config/accel/oacc-plugin.c: ... to here.
4159         * config/nvptx/omp-lock.h: Move ...
4160         * config/accel/omp-lock.h: ... to here.
4161         * config/nvptx/openacc.f90: Move ...
4162         * config/accel/openacc.f90: ... to here.
4163         * config/nvptx/pool.h: Move ...
4164         * config/accel/pool.h: ... to here.
4165         * config/nvptx/proc.c: Move ...
4166         * config/accel/proc.c: ... to here.
4167         * config/nvptx/ptrlock.c: Move ...
4168         * config/accel/ptrlock.c: ... to here.
4169         * config/nvptx/ptrlock.h: Move ...
4170         * config/accel/ptrlock.h: ... to here.
4171         * config/nvptx/sem.c: Move ...
4172         * config/accel/sem.c: ... to here.
4173         * config/nvptx/sem.h: Move ...
4174         * config/accel/sem.h: ... to here.
4175         * config/nvptx/thread-stacksize.h: Move ...
4176         * config/accel/thread-stacksize.h: ... to here.
4178 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
4179             Tobias Burnus  <tobias@codesourcery.com>
4180             Frederik Harwath  <frederik@codesourcery.com>
4181             Thomas Schwinge  <thomas@codesourcery.com>
4183         libgomp/
4184         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
4185         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
4186         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
4188 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
4189             Kwok Cheung Yeung  <kcy@codesourcery.com>
4191         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
4192         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
4194 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
4196         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
4198         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
4199         run'.
4200         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
4201         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
4203 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
4205         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
4206         Add expected warnings about missing reduction clauses.
4207         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
4208         Likewise.
4209         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
4210         Likewise.
4211         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
4212         Likewise.
4214 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
4216         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
4217         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
4218         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
4219         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
4220         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
4221         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
4223 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
4225         PR fortran/92305
4226         * testsuite/libgomp.fortran/allocatable2.f90: Use
4227         unique numbers with 'stop'.
4228         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
4229         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
4230         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
4231         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
4232         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
4234 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
4236         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
4237         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
4238         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
4239         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
4240         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
4241         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
4243 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
4245         * testsuite/libgomp.fortran/target9.f90: New.
4247 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
4249         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
4250         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
4251         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
4252         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
4253         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
4254         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
4255         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
4256         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
4257         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
4258         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
4259         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
4260         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
4261         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
4262         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
4263         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
4264         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
4265         * testsuite/libgomp.fortran/associate1.f90: Ditto.
4266         * testsuite/libgomp.fortran/associate2.f90: Ditto.
4267         * testsuite/libgomp.fortran/associate3.f90: Ditto.
4268         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
4269         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
4270         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
4271         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
4272         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
4273         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
4274         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
4275         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
4276         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
4277         * testsuite/libgomp.fortran/character1.f90: Ditto.
4278         * testsuite/libgomp.fortran/character2.f90: Ditto.
4279         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
4280         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
4281         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
4282         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
4283         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
4284         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
4285         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
4286         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
4287         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
4288         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
4289         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
4290         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
4291         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
4292         * testsuite/libgomp.fortran/do1.f90: Ditto.
4293         * testsuite/libgomp.fortran/do2.f90: Ditto.
4294         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
4295         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
4296         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
4297         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
4298         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
4299         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
4300         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
4301         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
4302         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
4303         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
4304         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
4305         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
4306         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
4307         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
4308         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
4309         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
4310         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
4311         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
4312         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
4313         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
4314         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
4315         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
4316         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
4317         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
4318         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
4319         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
4320         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
4321         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
4322         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
4323         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
4324         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
4325         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
4326         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
4327         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
4328         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
4329         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
4330         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
4331         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
4332         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
4333         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
4334         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
4335         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
4336         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
4337         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
4338         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
4339         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
4340         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
4341         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
4342         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
4343         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
4344         * testsuite/libgomp.fortran/lib1.f90: Ditto.
4345         * testsuite/libgomp.fortran/lib4.f90: Ditto.
4346         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
4347         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
4348         * testsuite/libgomp.fortran/nested1.f90: Ditto.
4349         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
4350         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
4351         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
4352         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
4353         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
4354         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
4355         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
4356         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
4357         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
4358         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
4359         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
4360         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
4361         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
4362         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
4363         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
4364         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
4365         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
4366         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
4367         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
4368         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
4369         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
4370         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
4371         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
4372         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
4373         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
4374         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
4375         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
4376         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
4377         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
4378         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
4379         * testsuite/libgomp.fortran/pr28390.f: Ditto.
4380         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
4381         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
4382         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
4383         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
4384         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
4385         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
4386         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
4387         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
4388         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
4389         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
4390         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
4391         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
4392         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
4393         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
4394         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
4395         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
4396         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
4397         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
4398         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
4399         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
4400         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
4401         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
4402         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
4403         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
4404         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
4405         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
4406         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
4407         * testsuite/libgomp.fortran/reference1.f90: Ditto.
4408         * testsuite/libgomp.fortran/reference2.f90: Ditto.
4409         * testsuite/libgomp.fortran/retval1.f90: Ditto.
4410         * testsuite/libgomp.fortran/retval2.f90: Ditto.
4411         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
4412         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
4413         * testsuite/libgomp.fortran/simd1.f90: Ditto.
4414         * testsuite/libgomp.fortran/simd2.f90: Ditto.
4415         * testsuite/libgomp.fortran/simd3.f90: Ditto.
4416         * testsuite/libgomp.fortran/simd4.f90: Ditto.
4417         * testsuite/libgomp.fortran/simd5.f90: Ditto.
4418         * testsuite/libgomp.fortran/simd6.f90: Ditto.
4419         * testsuite/libgomp.fortran/simd7.f90: Ditto.
4420         * testsuite/libgomp.fortran/stack.f90: Ditto.
4421         * testsuite/libgomp.fortran/strassen.f90: Ditto.
4422         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
4423         * testsuite/libgomp.fortran/tabs2.f: Ditto.
4424         * testsuite/libgomp.fortran/target1.f90: Ditto.
4425         * testsuite/libgomp.fortran/target2.f90: Ditto.
4426         * testsuite/libgomp.fortran/target3.f90: Ditto.
4427         * testsuite/libgomp.fortran/target4.f90: Ditto.
4428         * testsuite/libgomp.fortran/target5.f90: Ditto.
4429         * testsuite/libgomp.fortran/target6.f90: Ditto.
4430         * testsuite/libgomp.fortran/target7.f90: Ditto.
4431         * testsuite/libgomp.fortran/target8.f90: Ditto.
4432         * testsuite/libgomp.fortran/task1.f90: Ditto.
4433         * testsuite/libgomp.fortran/task2.f90: Ditto.
4434         * testsuite/libgomp.fortran/task3.f90: Ditto.
4435         * testsuite/libgomp.fortran/task4.f90: Ditto.
4436         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
4437         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
4438         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
4439         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
4440         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
4441         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
4442         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
4443         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
4444         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
4445         * testsuite/libgomp.fortran/udr1.f90: Ditto.
4446         * testsuite/libgomp.fortran/udr10.f90: Ditto.
4447         * testsuite/libgomp.fortran/udr11.f90: Ditto.
4448         * testsuite/libgomp.fortran/udr12.f90: Ditto.
4449         * testsuite/libgomp.fortran/udr13.f90: Ditto.
4450         * testsuite/libgomp.fortran/udr14.f90: Ditto.
4451         * testsuite/libgomp.fortran/udr15.f90: Ditto.
4452         * testsuite/libgomp.fortran/udr2.f90: Ditto.
4453         * testsuite/libgomp.fortran/udr3.f90: Ditto.
4454         * testsuite/libgomp.fortran/udr4.f90: Ditto.
4455         * testsuite/libgomp.fortran/udr5.f90: Ditto.
4456         * testsuite/libgomp.fortran/udr6.f90: Ditto.
4457         * testsuite/libgomp.fortran/udr7.f90: Ditto.
4458         * testsuite/libgomp.fortran/udr8.f90: Ditto.
4459         * testsuite/libgomp.fortran/udr9.f90: Ditto.
4460         * testsuite/libgomp.fortran/vla1.f90: Ditto.
4461         * testsuite/libgomp.fortran/vla2.f90: Ditto.
4462         * testsuite/libgomp.fortran/vla3.f90: Ditto.
4463         * testsuite/libgomp.fortran/vla4.f90: Ditto.
4464         * testsuite/libgomp.fortran/vla5.f90: Ditto.
4465         * testsuite/libgomp.fortran/vla6.f90: Ditto.
4466         * testsuite/libgomp.fortran/vla7.f90: Ditto.
4467         * testsuite/libgomp.fortran/vla8.f90: Ditto.
4468         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
4469         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
4471 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
4473         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
4474         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
4475         Ditto; add 'dg-do run' for torture testing.
4476         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
4477         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
4478         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
4479         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
4480         * testsuite/libgomp.fortran/pr28390.f: Ditto.
4481         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
4482         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
4483         * testsuite/libgomp.fortran/task2.f90: Ditto.
4484         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
4485         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
4486         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
4487         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
4488         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
4489         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
4491 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
4493         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
4494         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
4495         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
4496         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
4497         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
4498         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
4499         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
4500         Use 'stop' not abort().
4501         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
4502         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
4503         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
4504         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
4505         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
4506         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
4507         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
4508         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
4509         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
4510         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
4511         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
4512         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
4513         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
4514         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
4515         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
4516         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
4517         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
4518         Ditto.
4519         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4520         Ditto.
4521         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4522         Ditto.
4523         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4524         Ditto.
4525         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4526         Ditto.
4527         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
4528         Ditto.
4529         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
4530         Ditto.
4531         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
4532         Ditto.
4533         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
4534         Ditto.
4535         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
4536         Ditto.
4537         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
4538         Ditto.
4539         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
4540         Ditto.
4541         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
4542         Ditto.
4543         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
4544         Ditto.
4545         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
4546         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
4547         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
4548         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
4549         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
4550         Likewise and also add 'dg-do run'.
4551         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
4552         Ditto.
4554 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
4555             Tobias Burnus  <tobias@codesourcery.com>
4557         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
4558         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
4559         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
4561 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
4563         PR libgomp/92081
4564         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
4565         than 0.
4567 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
4569         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
4570         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
4572 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
4574         PR middle-end/92036
4575         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
4576         file.
4578 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
4580         PR testsuite/91884
4581         * testsuite/libgomp.fortran/fortran.exp: Conditionally
4582         add -lquadmath.
4583         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
4585 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
4587         PR libgomp/92028
4588         * target.c (gomp_map_vars_internal): Readd the previous
4589         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
4590         though do that just in the !not_found_cnt case.
4592 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
4594         * gfortran.dg/gomp/target-simd.f90: New.
4596 2019-10-02  Julian Brown  <julian@codesourcery.com>
4597             Cesar Philippidis  <cesar@codesourcery.com>
4599         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
4600         * target.c (FIELD_TGT_EMPTY): Define.
4601         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
4602         as switch instead of list of ifs.
4603         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
4605 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
4607         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
4608         include. Replace alloca () with __builtin_alloca ().
4609         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
4611 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
4613         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
4614         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
4615         * oacc-parallel.c: Don't include "libgomp_g.h".
4616         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
4617         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
4618         * aclocal.m4: Regenerated.
4619         * config.h.in: Regenerated.
4620         * configure: Regenerated.
4621         * Makefile.in: Regenerated.
4623 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
4625         * libgomp_g.h: Include stdint.h instead of gstdint.h.
4627 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
4629         * configure: Regenerate.
4631 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
4633         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
4634         string is initialized.
4636 2019-09-06  Florian Weimer  <fweimer@redhat.com>
4638         * configure: Regenerate.
4640 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
4642         PR other/79543
4643         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
4644         scanning to conform to the GNU Coding Standards.
4645         * configure: Regenerate.
4647 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
4649         PR libgomp/91530
4650         * testsuite/libgomp.c/scan-21.c: New test.
4651         * testsuite/libgomp.c/scan-22.c: New test.
4653 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
4655         PR libgomp/91530
4656         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
4657         targets.
4658         * testsuite/libgomp.c/scan-12.c: Likewise.
4659         * testsuite/libgomp.c/scan-13.c: Likewise.
4660         * testsuite/libgomp.c/scan-14.c: Likewise.
4661         * testsuite/libgomp.c/scan-15.c: Likewise.
4662         * testsuite/libgomp.c/scan-16.c: Likewise.
4663         * testsuite/libgomp.c/scan-17.c: Likewise.
4664         * testsuite/libgomp.c/scan-18.c: Likewise.
4665         * testsuite/libgomp.c/scan-19.c: Likewise.
4666         * testsuite/libgomp.c/scan-20.c: Likewise.
4667         * testsuite/libgomp.c++/scan-9.C: Likewise.
4668         * testsuite/libgomp.c++/scan-10.C: Likewise.
4669         * testsuite/libgomp.c++/scan-11.C: Likewise.
4670         * testsuite/libgomp.c++/scan-12.C: Likewise.
4671         * testsuite/libgomp.c++/scan-14.C: Likewise.
4672         * testsuite/libgomp.c++/scan-15.C: Likewise.
4673         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
4674         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
4675         * testsuite/libgomp.c++/scan-16.C: Likewise.
4677 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
4679         PR fortran/91473
4680         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
4681         -std=legacy so invalid code in the test case is accepted.
4683 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
4685         PR fortran/91422
4686         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
4687         dimension.
4689 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
4691         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
4692         perform the lookup in the first loop only if !not_found_cnt, otherwise
4693         perform lookups for it in the second loop guarded with
4694         if (not_found_cnt || has_firstprivate).
4695         * testsuite/libgomp.c/target-37.c: New test.
4696         * testsuite/libgomp.c++/target-22.C: New test.
4698 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
4700         * testsuite/libgomp.c/target-18.c (struct S): New type.
4701         (foo): Use use_device_addr clause instead of use_device_ptr clause
4702         where required by OpenMP 5.0, add further tests for both use_device_ptr
4703         and use_device_addr clauses.
4704         * testsuite/libgomp.c++/target-9.C (struct S): New type.
4705         (foo): Use use_device_addr clause instead of use_device_ptr clause
4706         where required by OpenMP 5.0, add further tests for both use_device_ptr
4707         and use_device_addr clauses.  Add t and u arguments.
4708         (main): Adjust caller.
4710 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
4712         * testsuite/libgomp.c++/loop-13.C: New test.
4713         * testsuite/libgomp.c++/loop-14.C: New test.
4714         * testsuite/libgomp.c++/loop-15.C: New test.
4716 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
4718         PR middle-end/91301
4719         * testsuite/libgomp.c++/for-27.C: New test.
4721 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
4723         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
4724         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
4726 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
4728         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
4730 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
4732         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
4733         * testsuite/libgomp.c++/scan-16.C: Likewise.
4735 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
4737         * testsuite/libgomp.c/scan-19.c: New test.
4738         * testsuite/libgomp.c/scan-20.c: New test.
4740         * testsuite/libgomp.c/scan-11.c: New test.
4741         * testsuite/libgomp.c/scan-12.c: New test.
4742         * testsuite/libgomp.c/scan-13.c: New test.
4743         * testsuite/libgomp.c/scan-14.c: New test.
4744         * testsuite/libgomp.c/scan-15.c: New test.
4745         * testsuite/libgomp.c/scan-16.c: New test.
4746         * testsuite/libgomp.c/scan-17.c: New test.
4747         * testsuite/libgomp.c/scan-18.c: New test.
4748         * testsuite/libgomp.c++/scan-9.C: New test.
4749         * testsuite/libgomp.c++/scan-10.C: New test.
4750         * testsuite/libgomp.c++/scan-11.C: New test.
4751         * testsuite/libgomp.c++/scan-12.C: New test.
4752         * testsuite/libgomp.c++/scan-13.C: New test.
4753         * testsuite/libgomp.c++/scan-14.C: New test.
4754         * testsuite/libgomp.c++/scan-15.C: New test.
4755         * testsuite/libgomp.c++/scan-16.C: New test.
4757 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
4759         * testsuite/libgomp.c/scan-9.c: New test.
4760         * testsuite/libgomp.c/scan-10.c: New test.
4762 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
4764         * testsuite/libgomp.c++/scan-1.C: New test.
4765         * testsuite/libgomp.c++/scan-2.C: New test.
4766         * testsuite/libgomp.c++/scan-3.C: New test.
4767         * testsuite/libgomp.c++/scan-4.C: New test.
4768         * testsuite/libgomp.c++/scan-5.C: New test.
4769         * testsuite/libgomp.c++/scan-6.C: New test.
4770         * testsuite/libgomp.c++/scan-7.C: New test.
4771         * testsuite/libgomp.c++/scan-8.C: New test.
4772         * testsuite/libgomp.c/scan-1.c: New test.
4773         * testsuite/libgomp.c/scan-2.c: New test.
4774         * testsuite/libgomp.c/scan-3.c: New test.
4775         * testsuite/libgomp.c/scan-4.c: New test.
4776         * testsuite/libgomp.c/scan-5.c: New test.
4777         * testsuite/libgomp.c/scan-6.c: New test.
4778         * testsuite/libgomp.c/scan-7.c: New test.
4779         * testsuite/libgomp.c/scan-8.c: New test.
4781 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
4783         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
4784         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
4785         Likewise.
4787         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
4788         check.
4790 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
4792         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
4793         file.
4795 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
4797         PR fortran/90743
4798         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
4799         case.
4800         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
4801         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
4802         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
4803         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
4805         PR testsuite/90861
4806         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
4808         PR middle-end/90862
4809         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
4811 2019-06-16  Tom de Vries  <tdevries@suse.de>
4813         PR tree-optimization/89376
4814         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
4816 2019-06-15  Tom de Vries  <tdevries@suse.de>
4818         PR tree-optimization/89713
4819         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
4820         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
4822 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
4824         PR middle-end/90779
4825         * testsuite/libgomp.c/pr90779.c: New test.
4826         * testsuite/libgomp.fortran/pr90779.f90: New test.
4828 2019-06-15  Tom de Vries  <tdevries@suse.de>
4830         PR tree-optimization/90009
4831         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
4833 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
4835         PR tree-optimization/89713
4836         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
4838 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
4840         PR target/90811
4841         * testsuite/libgomp.c/pr90811.c: New test.
4843 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
4845         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
4846         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
4848 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
4850         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
4851         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
4852         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
4853         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
4855 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4857         * configure.ac: Call AX_COUNT_CPUS.
4858         Substitute CPU_COUNT.
4859         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
4860         count fallback.
4861         * aclocal.m4: Regenerate.
4862         * configure: Regenerate.
4863         * Makefile.in, testsuite/Makefile.in: Regenerate.
4865 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
4867         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
4868         to ...
4869         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
4870         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
4871         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
4873 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
4875         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
4877         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
4879         PR libgomp/90641
4880         * work.c (gomp_init_work_share): Instead of aligning final ordered
4881         value to multiples of long long alignment, align to that the
4882         first part (ordered team ids) and if inline_ordered_team_ids
4883         is not on a long long alignment boundary within the structure,
4884         use __alignof__ (long long) - 1 pad size always.
4885         * loop.c (GOMP_loop_start): Fix *mem computation if
4886         inline_ordered_team_ids is not aligned on long long alignment boundary
4887         within the structure.
4888         * loop-ull.c (GOMP_loop_ull_start): Likewise.
4889         * sections.c (GOMP_sections2_start): Likewise.
4891 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
4893         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
4894         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
4896         PR libgomp/90585
4897         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
4898         HAVE_INTTYPES_H is defined.
4899         (print_uint64_t): New typedef.
4900         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
4901         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
4902         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
4903         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
4904         before casting to void *.
4905         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
4906         * oacc-mem.c: Don't include config.h nor stdint.h.
4907         * target.c: Don't include config.h.
4908         * oacc-cuda.c: Likewise.
4909         * oacc-host.c: Don't include stdint.h.
4911 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
4913         PR libgomp/90527
4914         * alloc.c (_GNU_SOURCE): Define.
4916 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
4918         * acc_prof.h: New file.
4919         * oacc-profiling.c: Likewise.
4920         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
4921         Add these, respectively.
4922         * Makefile.in: Regenerate.
4923         * env.c (initialize_env): Call goacc_profiling_initialize.
4924         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
4925         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
4926         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
4927         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
4928         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
4929         acc_prof_register, acc_prof_unregister, and acc_register_library.
4930         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
4931         GOMP_PLUGIN_goacc_thread.
4932         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
4933         prof_callbacks_enabled members.
4934         (goacc_prof_enabled, goacc_profiling_initialize)
4935         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
4936         (goacc_profiling_dispatch): Declare.
4937         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
4938         (GOACC_PROFILING_SETUP_P): Define.
4939         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
4940         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
4941         OpenACC Profiling Interface.
4942         * oacc-cuda.c (acc_get_current_cuda_device)
4943         (acc_get_current_cuda_context, acc_get_cuda_stream)
4944         (acc_set_cuda_stream): Likewise.
4945         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
4946         (acc_init, acc_set_device_type, acc_get_device_type)
4947         (acc_get_device_num, goacc_lazy_initialize): Likewise.
4948         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
4949         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
4950         (acc_unmap_data, present_create_copy, delete_copyout)
4951         (update_dev_host): Likewise.
4952         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
4953         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
4954         Likewise.
4955         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
4956         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
4957         Likewise.
4958         * libgomp.texi: Update.
4959         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
4960         file.
4961         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
4962         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4963         Likewise.
4964         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
4965         Likewise.
4966         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
4967         Likewise.
4968         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
4969         Likewise.
4971 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
4973         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
4974         (struct goacc_asyncqueue_list): Likewise.
4975         (goacc_aq): Likewise.
4976         (goacc_aq_list): Likewise.
4977         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
4978         (GOMP_OFFLOAD_openacc_async_test): Remove.
4979         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
4980         (GOMP_OFFLOAD_openacc_async_wait): Remove.
4981         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
4982         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
4983         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
4984         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
4985         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
4986         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
4987         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
4988         (GOMP_OFFLOAD_openacc_async_exec): Declare.
4989         (GOMP_OFFLOAD_openacc_async_construct): Declare.
4990         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
4991         (GOMP_OFFLOAD_openacc_async_test): Declare.
4992         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
4993         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
4994         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
4995         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
4996         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
4998         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
4999         (gomp_acc_insert_pointer): Adjust declaration.
5000         (gomp_copy_host2dev): New declaration.
5001         (gomp_copy_dev2host): Likewise.
5002         (gomp_map_vars_async): Likewise.
5003         (gomp_unmap_tgt): Likewise.
5004         (gomp_unmap_vars_async): Likewise.
5005         (gomp_fini_device): Likewise.
5007         * oacc-async.c (get_goacc_thread): New function.
5008         (get_goacc_thread_device): New function.
5009         (lookup_goacc_asyncqueue): New function.
5010         (get_goacc_asyncqueue): New function.
5011         (acc_async_test): Adjust code to use new async design.
5012         (acc_async_test_all): Likewise.
5013         (acc_wait): Likewise.
5014         (acc_wait_async): Likewise.
5015         (acc_wait_all): Likewise.
5016         (acc_wait_all_async): Likewise.
5017         (goacc_async_free): New function.
5018         (goacc_init_asyncqueues): Likewise.
5019         (goacc_fini_asyncqueues): Likewise.
5020         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
5021         design.
5022         (acc_set_cuda_stream): Likewise.
5023         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
5024         (host_openacc_register_async_cleanup): Remove.
5025         (host_openacc_async_exec): New function.
5026         (host_openacc_async_test): Adjust parameters.
5027         (host_openacc_async_test_all): Remove.
5028         (host_openacc_async_wait): Remove.
5029         (host_openacc_async_wait_async): Remove.
5030         (host_openacc_async_wait_all): Remove.
5031         (host_openacc_async_wait_all_async): Remove.
5032         (host_openacc_async_set_async): Remove.
5033         (host_openacc_async_synchronize): New function.
5034         (host_openacc_async_serialize): New function.
5035         (host_openacc_async_host2dev): New function.
5036         (host_openacc_async_dev2host): New function.
5037         (host_openacc_async_queue_callback): New function.
5038         (host_openacc_async_construct): New function.
5039         (host_openacc_async_destruct): New function.
5040         (struct gomp_device_descr host_dispatch): Remove initialization of old
5041         interface, add initialization of new async sub-struct.
5042         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
5043         (goacc_attach_host_thread_to_device): Remove old async code usage.
5044         * oacc-int.h (goacc_init_asyncqueues): New declaration.
5045         (goacc_fini_asyncqueues): Likewise.
5046         (goacc_async_copyout_unmap_vars): Likewise.
5047         (goacc_async_free): Likewise.
5048         (get_goacc_asyncqueue): Likewise.
5049         (lookup_goacc_asyncqueue): Likewise.
5050         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
5051         design.
5052         (present_create_copy): Adjust code to use new async design.
5053         (delete_copyout): Likewise.
5054         (update_dev_host): Likewise.
5055         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
5056         async design.
5057         (gomp_acc_remove_pointer): Adjust code to use new async design.
5058         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
5059         design.
5060         (GOACC_enter_exit_data): Likewise.
5061         (goacc_wait): Likewise.
5062         (GOACC_update): Likewise.
5063         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
5064         when called, warn as obsolete in comment.
5065         * target.c (goacc_device_copy_async): New function.
5066         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
5067         add goacc_device_copy_async case.
5068         (gomp_copy_dev2host): Likewise.
5069         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
5070         (gomp_map_pointer): Likewise.
5071         (gomp_map_fields_existing): Likewise.
5072         (gomp_map_vars_internal): New always_inline function, renamed from
5073         gomp_map_vars.
5074         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
5075         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
5076         passing goacc_asyncqueue argument.
5077         (gomp_unmap_tgt): Remove static, add attribute_hidden.
5078         (gomp_unref_tgt): New function.
5079         (gomp_unmap_vars_internal): New always_inline function, renamed from
5080         gomp_unmap_vars.
5081         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
5082         (gomp_unmap_vars_async): Implement by calling
5083         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
5084         (gomp_fini_device): New function.
5085         (gomp_exit_data): Adjust gomp_copy_dev2host call.
5086         (gomp_load_plugin_for_device): Remove old interface, adjust to load
5087         new async interface.
5088         (gomp_target_fini): Adjust code to call gomp_fini_device.
5090         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
5091         (struct ptx_stream): Remove.
5092         (struct nvptx_thread): Remove current_stream field.
5093         (cuda_map_create): Remove.
5094         (cuda_map_destroy): Remove.
5095         (map_init): Remove.
5096         (map_fini): Remove.
5097         (map_pop): Remove.
5098         (map_push): Remove.
5099         (struct goacc_asyncqueue): Define.
5100         (struct nvptx_callback): Define.
5101         (struct ptx_free_block): Define.
5102         (struct ptx_device): Remove null_stream, active_streams, async_streams,
5103         stream_lock, and next fields.
5104         (enum ptx_event_type): Remove.
5105         (struct ptx_event): Remove.
5106         (ptx_event_lock): Remove.
5107         (ptx_events): Remove.
5108         (init_streams_for_device): Remove.
5109         (fini_streams_for_device): Remove.
5110         (select_stream_for_async): Remove.
5111         (nvptx_init): Remove ptx_events and ptx_event_lock references.
5112         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
5113         case.
5114         (nvptx_open_device): Add free_blocks initialization, remove
5115         init_streams_for_device call.
5116         (nvptx_close_device): Remove fini_streams_for_device call, add
5117         free_blocks destruct code.
5118         (event_gc): Remove.
5119         (event_add): Remove.
5120         (nvptx_exec): Adjust parameters and code.
5121         (nvptx_free): Likewise.
5122         (nvptx_host2dev): Remove.
5123         (nvptx_dev2host): Remove.
5124         (nvptx_set_async): Remove.
5125         (nvptx_async_test): Remove.
5126         (nvptx_async_test_all): Remove.
5127         (nvptx_wait): Remove.
5128         (nvptx_wait_async): Remove.
5129         (nvptx_wait_all): Remove.
5130         (nvptx_wait_all_async): Remove.
5131         (nvptx_get_cuda_stream): Remove.
5132         (nvptx_set_cuda_stream): Remove.
5133         (GOMP_OFFLOAD_alloc): Adjust code.
5134         (GOMP_OFFLOAD_free): Likewise.
5135         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
5136         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
5137         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
5138         (GOMP_OFFLOAD_openacc_async_wait): Remove.
5139         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
5140         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
5141         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
5142         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
5143         (cuda_free_argmem): New function.
5144         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
5145         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
5146         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
5147         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
5148         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
5149         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
5150         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
5151         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
5152         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
5153         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
5154         (cuda_callback_wrapper): New function.
5155         (cuda_memcpy_sanity_check): New function.
5156         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
5157         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
5158         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
5159         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
5161 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
5163         PR target/87835
5164         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
5166 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
5168         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
5170 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
5172         * team.c (gomp_team_start): Initialize pool->threads[0].
5174 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
5176         * testsuite/libgomp.oacc-c++/c++.exp: Specify
5177         "-foffload=$offload_target".
5178         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5179         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5180         * testsuite/lib/libgomp.exp
5181         (check_effective_target_openacc_nvidia_accel_configured): Remove,
5182         as (conceptually) merged into
5183         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
5184         users.
5186         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
5187         * testsuite/libgomp-test-support.exp.in: Adjust.
5188         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
5189         openacc_device_types_s.
5190         (offload_target_to_openacc_device_type): New proc.
5191         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
5192         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5193         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5194         * Makefile.in: Regenerate.
5195         * configure: Likewise.
5196         * testsuite/Makefile.in: Likewise.
5198         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
5199         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
5200         instead of OFFLOAD_TARGETS.
5201         * target.c (gomp_target_init): Adjust.
5202         * testsuite/libgomp-test-support.exp.in: Likewise.
5203         * testsuite/lib/libgomp.exp: Likewise.  Populate
5204         openacc_device_types_s instead of offload_targets_s_openacc.
5205         (check_effective_target_openacc_nvidia_accel_selected)
5206         (check_effective_target_openacc_host_selected): Adjust.
5207         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
5208         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5209         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5210         * Makefile.in: Regenerate.
5211         * config.h.in: Likewise.
5212         * configure: Likewise.
5213         * testsuite/Makefile.in: Likewise.
5215         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
5216         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
5217         "offloading: supported, but hardware not accessible".
5218         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5219         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5221 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
5223         PR c/87924
5224         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
5225         goacc_wait().
5226         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
5227         and related adjustment.
5229 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
5231         PR c++/88988
5232         * testsuite/libgomp.c++/pr88988.C: New test.
5234 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
5236         PR middle-end/89002
5237         * testsuite/libgomp.c/pr89002.c: New test.
5239 2019-01-28  Richard Biener  <rguenther@suse.de>
5241         PR testsuite/89064
5242         PR tree-optimization/86865
5243         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
5245 2019-01-24  Tom de Vries  <tdevries@suse.de>
5247         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
5248         once instantiated_devices drops to 0.
5250 2019-01-23  Tom de Vries  <tdevries@suse.de>
5252         PR target/PR88946
5253         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
5254         cuMemFree.
5255         (nvptx_exec): Don't call map_push if mapnum == 0.
5256         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
5258 2019-01-23  Tom de Vries  <tdevries@suse.de>
5260         PR target/88941
5261         PR target/88939
5262         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
5263         (map_fini): Remove "assert (!s->map->active)".
5264         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
5266 2019-01-23  Tom de Vries  <tdevries@suse.de>
5268         PR target/87835
5269         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
5270         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
5272 2019-01-15  Tom de Vries  <tdevries@suse.de>
5274         PR target/80547
5275         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
5276         New test.
5278 2019-01-12  Tom de Vries  <tdevries@suse.de>
5280         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
5281         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
5282         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
5283         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
5285 2019-01-12  Tom de Vries  <tdevries@suse.de>
5287         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
5289 2019-01-12  Tom de Vries  <tdevries@suse.de>
5291         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
5292         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
5293         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
5295 2019-01-12  Tom de Vries  <tdevries@suse.de>
5297         PR target/85486
5298         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
5299         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
5301 2019-01-12  Tom de Vries  <tdevries@suse.de>
5303         PR target/85381
5304         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
5305         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
5307 2019-01-12  Tom de Vries  <tdevries@suse.de>
5309         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
5310         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
5311         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
5313 2019-01-12  Tom de Vries  <tdevries@suse.de>
5315         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
5316         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
5317         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
5319 2019-01-12  Tom de Vries  <tdevries@suse.de>
5321         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
5322         resources diagnostic.
5324 2019-01-12  Tom de Vries  <tdevries@suse.de>
5326         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
5327         vector length to be 128.
5328         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
5329         length 2097152 to be reduced to 1024 instead of 32.
5331 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
5332             James Norris  <jnorris@codesourcery.com>
5334         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
5335         Library Routines", and "Environment Variables".
5337 2019-01-11  Tom de Vries  <tdevries@suse.de>
5339         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
5340         num_workers 16.
5342 2019-01-11  Tom de Vries  <tdevries@suse.de>
5344         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
5345         -foffload=-w.
5346         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
5347         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
5348         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
5349         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
5351 2019-01-11  Tom de Vries  <tdevries@suse.de>
5353         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
5354         test.
5356 2019-01-10  Nathan Sidwell  <nathan@acm.org>
5357             Julian Brown  <julian@codesourcery.com>
5359         PR lto/71959
5360         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
5361         * testsuite/libgomp.oacc-c++/pr71959.C: New.
5363 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5365         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
5366         and paste code.
5368 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5370         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
5371         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
5372         write.
5374 2019-01-09  Tom de Vries  <tdevries@suse.de>
5376         PR target/88756
5377         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
5378         #define instead of "const int".
5379         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
5380         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
5381         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
5382         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
5384 2019-01-09  Tom de Vries  <tdevries@suse.de>
5386         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
5387         one worker.
5389 2019-01-07  Tom de Vries  <tdevries@suse.de>
5391         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
5392         GOMP_OPENACC_DIM argument.
5394 2019-01-03  Tom de Vries  <tdevries@suse.de>
5396         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
5397         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
5399 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
5401         Update copyright years.
5403 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
5405         * libgomp.texi: Bump @copying's copyright year.
5407 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
5409         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
5410         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
5411         (GOACC_declare): Redefine the "device" argument to "flags".
5413 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
5414             Cesar Philippidis  <cesar@codesourcery.com>
5416         * target.c (struct gomp_coalesce_chunk): New structure.
5417         (struct gomp_coalesce_buf): Update the chunks member to use that
5418         type.  Adjust all users.
5420 2018-12-19  Tom de Vries  <tdevries@suse.de>
5422         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
5423         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
5424         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
5426 2018-12-19  Tom de Vries  <tdevries@suse.de>
5428         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
5429         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
5430         gcc/testsuite/gcc.dg/goacc.
5431         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
5433 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
5434             Chung-Lin Tang  <cltang@codesourcery.com>
5436         * oacc-mem.c (acc_present_or_create): Remove definition and change
5437         to alias of acc_create.
5438         (acc_present_or_copyin): Remove definition and change to alias of
5439         acc_copyin.
5440         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
5441         of acc_present_or_create.
5442         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
5443         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5444         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
5445         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
5446         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
5447         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
5448         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
5449         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5450         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5451         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5452         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
5453         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
5454         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
5455         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
5456         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
5457         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5459 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
5461         PR libgomp/88495
5462         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
5463         "identical parameters".
5464         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
5465         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
5467         PR libgomp/88484
5468         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
5469         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
5471         PR libgomp/88407
5472         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
5473         (nvptx_wait_async): Unseen async-argument is a no-op.
5474         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
5475         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
5476         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5477         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5478         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
5479         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
5480         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
5481         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
5482         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
5484         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
5485         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5487 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
5489         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
5490         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5491         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5493 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
5495         PR libgomp/88370
5496         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
5497         (acc_set_cuda_stream): Clarify.
5498         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
5499         "async_valid_p".
5500         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
5501         acc_async_sync".
5502         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
5503         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
5504         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
5505         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5507 2018-12-14  Tom de Vries  <tdevries@suse.de>
5509         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
5510         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
5511         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
5512         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
5513         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
5515 2018-12-13  Tom de Vries  <tdevries@suse.de>
5517         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
5518         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
5519         * fortran.c (omp_display_affinity_): ... here.
5520         * libgomp.h (gomp_print_string): Declare.
5521         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
5522         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
5523         write.
5525 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
5527         PR libgomp/88460
5528         * testsuite/libgomp.c++/for-24.C (results): Include it in
5529         omp declare target region.
5530         (main): Use map (always, tofrom: results) instead of
5531         map (tofrom: results).
5533 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
5535         PR fortran/88463
5536         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
5537         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
5539         * testsuite/libgomp.c-c++-common/for-16.c: New test.
5541 2018-12-12  Andreas Schwab  <schwab@suse.de>
5543         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
5544         clobbered.
5546 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
5548         PR fortran/88411
5549         * testsuite/libgomp.fortran/async_io_8.f90: New test.
5551 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
5552             Jakub Jelinek  <jakub@redhat.com>
5554         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
5555         devicep->host2dev_func.
5557 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
5559         PR libgomp/87995
5560         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
5561         tls_runtime effective target.
5562         (t): New threadprivate variable.
5563         (main): Set t in threads which execute iterations of the worksharing
5564         loop.  Propagate that to the task after the loop and don't abort
5565         if the current taskgroup hasn't been cancelled.
5567 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
5569         * testsuite/libgomp.c/task-reduction-3.c: New test.
5571         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
5573 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
5575         PR libgomp/88288
5576         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
5577         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
5579 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
5581         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
5583 2018-10-19  Richard Biener  <rguenther@suse.de>
5585         PR tree-optimization/88182
5586         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
5588 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
5590         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
5591         (RUNTEST): Don't define.
5592         (RUNTESTDEFAULTFLAGS): Add.
5593         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
5594         (distclean-am): Depend on distclean-DEJAGNU.
5595         (check-am): If -j% option is present in MFLAGS and if
5596         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
5597         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
5598         * testsuite/Makefile.in: Regenerated.
5600 2018-11-26  Richard Biener  <rguenther@suse.de>
5602         PR tree-optimization/88182
5603         * testsuite/libgomp.c++/pr88182.C: New testcase.
5605 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
5607         PR bootstrap/88106
5608         * config/mingw32/affinity-fmt.c: New file.
5610 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
5612         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
5613         (gomp_display_affinity): Use __builtin_choose_expr to handle
5614         properly handle argument having integral, or pointer or some other
5615         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
5616         with uint64_t type instead of %llx and unsigned long long.
5618         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
5619         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
5621 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5623         * affinity.c: Include <string.h>, <stdio.h>.
5624         (gomp_display_affinity_place): Remove cpusetp.
5625         * teams.c: Include <limits.h>.
5627 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
5629         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
5630         in_reduction clause for s[0].
5632         * affinity.c (gomp_display_affinity_place): New function.
5633         * affinity-fmt.c: New file.
5634         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
5635         * config/linux/affinity.c (gomp_display_affinity_place): New function.
5636         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
5637         Move these functions to ...
5638         * config/nvptx/teams.c: ... here.  New file.
5639         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
5640         New functions.
5641         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
5642         functions.
5643         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
5644         and _aligned_malloc.
5645         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
5646         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
5647         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
5648         gomp_affinity_format_len): New variables.
5649         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
5650         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
5651         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
5652         modifiers.  Display (non-default) chunk sizes.  Print
5653         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
5654         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
5655         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
5656         * fortran.c: Include stdio.h and string.h.
5657         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
5658         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
5659         (omp_set_affinity_format_, omp_get_affinity_format_,
5660         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
5661         omp_pause_resource_all_): New functions.
5662         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
5663         switch.
5664         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
5665         functions to ...
5666         * teams.c: ... here.  New file.
5667         * libgomp_g.h: Include gstdint.h.
5668         (GOMP_loop_nonmonotonic_runtime_start,
5669         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
5670         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
5671         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
5672         GOMP_parallel_loop_nonmonotonic_runtime,
5673         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5674         GOMP_loop_ull_nonmonotonic_runtime_start,
5675         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
5676         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
5677         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5678         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
5679         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
5680         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5681         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
5682         GOMP_teams_reg): Declare.
5683         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
5684         gomp_aligned_alloc uses fallback implementation.
5685         (gomp_aligned_alloc, gomp_aligned_free): Declare.
5686         (enum gomp_schedule_type): Add GFS_MONOTONIC.
5687         (struct gomp_doacross_work_share): Add extra field.
5688         (struct gomp_work_share): Add task_reductions field.
5689         (struct gomp_taskgroup): Add workshare and reductions fields.
5690         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
5691         (gomp_thread_handle): New typedef.
5692         (gomp_display_affinity_place, gomp_set_affinity_format,
5693         gomp_display_string, gomp_display_affinity,
5694         gomp_display_affinity_thread): Declare.
5695         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
5696         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
5697         gomp_workshare_task_reduction_register): Declare.
5698         (gomp_team_start): Add taskgroup argument.
5699         (gomp_pause_host): Declare.
5700         (gomp_init_work_share, gomp_work_share_start): Change bool argument
5701         to size_t.
5702         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
5703         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
5704         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
5705         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
5706         GOMP_loop_ull_doacross_start,
5707         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
5708         GOMP_loop_maybe_nonmonotonic_runtime_next,
5709         GOMP_loop_maybe_nonmonotonic_runtime_start,
5710         GOMP_loop_nonmonotonic_runtime_next,
5711         GOMP_loop_nonmonotonic_runtime_start,
5712         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5713         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
5714         GOMP_loop_ull_nonmonotonic_runtime_next,
5715         GOMP_loop_ull_nonmonotonic_runtime_start,
5716         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5717         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
5718         GOMP_taskgroup_reduction_register,
5719         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5720         GOMP_teams_reg and GOMP_taskwait_depend.
5721         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
5722         omp_{capture,display}_affinity{,_}, and
5723         omp_[gs]et_affinity_format{,_}.
5724         * loop.c: Include string.h.
5725         (GOMP_loop_runtime_next): Add ialias.
5726         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5727         (gomp_loop_static_start, gomp_loop_dynamic_start,
5728         gomp_loop_guided_start, gomp_loop_ordered_static_start,
5729         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
5730         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
5731         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
5732         or gomp_doacross_init callers.
5733         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
5734         GOMP_loop_doacross_start): New functions.
5735         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
5736         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
5737         Mask off GFS_MONOTONIC bit.
5738         (GOMP_loop_maybe_nonmonotonic_runtime_next,
5739         GOMP_loop_maybe_nonmonotonic_runtime_start,
5740         GOMP_loop_nonmonotonic_runtime_next,
5741         GOMP_loop_nonmonotonic_runtime_start,
5742         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5743         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
5744         functions.
5745         (gomp_parallel_loop_start): Pass NULL as taskgroup to
5746         gomp_team_start.
5747         * loop_ull.c: Include string.h.
5748         (GOMP_loop_ull_runtime_next): Add ialias.
5749         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5750         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
5751         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
5752         gomp_loop_ull_ordered_dynamic_start,
5753         gomp_loop_ull_ordered_guided_start,
5754         gomp_loop_ull_doacross_static_start,
5755         gomp_loop_ull_doacross_dynamic_start,
5756         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
5757         and gomp_doacross_ull_init callers.
5758         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
5759         GOMP_loop_ull_doacross_start): New functions.
5760         (GOMP_loop_ull_runtime_start,
5761         GOMP_loop_ull_ordered_runtime_start,
5762         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
5763         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5764         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
5765         GOMP_loop_ull_nonmonotonic_runtime_next,
5766         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
5767         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
5768         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
5769         (omp_pause_resource_t, omp_depend_t): New typedefs.
5770         (enum omp_lock_hint_t): Renamed to ...
5771         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
5772         enumerators using numbers and omp_lock_hint_* as their aliases.
5773         (omp_lock_hint_t): New typedef.  Rename to ...
5774         (omp_sync_hint_t): ... this.
5775         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
5776         omp_sync_hint_t instead of omp_lock_hint_t.
5777         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5778         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5779         Declare.
5780         (omp_target_is_present, omp_target_disassociate_ptr):
5781         Change first argument from void * to const void *.
5782         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
5783         from void * to const void *.
5784         (omp_target_associate_ptr): Change first and second arguments from
5785         void * to const void *.
5786         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
5787         omp_pause_hard): New parameters.
5788         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5789         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5790         New interfaces.
5791         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
5792         omp_pause_hard): New parameters.
5793         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5794         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5795         New externals.
5796         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
5797         EXTRA argument.  If not needed to prepare array, if extra is 0,
5798         clear ws->doacross, otherwise allocate just doacross structure and
5799         extra payload.  If array is needed, allocate also extra payload.
5800         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
5801         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
5802         doacross == NULL.
5803         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
5804         gomp_team_start.
5805         (GOMP_parallel): Likewise.  Formatting fix.
5806         (GOMP_parallel_reductions): New function.
5807         (GOMP_cancellation_point): If taskgroup has workshare
5808         flag set, check cancelled of prev taskgroup if any.
5809         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
5810         on prev taskgroup if any.
5811         * sections.c: Include string.h.
5812         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5813         (GOMP_sections_start): Adjust gomp_work_share_start caller.
5814         (GOMP_sections2_start): New function.
5815         (GOMP_parallel_sections_start, GOMP_parallel_sections):
5816         Pass NULL as taskgroup to gomp_team_start.
5817         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
5818         gomp_work_share_start callers.
5819         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
5820         If taskgroup has workshare flag set, check cancelled on prev
5821         taskgroup if any.  Guard all cancellation tests with
5822         gomp_cancel_var test.
5823         (omp_target_is_present, omp_target_disassociate_ptr):
5824         Change ptr argument from void * to const void *.
5825         (omp_target_memcpy): Change src argument from void * to const void *.
5826         (omp_target_memcpy_rect): Likewise.
5827         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
5828         instead of char * where needed.
5829         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
5830         from void * to const void *.
5831         (omp_pause_resource, omp_pause_resource_all): New functions.
5832         * task.c (gomp_task_handle_depend): Handle new depend array format
5833         in addition to the old.  Handle mutexinoutset kinds the same as
5834         inout for now, handle unspecified kinds.
5835         (gomp_create_target_task): If taskgroup has workshare flag set, check
5836         cancelled on prev taskgroup if any.  Guard all cancellation tests with
5837         gomp_cancel_var test.  Handle new depend array format count in
5838         addition to the old.
5839         (GOMP_task): Likewise.  Adjust function comment.
5840         (gomp_task_run_pre): If taskgroup has workshare flag set, check
5841         cancelled on prev taskgroup if any.  Guard all cancellation tests with
5842         gomp_cancel_var test.
5843         (GOMP_taskwait_depend): New function.
5844         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
5845         format in addition to the old.  Handle mutexinoutset kinds the same as
5846         inout for now, handle unspecified kinds.  Fix a function comment typo.
5847         (gomp_taskgroup_init): New function.
5848         (GOMP_taskgroup_start): Use it.
5849         (gomp_reduction_register, gomp_create_artificial_team,
5850         GOMP_taskgroup_reduction_register,
5851         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5852         gomp_parallel_reduction_register,
5853         gomp_workshare_task_reduction_register,
5854         gomp_workshare_taskgroup_start,
5855         GOMP_workshare_task_reduction_unregister): New functions.
5856         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
5857         check cancelled on prev taskgroup if any.  Guard all cancellation
5858         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
5859         by calling GOMP_taskgroup_reduction_register.
5860         * team.c (gomp_thread_attr): Remove comment.
5861         (struct gomp_thread_start_data): Add handle field.
5862         (gomp_thread_start): Call pthread_detach.
5863         (gomp_new_team): Adjust gomp_init_work_share caller.
5864         (gomp_free_pool_helper): Call pthread_detach.
5865         (gomp_team_start): Add taskgroup argument, initialize implicit
5866         tasks' taskgroup field to that.  Don't call
5867         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
5868         (gomp_team_end): Determine nesting by thr->ts.level != 0
5869         rather than thr->ts.team != NULL.
5870         (gomp_pause_pool_helper, gomp_pause_host): New functions.
5871         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
5872         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
5873         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
5874         if more than 1 allocate also extra payload at the end of array.  Never
5875         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
5876         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
5877         return true instead of ws.
5878         * Makefile.in: Regenerated.
5879         * configure: Regenerated.
5880         * config.h.in: Regenerated.
5881         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
5882         in some cases.
5883         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
5884         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
5885         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
5886         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
5887         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
5888         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
5889         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
5890         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
5891         * testsuite/libgomp.c-c++-common/for-10.c: New test.
5892         * testsuite/libgomp.c-c++-common/for-11.c: New test.
5893         * testsuite/libgomp.c-c++-common/for-12.c: New test.
5894         * testsuite/libgomp.c-c++-common/for-13.c: New test.
5895         * testsuite/libgomp.c-c++-common/for-14.c: New test.
5896         * testsuite/libgomp.c-c++-common/for-15.c: New test.
5897         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
5898         define a different N(test), don't define N(f0) to N(f14), but instead
5899         define N(f20) to N(f34) using != comparisons.
5900         * testsuite/libgomp.c-c++-common/for-7.c: New test.
5901         * testsuite/libgomp.c-c++-common/for-8.c: New test.
5902         * testsuite/libgomp.c-c++-common/for-9.c: New test.
5903         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
5904         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
5905         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
5906         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
5907         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
5908         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
5909         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
5910         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
5911         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
5912         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
5913         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
5914         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
5915         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
5916         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
5917         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
5918         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
5919         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
5920         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
5921         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
5922         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
5923         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
5924         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
5925         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
5926         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
5927         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
5928         * testsuite/libgomp.c++/depend-1.C: New test.
5929         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
5930         * testsuite/libgomp.c++/depobj-1.C: New test.
5931         * testsuite/libgomp.c++/for-16.C: New test.
5932         * testsuite/libgomp.c++/for-21.C: New test.
5933         * testsuite/libgomp.c++/for-22.C: New test.
5934         * testsuite/libgomp.c++/for-23.C: New test.
5935         * testsuite/libgomp.c++/for-24.C: New test.
5936         * testsuite/libgomp.c++/for-25.C: New test.
5937         * testsuite/libgomp.c++/for-26.C: New test.
5938         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
5939         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
5940         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
5941         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
5942         * testsuite/libgomp.c++/task-reduction-10.C: New test.
5943         * testsuite/libgomp.c++/task-reduction-11.C: New test.
5944         * testsuite/libgomp.c++/task-reduction-12.C: New test.
5945         * testsuite/libgomp.c++/task-reduction-13.C: New test.
5946         * testsuite/libgomp.c++/task-reduction-14.C: New test.
5947         * testsuite/libgomp.c++/task-reduction-15.C: New test.
5948         * testsuite/libgomp.c++/task-reduction-16.C: New test.
5949         * testsuite/libgomp.c++/task-reduction-17.C: New test.
5950         * testsuite/libgomp.c++/task-reduction-18.C: New test.
5951         * testsuite/libgomp.c++/task-reduction-19.C: New test.
5952         * testsuite/libgomp.c/task-reduction-1.c: New test.
5953         * testsuite/libgomp.c++/task-reduction-1.C: New test.
5954         * testsuite/libgomp.c/task-reduction-2.c: New test.
5955         * testsuite/libgomp.c++/task-reduction-2.C: New test.
5956         * testsuite/libgomp.c++/task-reduction-3.C: New test.
5957         * testsuite/libgomp.c++/task-reduction-4.C: New test.
5958         * testsuite/libgomp.c++/task-reduction-5.C: New test.
5959         * testsuite/libgomp.c++/task-reduction-6.C: New test.
5960         * testsuite/libgomp.c++/task-reduction-7.C: New test.
5961         * testsuite/libgomp.c++/task-reduction-8.C: New test.
5962         * testsuite/libgomp.c++/task-reduction-9.C: New test.
5963         * testsuite/libgomp.c/teams-1.c: New test.
5964         * testsuite/libgomp.c/teams-2.c: New test.
5965         * testsuite/libgomp.c/thread-limit-4.c: New test.
5966         * testsuite/libgomp.c/thread-limit-5.c: New test.
5967         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
5969 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
5971         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
5972         acc_memcpy_to/from_device functions, now with async parameter.
5973         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
5974         (acc_memcpy_from_device): Likewise.
5975         (acc_memcpy_to_device_async): New API function.
5976         (acc_memcpy_from_device_async): Likewise.
5977         (present_create_copy): Add async parameter and async setting/unsetting.
5978         (acc_create): Adjust present_create_copy call.
5979         (acc_copyin): Likewise.
5980         (acc_present_or_create): Likewise.
5981         (acc_present_or_copyin): Likewise.
5982         (acc_create_async): New API function.
5983         (acc_copyin_async): New API function.
5984         (delete_copyout): Add async parameter and async setting/unsetting.
5985         (acc_delete): Adjust delete_copyout call.
5986         (acc_copyout): Likewise.
5987         (acc_delete_async): New API function.
5988         (acc_copyout_async): Likewise.
5989         (update_dev_host): Add async parameter and async setting/unsetting.
5990         (acc_update_device): Adjust update_dev_host call.
5991         (acc_update_self): Likewise.
5992         (acc_update_device_async): New API function.
5993         (acc_update_self_async): Likewise.
5994         * openacc.h (acc_copyin_async): Declare new API function.
5995         (acc_create_async): Likewise.
5996         (acc_copyout_async): Likewise.
5997         (acc_delete_async): Likewise.
5998         (acc_update_device_async): Likewise.
5999         (acc_update_self_async): Likewise.
6000         (acc_memcpy_to_device_async): Likewise.
6001         (acc_memcpy_from_device_async): Likewise.
6002         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
6003         (acc_copyin_async_64_h): New subroutine.
6004         (acc_copyin_async_array_h): New subroutine.
6005         (acc_create_async_32_h): New subroutine.
6006         (acc_create_async_64_h): New subroutine.
6007         (acc_create_async_array_h): New subroutine.
6008         (acc_copyout_async_32_h): New subroutine.
6009         (acc_copyout_async_64_h): New subroutine.
6010         (acc_copyout_async_array_h): New subroutine.
6011         (acc_delete_async_32_h): New subroutine.
6012         (acc_delete_async_64_h): New subroutine.
6013         (acc_delete_async_array_h): New subroutine.
6014         (acc_update_device_async_32_h): New subroutine.
6015         (acc_update_device_async_64_h): New subroutine.
6016         (acc_update_device_async_array_h): New subroutine.
6017         (acc_update_self_async_32_h): New subroutine.
6018         (acc_update_self_async_64_h): New subroutine.
6019         (acc_update_self_async_array_h): New subroutine.
6020         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
6021         (acc_copyin_async_64_h): New subroutine.
6022         (acc_copyin_async_array_h): New subroutine.
6023         (acc_create_async_32_h): New subroutine.
6024         (acc_create_async_64_h): New subroutine.
6025         (acc_create_async_array_h): New subroutine.
6026         (acc_copyout_async_32_h): New subroutine.
6027         (acc_copyout_async_64_h): New subroutine.
6028         (acc_copyout_async_array_h): New subroutine.
6029         (acc_delete_async_32_h): New subroutine.
6030         (acc_delete_async_64_h): New subroutine.
6031         (acc_delete_async_array_h): New subroutine.
6032         (acc_update_device_async_32_h): New subroutine.
6033         (acc_update_device_async_64_h): New subroutine.
6034         (acc_update_device_async_array_h): New subroutine.
6035         (acc_update_self_async_32_h): New subroutine.
6036         (acc_update_self_async_64_h): New subroutine.
6037         (acc_update_self_async_array_h): New subroutine.
6038         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
6039         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
6040         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
6041         acc_memcpy_to_device_async*, acc_update_device_async*, and
6042         acc_update_self_async* entries.
6043         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
6044         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
6045         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
6047 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
6049         PR bootstrap/82856
6050         * Makefile.am: Include multilib.am
6051         (AUTOMAKE_OPTIONS): Add info-in-builddir.
6052         (CLEANFILES): Remove libgomp.info.
6053         * configure.ac: Remove AC_PREREQ.
6054         * testsuite/Makefile.am (RUNTEST): Remove quotes.
6055         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
6056         Regenerate.
6058 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
6059             Julian Brown  <julian@codesourcery.com>
6061         * testsuite/libgomp.oacc-c++/this.C: New.
6063 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
6065         * plugin/plugin-nvptx.c (struct cuda_map): New.
6066         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
6067         h_tail with (cuda_map *) map.
6068         (cuda_map_create): New function.
6069         (cuda_map_destroy): New function.
6070         (map_init): Update to use a linked list of cuda_map objects.
6071         (map_fini): Likewise.
6072         (map_pop): Likewise.
6073         (map_push): Likewise.  Return CUdeviceptr instead of void.
6074         (init_streams_for_device): Remove stales references to ptx_stream
6075         members.
6076         (select_stream_for_async): Likewise.
6077         (nvptx_exec): Update call to map_init.
6079 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
6080             Julian Brown  <julian@codesourcery.com>
6082         PR middle-end/86336
6083         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
6085 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
6086         Thomas Koenig <tkoenig@gcc.gnu.org>
6088         PR fortran/25829
6089         * testsuite/libgomp.fortran/async_io_1.f90: New test.
6090         * testsuite/libgomp.fortran/async_io_2.f90: New test.
6091         * testsuite/libgomp.fortran/async_io_3.f90: New test.
6092         * testsuite/libgomp.fortran/async_io_4.f90: New test.
6093         * testsuite/libgomp.fortran/async_io_5.f90: New test.
6094         * testsuite/libgomp.fortran/async_io_6.f90: New test.
6095         * testsuite/libgomp.fortran/async_io_7.f90: New test.
6097 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
6098             Tom de Vries  <tdevries@suse.de>
6100         PR target/85590
6101         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
6102         (cuOccupancyMaxPotentialBlockSize): Declare.
6103         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
6104         CUDA_ONE_CALL_MAYBE_NULL.
6105         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
6106         CUoccupancyB2DSize and declare
6107         cuOccupancyMaxPotentialBlockSize.
6108         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
6109         default num_gangs and num_workers when the driver supports it.
6111 2018-08-08  Tom de Vries  <tdevries@suse.de>
6113         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
6114         CUDA_ONE_CALL_MAYBE_NULL.
6115         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
6116         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
6117         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
6118         are not found.
6120 2018-08-08  Tom de Vries  <tdevries@suse.de>
6122         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
6123         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
6124         present.
6126 2018-08-08  Tom de Vries  <tdevries@suse.de>
6128         * plugin/plugin-nvptx.c
6129         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
6130         (nvptx_open_device): Use
6131         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
6133 2018-08-08  Tom de Vries  <tdevries@suse.de>
6135         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
6136         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
6138 2018-08-07  Tom de Vries  <tdevries@suse.de>
6140         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
6141         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
6142         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
6143         corresponding call in CUDA_ONE_CALL.  Add def/undef of
6144         CUDA_ONE_CALL_MAYBE_NULL.
6145         (CUDA_CALL_EXISTS): Define.
6147 2018-08-07  Tom de Vries  <tdevries@suse.de>
6149         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
6150         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
6151         corresponding undefs right after.
6153 2018-08-04  Tom de Vries  <tdevries@suse.de>
6155         * plugin/configfrag.ac: For --without-cuda-driver, set
6156         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
6157         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
6158         * configure: Regenerate.
6160 2018-08-02  Tom de Vries  <tdevries@suse.de>
6162         PR target/86660
6163         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
6164         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
6165         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
6166         Same.
6167         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
6168         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
6169         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
6171 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
6172             Thomas Schwinge <thomas@codesourcery.com>
6174         * config/nvptx/oacc-parallel.c: Truncate.
6176 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
6177             James Norris <jnorris@codesourcery.com>
6179         * plugin/plugin-nvptx.c (struct map): Removed.
6180         (map_init, map_pop): Remove use of struct map.
6181         (map_push): Likewise and change argument list.
6182         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
6184 2018-08-01  Tom de Vries  <tdevries@suse.de>
6186         * plugin/cuda-lib.def: New file.  Factor out of ...
6187         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
6188         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
6189         using CUDA_CALLS.
6191 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
6193         Revert 'AsyncI/O patch committed'.
6194         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
6195                 Thomas Koenig <tkoenig@gcc.gnu.org>
6197         PR fortran/25829
6198         * testsuite/libgomp.fortran/async_io_1.f90: New test.
6199         * testsuite/libgomp.fortran/async_io_2.f90: New test.
6200         * testsuite/libgomp.fortran/async_io_3.f90: New test.
6201         * testsuite/libgomp.fortran/async_io_4.f90: New test.
6202         * testsuite/libgomp.fortran/async_io_5.f90: New test.
6203         * testsuite/libgomp.fortran/async_io_6.f90: New test.
6204         * testsuite/libgomp.fortran/async_io_7.f90: New test.
6206 2018-07-30  Tom de Vries  <tdevries@suse.de>
6208         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
6209         (nvptx_exec): Ensure worker and vector default dims don't exceed
6210         targ_fn->max_threads_per_block.
6212 2018-07-30  Tom de Vries  <tdevries@suse.de>
6214         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
6215         (nvptx_open_device): Init default_dims for device.
6216         (nvptx_exec): Use default_dims from device.
6218 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
6220         PR testsuite/86660
6221         * testsuite/libgomp.c++/for-15.C (results): Include it in
6222         omp declare target region.
6223         (main): Use map (always, tofrom: results) instead of
6224         map (tofrom: results).
6226         PR middle-end/86660
6227         * testsuite/libgomp.c/pr86660.c: New test.
6229 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
6230             Tom de Vries  <tdevries@suse.de>
6232         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
6233         sufficient resources to launch a kernel, and give a hint on how to fix
6234         it.
6236 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
6237             Tom de Vries  <tdevries@suse.de>
6239         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
6240         max_threads_per_block and max_threads_per_multiprocessor fields.
6241         (nvptx_open_device): Initialize new fields.
6242         (nvptx_exec): Use num_sms, and new fields.
6244 2018-07-26  Tom de Vries  <tdevries@suse.de>
6246         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
6247         to correct locations.  Remove xfail.
6249 2018-07-26  Tom de Vries  <tdevries@suse.de>
6251         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
6252         acc_wait.  Move acc_async_test calls to correct locations.  Remove
6253         xfail.
6255 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
6256         Thomas Koenig <tkoenig@gcc.gnu.org>
6258         PR fortran/25829
6259         * testsuite/libgomp.fortran/async_io_1.f90: New test.
6260         * testsuite/libgomp.fortran/async_io_2.f90: New test.
6261         * testsuite/libgomp.fortran/async_io_3.f90: New test.
6262         * testsuite/libgomp.fortran/async_io_4.f90: New test.
6263         * testsuite/libgomp.fortran/async_io_5.f90: New test.
6264         * testsuite/libgomp.fortran/async_io_6.f90: New test.
6265         * testsuite/libgomp.fortran/async_io_7.f90: New test.
6267 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
6269         PR middle-end/86542
6270         * testsuite/libgomp.c++/pr86542.C: New test.
6272         PR middle-end/86539
6273         * testsuite/libgomp.c++/pr86539.C: New test.
6275 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
6277         PR c++/86443
6278         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
6279         (results): Make sure the variable is not inside declare target region.
6280         (qux): Remove unused function.
6282 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
6284         PR c++/86443
6285         * testsuite/libgomp.c++/for-15.C: New test.
6287 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
6289         PR c++/86291
6290         * testsuite/libgomp.c++/pr86291.C: New test.
6292 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
6294         * libgomp.texi (Top): Move www.openmp.org to https.
6295         (Enabling OpenMP): Ditto.
6296         (omp_get_active_level): Ditto.
6297         (omp_get_ancestor_thread_num): Ditto.
6298         (omp_get_cancellation): Ditto.
6299         (omp_get_default_device): Ditto.
6300         (omp_get_dynamic): Ditto.
6301         (omp_get_level): Ditto.
6302         (omp_get_max_active_levels): Ditto.
6303         (omp_get_max_task_priority): Ditto.
6304         (omp_get_max_threads): Ditto.
6305         (omp_get_nested): Ditto.
6306         (omp_get_num_devices): Ditto.
6307         (omp_get_num_procs): Ditto.
6308         (omp_get_num_teams): Ditto.
6309         (omp_get_num_threads): Ditto.
6310         (omp_get_proc_bind): Ditto.
6311         (omp_get_schedule): Ditto.
6312         (omp_get_team_num): Ditto.
6313         (omp_get_team_size): Ditto.
6314         (omp_get_thread_limit): Ditto.
6315         (omp_get_thread_num): Ditto.
6316         (omp_in_parallel): Ditto.
6317         (omp_in_final): Ditto.
6318         (omp_is_initial_device): Ditto.
6319         (omp_set_default_device): Ditto.
6320         (omp_set_dynamic): Ditto.
6321         (omp_set_max_active_levels): Ditto.
6322         (omp_set_nested): Ditto.
6323         (omp_set_num_threads): Ditto.
6324         (omp_set_schedule): Ditto.
6325         (omp_init_lock): Ditto.
6326         (omp_set_lock): Ditto.
6327         (omp_test_lock): Ditto.
6328         (omp_unset_lock): Ditto.
6329         (omp_destroy_lock): Ditto.
6330         (omp_init_nest_lock): Ditto.
6331         (omp_set_nest_lock): Ditto.
6332         (omp_test_nest_lock): Ditto.
6333         (omp_unset_nest_lock): Ditto.
6334         (omp_destroy_nest_lock): Ditto.
6335         (omp_get_wtick): Ditto.
6336         (omp_get_wtime): Ditto.
6337         (OMP_CANCELLATION): Ditto.
6338         (OMP_DISPLAY_ENV): Ditto.
6339         (OMP_DEFAULT_DEVICE): Ditto.
6340         (OMP_DYNAMIC): Ditto.
6341         (OMP_MAX_ACTIVE_LEVELS): Ditto.
6342         (OMP_MAX_TASK_PRIORITY): Ditto.
6343         (OMP_NESTED): Ditto.
6344         (OMP_NUM_THREADS): Ditto.
6345         (OMP_PROC_BIND): Ditto.
6346         (OMP_PLACES): Ditto.
6347         (OMP_STACKSIZE): Ditto.
6348         (OMP_SCHEDULE): Ditto.
6349         (OMP_THREAD_LIMIT): Ditto.
6350         (OMP_WAIT_POLICY): Ditto.
6352 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
6353             James Norris  <jnorris@codesourcery.com>
6354             Julian Brown  <julian@codesourcery.com>
6355             Thomas Schwinge  <thomas@codesourcery.com>
6356             Tom de Vries  <tom@codesourcery.com>
6358         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
6359         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
6360         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
6361         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
6362         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
6363         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
6364         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
6365         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
6366         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
6367         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
6368         Likewise.
6369         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
6370         Likewise.
6371         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
6372         Likewise.
6373         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
6374         Likewise.
6375         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
6376         Likewise.
6377         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
6378         Likewise.
6379         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
6380         Likewise.
6381         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
6382         Likewise.
6383         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
6384         Likewise.
6385         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
6386         Likewise.
6387         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
6388         Likewise.
6389         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
6390         Likewise.
6391         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
6392         Likewise.
6393         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
6394         Likewise.
6395         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
6396         Likewise.
6397         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
6398         Likewise.
6399         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
6400         Likewise.
6401         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
6402         Likewise.
6403         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
6404         Likewise.
6405         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
6406         Likewise.
6407         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
6408         Likewise.
6409         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
6410         Likewise.
6411         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
6412         Likewise.
6413         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
6414         Likewise.
6415         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
6416         Likewise.
6417         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
6418         Likewise.
6419         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
6420         Likewise.
6421         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
6422         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
6423         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
6424         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
6425         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
6426         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
6427         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
6428         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
6429         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
6430         Likewise.
6431         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
6432         Likewise.
6433         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
6434         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
6435         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
6436         Likewise.
6437         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
6438         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
6439         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
6440         Likewise.
6441         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6442         Likewise.
6443         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6444         Likewise.
6445         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6446         Likewise.
6447         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6448         Likewise.
6449         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
6450         Likewise.
6451         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
6452         Likewise.
6453         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
6454         Likewise.
6455         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
6456         Likewise.
6457         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
6458         Likewise.
6459         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
6460         Likewise.
6461         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
6462         Likewise.
6463         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
6464         Likewise.
6465         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
6466         Likewise.
6467         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
6468         Likewise.
6469         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
6470         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
6471         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
6472         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
6473         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
6474         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
6475         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
6477 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
6478             Thomas Schwinge <thomas@codesourcery.com>
6479             Cesar Philippidis  <cesar@codesourcery.com>
6481         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
6482         (gomp_acc_remove_pointer): Update declaration.
6483         (gomp_acc_declare_allocate): Declare.
6484         (gomp_remove_var): Declare.
6485         * libgomp.map (OACC_2.5): Define.
6486         * oacc-mem.c (acc_map_data): Update refcount.
6487         (acc_unmap_data): Likewise.
6488         (present_create_copy): Likewise.
6489         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
6490         (acc_copyin): Likewise.
6491         (FLAG_FINALIZE): Define.
6492         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
6493         (acc_delete_finalize): New function.
6494         (acc_delete_finalize_async): New function.
6495         (acc_copyout_finalize): New function.
6496         (acc_copyout_finalize_async): New function.
6497         (gomp_acc_insert_pointer): Update refcounts.
6498         (gomp_acc_remove_pointer): Return if data is not present on the
6499         accelerator.
6500         * oacc-parallel.c (find_pset): Rename to find_pointer.
6501         (find_pointer): Add support for GOMP_MAP_POINTER.
6502         (handle_ftn_pointers): New function.
6503         (GOACC_parallel_keyed): Update refcounts of variables.
6504         (GOACC_enter_exit_data): Add support for finalized data mappings.
6505         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
6506         of fortran arrays.
6507         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
6508         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
6509         for GOMP_MAP_FORCE_FROM.
6510         * openacc.f90 (module openacc_internal): Add
6511         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
6512         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
6513         acc_copyout_finalize and acc_delete_finalize.
6514         (acc_copyout_finalize_32_h): New subroutine.
6515         (acc_copyout_finalize_64_h): New subroutine.
6516         (acc_copyout_finalize_array_h): New subroutine.
6517         (acc_delete_finalize_32_h): New subroutine.
6518         (acc_delete_finalize_64_h): New subroutine.
6519         (acc_delete_finalize_array_h): New subroutine.
6520         * openacc.h (acc_copyout_finalize): Declare.
6521         (acc_copyout_finalize_async): Declare.
6522         (acc_delete_finalize): Declare.
6523         (acc_delete_finalize_async): Declare.
6524         * openacc_lib.h (acc_copyout_finalize): New interface.
6525         (acc_delete_finalize): New interface.
6526         * target.c (gomp_map_vars): Update dynamic_refcount.
6527         (gomp_remove_var): New function.
6528         (gomp_unmap_vars): Use it.
6529         (gomp_unload_image_from_device): Likewise.
6530         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
6531         case to utilize OpenACC 2.5 data clause semantics.
6532         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6533         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6534         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6535         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6536         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6537         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6538         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6539         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6540         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6541         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
6542         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6543         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
6544         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
6545         utilize OpenACC 2.5 data clause semantics.
6546         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6547         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6548         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6549         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6550         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6551         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6552         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6553         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
6554         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
6556 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
6558         PR fortran/85841
6559         PR testsuite/85865
6560         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
6561         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
6562         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
6563         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
6564         * testsuite/libgomp.fortran/task2.f90: Ditto.
6565         * testsuite/libgomp.fortran/vla1.f90: Ditto.
6566         * testsuite/libgomp.fortran/vla2.f90: Ditto.
6567         * testsuite/libgomp.fortran/vla3.f90: Ditto.
6568         * testsuite/libgomp.fortran/vla4.f90: Ditto.
6569         * testsuite/libgomp.fortran/vla5.f90: Ditto.
6570         * testsuite/libgomp.fortran/vla6.f90: Ditto.
6571         * testsuite/libgomp.fortran/vla8.f90: Ditto.
6572         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
6573         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
6575 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
6577         PR c++/85782
6578         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
6580 2018-05-09  Tom de Vries  <tom@codesourcery.com>
6582         PR libgomp/82901
6583         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
6584         to GOACC_enter_exit_data.
6586 2018-05-09  Tom de Vries  <tom@codesourcery.com>
6588         PR libgomp/83792
6589         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
6590         (async_synchronous_p): New function.
6591         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
6592         async_valid_p.
6593         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
6594         async_valid_stream_id_p.
6595         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
6596         * oacc-parallel.c (GOACC_parallel_keyed): Same.
6598 2018-05-07  Tom de Vries  <tom@codesourcery.com>
6600         PR testsuite/85677
6601         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
6602         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
6604 2018-05-03  Tom de Vries  <tom@codesourcery.com>
6606         PR testsuite/85106
6607         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
6608         extra_tool_flags if it contains an -foffload=-fdump-* flag.
6609         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
6610         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
6612 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6614         PR libgomp/85411
6615         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
6616         GOMP_OPENACC_DIM ...
6617         * env.c (parse_gomp_openacc_dim): ... here.  New function.
6618         (initialize_env): Call parse_gomp_openacc_dim.
6619         (goacc_default_dims): Define.
6620         * libgomp.h (goacc_default_dims): Declare.
6621         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
6622         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
6623         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
6624         GOMP_PLUGIN_acc_default_dim.
6625         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
6626         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
6628 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6630         PR testsuite/83791
6631         * testsuite/libgomp.c++/udr-9.C: Update.
6632         * testsuite/libgomp.c++/atomic-16.C: Remove.
6633         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
6634         * testsuite/libgomp.c++/loop-13.C: Remove.
6635         * testsuite/libgomp.c++/loop-14.C: Remove.
6636         * testsuite/libgomp.c++/loop-15.C: Remove.
6637         * testsuite/libgomp.c++/monotonic-1.C: Remove.
6638         * testsuite/libgomp.c++/monotonic-2.C: Remove.
6639         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
6640         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
6641         * testsuite/libgomp.c++/ordered-1.C: Remove.
6642         * testsuite/libgomp.c++/pr45784.C: Remove.
6643         * testsuite/libgomp.c++/pr64824.C: Remove.
6644         * testsuite/libgomp.c++/pr64868.C: Remove.
6645         * testsuite/libgomp.c++/pr66199-1.C: Remove.
6646         * testsuite/libgomp.c++/pr66199-2.C: Remove.
6647         * testsuite/libgomp.c++/pr66199-3.C: Remove.
6648         * testsuite/libgomp.c++/pr66199-4.C: Remove.
6649         * testsuite/libgomp.c++/pr66199-5.C: Remove.
6650         * testsuite/libgomp.c++/pr66199-6.C: Remove.
6651         * testsuite/libgomp.c++/pr66199-7.C: Remove.
6652         * testsuite/libgomp.c++/pr66199-8.C: Remove.
6653         * testsuite/libgomp.c++/pr66199-9.C: Remove.
6654         * testsuite/libgomp.c++/pr69389.C: Remove.
6655         * testsuite/libgomp.c++/simd10.C: Remove.
6656         * testsuite/libgomp.c++/simd11.C: Remove.
6657         * testsuite/libgomp.c++/simd12.C: Remove.
6658         * testsuite/libgomp.c++/simd13.C: Remove.
6659         * testsuite/libgomp.c++/target-1.C: Remove.
6660         * testsuite/libgomp.c++/target-3.C: Remove.
6661         * testsuite/libgomp.c++/target-4.C: Remove.
6662         * testsuite/libgomp.c++/target-5.C: Remove.
6663         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
6664         * testsuite/libgomp.c++/taskloop-1.C: Remove.
6665         * testsuite/libgomp.c++/taskloop-2.C: Remove.
6666         * testsuite/libgomp.c++/taskloop-3.C: Remove.
6667         * testsuite/libgomp.c++/taskloop-4.C: Remove.
6668         * testsuite/libgomp.c++/udr-9.C: Remove.
6669         * testsuite/libgomp.c++/for-10.C: Remove.
6670         * testsuite/libgomp.c++/for-11.C: Remove.
6671         * testsuite/libgomp.c++/for-12.C: Remove.
6672         * testsuite/libgomp.c++/for-13.C: Remove.
6673         * testsuite/libgomp.c++/for-14.C: Remove.
6674         * testsuite/libgomp.c++/for-9.C: Remove.
6675         * testsuite/libgomp.c/atomic-18.c: Move ...
6676         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
6677         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
6678         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
6679         * testsuite/libgomp.c/loop-13.c: Move ...
6680         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
6681         * testsuite/libgomp.c/loop-14.c: Move ...
6682         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
6683         * testsuite/libgomp.c/loop-15.c: Remove.
6684         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
6685         * testsuite/libgomp.c/monotonic-1.c: Move ...
6686         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
6687         * testsuite/libgomp.c/monotonic-2.c: Move ...
6688         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
6689         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
6690         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
6691         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
6692         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
6693         * testsuite/libgomp.c/ordered-4.c: Move ...
6694         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
6695         * testsuite/libgomp.c/pr45784.c: Move ...
6696         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
6697         * testsuite/libgomp.c/pr64824.c: Move ...
6698         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
6699         * testsuite/libgomp.c/pr64868.c: Move ...
6700         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
6701         * testsuite/libgomp.c/pr66199-1.c: Move ...
6702         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
6703         * testsuite/libgomp.c/pr66199-2.c: Move ...
6704         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
6705         * testsuite/libgomp.c/pr66199-3.c: Move ...
6706         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
6707         * testsuite/libgomp.c/pr66199-4.c: Move ...
6708         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
6709         * testsuite/libgomp.c/pr66199-5.c: Move ...
6710         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
6711         * testsuite/libgomp.c/pr66199-6.c: Move ...
6712         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
6713         * testsuite/libgomp.c/pr66199-7.c: Move ...
6714         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
6715         * testsuite/libgomp.c/pr66199-8.c: Move ...
6716         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
6717         * testsuite/libgomp.c/pr66199-9.c: Move ...
6718         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
6719         * testsuite/libgomp.c/pr69389.c: Move ...
6720         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
6721         * testsuite/libgomp.c/simd-14.c: Move ...
6722         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
6723         * testsuite/libgomp.c/simd-15.c: Move ...
6724         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
6725         * testsuite/libgomp.c/simd-16.c: Move ...
6726         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
6727         * testsuite/libgomp.c/simd-17.c: Move ...
6728         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
6729         * testsuite/libgomp.c/target-1.c: Move ...
6730         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
6731         * testsuite/libgomp.c/target-10.c: Move ...
6732         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
6733         * testsuite/libgomp.c/target-13.c: Move ...
6734         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
6735         * testsuite/libgomp.c/target-2.c: Move ...
6736         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
6737         * testsuite/libgomp.c/taskgroup-1.c: Move ...
6738         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
6739         * testsuite/libgomp.c/taskloop-1.c: Move ...
6740         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
6741         * testsuite/libgomp.c/taskloop-2.c: Move ...
6742         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
6743         * testsuite/libgomp.c/taskloop-3.c: Move ...
6744         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
6745         * testsuite/libgomp.c/taskloop-4.c: Move ...
6746         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
6747         * testsuite/libgomp.c/udr-1.c: Move ...
6748         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
6749         * testsuite/libgomp.c/for-1.c: Move ...
6750         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
6751         * testsuite/libgomp.c/for-1.h: Move ...
6752         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
6753         * testsuite/libgomp.c/for-2.c: Move ...
6754         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
6755         * testsuite/libgomp.c/for-2.h: Move ...
6756         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
6757         * testsuite/libgomp.c/for-3.c: Move ...
6758         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
6759         * testsuite/libgomp.c/for-4.c: Move ...
6760         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
6761         * testsuite/libgomp.c/for-5.c: Move ...
6762         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
6763         * testsuite/libgomp.c/for-6.c: Move ...
6764         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
6766 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6768         PR libgomp/82428
6769         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
6770         __builtin_goacc_parlevel_{id,size}.
6771         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
6772         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
6773         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
6774         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
6775         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
6776         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
6777         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
6778         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
6779         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
6780         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
6781         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
6782         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
6783         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
6784         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
6785         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
6786         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
6787         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
6788         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
6789         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
6790         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
6791         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
6792         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
6793         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
6795 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6797         PR testsuite/85106
6798         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
6800 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6802         PR testsuite/85106
6803         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
6805 2018-04-29  Julian Brown  <julian@codesourcery.com>
6806             Tom de Vries  <tom@codesourcery.com>
6808         PR testsuite/85527
6809         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
6810         arbitrary order for iterations of atomic subtract check.
6812 2018-04-28  Tom de Vries  <tom@codesourcery.com>
6814         PR testsuite/85527
6815         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
6816         atomic capture results obtained in parallel loop to an array, instead of
6817         to a scalar.
6819 2018-04-26  Tom de Vries  <tom@codesourcery.com>
6821         PR libgomp/84020
6822         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
6823         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
6824         (process_GOMP_NVPTX_JIT): New function.
6825         (link_ptx): Use process_GOMP_NVPTX_JIT.
6827 2018-04-26  Richard Biener <rguenther@suse.de>
6828             Tom de Vries  <tom@codesourcery.com>
6830         PR lto/85422
6831         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
6833 2018-04-26  Tom de Vries  <tom@codesourcery.com>
6835         PR target/85519
6836         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
6837         recursion depth from 25 to 23.
6838         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
6840 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
6842         * configure: Regenerated.
6844 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
6845             Tom de Vries  <tom@codesourcery.com>
6847         PR target/85445
6848         * testsuite/libgomp.oacc-c++/ref-1.C: New.
6850 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
6852         PR libgomp/85463
6853         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
6854         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6855         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6856         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
6857         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
6858         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
6860         PR libfortran/85166
6861         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
6862         abort".
6863         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
6865 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
6867         * configure: Regenerated.
6869 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
6871         PR jit/85384
6872         * configure: Regenerate.
6874 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
6875             Tom de Vries  <tom@codesourcery.com>
6877         PR middle-end/84955
6878         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
6879         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
6881 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
6883         PR fortran/83064
6884         PR testsuite/85346
6885         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
6886         test from gfortran.dg to here.
6888 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
6890         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
6891         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
6893 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
6895         PR middle-end/84955
6896         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
6897         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
6899 2018-04-05  Tom de Vries  <tom@codesourcery.com>
6901         PR target/85204
6902         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
6904 2018-03-26  Tom de Vries  <tom@codesourcery.com>
6906         PR tree-optimization/85063
6907         * testsuite/libgomp.c/switch-conversion-2.c: New test.
6908         * testsuite/libgomp.c/switch-conversion.c: New test.
6909         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
6910         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
6912 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
6914         PR fortran/84381
6915         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
6916         call abort by STOP n.
6917         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
6918         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
6919         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
6920         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
6921         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
6922         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
6923         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
6924         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
6925         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
6926         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
6927         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
6928         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
6929         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
6930         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
6931         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
6932         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
6933         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
6934         * testsuite/libgomp.fortran/associate1.f90: Likewise.
6935         * testsuite/libgomp.fortran/associate2.f90: Likewise.
6936         * testsuite/libgomp.fortran/associate3.f90: Likewise.
6937         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
6938         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
6939         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
6940         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
6941         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
6942         * testsuite/libgomp.fortran/character1.f90: Likewise.
6943         * testsuite/libgomp.fortran/character2.f90: Likewise.
6944         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
6945         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
6946         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
6947         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
6948         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
6949         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
6950         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
6951         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
6952         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
6953         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
6954         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
6955         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
6956         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
6957         * testsuite/libgomp.fortran/do1.f90: Likewise.
6958         * testsuite/libgomp.fortran/do2.f90: Likewise.
6959         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
6960         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
6961         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
6962         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
6963         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
6964         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
6965         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
6966         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
6967         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
6968         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
6969         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
6970         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
6971         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
6972         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
6973         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
6974         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
6975         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
6976         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
6977         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
6978         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
6979         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
6980         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
6981         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
6982         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
6983         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
6984         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
6985         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
6986         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
6987         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
6988         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
6989         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
6990         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
6991         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
6992         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
6993         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
6994         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
6995         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
6996         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
6997         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
6998         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
6999         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
7000         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
7001         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
7002         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
7003         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
7004         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
7005         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
7006         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
7007         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
7008         * testsuite/libgomp.fortran/lib1.f90: Likewise.
7009         * testsuite/libgomp.fortran/lib2.f: Likewise.
7010         * testsuite/libgomp.fortran/lib3.f: Likewise.
7011         * testsuite/libgomp.fortran/lib4.f90: Likewise.
7012         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
7013         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
7014         * testsuite/libgomp.fortran/nested1.f90: Likewise.
7015         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
7016         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
7017         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
7018         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
7019         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
7020         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
7021         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
7022         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
7023         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
7024         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
7025         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
7026         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
7027         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
7028         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
7029         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
7030         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
7031         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
7032         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
7033         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
7034         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7035         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
7036         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
7037         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
7038         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
7039         * testsuite/libgomp.fortran/pr25162.f: Likewise.
7040         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
7041         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
7042         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
7043         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
7044         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
7045         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
7046         * testsuite/libgomp.fortran/pr28390.f: Likewise.
7047         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
7048         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
7049         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
7050         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
7051         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
7052         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
7053         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
7054         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
7055         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
7056         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
7057         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
7058         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
7059         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
7060         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
7061         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
7062         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
7063         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
7064         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
7065         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
7066         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
7067         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
7068         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
7069         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
7070         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
7071         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
7072         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
7073         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
7074         * testsuite/libgomp.fortran/reference1.f90: Likewise.
7075         * testsuite/libgomp.fortran/reference2.f90: Likewise.
7076         * testsuite/libgomp.fortran/retval1.f90: Likewise.
7077         * testsuite/libgomp.fortran/retval2.f90: Likewise.
7078         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
7079         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
7080         * testsuite/libgomp.fortran/simd1.f90: Likewise.
7081         * testsuite/libgomp.fortran/simd2.f90: Likewise.
7082         * testsuite/libgomp.fortran/simd3.f90: Likewise.
7083         * testsuite/libgomp.fortran/simd4.f90: Likewise.
7084         * testsuite/libgomp.fortran/simd5.f90: Likewise.
7085         * testsuite/libgomp.fortran/simd6.f90: Likewise.
7086         * testsuite/libgomp.fortran/simd7.f90: Likewise.
7087         * testsuite/libgomp.fortran/stack.f90: Likewise.
7088         * testsuite/libgomp.fortran/strassen.f90: Likewise.
7089         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
7090         * testsuite/libgomp.fortran/tabs2.f: Likewise.
7091         * testsuite/libgomp.fortran/target1.f90: Likewise.
7092         * testsuite/libgomp.fortran/target2.f90: Likewise.
7093         * testsuite/libgomp.fortran/target3.f90: Likewise.
7094         * testsuite/libgomp.fortran/target4.f90: Likewise.
7095         * testsuite/libgomp.fortran/target5.f90: Likewise.
7096         * testsuite/libgomp.fortran/target6.f90: Likewise.
7097         * testsuite/libgomp.fortran/target7.f90: Likewise.
7098         * testsuite/libgomp.fortran/target8.f90: Likewise.
7099         * testsuite/libgomp.fortran/task1.f90: Likewise.
7100         * testsuite/libgomp.fortran/task2.f90: Likewise.
7101         * testsuite/libgomp.fortran/task3.f90: Likewise.
7102         * testsuite/libgomp.fortran/task4.f90: Likewise.
7103         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
7104         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
7105         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
7106         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
7107         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
7108         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
7109         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
7110         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
7111         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
7112         * testsuite/libgomp.fortran/udr1.f90: Likewise.
7113         * testsuite/libgomp.fortran/udr10.f90: Likewise.
7114         * testsuite/libgomp.fortran/udr11.f90: Likewise.
7115         * testsuite/libgomp.fortran/udr12.f90: Likewise.
7116         * testsuite/libgomp.fortran/udr13.f90: Likewise.
7117         * testsuite/libgomp.fortran/udr14.f90: Likewise.
7118         * testsuite/libgomp.fortran/udr15.f90: Likewise.
7119         * testsuite/libgomp.fortran/udr2.f90: Likewise.
7120         * testsuite/libgomp.fortran/udr3.f90: Likewise.
7121         * testsuite/libgomp.fortran/udr4.f90: Likewise.
7122         * testsuite/libgomp.fortran/udr5.f90: Likewise.
7123         * testsuite/libgomp.fortran/udr6.f90: Likewise.
7124         * testsuite/libgomp.fortran/udr7.f90: Likewise.
7125         * testsuite/libgomp.fortran/udr8.f90: Likewise.
7126         * testsuite/libgomp.fortran/udr9.f90: Likewise.
7127         * testsuite/libgomp.fortran/vla1.f90: Likewise.
7128         * testsuite/libgomp.fortran/vla2.f90: Likewise.
7129         * testsuite/libgomp.fortran/vla3.f90: Likewise.
7130         * testsuite/libgomp.fortran/vla4.f90: Likewise.
7131         * testsuite/libgomp.fortran/vla5.f90: Likewise.
7132         * testsuite/libgomp.fortran/vla6.f90: Likewise.
7133         * testsuite/libgomp.fortran/vla7.f90: Likewise.
7134         * testsuite/libgomp.fortran/vla8.f90: Likewise.
7135         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
7136         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
7137         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7138         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
7139         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7140         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7141         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7142         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
7143         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
7144         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
7145         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
7146         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
7147         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
7148         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
7149         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
7150         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
7151         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
7152         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
7153         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
7154         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
7155         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
7156         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
7157         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
7158         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
7159         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
7160         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
7161         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
7162         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
7163         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7164         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
7165         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
7166         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7167         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7168         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7169         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7170         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
7171         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
7172         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
7173         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
7174         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
7175         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
7176         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
7177         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
7178         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
7179         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
7180         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
7181         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
7182         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
7183         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
7184         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
7185         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
7186         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
7187         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
7188         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7189         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
7190         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
7191         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
7192         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
7193         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
7194         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
7195         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
7196         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
7197         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
7198         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
7199         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
7200         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
7201         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
7202         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7203         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
7204         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
7205         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
7206         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
7207         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
7208         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
7209         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
7210         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
7211         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
7212         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
7213         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
7214         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
7215         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
7216         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7217         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
7218         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
7219         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
7220         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
7221         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
7222         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
7223         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
7224         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
7225         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
7226         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
7227         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
7228         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
7230 2018-03-20  Richard Biener  <rguenther@suse.de>
7232         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
7233         parallelizable loop.
7235 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
7237         PR target/84148
7238         * configure: Regenerate.
7240 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
7242         PR fortran/84418
7243         * libgomp.fortran/pr84418-1.f90: New test.
7244         * libgomp.fortran/pr84418-2.f90: New test.
7246 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
7248         PR fortran/84313
7249         * testsuite/libgomp.fortran/threadprivate4.f90: Add
7250         -std=f2003 -fall-intrinsics into dg-additional-options.
7252 2018-02-08  Martin Jambor  <mjambor@suse.cz>
7254         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
7255         clonable.
7257 2018-02-08  Martin Jambor  <mjambor@suse.cz>
7259         * testsuite/libgomp.hsa.c/staticvar.c: New test.
7261 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7263         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
7264         [__cplusplus]: Declare extern "C".
7266 2018-02-07  Tom de Vries  <tom@codesourcery.com>
7268         PR libgomp/84217
7269         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
7271 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
7272             Jakub Jelinek  <jakub@redhat.com>
7274         PR libgomp/84096
7275         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
7276         instead of omp_lock_t.
7278 2018-01-25  Tom de Vries  <tom@codesourcery.com>
7280         PR target/84028
7281         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
7283 2018-01-24  Tom de Vries  <tom@codesourcery.com>
7285         PR target/83589
7286         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
7288 2018-01-24  Tom de Vries  <tom@codesourcery.com>
7290         PR target/81352
7291         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
7293 2018-01-19  Tom de Vries  <tom@codesourcery.com>
7294             Cesar Philippidis  <cesar@codesourcery.com>
7296         PR target/83920
7297         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
7298         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
7300 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
7302         Update copyright years.
7304         * libgomp.texi: Bump @copying's copyright year.
7306 2017-12-30  Tom de Vries  <tom@codesourcery.com>
7308         PR libgomp/83046
7309         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
7310         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
7312 2017-12-27  Tom de Vries  <tom@codesourcery.com>
7314         PR c++/83046
7315         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
7316         (test_nonstatic): Fix return type to workaround PR83046.
7318 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
7320         PR testsuite/83281
7321         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
7322         j suffix instead of i.
7323         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
7324         Likewise.
7326 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
7328         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
7329         call to acc_wait (1).
7331 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
7333         PR fortran/81304
7334         * testsuite/libgomp.fortran/pr81304.f90: New test.
7336 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
7338         PR fortran/81841
7339         * libgomp.fortran/pr81841.f90: New test.
7341 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
7343         PR libgomp/83106
7344         * target.c (gomp_target_init): Compute lengths just once and
7345         use them in both malloc size and subsequent copying.
7347 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
7349         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
7350         * acinclude.m4: Add cet.m4.
7351         * configure: Regenerate.
7352         * Makefile.in: Likewise.
7353         * testsuite/Makefile.in: Likewise.
7355 2017-11-15  Tom de Vries  <tom@codesourcery.com>
7357         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
7358         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
7359         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
7360         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
7361         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
7362         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
7364 2017-11-14  Tom de Vries  <tom@codesourcery.com>
7366         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
7367         non-nvidia devices.
7369 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
7371         PR c++/82835
7372         * testsuite/libgomp.c++/pr82835.C: New test.
7374 2017-11-06  Martin Liska  <mliska@suse.cz>
7376         * testsuite/libgomp.c++/loop-2.C: Return a value
7377         for functions with non-void return type, or change type to void,
7378         or add -Wno-return-type for test.
7379         * testsuite/libgomp.c++/loop-4.C: Likewise.
7380         * testsuite/libgomp.c++/parallel-1.C: Likewise.
7381         * testsuite/libgomp.c++/shared-1.C: Likewise.
7382         * testsuite/libgomp.c++/single-1.C: Likewise.
7383         * testsuite/libgomp.c++/single-2.C: Likewise.
7385 2017-10-31  Tom de Vries  <tom@codesourcery.com>
7387         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
7388         "do {} while (false)".
7389         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
7390         after HSA_DEBUG call.
7392 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
7394         * target.c (struct gomp_coalesce_buf): New type.
7395         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
7396         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
7397         (gomp_copy_host2dev): Add CBUF argument, if copying into
7398         the cached ranges, memcpy into buffer instead of copying
7399         into device.
7400         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
7401         Add CBUF argument, pass it through to other calls.
7402         (gomp_map_vars): Aggregate copies from host to device if small enough
7403         and with small enough gaps in between into memcpy into a buffer and
7404         fewer host to device copies from the buffer.
7405         (gomp_update): Adjust gomp_copy_host2dev caller.
7407 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
7409         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
7410         run" directive.
7411         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7412         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7413         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7414         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7416 2017-10-16  Tom de Vries  <tom@codesourcery.com>
7418         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
7419         openacc_nvidia_accel_selected.
7420         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
7421         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
7422         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
7423         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
7424         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
7425         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
7426         openacc_nvidia_accel_selected. Skip for shared memory device.
7427         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
7428         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
7430 2017-10-09  Martin Jambor  <mjambor@suse.cz>
7432         PR hsa/82416
7433         * testsuite/libgomp.hsa.c/pr82416.c: New test.
7435 2017-10-07  Tom de Vries  <tom@codesourcery.com>
7437         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
7438         Remove acc_device_nvidia references.
7439         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
7440         Same.
7442 2017-10-05  Tom de Vries  <tom@codesourcery.com>
7444         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
7445         vector_length(32) clause from acc parallel directive.
7446         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
7448 2017-10-04  Tom de Vries  <tom@codesourcery.com>
7450         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
7451         (main): Reduce sum of arr elements.  Assert that hres is exactly
7452         representable in 32-bit floating point.
7453         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
7454         (main): Reduce sum of arr elements.  Assert that hres and hmres are
7455         exactly representable in 32-bit floating point.
7456         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
7458 2017-09-28  Tom de Vries  <tom@codesourcery.com>
7460         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
7461         setting.
7462         * testsuite/libgomp.c++/pr69393.C: Same.
7463         * testsuite/libgomp.c++/taskloop-1.C: Same.
7464         * testsuite/libgomp.c++/taskloop-3.C: Same.
7465         * testsuite/libgomp.c++/taskloop-4.C: Same.
7466         * testsuite/libgomp.c/for-4.c: Same.
7467         * testsuite/libgomp.c/pr66199-3.c: Same.
7468         * testsuite/libgomp.c/pr66199-4.c: Same.
7469         * testsuite/libgomp.c/pr66199-6.c: Same.
7470         * testsuite/libgomp.c/taskloop-1.c: Same.
7471         * testsuite/libgomp.c/taskloop-3.c: Same.
7472         * testsuite/libgomp.c/taskloop-4.c: Same.
7473         * testsuite/libgomp.fortran/aligned1.f03: Same.
7474         * testsuite/libgomp.fortran/condinc1.f: Same.
7475         * testsuite/libgomp.fortran/condinc3.f90: Same.
7476         * testsuite/libgomp.fortran/crayptr1.f90: Same.
7477         * testsuite/libgomp.fortran/crayptr2.f90: Same.
7478         * testsuite/libgomp.fortran/crayptr3.f90: Same.
7479         * testsuite/libgomp.fortran/omp_cond1.f: Same.
7480         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
7481         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
7482         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
7483         * testsuite/libgomp.fortran/recursion1.f90: Same.
7484         * testsuite/libgomp.fortran/target2.f90: Same.
7485         * testsuite/libgomp.fortran/target5.f90: Same.
7486         * testsuite/libgomp.fortran/task3.f90: Same.
7488 2017-09-28  Tom de Vries  <tom@codesourcery.com>
7490         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
7491         vector_length(32) clause from acc parallel directive.
7492         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
7494 2017-09-27  Tom de Vries  <tom@codesourcery.com>
7496         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
7497         Remove acc_device_nvidia references.
7499 2017-09-16  Tom de Vries  <tom@codesourcery.com>
7501         PR c/81875
7502         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
7504 2017-09-14  Tom de Vries  <tom@codesourcery.com>
7506         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
7507         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
7508         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
7509         * testsuite/libgomp.c/c.exp: Include test-cases from
7510         libgomp.c-c++-common.
7511         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
7512         files.
7514 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
7516         PR c++/81314
7517         * testsuite/libgomp.c++/pr81314.C: New test.
7519 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
7521         * libgomp.texi (Top): www.openacc.org now uses https.
7522         (Enabling OpenACC): Ditto.
7523         (acc_get_num_devices): Ditto.
7524         (acc_set_device_type): Ditto.
7525         (acc_get_device_type): Ditto.
7526         (acc_set_device_num): Ditto.
7527         (acc_get_device_num): Ditto.
7528         (acc_async_test): Ditto.
7529         (acc_async_test_all): Ditto.
7530         (acc_wait): Ditto.
7531         (acc_wait_all): Ditto.
7532         (acc_wait_all_async): Ditto.
7533         (acc_wait_async): Ditto.
7534         (acc_init): Ditto.
7535         (acc_shutdown): Ditto.
7536         (acc_on_device): Ditto.
7537         (acc_malloc): Ditto.
7538         (acc_free): Ditto.
7539         (acc_copyin): Ditto.
7540         (acc_present_or_copyin): Ditto.
7541         (acc_create): Ditto.
7542         (acc_present_or_create): Ditto.
7543         (acc_copyout): Ditto.
7544         (acc_delete): Ditto.
7545         (acc_update_device): Ditto.
7546         (acc_update_self): Ditto.
7547         (acc_map_data): Ditto.
7548         (acc_unmap_data): Ditto.
7549         (acc_deviceptr): Ditto.
7550         (acc_hostptr): Ditto.
7551         (acc_is_present): Ditto.
7552         (acc_memcpy_to_device): Ditto.
7553         (acc_memcpy_from_device): Ditto.
7554         (acc_get_current_cuda_device): Ditto.
7555         (acc_get_current_cuda_context): Ditto.
7556         (acc_get_cuda_stream): Ditto.
7557         (acc_set_cuda_stream): Ditto.
7558         (ACC_DEVICE_TYPE): Ditto.
7559         (ACC_DEVICE_NUM): Ditto.
7560         (OpenACC Library Interoperability): Ditto.
7562 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
7564         PR c/81687
7565         * testsuite/libgomp.c/pr81687-1.c: New test.
7566         * testsuite/libgomp.c/pr81687-2.c: New test.
7568 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
7570         PR c/69389
7571         * testsuite/libgomp.c/pr69389.c: New test.
7572         * testsuite/libgomp.c++/pr69389.C: New test.
7574 2017-08-07  Tom de Vries  <tom@codesourcery.com>
7576         PR middle-end/78266
7577         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
7578         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
7580 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
7582         PR c/45784
7583         * testsuite/libgomp.c/pr45784.c: New test.
7584         * testsuite/libgomp.c++/pr45784.C: New test.
7586 2017-07-19  Tom de Vries  <tom@codesourcery.com>
7588         * testsuite/libgomp.oacc-c/vec.c: New test.
7590 2017-07-03  Tom de Vries  <tom@codesourcery.com>
7592         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
7594 2017-06-27  Tom de Vries  <tom@codesourcery.com>
7596         * plugin/plugin-nvptx.c (notify_var): New function.
7597         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
7599 2017-06-27  Tom de Vries  <tom@codesourcery.com>
7601         * env.c (parse_unsigned_long_1): Factor out of ...
7602         (parse_unsigned_long): ... here.
7603         (parse_int_1): Factor out of ...
7604         (parse_int): ... here.
7605         (parse_int_secure): New function.
7606         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
7607         * secure_getenv.h: Factor out of ...
7608         * plugin/plugin-hsa.c: ... here.
7609         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
7611 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
7613         PR c++/81130
7614         * testsuite/libgomp.c++/pr81130.C: New test.
7616 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7618         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
7619         default args.
7620         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
7621         dg-xfail-run-if default args.
7623 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7625         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
7626         * testsuite/libgomp.c/pr39591-3.c: Likewise.
7628 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
7630         PR libgomp/80822
7631         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
7632         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
7633         sibling lists, depending on level just pick up what CPUs to put
7634         together into a place vs. whether add multiple ordered places.
7636 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
7638         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
7639         * libgomp.map (OACC_2.0.1): Add these.
7640         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
7641         for "acc_wait", and "acc_wait_all", respectively.
7642         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
7643         for "acc_wait", and "acc_wait_all", respectively.
7644         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
7645         * libgomp.texi (acc_wait, acc_wait_all): Update.
7646         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
7647         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
7648         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7650         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
7651         acc_present_or_copyin and acc_present_or_create procedures,
7652         respectively.
7653         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
7654         generally different variants of OpenACC Runtime Library functions.
7655         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7657         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
7658         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7660         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
7661         of preprocessor definitions.
7662         * libgomp.h (strong_alias): Guard by "#ifdef
7663         HAVE_ATTRIBUTE_ALIAS".
7664         * oacc-mem.c: Provide "acc_pcreate" as alias for
7665         "acc_present_or_create", and "acc_pcopyin" as alias for
7666         "acc_present_or_copyin".
7667         * libgomp.map: New version "OACC_2.0.1".
7668         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
7669         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
7670         its content into...
7671         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
7672         Extend testing.
7674         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
7675         when disabling nvptx offloading.
7677 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
7679         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
7680         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
7681         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
7683         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
7684         * testsuite/lib/libgomp.exp
7685         (check_effective_target_openacc_nvidia_accel_configured): New
7686         proc.
7687         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
7688         (check_effective_target_c++): New procs.
7689         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
7690         (check_effective_target_c++): Likewise.
7692 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
7694         PR middle-end/80809
7695         * testsuite/libgomp.c/pr80809-2.c: New test.
7696         * testsuite/libgomp.c/pr80809-3.c: New test.
7698         PR middle-end/80809
7699         * testsuite/libgomp.c/pr80809-1.c: New test.
7701         PR middle-end/80853
7702         * testsuite/libgomp.c/pr80853.c: New test.
7704 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
7706         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
7707         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
7708         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7709         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
7710         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
7712         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
7713         Debug output for failure.
7715 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7717         * testsuite/lib/libgomp.exp: Load scanlang.exp.
7719 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
7721         PR bootstrap/80531
7722         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
7723         bootstrap compare failures.
7725 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
7727         * testsuite/libgomp.c/target-36.c: New testcase.
7729 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
7731         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
7732         instead of char.
7734 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
7736         PR libgomp/80394
7737         * testsuite/libgomp.c/pr80394.c: New test.
7739 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
7741         PR libgomp/79876
7742         * config/posix/thread-stacksize.h: New file.
7743         * config/darwin/thread-stacksize.h: New file.
7744         * config/nvptx/thread-stacksize.h: New file.
7745         * env.c: Include thread-stacksize.h.
7746         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
7747         instead of 0.  Call pthread_attr_setstacksize even if
7748         GOMP_DEFAULT_STACKSIZE is non-zero.
7750 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
7752         * env.c (initialize_env): Initialize stacksize to 0.
7754 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
7756         PR c++/80029
7757         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
7759 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
7761         PR c/79940
7762         * testsuite/libgomp.c/pr79940.c: New test.
7764 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7766         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
7767         targets.
7768         Add __float128 options.
7770 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
7772         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
7773         hppa*-*-* dg-skip-if directive.
7775 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
7777         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
7778         dg-skip-if directive into a comment.
7780 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
7781             Chung-Lin Tang  <cltang@codesourcery.com>
7783         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
7784         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
7785         add additional case.
7786         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
7787         "openacc_nvidia_accel_selected".
7788         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
7789         Add num_workers(8) clause.
7791 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
7793         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
7794         hppa*-*-*.
7795         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
7796         include complex.h on hppa*-*-hpux*.
7797         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
7799 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
7801         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
7803         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
7804         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
7805         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
7806         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
7807         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
7808         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
7809         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
7810         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
7811         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
7812         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
7814 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
7816         * libgomp-plugin.h: #include <stdbool.h>.
7817         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
7818         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
7819         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
7820         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
7821         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
7822         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
7823         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
7824         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
7825         (GOMP_OFFLOAD_openacc_register_async_cleanup)
7826         (GOMP_OFFLOAD_openacc_async_test)
7827         (GOMP_OFFLOAD_openacc_async_test_all)
7828         (GOMP_OFFLOAD_openacc_async_wait)
7829         (GOMP_OFFLOAD_openacc_async_wait_async)
7830         (GOMP_OFFLOAD_openacc_async_wait_all)
7831         (GOMP_OFFLOAD_openacc_async_wait_all_async)
7832         (GOMP_OFFLOAD_openacc_async_set_async)
7833         (GOMP_OFFLOAD_openacc_create_thread_data)
7834         (GOMP_OFFLOAD_openacc_destroy_thread_data)
7835         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
7836         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
7837         (GOMP_OFFLOAD_openacc_get_cuda_stream)
7838         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
7839         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
7840         these.
7841         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
7842         (GOMP_OFFLOAD_unload_image): Fix argument types.
7844 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
7846         * testsuite/lib/libgomp.exp
7847         (check_effective_target_hsa_offloading_selected_nocache): Fix up
7848         check_compile invocation.  Fix up removal of executable.  Drop
7849         bogus "2>&1" argument.
7851         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
7852         directive.
7854 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
7855             Martin Jambor  <mjambor@suse.cz>
7857         * plugin/hsa.h: Moved to top level include.
7858         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
7860 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
7862         PR other/79046
7863         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
7864         of cat to get version from BASE-VER file.
7865         * testsuite/Makefile.in: Regenerated.
7867 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
7869         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
7870         for _WIN64.
7872 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
7874         * plugin/hsa.h: Add GCC runtime library exception.
7875         * plugin/hsa_ext_finalize.h: Likewise.
7877         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
7878         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
7879         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
7880         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
7881         plugin/include/cuda as include dir and -ldl instead of -lcuda as
7882         library to link ptx plugin against.
7883         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
7884         (CUDA_CALLS): Define.
7885         (cuda_lib, cuda_lib_inited): New variables.
7886         (init_cuda_lib): New function.
7887         (CUDA_CALL_PREFIX): Define.
7888         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
7889         (CUDA_CALL): Use FN instead of (FN).
7890         (CUDA_CALL_NOCHECK): Define.
7891         (cuda_error, fini_streams_for_device, select_stream_for_async,
7892         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
7893         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
7894         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
7895         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
7896         CUDA_CALL_NOCHECK.
7897         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
7898         CUDA_CALL_NOCHECK.
7899         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
7900         Use CUDA_CALL_NOCHECK.
7901         * plugin/cuda/cuda.h: New file.
7902         * config.h.in: Regenerated.
7903         * configure: Regenerated.
7905         PR other/79046
7906         * configure.ac: Add GCC_BASE_VER.
7907         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
7908         get version from BASE-VER file.
7909         * testsuite/Makefile.in: Regenerated.
7910         * configure: Regenerated.
7911         * Makefile.in: Regenerated.
7913 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7915         PR libgomp/60670
7916         * Makefile.am: Make fincludedir multilib-aware.
7917         * Makefile.in: Regenerate.
7919 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
7921         Update copyright years.
7923         * libgomp.texi: Bump @copying's copyright year.
7925 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7927         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
7928         pthread_spinlock_t instead of gomp_mutex_t lock.
7929         (gomp_get_thread_pool): Likewise.
7930         (gomp_release_thread_pool): Likewise.
7931         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
7932         Likewise.
7934 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7936         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
7937         thread pool in case nthreads == 1.
7939 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
7941         * config/nvptx/env.c: Delete.
7942         * icv.c: Move definitions of ICV variables back ...
7943         * env.c: ...here.  Do not compile environment-related functionality if
7944         LIBGOMP_OFFLOADED_ONLY is set.
7946 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
7948         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
7949         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
7950         * configure: Regenerate.
7951         * config.h.in: Likewise.
7953 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
7955         * Makefile.in: Regenerate with automake-1.11.6.
7956         * aclocal.m4: Likewise.
7957         * configure: Likewise.
7958         * testsuite/Makefile.in: Likewise.
7960 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
7962         * config/nvptx/critical.c: Delete to use generic implementation.
7964 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
7966         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
7967         ../../affinity.c as fallback.
7968         * config/nvptx/affinity.c: Delete to use fallback implementation.
7970 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
7971             Jakub Jelinek  <jakub@redhat.com>
7972             Dmitry Melnik  <dm@ispras.ru>
7974         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
7975         * Makefile.in. Regenerate.
7976         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
7977         (LIBGOMP_USE_PTHREADS): ...here; new define.
7978         * configure: Regenerate.
7979         * config.h.in: Likewise.
7980         * config/posix/affinity.c: Move to...
7981         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
7982         interface by LIBGOMP_USE_PTHREADS. 
7983         * critical.c: Split out GOMP_atomic_{start,end} into...
7984         * atomic.c: ...here (new file).
7985         * env.c: Split out ICV definitions into...
7986         * icv.c: ...here (new file) and...
7987         * icv-device.c: ...here. New file.
7988         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
7989         (gomp_destroy_lock_30): Ditto.
7990         (gomp_set_lock_30): Ditto.
7991         (gomp_unset_lock_30): Ditto.
7992         (gomp_test_lock_30): Ditto.
7993         (gomp_init_nest_lock_30): Ditto.
7994         (gomp_destroy_nest_lock_30): Ditto.
7995         (gomp_set_nest_lock_30): Ditto.
7996         (gomp_unset_nest_lock_30): Ditto.
7997         (gomp_test_nest_lock_30): Ditto.
7998         * lock.c: New.
7999         * config/nvptx/lock.c: New.
8000         * config/nvptx/bar.c: New.
8001         * config/nvptx/bar.h: New.
8002         * config/nvptx/doacross.h: New.
8003         * config/nvptx/error.c: New.
8004         * config/nvptx/icv-device.c: New.
8005         * config/nvptx/mutex.h: New.
8006         * config/nvptx/pool.h: New.
8007         * config/nvptx/proc.c: New.
8008         * config/nvptx/ptrlock.h: New.
8009         * config/nvptx/sem.h: New.
8010         * config/nvptx/simple-bar.h: New.
8011         * config/nvptx/target.c: New.
8012         * config/nvptx/task.c: New.
8013         * config/nvptx/team.c: New.
8014         * config/nvptx/time.c: New.
8015         * config/posix/simple-bar.h: New.
8016         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
8017         (gomp_num_teams_var): Declare.
8018         (struct gomp_thread_pool): Change threads_dock member to
8019         gomp_simple_barrier_t.
8020         [__nvptx__] (gomp_thread): New implementation.
8021         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
8022         (gomp_thread_destructor): Ditto.
8023         (gomp_init_thread_affinity): Ditto.
8024         * team.c: Guard uses of Pthreads-specific interfaces by
8025         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
8026         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
8027         * config/nvptx/alloc.c: Delete.
8028         * config/nvptx/barrier.c: Ditto.
8029         * config/nvptx/fortran.c: Ditto.
8030         * config/nvptx/iter.c: Ditto.
8031         * config/nvptx/iter_ull.c: Ditto.
8032         * config/nvptx/loop.c: Ditto.
8033         * config/nvptx/loop_ull.c: Ditto.
8034         * config/nvptx/ordered.c: Ditto.
8035         * config/nvptx/parallel.c: Ditto.
8036         * config/nvptx/priority_queue.c: Ditto.
8037         * config/nvptx/sections.c: Ditto.
8038         * config/nvptx/single.c: Ditto.
8039         * config/nvptx/splay-tree.c: Ditto.
8040         * config/nvptx/work.c: Ditto.
8041         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
8042         -foffload=-lgfortran in addition to -lgfortran.
8043         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
8044         * plugin/plugin-nvptx.c: Include <limits.h>.
8045         (struct targ_fn_descriptor): Add new fields.
8046         (struct ptx_device): Ditto.  Set them...
8047         (nvptx_open_device): ...here.
8048         (nvptx_adjust_launch_bounds): New.
8049         (nvptx_host2dev): Allow NULL 'nvthd'.
8050         (nvptx_dev2host): Ditto.
8051         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
8052         (link_ptx): Adjust log sizes.
8053         (nvptx_host2dev): Allow NULL 'nvthd'.
8054         (nvptx_dev2host): Ditto.
8055         (nvptx_set_clocktick): New.  Use it...
8056         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
8057         fields.
8058         (GOMP_OFFLOAD_dev2dev): New.
8059         (nvptx_adjust_launch_bounds): New.
8060         (nvptx_stacks_size): New.
8061         (nvptx_stacks_alloc): New.
8062         (nvptx_stacks_free): New.
8063         (GOMP_OFFLOAD_run): New.
8064         (GOMP_OFFLOAD_async_run): New (stub).
8066 2016-11-23  Martin Jambor  <mjambor@suse.cz>
8068         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
8069         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
8070         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
8072 2016-11-23  Martin Liska  <mliska@suse.cz>
8073             Martin Jambor  <mjambor@suse.cz>
8075         * plugin/hsa.h: New file.
8076         * plugin/hsa_ext_finalize.h: New file.
8077         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
8078         header file unistd.h, and functions secure_getenv, __secure_getenv,
8079         getuid, geteuid, getgid and getegid.
8080         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
8081         -D_GNU_SOURCE.
8082         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
8083         Handle various cases of secure_getenv presence, add an implementation
8084         when we can test effective UID and GID.
8085         (struct hsa_runtime_fn_info): New structure.
8086         (hsa_runtime_fn_info hsa_fns): New variable.
8087         (hsa_runtime_lib): Likewise.
8088         (support_cpu_devices): Likewise.
8089         (init_enviroment_variables): Load newly introduced ENV
8090         variables.
8091         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
8092         (hsa_fatal): Likewise.
8093         (DLSYM_FN): New macro.
8094         (init_hsa_runtime_functions): New function.
8095         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
8096         structure.  Depending on environment, also allow CPU devices.
8097         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
8098         (get_kernarg_memory_region): Likewise.
8099         (GOMP_OFFLOAD_init_device): Likewise.
8100         (destroy_hsa_program): Likewise.
8101         (init_basic_kernel_info): New function.
8102         (GOMP_OFFLOAD_load_image): Use it.
8103         (create_and_finalize_hsa_program): Call hsa run-time functions via
8104         hsa_fns structure.
8105         (create_single_kernel_dispatch): Likewise.
8106         (release_kernel_dispatch): Likewise.
8107         (init_single_kernel): Likewise.
8108         (parse_target_attributes): Allow up multiple HSA grid dimensions.
8109         (get_group_size): New function.
8110         (run_kernel): Likewise.
8111         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
8112         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
8113         structure.
8114         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
8115         * testsuite/libgomp-test-support.exp.in: Likewise.
8116         * Makefile.in: Regenerated.
8117         * aclocal.m4: Likewise.
8118         * config.h.in: Likewise.
8119         * configure: Likewise.
8120         * testsuite/Makefile.in: Likewise.
8122 2016-11-15  Martin Jambor  <mjambor@suse.cz>
8123             Alexander Monakov  <amonakov@ispras.ru>
8125         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
8126         mapping clauses to target constructs.
8127         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
8129 2016-11-15  Matthias Klose  <doko@ubuntu.com>
8131         * configure: Regenerate.
8133 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
8135         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
8136         * omp_lib.h.in (openmp_version): Likewise.
8137         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
8138         of 201307.
8139         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8141         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
8142         (fib_wrapper): Add map(from: x) clause.
8143         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
8144         (e_53_2): Likewise.
8145         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
8146         (accum): Add map(tmp) clause.
8147         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
8148         (accum): Add map(tofrom: tmp) clause.
8149         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
8150         (gramSchmidt): Likewise.
8151         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
8152         map(tofrom: sum) clause.
8153         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
8154         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
8155         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
8156         only allowed on the loop iterator.
8157         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
8158         * testsuite/libgomp.fortran/taskloop2.f90: New test.
8159         * testsuite/libgomp.fortran/taskloop4.f90: New test.
8160         * testsuite/libgomp.fortran/doacross1.f90: New test.
8161         * testsuite/libgomp.fortran/doacross3.f90: New test.
8162         * testsuite/libgomp.fortran/taskloop1.f90: New test.
8163         * testsuite/libgomp.fortran/taskloop3.f90: New test.
8164         * testsuite/libgomp.fortran/doacross2.f90: New test.
8165         * testsuite/libgomp.c/doacross-1.c (main): Add missing
8166         #pragma omp atomic read.
8167         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
8168         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
8170 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
8171             Nathan Sidwell  <nathan@acm.org>
8173         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
8174         to determine default geometry.
8175         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
8176         dimension.
8178 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
8180         * hashtab.h: Use standard GPLv3 with runtime exception
8181         boilerplate.
8183 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
8185         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
8186         size when allocating new thread.
8188 2016-09-14  Marek Polacek  <polacek@redhat.com>
8190         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
8192 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
8194         PR fortran/71014
8195         * testsuite/libgomp.fortran/pr71014.f90: New test.
8197 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
8199         PR middle-end/70895
8200         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
8201         firstprivate clauses.
8202         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
8203         copy clauses.
8204         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
8205         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
8206         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
8207         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8208         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
8209         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8210         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
8211         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
8212         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
8213         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
8214         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
8215         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
8217 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
8219         PR fortran/70598
8220         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
8222 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
8224         PR c++/58706
8225         * testsuite/libgomp.c++/pr58706.C: New test.
8227 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
8229         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
8230         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
8231         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
8232         Likewise.
8233         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
8234         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
8235         Likewise.
8236         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
8238         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
8239         test, and don't hardcode -O0.
8241 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
8243         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
8245 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
8247         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
8248         test.
8250 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
8252         PR middle-end/71734
8253         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
8254         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
8256 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
8258         PR fortran/71717
8259         * testsuite/libgomp.fortran/associate3.f90: New test.
8261 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
8263         * testsuite/libgomp.c++/target-21.C: New test.
8265 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
8267         * testsuite/libgomp.c++/target-20.C: New test.
8269 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
8270             Cesar Philippidis  <cesar@codesourcery.com>
8272         PR middle-end/71373
8273         * libgomp.oacc-c/nested-function-1.c: New file.
8274         * libgomp.oacc-c/nested-function-2.c: Likewise.
8275         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
8276         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
8277         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
8279 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
8281         PR c/71381
8282         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
8283         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
8284         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
8286 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
8288         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
8289         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
8291 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
8293         PR c/70688
8294         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
8296 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
8298         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
8299         instead of invalid schedule(static, 0).
8300         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
8302 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
8304         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
8305         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
8306         parameter, use to set async stream around call to gomp_unmap_vars,
8307         call gomp_unmap_vars() with 'do_copyfrom' set to true.
8308         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
8309         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
8310         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
8311         (event_add): Add int parameter, initialize 'val' field when
8312         adding new ptx_event struct.
8313         (nvptx_evec): Adjust event_add() call arguments.
8314         (nvptx_host2dev): Likewise.
8315         (nvptx_dev2host): Likewise.
8316         (nvptx_wait_async): Likewise.
8317         (nvptx_wait_all_async): Likewise.
8318         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
8319         pass to event_add() call.
8320         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
8321         parameter.
8322         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
8323         call openacc.register_async_cleanup_func() hook.
8324         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
8325         * target.c (gomp_copy_from_async): Delete function.
8326         (gomp_map_vars): Remove async_refcount.
8327         (gomp_unmap_vars): Likewise.
8328         (gomp_load_image_to_device): Likewise.
8329         (omp_target_associate_ptr): Likewise.
8330         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
8331         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
8332         (gomp_copy_from_async): Remove.
8334 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
8336         * target.c (gomp_device_copy): New function.
8337         (gomp_copy_host2dev): Likewise.
8338         (gomp_copy_dev2host): Likewise.
8339         (gomp_free_device_memory): Likewise.
8340         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
8341         (gomp_map_pointer): Likewise.
8342         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
8343         NULL value from alloc_func plugin hook.
8344         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
8345         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
8346         (gomp_unmap_vars): Likewise.
8347         (gomp_update): Adjust to call gomp_copy_dev2host and
8348         gomp_copy_host2dev functions.
8349         (gomp_unload_image_from_device): Handle false value from
8350         unload_image_func plugin hook.
8351         (gomp_init_device): Handle false value from init_device_func
8352         plugin hook.
8353         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
8354         (omp_target_free): Adjust to call gomp_free_device_memory.
8355         (omp_target_memcpy): Handle return values from host2dev_func,
8356         dev2host_func, and dev2dev_func plugin hooks.
8357         (omp_target_memcpy_rect_worker): Likewise.
8358         (gomp_target_fini): Handle false value from fini_device_func
8359         plugin hook.
8360         * libgomp.h (struct gomp_device_descr): Adjust return type of
8361         init_device_func, fini_device_func, unload_image_func, free_func,
8362         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
8363         * oacc-init.c (acc_shutdown_1): Handle false value from
8364         fini_device_func plugin hook.
8365         * oacc-host.c (host_init_device): Change return type to bool.
8366         (host_fini_device): Likewise.
8367         (host_unload_image): Likewise.
8368         (host_free): Likewise.
8369         (host_dev2host): Likewise.
8370         (host_host2dev): Likewise.
8371         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
8372         (acc_memcpy_to_device): Likewise.
8373         (acc_memcpy_from_device): Likewise.
8374         (delete_copyout): Add libfnname parameter, handle free_func
8375         hook fatal error case.
8376         (acc_delete): Adjust delete_copyout call.
8377         (acc_copyout): Likewise.
8378         (update_dev_host): Move gomp_mutex_unlock to after
8379         host2dev/dev2host hook calls.
8381         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
8382         to 'hsa_error_msg', for clarity.
8383         (hsa_fatal): Likewise.
8384         (hsa_error): New function.
8385         (init_hsa_context): Change return type to bool, adjust to return
8386         false on error.
8387         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
8388         return value.
8389         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
8390         return false on error.
8391         (get_agent_info): Adjust to return NULL on error.
8392         (destroy_hsa_program): Change return type to bool, adjust to
8393         return false on error.
8394         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
8395         (destroy_module): Change return type to bool, adjust to
8396         return false on error.
8397         (GOMP_OFFLOAD_unload_image): Likewise.
8398         (GOMP_OFFLOAD_fini_device): Likewise.
8399         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
8400         (GOMP_OFFLOAD_free): Change to return false when called.
8401         (GOMP_OFFLOAD_dev2host): Likewise.
8402         (GOMP_OFFLOAD_host2dev): Likewise.
8403         (GOMP_OFFLOAD_dev2dev): Likewise.
8405         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
8406         (CUDA_CALL): Likewise.
8407         (CUDA_CALL_ASSERT): Likewise.
8408         (map_init): Change return type to bool, use CUDA_CALL* macros.
8409         (map_fini): Likewise.
8410         (init_streams_for_device): Change return type to bool, adjust
8411         call to map_init.
8412         (fini_streams_for_device): Change return type to bool, adjust
8413         call to map_fini.
8414         (select_stream_for_async): Release stream_lock before calls to
8415         GOMP_PLUGIN_fatal, adjust call to map_init.
8416         (nvptx_init): Use CUDA_CALL* macros.
8417         (nvptx_attach_host_thread_to_device): Change return type to bool,
8418         use CUDA_CALL* macros.
8419         (nvptx_open_device): Use CUDA_CALL* macros.
8420         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
8421         macros.
8422         (nvptx_get_num_devices): Use CUDA_CALL* macros.
8423         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
8424         (nvptx_exec): Use CUDA_CALL* macros.
8425         (nvptx_alloc): Use CUDA_CALL* macros.
8426         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
8427         (nvptx_host2dev): Likewise.
8428         (nvptx_dev2host): Likewise.
8429         (nvptx_wait): Use CUDA_CALL* macros.
8430         (nvptx_wait_async): Likewise.
8431         (nvptx_wait_all): Likewise.
8432         (nvptx_wait_all_async): Likewise.
8433         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
8434         use CUDA_CALL* macros, adjust call to map_fini.
8435         (GOMP_OFFLOAD_init_device): Change return type to bool,
8436         adjust code accordingly.
8437         (GOMP_OFFLOAD_fini_device): Likewise.
8438         (GOMP_OFFLOAD_load_image): Adjust calls to
8439         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
8440         use CUDA_CALL* macros.
8441         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
8442         return code.
8443         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
8444         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
8445         handle error return.
8446         (GOMP_OFFLOAD_dev2host): Likewise.
8447         (GOMP_OFFLOAD_host2dev): Likewise.
8448         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
8449         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
8451 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
8453         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
8454         (acc_free): Likewise.
8455         (acc_memcpy_to_device): Likewise.
8456         (acc_memcpy_from_device): Likewise.
8457         (acc_deviceptr): Likewise.
8458         (acc_hostptr): Likewise.
8459         (acc_is_present): Likewise.
8460         (acc_map_data): Likewise.
8461         (acc_unmap_data): Likewise.
8462         (present_create_copy): Likewise.
8463         (delete_copyout): Likewise.
8464         (update_dev_host): Likewise.
8465         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
8466         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
8467         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
8468         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8469         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
8470         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
8471         it only runs on nvptx targets.
8472         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8473         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8474         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8475         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8476         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8477         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8478         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8479         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8480         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8481         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8482         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8483         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8484         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8485         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8486         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8487         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8488         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8489         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8490         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8491         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8492         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8493         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8494         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8496 2016-05-23  Martin Jambor  <mjambor@suse.cz>
8498         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
8500 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
8502         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
8503         to gomp_init_targets_once.
8504         (acc_set_device_type): Remove !cached_base_dev condition on call to
8505         gomp_init_targets_once, move call to before acc_device_lock acquire,
8506         to avoid deadlock.
8507         (acc_get_device_num): Remove !cached_base_dev condition on call to
8508         gomp_init_targets_once.
8509         (acc_set_device_num): Likewise.
8511 2016-05-16  Martin Jambor  <mjambor@suse.cz>
8513         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
8515 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
8517         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
8518         expected partitioning.
8520 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
8522         PR middle-end/70626
8523         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
8524         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
8525         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
8527 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
8529         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
8530         non-fatal.
8532 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
8534         PR middle-end/70680
8535         * testsuite/libgomp.c/pr70680-1.c: New test.
8536         * testsuite/libgomp.c/pr70680-2.c: New test.
8538 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
8540         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
8541         pass parameter variables to subroutines.
8543 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
8545         PR middle-end/70643
8546         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
8548 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
8550         PR testsuite/68242
8551         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
8552         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8554 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
8556         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
8557         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
8558         GOACC_declare prototype.
8560         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
8561         Merge this file, and...
8562         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
8563         ... this file, and...
8564         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
8565         ... this file, and...
8566         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
8567         ... this file, and...
8568         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
8569         ... this file, and...
8570         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
8571         ... this file, and...
8572         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
8573         ... this file, and...
8574         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
8575         ... this file, and...
8576         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
8577         ... this file, and...
8578         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
8579         ... this file, and...
8580         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
8581         ... this file, and...
8582         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
8583         ... this file, and...
8584         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
8585         ... this file into...
8586         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
8587         file.
8589         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8590         Make failure observable.
8592 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
8594         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
8595         field.
8596         * target.c (gomp_target_fallback_firstprivate,
8597         gomp_target_unshare_firstprivate): Removed.
8598         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
8599         before waiting for dependencies.
8600         (gomp_target_task_fn): Don't copy firstprivate vars here.
8601         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
8602         firstprivate_copies here.
8603         (gomp_create_target_task): Don't initialize firstprivate_copies field.
8604         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
8605         explicit/implicit firstprivate.
8607 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
8609         PR lto/70289
8610         PR ipa/70348
8611         PR tree-optimization/70373
8612         PR middle-end/70533
8613         PR middle-end/70534
8614         PR middle-end/70535
8615         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
8616         test.
8617         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
8618         test.
8619         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
8620         test.
8621         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
8622         test.
8623         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
8624         test.
8625         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
8626         test.
8627         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
8628         test.
8629         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
8630         test.
8631         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
8632         test.
8633         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
8634         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
8635         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
8636         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
8637         test.
8638         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
8639         test.
8640         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
8641         test.
8642         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
8643         test.
8644         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
8645         coverage.
8646         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
8647         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
8648         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
8649         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
8650         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
8651         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
8652         coverage.
8653         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8654         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8655         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8656         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8657         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
8658         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
8659         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
8660         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
8661         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
8662         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8663         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8664         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8665         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8666         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8667         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
8669 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
8670             James Norris  <jnorris@codesourcery.com>
8671             Nathan Sidwell  <nathan@codesourcery.com>
8672             Julian Brown  <julian@codesourcery.com>
8673             Cesar Philippidis  <cesar@codesourcery.com>
8674             Chung-Lin Tang  <cltang@codesourcery.com>
8675             Tom de Vries  <tom@codesourcery.com>
8677         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
8678         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8679         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8680         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
8681         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8682         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8683         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8684         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
8685         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8686         XFAIL.
8687         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
8688         Incorporate...
8689         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
8690         file.
8691         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
8692         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
8693         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
8694         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
8695         Likewise.
8696         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
8697         Likewise.
8698         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
8699         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
8700         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
8701         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
8702         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
8703         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
8704         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
8705         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
8706         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
8707         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
8708         Likewise.
8709         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
8710         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
8711         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
8712         file...
8713         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
8714         file into...
8715         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
8716         file.  Update.
8717         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
8718         file.
8719         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
8720         Likewise.
8721         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
8722         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
8723         ... this new file.  Update.
8724         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
8725         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
8726         ... this new file.  Update.
8727         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
8728         file.  Incorporate...
8729         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
8730         file, and...
8731         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
8732         file, and...
8733         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
8734         file.
8735         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
8737 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
8739         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
8740         set-torture-options.
8742 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
8744         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
8745         gcc-dg-runtest.
8746         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8747         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
8748         -fno-builtin-acc_on_device instead of -O0.
8749         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
8750         -O0.
8751         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
8752         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
8753         Likewise.
8754         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
8755         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
8756         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
8757         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
8758         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
8759         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
8760         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
8761         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
8762         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
8763         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
8764         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
8765         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
8766         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
8767         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
8768         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
8769         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
8770         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
8771         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
8772         Don't specify -O2.
8773         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
8774         Likewise.
8775         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
8776         Likewise.
8778 2016-03-24  Martin Liska  <mliska@suse.cz>
8780         * plugin/plugin-hsa.c (packet_store_release): New function
8781         that is taken from the HSA runtime manual.
8782         (GOMP_OFFLOAD_run): Use the function.
8784 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
8786         PR c++/70376
8787         * testsuite/libgomp.c++/pr70376.C: New test.
8789 2016-03-23  Tom de Vries  <tom@codesourcery.com>
8791         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
8792         initialization of lresult and lvresult.
8793         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
8795 2016-03-23  James Norris  <jnorris@codesourcery.com>
8796             Daichi Fukuoka <dc-fukuoka@sgi.com>
8798         PR libgomp/69414
8799         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
8800         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
8801         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8802         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
8804 2016-03-23  Martin Liska  <mliska@suse.cz>
8806         PR hsa/70337
8807         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
8808         argument just in case a dispatched kernel uses that argument.
8810 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
8812         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
8813         -ftree-parallelize-loops/-fopenacc changes.
8814         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
8815         Likewise.
8816         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
8817         Likewise.
8818         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
8819         Likewise.
8820         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
8821         Likewise.
8822         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
8823         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
8825 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
8827         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
8828         always_ld_library_path the path to libgcc_s.
8830 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
8832         PR testsuite/70009
8833         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
8835 2016-03-09  Tom de Vries  <tom@codesourcery.com>
8837         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
8838         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
8839         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
8840         Same.
8841         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
8842         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
8843         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
8844         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
8846 2016-03-07  Martin Jambor  <mjambor@suse.cz>
8848         * testsuite/lib/libgomp.exp
8849         (check_effective_target_hsa_offloading_selected_nocache): New.
8850         (check_effective_target_hsa_offloading_selected): Likewise.
8851         * testsuite/libgomp.hsa.c/c.exp: Likewise.
8852         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
8853         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
8854         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
8855         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
8856         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
8857         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
8858         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
8859         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
8860         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
8861         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
8862         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
8863         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
8864         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
8865         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
8866         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
8867         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
8869 2016-03-07  Martin Jambor  <mjambor@suse.cz>
8871         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
8872         non-shared memory accelerators.
8873         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
8874         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
8875         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
8876         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
8877         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
8878         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
8879         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
8880         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
8881         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
8883 2016-03-07  Martin Jambor  <mjambor@suse.cz>
8885         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
8886         ALWAYS_CFLAGS.
8888 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
8890         PR libgomp/69555
8891         * testsuite/libgomp.c++/pr69555-1.C: New test.
8892         * testsuite/libgomp.c++/pr69555-2.C: New test.
8894 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
8895             Martin Jambor  <mjambor@suse.cz>
8897         * testsuite/lib/libgomp.exp
8898         (check_effective_target_offload_device_shared_as): New proc.
8899         * testsuite/libgomp.c++/declare_target-1.C: New test.
8901 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
8903         PR driver/68463
8904         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
8906 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
8908         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
8909         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
8910         dims.
8911         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
8912         -ftree-parallelize-loops/-fopenacc changes.
8913         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
8914         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
8915         Likewise.
8916         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
8917         Likewise.
8918         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
8919         Likewise.
8920         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
8921         Likewise.
8922         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
8923         Likewise.
8924         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
8925         Likewise.
8926         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
8927         Likewise.
8928         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
8929         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
8930         Likewise.
8931         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
8932         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
8933         Likewise.
8934         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
8935         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
8936         Likewise.
8938 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
8940         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
8942 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
8944         PR driver/69805
8945         * testsuite/libgomp.c/pr69805.c: New test.
8947 2016-02-16  Tom de Vries  <tom@codesourcery.com>
8949         PR lto/67709
8950         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
8952 2016-02-09  Tom de Vries  <tom@codesourcery.com>
8954         PR tree-optimization/69599
8955         * testsuite/libgomp.c/omp-nested-3.c: New test.
8956         * testsuite/libgomp.c/pr46032-2.c: New test.
8957         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
8958         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
8960 2016-02-09  Tom de Vries  <tom@codesourcery.com>
8962         PR lto/69707
8963         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
8965 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
8967         * testsuite/libgomp.c/target-31.c: Fix testcase.
8969 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
8971         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
8972         clause.
8973         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
8974         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
8975         reduction and map clauses.
8976         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
8978 2016-02-02  James Norris  <jnorris@codesourcery.com>
8980         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
8982 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
8984         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
8985         * oacc-parallel.c (GOACC_host_data): Remove function definition.
8987         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
8988         cases.
8990         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
8991         variables.
8992         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
8993         (hsa_kmt_lib): Set variables.
8994         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
8995         always_ld_library_path.
8996         * Makefile.in: Regenerate.
8997         * configure: Likewise.
8998         * testsuite/Makefile.in: Likewise.
9000         * plugin/configfrag.ac (offload_additional_options)
9001         (offload_additional_lib_paths): Don't amend for hsa offloading.
9002         * configure: Regenerate.
9004         * plugin/configfrag.ac: Don't configure for offloading target if
9005         we don't build the corresponding plugin.
9006         * configure: Regenerate.
9008 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
9010         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
9011         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
9013 2016-01-26  Tom de Vries  <tom@codesourcery.com>
9015         PR tree-optimization/69110
9016         * testsuite/libgomp.c/pr69110.c: New test.
9018 2016-01-25  Richard Biener  <rguenther@suse.de>
9020         PR lto/69393
9021         * testsuite/libgomp.c++/pr69393.C: New testcase.
9023 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
9025         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
9026         function wasn't mapped to the device with non-shared memory.
9028 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
9030         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
9032 2016-01-19  Martin Jambor  <mjambor@suse.cz>
9033             Martin Liska  <mliska@suse.cz>
9035         * plugin/Makefrag.am: Add HSA plugin requirements.
9036         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
9037         (HSA_RUNTIME_LIB): Likewise.
9038         (HSA_RUNTIME_CPPFLAGS): Likewise.
9039         (HSA_RUNTIME_INCLUDE): New substitution.
9040         (HSA_RUNTIME_LIB): Likewise.
9041         (HSA_RUNTIME_LDFLAGS): Likewise.
9042         (hsa-runtime): New configure option.
9043         (hsa-runtime-include): Likewise.
9044         (hsa-runtime-lib): Likewise.
9045         (PLUGIN_HSA): New substitution variable.
9046         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
9047         configure options.
9048         (PLUGIN_HSA_CPPFLAGS): Likewise.
9049         (PLUGIN_HSA_LDFLAGS): Likewise.
9050         (PLUGIN_HSA_LIBS): Likewise.
9051         Check that we have access to HSA run-time.
9052         * libgomp-plugin.h (offload_target_type): New element
9053         OFFLOAD_TARGET_TYPE_HSA.
9054         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
9055         args.
9056         (bool gomp_create_target_task): Updated.
9057         (gomp_device_descr): Extra parameter of run_func and async_run_func,
9058         new field can_run_func.
9059         * libgomp_g.h (GOMP_target_ext): Update prototype.
9060         * oacc-host.c (host_run): Added a new parameter args.
9061         * target.c (calculate_firstprivate_requirements): New function.
9062         (copy_firstprivate_data): Likewise.
9063         (gomp_target_fallback_firstprivate): Use them.
9064         (gomp_target_unshare_firstprivate): New function.
9065         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
9066         devices.
9067         (GOMP_target): Do host fallback for all shared memory devices.  Do not
9068         pass any args to plugins.
9069         (GOMP_target_ext): Introduce device-specific argument parameter args.
9070         Allow host fallback if device shares memory.  Do not remap data if
9071         device has shared memory.
9072         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
9073         like host fallback for mappings.
9074         (GOMP_target_data): Treat shared memory devices like host fallback.
9075         (GOMP_target_data_ext): Likewise.
9076         (GOMP_target_update): Likewise.
9077         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
9078         gomp_create_target_task.
9079         (GOMP_target_enter_exit_data): Likewise.
9080         (omp_target_alloc): Treat shared memory devices like host fallback.
9081         (omp_target_free): Likewise.
9082         (omp_target_is_present): Likewise.
9083         (omp_target_memcpy): Likewise.
9084         (omp_target_memcpy_rect): Likewise.
9085         (omp_target_associate_ptr): Likewise.
9086         (gomp_load_plugin_for_device): Also load can_run.
9087         * task.c (GOMP_PLUGIN_target_task_completion): Free
9088         firstprivate_copies.
9089         (gomp_create_target_task): Accept new argument args and store it to
9090         ttask.
9091         * plugin/plugin-hsa.c: New file.
9093 2016-01-18  Tom de Vries  <tom@codesourcery.com>
9095         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
9096         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
9097         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
9098         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
9099         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
9100         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
9101         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
9102         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
9103         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
9104         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
9105         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
9106         Same.
9107         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
9108         Same.
9109         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
9110         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
9111         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
9112         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
9113         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
9114         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
9115         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
9116         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
9117         Same.
9118         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
9120 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
9122         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
9124 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
9126         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
9128 2016-01-12  James Norris  <jnorris@codesourcery.com>
9130         * libgomp.texi: Updates for OpenACC.
9132 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
9134         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
9136 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
9138         PR fortran/66680
9139         * testsuite/libgomp.fortran/pr66680.f90: New test.
9141 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
9143         PR middle-end/68960
9144         * testsuite/libgomp.c/pr68960.c: New test.
9146 2016-01-06  Nathan Sidwell  <nathan@acm.org>
9148         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
9149         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
9151 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
9153         Update copyright years.
9155         * libgomp.texi: Bump @copying's copyright year.
9157 2015-12-31  Nathan Sidwell  <nathan@acm.org>
9159         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
9160         dg-additional-options syntax.
9161         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
9162         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
9163         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
9164         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
9165         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
9166         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
9167         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
9168         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
9169         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
9170         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
9171         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
9172         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
9173         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
9174         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
9175         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
9176         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
9177         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
9178         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
9180 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
9182         * libgomp.h (REFCOUNT_LINK): Define.
9183         (struct splay_tree_key_s): Add link_key.
9184         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
9185         Replace target address of the pointer with target address of newly
9186         mapped object in the splay tree.  Set link pointer on target to the
9187         device address of the mapped object.
9188         (gomp_unmap_vars): Restore target address of the pointer in the splay
9189         tree for REFCOUNT_LINK objects after unmapping.
9190         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
9191         declare target link" objects.
9192         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
9193         "omp declare target link" objects, which were mapped for the image.
9194         (gomp_exit_data): Restore target address of the pointer in the splay
9195         tree for REFCOUNT_LINK objects after unmapping.
9196         * testsuite/libgomp.c/target-link-1.c: New file.
9198 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
9200         * libgomp.h (gomp_device_state): New enum.
9201         (struct gomp_device_descr): Replace is_initialized with state.
9202         (gomp_fini_device): Remove declaration.
9203         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
9204         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
9205         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
9206         (acc_set_device_type): Use state instead of is_initialized.
9207         (acc_set_device_num): Likewise.
9208         * target.c (resolve_device): Use state instead of is_initialized.
9209         Do not initialize finalized device.
9210         (gomp_map_vars): Do nothing if device is finalized.
9211         (gomp_unmap_vars): Likewise.
9212         (gomp_update): Likewise.
9213         (GOMP_offload_register_ver): Use state instead of is_initialized.
9214         (GOMP_offload_unregister_ver): Likewise.
9215         (gomp_init_device): Likewise.
9216         (gomp_unload_device): Likewise.
9217         (gomp_fini_device): Remove.
9218         (gomp_get_target_fn_addr): Do nothing if device is finalized.
9219         (GOMP_target): Go to host fallback if device is finalized.
9220         (GOMP_target_ext): Likewise.
9221         (gomp_exit_data): Do nothing if device is finalized.
9222         (gomp_target_task_fn): Go to host fallback if device is finalized.
9223         (gomp_target_fini): New static function.
9224         (gomp_target_init): Use state instead of is_initialized.
9225         Call gomp_target_fini at exit.
9227 2015-12-09  Tom de Vries  <tom@codesourcery.com>
9229         PR tree-optimization/68716
9230         * testsuite/libgomp.c/omp-nested-2.c: New test.
9232 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
9234         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
9235         target openacc_nvidia_accel_selected.
9236         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
9237         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
9238         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
9239         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
9241 2015-12-01  Julian Brown  <julian@codesourcery.com>
9242             James Norris  <James_Norris@mentor.com>
9244         * oacc-parallel.c (GOACC_host_data): New function.
9245         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
9246         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
9247         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
9248         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
9249         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
9250         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
9251         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
9253 2015-11-30  James Norris  <jnorris@codesourcery.com>
9254             Cesar Philippidis  <cesar@codesourcery.com>
9256         libgomp/
9257         * libgomp.oacc-fortran/routine-5.f90: New test.
9258         * libgomp.oacc-fortran/routine-7.f90: New test.
9259         * libgomp.oacc-fortran/routine-9.f90: New test.
9261 2015-11-30  Tom de Vries  <tom@codesourcery.com>
9263         PR tree-optimization/46032
9264         * testsuite/libgomp.c/pr46032.c: New test.
9266 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
9268         PR libgomp/68579
9269         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
9270         (gomp_create_target_task): Call it before freeing
9271         GOMP_TARGET_TASK_DATA tasks.
9273         PR c/63326
9274         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
9275         in between case label and OpenMP standalone directives.
9276         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
9278 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
9280         * configure: Regenerate.
9282 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
9284         * testsuite/libgomp.c/target-35.c: New test.
9286 2015-11-22  James Norris  <jnorris@codesourcery.com>
9287             Cesar Philippidis  <cesar@codesourcery.com>
9289         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
9290         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
9291         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
9292         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
9293         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
9295 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
9297         PR middle-end/68221
9298         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
9299         * testsuite/libgomp.c/reduction-12.c: Likewise.
9300         * testsuite/libgomp.c++/reduction-11.C: Likewise.
9301         * testsuite/libgomp.c++/reduction-12.C: Likewise.
9303 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
9305         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
9306         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
9307         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
9308         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
9309         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
9310         and fix.
9311         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9312         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9314 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
9316         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
9317         worker & gang cases.
9318         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
9320 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
9322         * config/nvptx/priority_queue.c: New file.
9324 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
9326         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
9327         sections.
9329 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
9330             Aldy Hernandez  <aldyh@redhat.com>
9331             Ilya Verbin  <ilya.verbin@intel.com>
9333         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
9334         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
9335         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
9336         iterators or IV by chunk size.
9337         * parallel.c (gomp_resolve_num_threads): Don't assume that
9338         if thr->ts.team is non-NULL, then pool must be non-NULL.
9339         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
9340         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
9341         GOMP_PLUGIN_target_task_completion.
9342         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
9343         * Makefile.in: Regenerate.
9344         * libgomp.h: Shuffle prototypes and forward definitions around so
9345         priority queues can be defined.
9346         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
9347         (enum gomp_target_task_state): New enum.
9348         (struct gomp_target_task): Add state, tgt, task and team fields.
9349         (gomp_create_target_task): Change return type to bool, add
9350         state argument.
9351         (gomp_target_task_fn): Change return type to bool.
9352         (struct gomp_device_descr): Add async_run_func.
9353         (struct gomp_task): Remove children, next_child, prev_child,
9354         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
9355         Add pnode field.
9356         (struct gomp_taskgroup): Remove children.
9357         Add taskgroup_queue.
9358         (struct gomp_team): Change task_queue type to a priority queue.
9359         (splay_compare): Define inline.
9360         (priority_queue_offset): New.
9361         (priority_node_to_task): New.
9362         (task_to_priority_node): New.
9363         * oacc-mem.c: Do not include splay-tree.h.
9364         * priority_queue.c: New file.
9365         * priority_queue.h: New file.
9366         * splay-tree.c: Do not include splay-tree.h.
9367         (splay_tree_foreach_internal): New.
9368         (splay_tree_foreach): New.
9369         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
9370         (splay_tree_callback): Define typedef.
9371         * target.c (splay_compare): Move to libgomp.h.
9372         (GOMP_target): Don't adjust *thr in any way around running offloaded
9373         task.
9374         (GOMP_target_ext): Likewise.  Handle target nowait.
9375         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
9376         return value from gomp_create_target_task, if false, fallthrough
9377         as if no dependencies exist.
9378         (gomp_target_task_fn): Change return type to bool, return true
9379         if the task should have another part scheduled later.  Handle
9380         target nowait.
9381         (gomp_load_plugin_for_device): Initialize async_run.
9382         * task.c (gomp_init_task): Initialize children_queue.
9383         (gomp_clear_parent_in_list): New.
9384         (gomp_clear_parent_in_tree): New.
9385         (gomp_clear_parent): Handle priorities.
9386         (GOMP_task): Likewise.
9387         (priority_queue_move_task_first,
9388         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
9389         New functions.
9390         (gomp_create_target_task): Use priority queues.  Change return type
9391         to bool, add state argument, return false if for async
9392         {{enter,exit} data,update} constructs no dependencies need to be
9393         waited for, handle target nowait.  Set task->fn to NULL instead of
9394         gomp_target_task_fn.
9395         (verify_children_queue): Remove.
9396         (priority_list_upgrade_task): New.
9397         (priority_queue_upgrade_task): New.
9398         (verify_task_queue): Remove.
9399         (priority_list_downgrade_task): New.
9400         (priority_queue_downgrade_task): New.
9401         (gomp_task_run_pre): Use priority queues.
9402         Abstract code out to priority_queue_downgrade_task.
9403         (gomp_task_run_post_handle_dependers): Use priority queues.
9404         (gomp_task_run_post_remove_parent): Likewise.
9405         (gomp_task_run_post_remove_taskgroup): Likewise.
9406         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
9407         tasks specially.
9408         (GOMP_taskwait): Likewise.
9409         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
9410         priority-queue_upgrade_task.
9411         (GOMP_taskgroup_start): Use priority queues.
9412         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
9413         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
9414         barrier.
9415         * taskloop.c (GOMP_taskloop): Handle priorities.
9416         * team.c (gomp_new_team): Call priority_queue_init.
9417         (free_team): Call priority_queue_free.
9418         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
9419         team created for target nowait in implicit parallel region.
9420         (gomp_team_start): For nested check, test thr->ts.level instead of
9421         thr->ts.team != NULL.
9422         * testsuite/libgomp.c/doacross-3.c: New test.
9423         * testsuite/libgomp.c/ordered-5.c: New test.
9424         * testsuite/libgomp.c/priority.c: New test.
9425         * testsuite/libgomp.c/target-31.c: New test.
9426         * testsuite/libgomp.c/target-32.c: New test.
9427         * testsuite/libgomp.c/target-33.c: New test.
9428         * testsuite/libgomp.c/target-34.c: New test.
9430 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
9432         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
9434         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
9435         loop is sequential.
9437 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
9439         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
9440         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
9442 2015-11-12  James Norris  <jnorris@codesourcery.com>
9443             Joseph Myers  <joseph@codesourcery.com>
9445         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
9446         * oacc-parallel.c (GOACC_declare): New function.
9447         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
9448         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
9449         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
9450         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
9451         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
9453 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
9455         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
9457 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
9459         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
9460         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
9462 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
9464         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
9465         inadvertent commit.
9467 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
9469         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
9470         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
9471         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
9472         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
9473         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
9475 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
9477         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
9478         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
9480 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
9481             Ilya Verbin  <ilya.verbin@intel.com>
9483         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
9484         GOMP_loop_nonmonotonic_dynamic_start,
9485         GOMP_loop_nonmonotonic_guided_next,
9486         GOMP_loop_nonmonotonic_guided_start,
9487         GOMP_loop_ull_nonmonotonic_dynamic_next,
9488         GOMP_loop_ull_nonmonotonic_dynamic_start,
9489         GOMP_loop_ull_nonmonotonic_guided_next,
9490         GOMP_loop_ull_nonmonotonic_guided_start,
9491         GOMP_parallel_loop_nonmonotonic_dynamic,
9492         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
9493         (GOMP_target_41): Renamed to ...
9494         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
9495         arguments.
9496         (GOMP_target_data_41): Renamed to ...
9497         (GOMP_target_data_ext): ... this.
9498         (GOMP_target_update_41): Renamed to ...
9499         (GOMP_target_update_ext): ... this.
9500         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
9501         GOMP_target_data_ext and GOMP_target_update_ext instead of
9502         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
9503         Export GOMP_loop_nonmonotonic_dynamic_next,
9504         GOMP_loop_nonmonotonic_dynamic_start,
9505         GOMP_loop_nonmonotonic_guided_next,
9506         GOMP_loop_nonmonotonic_guided_start,
9507         GOMP_loop_ull_nonmonotonic_dynamic_next,
9508         GOMP_loop_ull_nonmonotonic_dynamic_start,
9509         GOMP_loop_ull_nonmonotonic_guided_next,
9510         GOMP_loop_ull_nonmonotonic_guided_start,
9511         GOMP_parallel_loop_nonmonotonic_dynamic and
9512         GOMP_parallel_loop_nonmonotonic_guided.
9513         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
9514         GOMP_parallel_loop_nonmonotonic_guided,
9515         GOMP_loop_nonmonotonic_dynamic_start,
9516         GOMP_loop_nonmonotonic_guided_start,
9517         GOMP_loop_nonmonotonic_dynamic_next,
9518         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
9519         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
9520         GOMP_loop_ull_nonmonotonic_guided_start,
9521         GOMP_loop_ull_nonmonotonic_dynamic_next,
9522         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
9523         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
9524         functions.
9525         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
9526         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
9527         Use gomp_map_val function.
9528         (gomp_target_fallback_firstprivate): New static function.
9529         (GOMP_target_41): Renamed to ...
9530         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
9531         arguments.  Move firstprivate fallback handling into a new
9532         function.
9533         (GOMP_target_data_41): Renamed to ...
9534         (GOMP_target_data_ext): ... this.
9535         (GOMP_target_update_41): Renamed to ...
9536         (GOMP_target_update_ext): ... this.
9537         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
9538         gomp_map_0len_lookup instead of gomp_map_lookup.
9539         (omp_target_is_present): Use gomp_map_0len_lookup instead of
9540         gomp_map_lookup.
9541         * testsuite/libgomp.c/target-28.c: Likewise.
9542         * testsuite/libgomp.c/monotonic-1.c: New test.
9543         * testsuite/libgomp.c/monotonic-2.c: New test.
9544         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
9545         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
9546         * testsuite/libgomp.c/pr66199-5.c: New test.
9547         * testsuite/libgomp.c/pr66199-6.c: New test.
9548         * testsuite/libgomp.c/pr66199-7.c: New test.
9549         * testsuite/libgomp.c/pr66199-8.c: New test.
9550         * testsuite/libgomp.c/pr66199-9.c: New test.
9551         * testsuite/libgomp.c/reduction-11.c: New test.
9552         * testsuite/libgomp.c/reduction-12.c: New test.
9553         * testsuite/libgomp.c/reduction-13.c: New test.
9554         * testsuite/libgomp.c/reduction-14.c: New test.
9555         * testsuite/libgomp.c/reduction-15.c: New test.
9556         * testsuite/libgomp.c/target-12.c (main): Adjust for
9557         omp_target_is_present change for one-past-last element.
9558         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
9559         the same var is both mapped and privatized.
9560         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
9561         handling of zero-length array sections.
9562         * testsuite/libgomp.c/target-28.c: New test.
9563         * testsuite/libgomp.c/target-29.c: New test.
9564         * testsuite/libgomp.c/target-30.c: New test.
9565         * testsuite/libgomp.c/target-teams-1.c: New test.
9566         * testsuite/libgomp.c++/member-6.C: New test.
9567         * testsuite/libgomp.c++/member-7.C: New test.
9568         * testsuite/libgomp.c++/monotonic-1.C: New test.
9569         * testsuite/libgomp.c++/monotonic-2.C: New test.
9570         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
9571         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
9572         * testsuite/libgomp.c++/pr66199-3.C: New test.
9573         * testsuite/libgomp.c++/pr66199-4.C: New test.
9574         * testsuite/libgomp.c++/pr66199-5.C: New test.
9575         * testsuite/libgomp.c++/pr66199-6.C: New test.
9576         * testsuite/libgomp.c++/pr66199-7.C: New test.
9577         * testsuite/libgomp.c++/pr66199-8.C: New test.
9578         * testsuite/libgomp.c++/pr66199-9.C: New test.
9579         * testsuite/libgomp.c++/reduction-11.C: New test.
9580         * testsuite/libgomp.c++/reduction-12.C: New test.
9581         * testsuite/libgomp.c++/target-13.C: New test.
9582         * testsuite/libgomp.c++/target-14.C: New test.
9583         * testsuite/libgomp.c++/target-15.C: New test.
9584         * testsuite/libgomp.c++/target-16.C: New test.
9585         * testsuite/libgomp.c++/target-17.C: New test.
9586         * testsuite/libgomp.c++/target-18.C: New test.
9587         * testsuite/libgomp.c++/target-19.C: New test.
9589 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
9591         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
9592         and reduction copy.
9593         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
9594         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
9595         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
9596         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9597         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
9598         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9599         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
9600         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
9601         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9602         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
9603         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
9604         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
9605         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
9606         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
9608 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
9610         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
9611         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
9612         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
9613         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
9614         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
9615         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
9616         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
9617         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
9619 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
9621         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
9622         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
9623         (GOMP_OFFLOAD_openacc_parallel): Likewise.
9624         * oacc-host.c (host_openacc_exec): Likewise.
9625         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
9627 2015-11-03  Julian Brown  <julian@codesourcery.com>
9628             Thomas Schwinge  <thomas@codesourcery.com>
9630         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
9631         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
9632         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
9633         Likewise.
9634         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
9635         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
9637 2015-11-03  James Norris  <jnorris@codesourcery.com>
9639         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
9640         file.
9641         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
9642         Likewise.
9643         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
9644         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
9645         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
9646         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
9647         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
9649 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
9651         * openacc.h (enum acc_device_t): Reformat. Ensure layout
9652         compatibility.
9653         (enum acc_async_t): Reformat.
9654         (acc_on_device): Declare compatible with builtin and provide C++
9655         wrapper.
9656         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
9658 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
9659             Cesar Philippidis  <cesar@codesourcery.com>
9661         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
9662         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
9663         ... this.  Add a description of the test at the top of the file.
9664         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
9665         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
9666         ... this.  Add a description of the test at the top of the file.
9668 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
9670         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
9671         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
9672         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
9673         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
9674         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
9675         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
9677 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9679         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
9680         dimensions.
9682 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
9684         PR testsuite/68063
9685         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
9687 2015-10-27  James Norris  <jnorris@codesourcery.com>
9689         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
9690         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
9692 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
9694         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
9695         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
9697         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
9698         acc_device_nvidia usage.
9699         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
9700         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
9701         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
9703         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
9704         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
9706         PR libgomp/66518
9707         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
9709         PR libgomp/65437
9710         PR libgomp/66518
9711         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
9712         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
9714 2015-10-23  Tom de Vries  <tom@codesourcery.com>
9716         PR testsuite/68063
9717         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
9719 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
9721         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
9722         vector_length.
9723         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9725 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
9726             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
9728         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
9729         to 0 when mapnum is 0.
9731 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9733         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
9734         Cast to int from int32_t.
9736 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
9737             Aldy Hernandez  <aldyh@redhat.com>
9738             Ilya Verbin  <ilya.verbin@intel.com>
9740         * config/linux/affinity.c (omp_get_place_num_procs,
9741         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
9742         * config/linux/doacross.h: New file.
9743         * config/posix/affinity.c (omp_get_place_num_procs,
9744         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
9745         * config/posix/doacross.h: New file.
9746         * env.c: Include gomp-constants.h.
9747         (struct gomp_task_icv): Rename run_sched_modifier to
9748         run_sched_chunk_size.
9749         (gomp_max_task_priority_var): New variable.
9750         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
9751         (handle_omp_display_env): Change _OPENMP value from 201307 to
9752         201511.  Print OMP_MAX_TASK_PRIORITY.
9753         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
9754         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
9755         chunk_size and run_sched_modifier to run_sched_chunk_size.
9756         (omp_get_max_task_priority, omp_get_initial_device,
9757         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
9758         omp_get_partition_place_nums): New functions.
9759         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
9760         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
9761         to chunk_size.
9762         (omp_get_num_places_, omp_get_place_num_procs_,
9763         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
9764         omp_get_place_proc_ids_8_, omp_get_place_num_,
9765         omp_get_partition_num_places_, omp_get_partition_place_nums_,
9766         omp_get_partition_place_nums_8_, omp_get_initial_device_,
9767         omp_get_max_task_priority_): New functions.
9768         * libgomp_g.h (GOMP_loop_doacross_static_start,
9769         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
9770         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
9771         GOMP_loop_ull_doacross_dynamic_start,
9772         GOMP_loop_ull_doacross_guided_start,
9773         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
9774         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
9775         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
9776         GOMP_target_data_41, GOMP_target_update_41,
9777         GOMP_target_enter_exit_data): New prototypes.
9778         (GOMP_task): Add prototype argument.
9779         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
9780         (struct gomp_doacross_work_share): New type.
9781         (struct gomp_work_share): Add doacross field.
9782         (struct gomp_task_icv): Rename run_sched_modifier to
9783         run_sched_chunk_size.
9784         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
9785         GOMP_TASK_UNDEFERRED.  Add comments.
9786         (struct gomp_task_depend_entry): Add comments.
9787         (struct gomp_task): Likewise.
9788         (struct gomp_taskgroup): Likewise.
9789         (struct gomp_target_task): New type.
9790         (struct gomp_team): Add comment.
9791         (gomp_get_place_proc_ids_8, gomp_doacross_init,
9792         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
9793         gomp_create_target_task, gomp_target_task_fn): New prototypes.
9794         (struct target_var_desc): New type.
9795         (struct target_mem_desc): Adjust comment.  Use struct
9796         target_var_desc instead of splay_tree_key for list.
9797         (REFCOUNT_INFINITY): Define.
9798         (struct splay_tree_key_s): Remove copy_from field.
9799         (struct gomp_device_descr): Add dev2dev_func field.
9800         (enum gomp_map_vars_kind): New enum.
9801         (gomp_map_vars): Add one argument.
9802         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
9803         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
9804         omp_get_place_num_procs, omp_get_place_num_procs_,
9805         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
9806         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
9807         omp_get_place_num_, omp_get_partition_num_places,
9808         omp_get_partition_num_places_, omp_get_partition_place_nums,
9809         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
9810         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
9811         omp_target_free, omp_target_is_present, omp_target_memcpy,
9812         omp_target_memcpy_rect, omp_target_associate_ptr and
9813         omp_target_disassociate_ptr.
9814         (GOMP_4.0.2): Renamed to ...
9815         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
9816         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
9817         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
9818         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
9819         GOMP_loop_doacross_static_start, GOMP_doacross_post,
9820         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
9821         GOMP_loop_ull_doacross_guided_start,
9822         GOMP_loop_ull_doacross_runtime_start,
9823         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
9824         GOMP_doacross_ull_wait.
9825         * libgomp.texi: Document omp_get_max_task_priority.
9826         Rename modifier argument to chunk_size for omp_set_schedule and
9827         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
9828         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
9829         to run_sched_chunk_size renaming.
9830         (GOMP_loop_ordered_runtime_start): Likewise.
9831         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
9832         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
9833         GOMP_parallel_loop_runtime_start): New functions.
9834         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
9835         to run_sched_chunk_size renaming.
9836         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
9837         GOMP_loop_doacross_guided_start): New functions or aliases.
9838         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
9839         run_sched_modifier to run_sched_chunk_size renaming.
9840         (GOMP_loop_ull_ordered_runtime_start): Likewise.
9841         (gomp_loop_ull_doacross_static_start,
9842         gomp_loop_ull_doacross_dynamic_start,
9843         gomp_loop_ull_doacross_guided_start,
9844         GOMP_loop_ull_doacross_runtime_start): New functions.
9845         (GOMP_loop_ull_doacross_static_start,
9846         GOMP_loop_ull_doacross_dynamic_start,
9847         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
9848         * oacc-mem.c (acc_map_data, present_create_copy,
9849         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
9850         to gomp_map_vars.
9851         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
9852         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
9853         instead of false to gomp_map_vars.
9854         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
9855         * omp.h.in (omp_lock_hint_t): New type.
9856         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
9857         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
9858         omp_get_place_num, omp_get_partition_num_places,
9859         omp_get_partition_place_nums, omp_get_initial_device,
9860         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
9861         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
9862         omp_target_associate_ptr, omp_target_disassociate_ptr): New
9863         prototypes.
9864         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
9865         (omp_lock_hint_none, omp_lock_hint_uncontended,
9866         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
9867         omp_lock_hint_speculative): New parameters.
9868         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
9869         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
9870         omp_get_place_num, omp_get_partition_num_places,
9871         omp_get_partition_place_nums, omp_get_initial_device,
9872         omp_get_max_task_priority): New interfaces.
9873         (omp_set_schedule, omp_get_schedule): Rename modifier argument
9874         to chunk_size.
9875         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
9876         (omp_lock_hint_none, omp_lock_hint_uncontended,
9877         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
9878         omp_lock_hint_speculative): New parameters.
9879         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
9880         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
9881         omp_get_place_num, omp_get_partition_num_places,
9882         omp_get_partition_place_nums, omp_get_initial_device,
9883         omp_get_max_task_priority): New functions and subroutines.
9884         * ordered.c: Include stdarg.h and string.h.
9885         (MAX_COLLAPSED_BITS): Define.
9886         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
9887         gomp_doacross_ull_init, GOMP_doacross_ull_post,
9888         GOMP_doacross_ull_wait): New functions.
9889         * target.c: Include errno.h.
9890         (resolve_device): If device is not initialized, call
9891         gomp_init_device on it.
9892         (gomp_map_lookup): New function.
9893         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
9894         Don't bump refcount if REFCOUNT_INFINITY.  Handle
9895         GOMP_MAP_ALWAYS_TO_P.
9896         (get_kind): Rename is_openacc argument to short_mapkind.
9897         (gomp_map_pointer): Use gomp_map_lookup.
9898         (gomp_map_fields_existing): New function.
9899         (gomp_map_vars): Rename is_openacc argument to short_mapkind
9900         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
9901         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
9902         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
9903         Adjust for tgt->list changed type and copy_from living in there.
9904         (gomp_copy_from_async): Adjust for tgt->list changed type and
9905         copy_from living in there.
9906         (gomp_unmap_vars): Likewise.
9907         (gomp_update): Likewise.  Rename is_openacc argument to
9908         short_mapkind.  Don't fail if object is not mapped.
9909         (gomp_load_image_to_device): Initialize refcount to
9910         REFCOUNT_INFINITY.
9911         (gomp_target_fallback): New function.
9912         (gomp_get_target_fn_addr): Likewise.
9913         (GOMP_target): Adjust gomp_map_vars caller, use
9914         gomp_get_target_fn_addr and gomp_target_fallback.
9915         (GOMP_target_41): New function.
9916         (gomp_target_data_fallback): New function.
9917         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
9918         (GOMP_target_data_41): New function.
9919         (GOMP_target_update): Adjust gomp_update caller.
9920         (GOMP_target_update_41): New function.
9921         (gomp_exit_data, GOMP_target_enter_exit_data,
9922         gomp_target_task_fn, omp_target_alloc, omp_target_free,
9923         omp_target_is_present, omp_target_memcpy,
9924         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
9925         omp_target_associate_ptr, omp_target_disassociate_ptr,
9926         gomp_load_plugin_for_device): New functions.
9927         * task.c: Include gomp-constants.h.  Include taskloop.c
9928         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
9929         (gomp_task_handle_depend): New function.
9930         (GOMP_task): Use it.  Add priority argument.  Use
9931         gomp-constant.h constants instead of hardcoded numbers.
9932         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
9933         (gomp_create_target_task): New function.
9934         (verify_children_queue, verify_taskgroup_queue,
9935         verify_task_queue): New functions.
9936         (gomp_task_run_pre): Call verify_*_queue functions.
9937         If an upcoming tied task is about to leave the sibling or
9938         taskgroup queues in an invalid state, adjust appropriately.
9939         Remove taskgroup argument.  Add comments.
9940         (gomp_task_run_post_handle_dependers): Add comments.
9941         (gomp_task_run_post_remove_parent): Likewise.
9942         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
9943         (GOMP_taskwait): Likewise.  Add comments.
9944         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
9945         problem such that the first non parent_depends_on task does not
9946         end up at the end of the children queue.
9947         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
9948         GOMP_TASK_UNDEFERRED.
9949         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
9950         * taskloop.c: New file.
9951         * testsuite/lib/libgomp.exp
9952         (check_effective_target_offload_device_nonshared_as): New proc.
9953         * testsuite/libgomp.c/affinity-2.c: New test.
9954         * testsuite/libgomp.c/doacross-1.c: New test.
9955         * testsuite/libgomp.c/doacross-2.c: New test.
9956         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
9957         Add map clause to target.
9958         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
9959         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
9960         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
9961         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
9962         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
9963         Likewise.
9964         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
9965         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
9966         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
9967         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
9968         not defined.  Use those where needed.
9969         * testsuite/libgomp.c/for-4.c: New test.
9970         * testsuite/libgomp.c/for-5.c: New test.
9971         * testsuite/libgomp.c/for-6.c: New test.
9972         * testsuite/libgomp.c/linear-1.c: New test.
9973         * testsuite/libgomp.c/ordered-4.c: New test.
9974         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
9975         only allowed on the loop iterator.
9976         * testsuite/libgomp.c/pr66199-3.c: New test.
9977         * testsuite/libgomp.c/pr66199-4.c: New test.
9978         * testsuite/libgomp.c/reduction-7.c: New test.
9979         * testsuite/libgomp.c/reduction-8.c: New test.
9980         * testsuite/libgomp.c/reduction-9.c: New test.
9981         * testsuite/libgomp.c/reduction-10.c: New test.
9982         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
9983         map(tofrom:s).
9984         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
9985         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
9986         * testsuite/libgomp.c/target-11.c: New test.
9987         * testsuite/libgomp.c/target-12.c: New test.
9988         * testsuite/libgomp.c/target-13.c: New test.
9989         * testsuite/libgomp.c/target-14.c: New test.
9990         * testsuite/libgomp.c/target-15.c: New test.
9991         * testsuite/libgomp.c/target-16.c: New test.
9992         * testsuite/libgomp.c/target-17.c: New test.
9993         * testsuite/libgomp.c/target-18.c: New test.
9994         * testsuite/libgomp.c/target-19.c: New test.
9995         * testsuite/libgomp.c/target-20.c: New test.
9996         * testsuite/libgomp.c/target-21.c: New test.
9997         * testsuite/libgomp.c/target-22.c: New test.
9998         * testsuite/libgomp.c/target-23.c: New test.
9999         * testsuite/libgomp.c/target-24.c: New test.
10000         * testsuite/libgomp.c/target-25.c: New test.
10001         * testsuite/libgomp.c/target-26.c: New test.
10002         * testsuite/libgomp.c/target-27.c: New test.
10003         * testsuite/libgomp.c/taskloop-1.c: New test.
10004         * testsuite/libgomp.c/taskloop-2.c: New test.
10005         * testsuite/libgomp.c/taskloop-3.c: New test.
10006         * testsuite/libgomp.c/taskloop-4.c: New test.
10007         * testsuite/libgomp.c++/ctor-13.C: New test.
10008         * testsuite/libgomp.c++/doacross-1.C: New test.
10009         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
10010         Replace offload_device with offload_device_nonshared_as.
10011         * testsuite/libgomp.c++/for-12.C: New test.
10012         * testsuite/libgomp.c++/for-13.C: New test.
10013         * testsuite/libgomp.c++/for-14.C: New test.
10014         * testsuite/libgomp.c++/linear-1.C: New test.
10015         * testsuite/libgomp.c++/member-1.C: New test.
10016         * testsuite/libgomp.c++/member-2.C: New test.
10017         * testsuite/libgomp.c++/member-3.C: New test.
10018         * testsuite/libgomp.c++/member-4.C: New test.
10019         * testsuite/libgomp.c++/member-5.C: New test.
10020         * testsuite/libgomp.c++/ordered-1.C: New test.
10021         * testsuite/libgomp.c++/reduction-5.C: New test.
10022         * testsuite/libgomp.c++/reduction-6.C: New test.
10023         * testsuite/libgomp.c++/reduction-7.C: New test.
10024         * testsuite/libgomp.c++/reduction-8.C: New test.
10025         * testsuite/libgomp.c++/reduction-9.C: New test.
10026         * testsuite/libgomp.c++/reduction-10.C: New test.
10027         * testsuite/libgomp.c++/reference-1.C: New test.
10028         * testsuite/libgomp.c++/simd14.C: New test.
10029         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
10030         * testsuite/libgomp.c++/target-5.C: New test.
10031         * testsuite/libgomp.c++/target-6.C: New test.
10032         * testsuite/libgomp.c++/target-7.C: New test.
10033         * testsuite/libgomp.c++/target-8.C: New test.
10034         * testsuite/libgomp.c++/target-9.C: New test.
10035         * testsuite/libgomp.c++/target-10.C: New test.
10036         * testsuite/libgomp.c++/target-11.C: New test.
10037         * testsuite/libgomp.c++/target-12.C: New test.
10038         * testsuite/libgomp.c++/taskloop-1.C: New test.
10039         * testsuite/libgomp.c++/taskloop-2.C: New test.
10040         * testsuite/libgomp.c++/taskloop-3.C: New test.
10041         * testsuite/libgomp.c++/taskloop-4.C: New test.
10042         * testsuite/libgomp.c++/taskloop-5.C: New test.
10043         * testsuite/libgomp.c++/taskloop-6.C: New test.
10044         * testsuite/libgomp.c++/taskloop-7.C: New test.
10045         * testsuite/libgomp.c++/taskloop-8.C: New test.
10046         * testsuite/libgomp.c++/taskloop-9.C: New test.
10047         * testsuite/libgomp.fortran/affinity1.f90: New test.
10048         * testsuite/libgomp.fortran/affinity2.f90: New test.
10050 2015-10-13  Tom de Vries  <tom@codesourcery.com>
10052         PR tree-optimization/67476
10053         * testsuite/libgomp.c/autopar-3.c: New test.
10054         * testsuite/libgomp.c/autopar-4.c: New test.
10055         * testsuite/libgomp.c/autopar-5.c: New test.
10056         * testsuite/libgomp.c/autopar-6.c: New test.
10057         * testsuite/libgomp.c/autopar-7.c: New test.
10058         * testsuite/libgomp.c/autopar-8.c: New test.
10060 2015-10-12  James Norris  <jnorris@codesourcery.com>
10062         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
10063         initializer.
10065 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
10067         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
10068         using load_gcc_lib.
10070 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
10072         * oacc-ptx.h: Remove file, moving its content into...
10073         * config/nvptx/fortran.c: ... here...
10074         * config/nvptx/oacc-init.c: ..., here...
10075         * config/nvptx/oacc-parallel.c: ..., and here.
10076         * config/nvptx/openacc.f90: New file.
10077         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
10078         (link_ptx): Don't link in predefined bits of PTX code.
10080 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
10081             Bernd Schmidt <bernds@codesourcery.com>
10083         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
10084         (struct targ_ptx_obj): New.
10085         (nvptx_tdata): Move earlier, change data format.
10086         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
10087         objects.
10088         (GOMP_OFFLOAD_load_image): Adjust.
10090 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
10092         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
10093         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
10094         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
10095         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
10096         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10097         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10098         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10099         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10100         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10101         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10102         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10103         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
10104         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
10105         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10106         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
10107         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
10108         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
10109         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
10110         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
10111         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
10112         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
10113         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10114         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
10115         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
10116         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
10117         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
10118         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
10119         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
10120         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
10121         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
10122         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
10123         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
10124         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
10125         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
10126         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10127         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
10128         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
10129         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
10130         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
10131         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
10132         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
10133         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
10134         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
10135         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
10136         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
10137         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
10138         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
10139         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
10140         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
10141         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
10142         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
10143         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
10144         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
10145         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
10146         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
10147         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10148         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10149         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10150         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10151         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10152         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10153         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10154         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10156 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
10158         * oacc-init.c (acc_on_device): Force optimization level.
10160 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
10162         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
10163         (cuda_errlist): Delete.
10164         (cuda_error): Reimplement.
10166 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
10168         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
10169         array.
10170         * libgomp.map (GOACC_parallel_keyed): New.
10171         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
10172         all callers.
10173         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
10174         and take keyed varargs list.  Adjust call to exec_func.
10175         (GOACC_parallel): Force host fallback.
10176         * libgomp_g.h (GOACC_parallel): Remove.
10177         (GOACC_parallel_keyed): Declare.
10178         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
10179         (struct targ_gn_descriptor): Replace name field with launch field.
10180         (nvptx_exec): Lose separate geometry args, take array.  Process
10181         dynamic dimensions and adjust.
10182         (struct nvptx_tdata): Replace fn_names field with fn_descs.
10183         (GOMP_OFFLOAD_load_image): Adjust for change in function table
10184         data.
10185         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
10186         passing.
10187         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
10188         passing.
10190 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
10192         PR libgomp/67141
10193         * oacc-int.h (goacc_host_init): Add declaration.
10194         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
10195         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
10197 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
10198             Sebastian Pop  <s.pop@samsung.com>
10200         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
10201         match o/p.
10202         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
10203         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
10204         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
10205         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
10206         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
10208 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
10210         * configure.tgt: Add missing ;; in between nvptx and rtems
10211         snippets.
10213 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10215         * config/posix/pool.h (gomp_adjust_thread_attr): New.
10216         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
10217         (gomp_thread_pool_reservoir): Add priority member.
10218         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
10219         priority.
10220         (parse_thread_pools): Likewise.
10221         * team.c (gomp_team_start): Call configuration provided
10222         gomp_adjust_thread_attr(). Destroy thread attributes if
10223         necessary.
10224         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
10226 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10228         * config/posix/pool.h: New.
10229         * config/rtems/pool.h: Likewise.
10230         * config/rtems/proc.c: Likewise.
10231         * libgomp.h (gomp_thread_destructor): Declare.
10232         * team.c: Include configuration provided "pool.h".
10233         (gomp_get_thread_pool): Define in configuration.
10234         (gomp_team_end): Call configuration defined
10235         gomp_release_thread_pool().
10237 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10239         * config/rtems/bar.c: New.
10240         * config/rtems/bar.h: Likewise.
10241         * config/rtems/mutex.c: Likewise.
10242         * config/rtems/mutex.h: Likewise.
10243         * config/rtems/sem.c: Likewise.
10244         * config/rtems/sem.h: Likewise.
10245         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
10246         <sys/lock.h> header file.
10247         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
10248         supported by Newlib.
10249         * configure: Regenerate.
10251 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10253         * team.c (gomp_new_thread_pool): Delete and move content to ...
10254         (gomp_get_thread_pool): ... new function.  Allocate and
10255         initialize thread pool on demand.
10256         (get_last_team): Use gomp_get_thread_pool().
10257         (gomp_team_start): Delete thread pool initialization.
10259 2015-09-03  Tom de Vries  <tom@codesourcery.com>
10261         PR tree-optimization/65637
10262         * testsuite/libgomp.c/autopar-2.c: New test.
10264 2015-08-29  Tom de Vries  <tom@codesourcery.com>
10266         PR tree-optimization/46193
10267         * testsuite/libgomp.c/pr46193.c: New test.
10269 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
10271         libgomp/
10272         * libgomp.map: Add 4.0.2 version.
10273         * target.c (offload_image_descr): Add version field.
10274         (gomp_load_image_to_device): Add version argument.  Adjust plugin
10275         call.  Improve load mismatch diagnostic.
10276         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
10277         call.
10278         (GOMP_offload_regster): Make stub function, move bulk to ...
10279         (GOMP_offload_register_ver): ... here.  Process version argument.
10280         (GOMP_offload_unregister): Make stub function, move bulk to ...
10281         (GOMP_offload_unregister_ver): ... here.  Process version argument.
10282         (gomp_init_device): Process version field.
10283         (gomp_unload_device): Process version field.
10284         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
10285         macros.  Check plugin version.
10286         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
10287         loader and unloader types.
10288         * oacc-host.c: Include gomp-constants.h.
10289         (host_version): New.
10290         (host_load_image, host_unload_image): Adjust.
10291         (host_dispatch): Add host_version.
10292         * plugin/plugin-nvptx.c: Include gomp-constants.h.
10293         (GOMP_OFFLOAD_version): New.
10294         (GOMP_OFFLOAD_load_image): Add version arg and check it.
10295         (GOMP_OFFLOAD_unload_image): Likewise.
10296         * plugin/plugin-host.c: Include gomp-constants.h.
10297         (GOMP_OFFLOAD_version): New.
10298         (GOMP_OFFLOAD_load_image): Add version arg.
10299         (GOMP_OFFLOAD_unload_image): Likewise.
10301 2015-08-24  Tom de Vries  <tom@codesourcery.com>
10303         PR tree-optimization/65468
10304         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
10306 2015-08-24  Tom de Vries  <tom@codesourcery.com>
10308         PR tree-optimization/65468
10309         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
10311 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
10313         PR libgomp/66761
10314         PR libgomp/67303
10315         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
10316         (gomp_iter_guided_next): Idem.
10317         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
10318         (gomp_iter_ull_guided_next): Idem.
10319         * config/linux/wait.h (do_spin): Idem.
10321 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
10323         * libgomp-plugin.h (enum offload_target_type): Remove
10324         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
10325         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
10326         * openacc.h (enum acc_device_t): Likewise.
10327         * openacc_lib.h: Likewise.
10328         * oacc-init.c (name_of_acc_device_t): Don't handle it.
10329         (acc_on_device): Just use __builtin_acc_on_device.
10330         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
10331         of acc_on_device builtin.
10332         * plugin/plugin-host.h: Remove file.
10333         * plugin/plugin-host.c: Likewise, but salvage some content into...
10334         * oacc-host.c: ... this file.
10335         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
10336         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
10337         * Makefile.in: Regenerate.
10338         * configure: Likewise.
10339         * testsuite/lib/libgomp.exp
10340         (check_effective_target_openacc_host_nonshm_selected): Remove.
10341         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
10342         ACC_DEVICE_TYPE=host_nonshm.
10343         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10344         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10345         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
10346         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
10347         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
10348         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
10350 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
10351             Jakub Jelinek  <jakub@redhat.com>
10353         * config/nvptx/affinity.c: New file.
10354         * config/nvptx/alloc.c: Likewise.
10355         * config/nvptx/bar.c: Likewise.
10356         * config/nvptx/barrier.c: Likewise.
10357         * config/nvptx/critical.c: Likewise.
10358         * config/nvptx/env.c: Likewise.
10359         * config/nvptx/error.c: Likewise.
10360         * config/nvptx/fortran.c: Likewise.
10361         * config/nvptx/iter.c: Likewise.
10362         * config/nvptx/iter_ull.c: Likewise.
10363         * config/nvptx/libgomp-plugin.c: Likewise.
10364         * config/nvptx/lock.c: Likewise.
10365         * config/nvptx/loop.c: Likewise.
10366         * config/nvptx/loop_ull.c: Likewise.
10367         * config/nvptx/mutex.c: Likewise.
10368         * config/nvptx/oacc-async.c: Likewise.
10369         * config/nvptx/oacc-cuda.c: Likewise.
10370         * config/nvptx/oacc-host.c: Likewise.
10371         * config/nvptx/oacc-init.c: Likewise.
10372         * config/nvptx/oacc-mem.c: Likewise.
10373         * config/nvptx/oacc-parallel.c: Likewise.
10374         * config/nvptx/oacc-plugin.c: Likewise.
10375         * config/nvptx/omp-lock.h: Likewise.
10376         * config/nvptx/ordered.c: Likewise.
10377         * config/nvptx/parallel.c: Likewise.
10378         * config/nvptx/proc.c: Likewise.
10379         * config/nvptx/ptrlock.c: Likewise.
10380         * config/nvptx/sections.c: Likewise.
10381         * config/nvptx/sem.c: Likewise.
10382         * config/nvptx/single.c: Likewise.
10383         * config/nvptx/splay-tree.c: Likewise.
10384         * config/nvptx/target.c: Likewise.
10385         * config/nvptx/task.c: Likewise.
10386         * config/nvptx/team.c: Likewise.
10387         * config/nvptx/time.c: Likewise.
10388         * config/nvptx/work.c: Likewise.
10389         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
10390         * configure: Regenerate.
10391         * configure.tgt (config_path): Set to "nvptx" for target
10392         nvptx*-*-*.
10394 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
10396         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
10398 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
10400         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
10401         (cuda_errlist): Constify.
10402         (errmsg):  Move into ...
10403         (cuda_error): ... here.  Make smaller.
10404         (_XSTR, _STR): Delete.
10405         (cuda_synames): Delete.
10406         (verify_device_library): Delete.
10407         (nvptx_init): Don't call it.
10409 2015-07-28  Tom de Vries  <tom@codesourcery.com>
10411         * testsuite/libgomp.c/uns-outer-4.c: New test.
10413 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
10415         * testsuite/libgomp.c/pr66714.c: New test.
10417 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10419         PR libgomp/66950
10420         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
10421         (fib_ref): New function.
10422         (fib): Correct corner cases in the recursion.
10423         (main): Replace the non-simd loop with fib_ref call.
10424         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
10425         subroutine.
10426         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
10427         for the last array element value.  Replace the non-simd loop with
10428         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
10429         of the last array element with according Fibonacci sequence element.
10430         (fib): Correct corner cases in the recursion.
10432 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
10434         * target.c (gomp_offload_image_to_device): Rename to ...
10435         (gomp_load_image_to_device): ... here.
10436         (GOMP_offload_register): Adjust call.
10437         (gomp_init_device): Likewise.
10438         (gomp_unload_image_from_device): New.  Broken out of ...
10439         (GOMP_offload_unregister): ... here.  Call it.
10440         (gomp_unload_device): New.
10441         * libgomp.h (gomp_unload_device): Declare.
10442         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
10443         mem maps.
10445 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
10447         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
10448         wait=-specific if.
10449         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
10450         !=0 condition.
10451         (goacc_waits): Move !num_waits handling to ...
10452         (GOACC_wait): ... here, the only caller that might have zero waits.
10454         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
10455         (struct ptx_image_data): Move earlier, add fns field.
10456         (struct ptx_device): Add images and image_lock fields.
10457         (ptx_images, ptx_image_lock): Delete.
10458         (nvptx_open_device): Initialize images and image_lock fields.
10459         (nvptx_close_device): Destroy image_lock.
10460         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
10461         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
10462         fields.
10464 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
10466         * target.c (GOMP_offload_register): Use int for device type arg.
10467         (GOMP_offload_unregister): Likewise.
10469         * target.c (struct_offload_image_descr): Constify host_table.
10470         (gomp_offload_image_to_device): Likewise.
10471         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
10473         * libgomp.h (gomp_device_descr): Constify target data arguments.
10474         * target.c (struct offload_image_descr): Constify target_data.
10475         (gomp_offload_image_to_device): Likewise.
10476         (GOMP_offload_register): Likewise.
10477         (GOMP_offload_unregister): Likewise.
10478         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
10479         GOMP_OFFLOAD_unload_image): Constify target data.
10480         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
10481         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
10483 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
10485         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
10486         Workaround driver library const error.
10487         (struct nvptx_tdata, nvptx_tdata_t): New.
10488         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
10489         type.
10491 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10493         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
10494         of EPS parameter from integer to real.
10495         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
10496         type of EPS parameter from integer to real.
10498 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10500         * team.c (get_last_team): New.
10501         (gomp_new_team): Recycle last non-nested team if possible.
10502         (gomp_team_end): Move team work share list free lock destruction
10503         to ...
10504         (free_team): ... here.
10506 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10508         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
10509         and ref from int to double.  Replaced their comparison with
10510         an inequality of their difference and EPS.
10511         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
10512         comparison of pri and a reference number with an inequality of their
10513         difference and EPS.
10514         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
10515         the comparison of sum and sum_ref with an inequality of their
10516         difference and EPS.
10517         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
10518         the comparison of pri and a reference number with an inequality of
10519         their difference and EPS.
10521 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10523         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
10524         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
10525         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
10526         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
10527         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
10528         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
10529         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
10530         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
10531         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
10532         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
10533         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
10534         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
10535         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
10536         variables.
10537         (vec_mult): Likewise.  Add #pragma omp taskwait.
10538         (main): Adjust caller.
10539         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
10540         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
10541         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
10542         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
10543         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
10544         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
10545         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
10546         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
10547         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
10548         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
10549         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
10550         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
10551         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
10552         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
10553         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
10554         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
10555         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
10556         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
10557         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
10558         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
10559         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
10560         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
10561         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
10562         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
10563         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
10564         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
10565         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
10566         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
10567         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
10568         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
10569         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
10570         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
10571         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
10572         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
10573         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
10574         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
10575         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
10576         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
10577         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
10578         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
10579         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
10580         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
10581         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
10582         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
10583         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
10584         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
10585         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
10586         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
10587         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
10588         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
10589         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
10590         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
10591         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
10592         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
10593         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
10594         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
10595         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
10596         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
10597         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
10598         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
10599         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
10600         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
10601         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
10602         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
10603         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
10604         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
10605         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
10606         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
10607         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
10608         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
10609         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
10610         (vec_mult): Add !$omp taskwait.
10611         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
10612         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
10613         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
10614         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
10615         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
10616         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
10617         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
10618         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
10619         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
10620         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
10621         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
10622         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
10623         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
10624         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
10625         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
10626         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
10627         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
10628         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
10629         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
10630         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
10631         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
10632         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
10633         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
10634         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
10635         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
10636         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
10637         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
10638         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
10639         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
10640         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
10641         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
10642         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
10643         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
10644         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
10645         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
10646         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
10647         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
10648         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
10649         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
10650         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
10651         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
10652         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
10653         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
10654         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
10655         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
10656         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
10657         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
10658         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
10659         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
10660         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
10661         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
10662         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
10663         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
10664         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
10665         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
10666         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
10667         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
10668         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
10669         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
10670         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
10671         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
10672         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
10673         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
10674         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
10675         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
10676         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
10677         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
10679 2015-07-10  Tom de Vries  <tom@codesourcery.com>
10681         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
10682         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
10684 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
10686         PR libgomp/65099
10687         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
10688         in a 64-bit configuration.
10689         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
10690         offloading testing if no such device is available.
10691         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10692         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10694 2015-07-08  Tom de Vries  <tom@codesourcery.com>
10696         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
10697         second call to f.
10698         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10700 2015-07-07  Tom de Vries  <tom@codesourcery.com>
10702         PR tree-optimization/66642
10703         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
10704         iteration count case.
10705         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
10706         function, factor out of ...
10707         (main): ... here.  Test low iteration count case.
10709 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10711         * libgomp.h (gomp_thread_pool): Comment last_team field.
10713 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
10715         * testsuite/libgomp.c++/pr66702-1.C: Require
10716         vect_simd_clones effective target.
10717         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
10719 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10721         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
10722         already set.  Use DEFAULT_CFLAGS in dg-runtest.
10723         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
10724         "-O2".
10726 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10728         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
10729         already set.  Use DEFAULT_CFLAGS in dg-runtest.
10730         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
10731         * testsuite/libgomp.c++/pr64824.C: Same.
10732         * testsuite/libgomp.c++/pr64868.C: Same.
10733         * testsuite/libgomp.c++/pr66199-1.C: Same.
10734         * testsuite/libgomp.c++/pr66199-2.C: Same.
10735         * testsuite/libgomp.c++/target-2.C: Same.
10736         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
10737         -std=<standard> option.
10738         * testsuite/libgomp.c++/udr-11.C: Same.
10739         * testsuite/libgomp.c++/udr-12.C: Same.
10740         * testsuite/libgomp.c++/udr-13.C: Same.
10741         * testsuite/libgomp.c++/udr-14.C: Same.
10742         * testsuite/libgomp.c++/udr-15.C: Same.
10743         * testsuite/libgomp.c++/udr-16.C: Same.
10744         * testsuite/libgomp.c++/udr-17.C: Same.
10745         * testsuite/libgomp.c++/udr-18.C: Same.
10746         * testsuite/libgomp.c++/udr-19.C: Same.
10747         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
10748         * testsuite/libgomp.c++/simd-1.C: Same.
10749         * testsuite/libgomp.c++/simd-2.C: Same.
10750         * testsuite/libgomp.c++/simd-3.C: Same.
10751         * testsuite/libgomp.c++/simd-4.C: Same.
10752         * testsuite/libgomp.c++/simd-5.C: Same.
10753         * testsuite/libgomp.c++/simd-6.C: Same.
10754         * testsuite/libgomp.c++/simd-7.C: Same.
10755         * testsuite/libgomp.c++/simd-8.C: Same.
10756         * testsuite/libgomp.c++/simd-9.C: Same.
10757         * testsuite/libgomp.c++/simd10.C: Same.
10758         * testsuite/libgomp.c++/simd11.C: Same.
10759         * testsuite/libgomp.c++/simd12.C: Same.
10760         * testsuite/libgomp.c++/simd13.C: Same.
10762 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
10764         PR middle-end/66702
10765         * testsuite/libgomp.c++/pr66702-1.C: New test.
10766         * testsuite/libgomp.c++/pr66702-2.C: New test.
10768 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10770         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
10771         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
10772         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
10773         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
10775 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10777         PR tree-optimization/66652
10778         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
10779         using restrict pointers.
10780         (main): Add arguments to calls to f.
10781         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10783 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
10785         * configure.ac: Fix check for header <sys/sysctl.h>.
10786         * configure: Regenerate.
10787         * config.h.in: Likewise.
10789 2015-06-23  Tom de Vries  <tom@codesourcery.com>
10791         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
10792         abort.
10793         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
10795 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
10797         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
10798         acc_device_nvidia.
10800         PR libgomp/66518
10801         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
10802         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10804 2015-06-15  Tom de Vries  <tom@codesourcery.com>
10806         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
10807         dg-additional-options for any remaining options.
10808         * testsuite/libgomp.c/atomic-2.c: Same.
10809         * testsuite/libgomp.c/atomic-4.c: Same.
10810         * testsuite/libgomp.c/atomic-5.c: Same.
10811         * testsuite/libgomp.c/atomic-6.c: Same.
10812         * testsuite/libgomp.c/autopar-1.c: Same.
10813         * testsuite/libgomp.c/copyin-1.c: Same.
10814         * testsuite/libgomp.c/copyin-2.c: Same.
10815         * testsuite/libgomp.c/copyin-3.c: Same.
10816         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
10817         * testsuite/libgomp.c/nestedfn-5.c: Same.
10818         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
10819         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
10820         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
10821         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10822         * testsuite/libgomp.c/pr32362-1.c: Same.
10823         * testsuite/libgomp.c/pr32362-2.c: Same.
10824         * testsuite/libgomp.c/pr32362-3.c: Same.
10825         * testsuite/libgomp.c/pr39591-1.c: Same.
10826         * testsuite/libgomp.c/pr39591-2.c: Same.
10827         * testsuite/libgomp.c/pr39591-3.c: Same.
10828         * testsuite/libgomp.c/pr58392.c: Same.
10829         * testsuite/libgomp.c/pr58756.c: Same.
10830         * testsuite/libgomp.c/simd-1.c: Same.
10831         * testsuite/libgomp.c/simd-10.c: Same.
10832         * testsuite/libgomp.c/simd-11.c: Same.
10833         * testsuite/libgomp.c/simd-12.c: Same.
10834         * testsuite/libgomp.c/simd-13.c: Same.
10835         * testsuite/libgomp.c/simd-14.c: Same.
10836         * testsuite/libgomp.c/simd-15.c: Same.
10837         * testsuite/libgomp.c/simd-2.c: Same.
10838         * testsuite/libgomp.c/simd-3.c: Same.
10839         * testsuite/libgomp.c/simd-4.c: Same.
10840         * testsuite/libgomp.c/simd-5.c: Same.
10841         * testsuite/libgomp.c/simd-6.c: Same.
10842         * testsuite/libgomp.c/simd-7.c: Same.
10843         * testsuite/libgomp.c/simd-8.c: Same.
10844         * testsuite/libgomp.c/simd-9.c: Same.
10846 2015-06-15  Tom de Vries  <tom@codesourcery.com>
10848         * testsuite/libgomp.c/pr35625.c: Fix typo.
10850 2015-06-15  Tom de Vries  <tom@codesourcery.com>
10852         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
10853         in dg-options.
10854         * testsuite/libgomp.c/atomic-3.c: Same.
10855         * testsuite/libgomp.c/debug-1.c: Same.
10856         * testsuite/libgomp.c/nqueens-1.c: Same.
10857         * testsuite/libgomp.c/pr26171.c: Same.
10858         * testsuite/libgomp.c/pr48591.c: Same.
10859         * testsuite/libgomp.c/pr64824.c: Same.
10860         * testsuite/libgomp.c/pr64868.c: Same.
10861         * testsuite/libgomp.c/pr66133.c: Same.
10862         * testsuite/libgomp.c/pr66199-1.c: Same.
10863         * testsuite/libgomp.c/pr66199-2.c: Same.
10864         * testsuite/libgomp.c/target-8.c: Same.
10866 2015-06-15  Tom de Vries  <tom@codesourcery.com>
10868         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
10869         -std={gnu99,c99}.
10870         * testsuite/libgomp.c/for-1.c: Same.
10871         * testsuite/libgomp.c/for-2.c: Same.
10872         * testsuite/libgomp.c/for-3.c: Same.
10873         * testsuite/libgomp.c/pr35625.c: Same.
10874         * testsuite/libgomp.c/pr39154.c: Same.
10875         * testsuite/libgomp.c/simd-16.c: Same.
10876         * testsuite/libgomp.c/simd-17.c: Same.
10878 2015-06-13  Tom de Vries  <tom@codesourcery.com>
10880         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
10882 2015-06-13  Tom de Vries  <tom@codesourcery.com>
10884         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
10885         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10886         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
10887         (N): Define.
10888         (main): Use N instead of hardcoded constants.
10890 2015-06-05  Tom de Vries  <tom@codesourcery.com>
10892         merge from gomp4 branch:
10893         2015-05-28  Tom de Vries  <tom@codesourcery.com>
10895         PR tree-optimization/65443
10896         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
10897         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
10898         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
10900 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10902         * testsuite/libgomp.graphite/bounds.c: Adjust for
10903         cleanup-tree-dump removal.
10904         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
10905         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
10906         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
10907         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
10908         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
10909         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
10910         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10911         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10912         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
10913         * testsuite/libgomp.graphite/pr41118.c: Likewise.
10915 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
10917         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
10918         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
10919         (futex_wake) [!__x86_64__]: Ditto.
10921 2015-05-28  Julian Brown  <julian@codesourcery.com>
10923         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
10924         function comment. Only call gomp_fatal if new argument is true.
10925         (acc_dev_num_out_of_range): New function.
10926         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
10927         acc_dev_num_out_of_range as appropriate.
10928         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
10929         (acc_get_device_num, acc_set_device_num): Update calls to
10930         resolve_device.
10931         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
10932         output.
10934 2015-05-28  Julian Brown  <julian@codesourcery.com>
10936         PR libgomp/65742
10937         * oacc-init.c (plugin/plugin-host.h): Include.
10938         (acc_on_device): Check whether we're in an offloaded region for
10939         host_nonshm
10940         plugin. Don't use __builtin_acc_on_device.
10941         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
10942         nonshm_exec flag in thread-local data.
10943         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
10944         data for host_nonshm plugin.
10945         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
10946         for host_nonshm plugin.
10947         * plugin/plugin-host.h: New.
10949 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
10951         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
10953 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
10955         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
10956         Declare as int.
10957         (FUTEX_PRIVATE_FLAG): Remove L suffix.
10958         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
10959         Declare as int.
10961 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
10963         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
10965 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
10967         * target.c (gomp_map_pointer): New function abstracting out
10968         GOMP_MAP_POINTER handling.
10969         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
10970         gomp_map_pointer().
10972 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
10974         PR middle-end/66199
10975         * testsuite/libgomp.c/pr66199-1.c: New test.
10976         * testsuite/libgomp.c/pr66199-2.c: New test.
10977         * testsuite/libgomp.c++/pr66199-1.C: New test.
10978         * testsuite/libgomp.c++/pr66199-2.C: New test.
10979         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
10980         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
10982 2015-05-19  Julian Brown  <julian@codesourcery.com>
10984         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
10985         on cuInit failure.
10987 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
10989         PR middle-end/66133
10990         * testsuite/libgomp.c/pr66133.c: New test.
10992 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
10994         * Makefile.in: Regenerated with automake-1.11.6.
10995         * aclocal.m4: Likewise.
10996         * config.h.in: Likewise.
10997         * configure: Likewise.
10998         * testsuite/Makefile.in: Likewise.
11000 2015-05-08  Jason Merrill  <jason@redhat.com>
11002         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
11003         _Complex.
11005         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
11007 2015-05-06  Julian Brown  <julian@codesourcery.com>
11009         * oacc-init.c (acc_device_lock): Add explanatory comment.
11010         (resolve_device): Add comment about locking requirement.
11011         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
11012         gomp_init_device and gomp_fini_device calls.
11013         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
11014         (acc_get_device_num, acc_set_device_num): Add locking around
11015         resolve_device and gomp_init_device calls.
11017 2015-05-06  Julian Brown  <julian@codesourcery.com>
11019         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
11020         goacc_thread_lock on error paths.
11021         * oacc-mem.c (lookup_host): Remove locking from function. Note
11022         locking requirement for caller in function comment.
11023         (lookup_dev): Likewise.
11024         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
11025         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
11026         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
11027         Add locking.
11029 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
11031         PR testsuite/65205
11032         PR libgomp/65993
11033         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
11034         don't expect "0x" prefix for "%p" format specifier, don't expect
11035         "(nil)" for NULL pointer.
11036         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11037         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11038         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11039         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11040         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11041         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11042         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11043         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11044         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11045         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11046         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11047         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11048         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11049         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11050         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11051         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11052         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11053         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11054         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11055         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11056         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11057         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11058         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11059         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11060         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11061         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11062         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11063         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11064         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
11065         accurately specify what we're looking for.
11066         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11067         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11068         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11069         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11070         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11072 2015-04-30  James Norris  <jnorris@codesourcery.com>
11074         PR testsuite/65205
11075         * testsuite/lib/libgomp.exp
11076         (check_effective_target_openacc_host_selected)
11077         (check_effective_target_openacc_host_nonshm_selected): New
11078         procedures.
11079         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
11080         dg-shouldfail.
11081         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11082         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11083         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11084         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11085         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11086         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11087         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11088         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11089         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11090         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11091         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11092         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11093         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11094         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11095         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11096         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11097         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11098         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11099         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11100         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11101         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11102         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11103         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11104         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11105         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11106         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11107         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11108         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11109         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11110         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11111         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11112         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11113         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11114         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11115         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11116         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11117         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11118         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11119         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11120         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11121         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11122         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11123         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11125 2015-04-08  Julian Brown  <julian@codesourcery.com>
11127         * libgomp.h (target_mem_desc: Remove mem_map field.
11128         (acc_dispatch_t): Remove open_device_func, close_device_func,
11129         get_device_num_func, set_device_num_func, target_data members.
11130         Change create_thread_data_func argument to device number instead of
11131         generic pointer.
11132         * oacc-async.c (assert.h): Include.
11133         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
11134         (acc_wait_all, acc_wait_all_async): Use current host thread's
11135         active device, not base_dev.
11136         * oacc-cuda.c (acc_get_current_cuda_device)
11137         (acc_get_current_cuda_context, acc_get_cuda_stream)
11138         (acc_set_cuda_stream): Likewise.
11139         * oacc-host.c (host_dispatch): Don't set open_device_func,
11140         close_device_func, get_device_num_func or set_device_num_func.
11141         * oacc-init.c (base_dev, init_key): Remove.
11142         (cached_base_dev): New.
11143         (name_of_acc_device_t): New.
11144         (acc_init_1): Initialise default-numbered device, not zeroth.
11145         (acc_shutdown_1): Close all devices of a given type.
11146         (goacc_destroy_thread): Don't use base_dev.
11147         (lazy_open, lazy_init, lazy_init_and_open): Remove.
11148         (goacc_attach_host_thread_to_device): New.
11149         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
11150         (acc_get_num_devices): Don't use base_dev.
11151         (acc_set_device_type): Reimplement.
11152         (acc_get_device_type): Don't use base_dev.
11153         (acc_get_device_num): Tweak logic.
11154         (acc_set_device_num): Likewise.
11155         (acc_on_device): Use acc_get_device_type.
11156         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
11157         (goacc_lazy_initialize): Reimplement with acc_init and
11158         goacc_attach_host_thread_to_device.
11159         * oacc-int.h (goacc_thread): Add base_dev field.
11160         (base_dev): Remove extern declaration.
11161         (goacc_attach_host_thread_to_device): Add prototype.
11162         * oacc-mem.c (acc_malloc): Use current thread's device instead of
11163         base_dev.
11164         (acc_free): Likewise.
11165         (acc_memcpy_to_device): Likewise.
11166         (acc_memcpy_from_device): Likewise.
11167         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
11168         goacc_lazy_initialize (throughout).
11169         (GOACC_parallel): Use tgt_offset to locate target functions.
11170         * target.c (gomp_map_vars): Don't set tgt->mem_map.
11171         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
11172         (gomp_load_plugin_for_device): Remove open_device, close_device,
11173         get_device_num, set_device_num openacc hook initialisation. Don't set
11174         openacc.target_data.
11175         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
11176         (GOMP_OFFLOAD_openacc_close_device)
11177         (GOMP_OFFLOAD_openacc_get_device_num)
11178         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
11179         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
11180         to int.
11181         * plugin/plugin-nvptx.c (ptx_inited): Remove.
11182         (instantiated_devices, ptx_dev_lock): New.
11183         (struct ptx_image_data): New.
11184         (ptx_devices, ptx_images, ptx_image_lock): New.
11185         (fini_streams_for_device): Reorder cuStreamDestroy call.
11186         (nvptx_get_num_devices): Remove forward declaration.
11187         (nvptx_init): Change return type to bool.
11188         (nvptx_fini): Remove.
11189         (nvptx_attach_host_thread_to_device): New.
11190         (nvptx_open_device): Return struct ptx_device* instead of void*.
11191         (nvptx_close_device): Change argument type to struct ptx_device*,
11192         return type to void.
11193         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
11194         (kernel_target_data, kernel_host_table): Remove static globals.
11195         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
11196         (GOMP_OFFLOAD_init_device): Reimplement.
11197         (GOMP_OFFLOAD_fini_device): Likewise.
11198         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
11199         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
11200         (GOMP_OFFLOAD_host2dev): Use ORD argument.
11201         (GOMP_OFFLOAD_openacc_open_device)
11202         (GOMP_OFFLOAD_openacc_close_device)
11203         (GOMP_OFFLOAD_openacc_set_device_num)
11204         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
11205         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
11206         (device number).
11208         testsuite/
11209         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
11211 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
11213         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
11214         * libgomp.h (struct gomp_memory_mapping): Remove.
11215         (struct target_mem_desc): Change type of mem_map from
11216         gomp_memory_mapping * to splay_tree_s *.
11217         (struct gomp_device_descr): Remove register_image_func, get_table_func.
11218         Add load_image_func, unload_image_func.
11219         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
11220         Remove offload_regions_registered.
11221         (gomp_init_tables): Remove.
11222         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
11223         to splay_tree_s *.
11224         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
11225         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
11226         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
11227         offload_regions_registered.
11228         Initialize load_image_func, unload_image_func, mem_map.root.
11229         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
11230         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
11231         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
11232         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
11233         gomp_memory_mapping *.  Use dev's lock and splay_tree.
11234         (lookup_dev): Use dev's lock.
11235         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
11236         (acc_is_present): Likewise.
11237         (acc_map_data): Likewise.
11238         (acc_unmap_data): Likewise.  Use dev's lock.
11239         (present_create_copy): Likewise.
11240         (delete_copyout): Pass dev to lookup_host instead of mem_map.
11241         (update_dev_host): Likewise.
11242         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
11243         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
11244         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
11245         (GOMP_OFFLOAD_get_table): Remove
11246         (GOMP_OFFLOAD_load_image): New function.
11247         (GOMP_OFFLOAD_unload_image): New function.
11248         * target.c (register_lock): New mutex for offload image registration.
11249         (num_devices): Do not guard with PLUGIN_SUPPORT.
11250         (gomp_realloc_unlock): New static function.
11251         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
11252         before gomp_fatal.
11253         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
11254         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
11255         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
11256         mem_map's.
11257         (gomp_unmap_vars): Likewise.
11258         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
11259         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
11260         (gomp_offload_image_to_device): New static function.
11261         (GOMP_offload_register): Add mutex lock.
11262         Call gomp_offload_image_to_device for all initialized devices.
11263         Replace gomp_realloc with gomp_realloc_unlock.
11264         (GOMP_offload_unregister): New function.
11265         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
11266         get_table_func from the plugin with calls to init_device_func and
11267         gomp_offload_image_to_device.
11268         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
11269         to splay_tree_s *.
11270         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
11271         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
11272         (GOMP_target_data): Do not call gomp_init_tables.
11273         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
11274         (gomp_load_plugin_for_device): Replace register_image and get_table
11275         with load_image and unload_image in DLSYM ().
11276         (gomp_register_images_for_device): Remove function.
11277         (gomp_target_init): Do not initialize current_device.mem_map.*,
11278         current_device.offload_regions_registered.
11279         Remove call to gomp_register_images_for_device.
11280         Do not free offload_images and num_offload_images.
11282 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
11284         PR fortran/65597
11285         * testsuite/libgomp.fortran/pr65597.f90: New test.
11287 2015-03-27  Tom de Vries  <tom@codesourcery.com>
11289         PR testsuite/65594
11290         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
11291         (init, check): New function.
11292         (foo): Change return type to void.
11293         (main): Call init and check.
11295 2015-03-27  Tom de Vries  <tom@codesourcery.com>
11297         PR testsuite/65594
11298         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
11299         (foo): Use M for non-inner loops to scale down test-case.
11301 2015-03-25  Kai Tietz  <ktietz@redhat.com>
11303         PR libgomp/64972
11304         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
11305         (GOACC_data_start): Likewise.
11306         * target.c (gomp_map_vars): Likewise.
11308 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
11310         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
11311         hppa*-*-hpux*.
11313 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
11315         * testsuite/libgomp.c/target-10.c: New test.
11316         * testsuite/libgomp.c++/target-4.C: New test.
11318 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
11320         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
11321         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
11323 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
11325         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
11326         * configure.ac (*-*-rtems*): Assume Pthread is supported.
11327         (pthread.h): Check for this header file.
11328         * configure: Regenerate.
11330 2015-02-25  Tom de Vries  <tom@codesourcery.com>
11332         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
11333         (check_reduction_op, check_reduction_macro, max, min):
11334         Declare.
11335         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
11336         function.
11337         (main): Use new functions.
11339 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
11341         * target.c (gomp_load_plugin_for_device): Use const char * instead of
11342         char * for variables holding dlerror return values.
11343         (DLSYM_OPT): Ditto.
11345 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
11347         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
11349 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
11350             Cesar Philippidis  <cesar@codesourcery.com>
11352         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
11353         GOACC_ctaid, and GOACC_nctaid routines.
11355 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
11357         PR c/64824
11358         * testsuite/libgomp.c/atomic-18.c: New test.
11359         * testsuite/libgomp.c++/atomic-16.C: New test.
11361 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
11363         PR c/64824
11364         PR c/64868
11365         * testsuite/libgomp.c/pr64824.c: New test.
11366         * testsuite/libgomp.c/pr64868.c: New test.
11367         * testsuite/libgomp.c++/pr64824.C: New test.
11368         * testsuite/libgomp.c++/pr64868.C: New test.
11370 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
11372         PR libgomp/64635
11373         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
11374         Link with -lpthread.
11375         * config/aix/plugin-suffix.h: Delete.
11377 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
11379         PR libgomp/64635
11380         * configure.tgt (*-*-aix*): Use config_path "aix posix".
11381         (*-*-darwin*): Use config_path "bsd darwin posix".
11382         (*-*-hpux*): Use config_path "hpux posix".
11383         * target.c: Add include of plugin-suffix.h and use
11384         SONAME_SUFFIX macro.
11385         * config/aix/plugin-suffix.h: New file.
11386         * config/darwin/plugin-suffix.h: New file.
11387         * config/hpux/plugin-suffix.h: New file.
11388         * config/posix/plugin-suffix.h: New file.
11390 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
11392         PR middle-end/64734
11393         * libgomp.c/pr64734.c: New test.
11395 2015-01-23  Tom de Vries  <tom@codesourcery.com>
11397         PR libgomp/64672
11398         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
11400 2015-01-23  Tom de Vries  <tom@codesourcery.com>
11402         PR libgomp/64707
11403         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
11404         dg-options.
11406 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
11408         PR libgomp/64625
11409         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
11410         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
11411         formal parameter.  Update all users.
11412         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
11413         Document unused formal parameter.
11415 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
11417         * oacc-parallel.c: Don't include <alloca.h>.
11418         (GOACC_parallel): Use gomp_alloca instead of alloca.
11420 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
11422         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
11424 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
11425             James Norris  <jnorris@codesourcery.com>
11426             Tom de Vries  <tom@codesourcery.com>
11427             Julian Brown  <julian@codesourcery.com>
11428             Cesar Philippidis  <cesar@codesourcery.com>
11429             Nathan Sidwell  <nathan@codesourcery.com>
11430             Tobias Burnus  <burnus@net-b.de>
11432         * Makefile.am (search_path): Add $(top_srcdir)/../include.
11433         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
11434         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
11435         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
11436         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
11437         Include $(top_srcdir)/plugin/Makefrag.am.
11438         (nodist_libsubinclude_HEADERS): Add openacc.h.
11439         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
11440         openacc.f90, openacc.mod, openacc_kinds.mod.
11441         (omp_lib.mod): Generalize into...
11442         (%.mod): ... this new rule.
11443         (openacc_kinds.mod, openacc.mod): New rules.
11444         * plugin/configfrag.ac: New file.
11445         * configure.ac: Move plugin/offloading support into it.  Include
11446         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
11447         * plugin/Makefrag.am: New file.
11448         * testsuite/Makefile.am (OFFLOAD_TARGETS)
11449         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
11450         export.
11451         (libgomp-test-support.exp): New rule.
11452         (all-local): Depend on it.
11453         * Makefile.in: Regenerate.
11454         * testsuite/Makefile.in: Regenerate.
11455         * config.h.in: Likewise.
11456         * configure: Likewise.
11457         * configure.tgt: Harden shell syntax.
11458         * env.c: Include "oacc-int.h".
11459         (parse_acc_device_type): New function.
11460         (gomp_debug_var, goacc_device_type, goacc_device_num): New
11461         variables.
11462         (initialize_env): Initialize those.  Call
11463         goacc_runtime_initialize.
11464         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
11465         (gomp_fatal): Call gomp_vfatal.
11466         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
11467         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
11468         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
11469         (splay_tree_node, splay_tree, splay_tree_key)
11470         (struct target_mem_desc, struct splay_tree_key_s)
11471         (struct gomp_memory_mapping, struct acc_dispatch_t)
11472         (struct gomp_device_descr, gomp_acc_insert_pointer)
11473         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
11474         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
11475         (gomp_free_memmap, gomp_fini_device): New declarations.
11476         (gomp_vdebug, gomp_debug): New macros.
11477         Include "splay-tree.h".
11478         * libgomp.map (OACC_2.0): New symbol version.  Use for
11479         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
11480         acc_set_device_type_h_, acc_get_device_type,
11481         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
11482         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
11483         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
11484         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
11485         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
11486         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
11487         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
11488         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
11489         acc_copyin_array_h_, acc_present_or_copyin,
11490         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
11491         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
11492         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
11493         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
11494         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
11495         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
11496         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
11497         acc_update_device, acc_update_device_32_h_,
11498         acc_update_device_64_h_, acc_update_device_array_h_,
11499         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
11500         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
11501         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
11502         acc_is_present_64_h_, acc_is_present_array_h_,
11503         acc_memcpy_to_device, acc_memcpy_from_device,
11504         acc_get_current_cuda_device, acc_get_current_cuda_context,
11505         acc_get_cuda_stream, acc_set_cuda_stream.
11506         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
11507         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
11508         GOACC_update, GOACC_wait, GOACC_get_thread_num,
11509         GOACC_get_num_threads.
11510         (GOMP_PLUGIN_1.0): New symbol version.  Use for
11511         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
11512         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
11513         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
11514         GOMP_PLUGIN_acc_thread.
11515         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
11516         environment variable.
11517         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
11518         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
11519         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
11520         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
11521         (splay_tree_remove): New declarations.
11522         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
11523         (splay_tree_remove, splay_tree_lookup): Move into...
11524         * splay-tree.c: ... this new file.
11525         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
11526         (splay_tree_node, splay_tree, splay_tree_key)
11527         (struct target_mem_desc, struct splay_tree_key_s)
11528         (struct gomp_device_descr): Don't declare.
11529         (num_devices_openmp): New variable.
11530         (gomp_get_num_devices ): Use it.
11531         (gomp_init_targets_once): New function.
11532         (gomp_get_num_devices ): Use it.
11533         (get_kind, gomp_copy_from_async, gomp_free_memmap)
11534         (gomp_fini_device, gomp_register_image_for_device): New functions.
11535         (gomp_map_vars): Add devaddrs parameter.
11536         (gomp_update): Add mm parameter.
11537         (gomp_init_device): Move most of it into...
11538         (gomp_init_tables): ... this new function.
11539         (gomp_register_images_for_device): Remove function.
11540         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
11541         Make them hidden instead of static.
11542         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
11543         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
11544         (GOMP_target_end_data, GOMP_target_update)
11545         (gomp_load_plugin_for_device, gomp_target_init): Update for
11546         OpenACC changes.
11547         * oacc-async.c: New file.
11548         * oacc-cuda.c: Likewise.
11549         * oacc-host.c: Likewise.
11550         * oacc-init.c: Likewise.
11551         * oacc-int.h: Likewise.
11552         * oacc-mem.c: Likewise.
11553         * oacc-parallel.c: Likewise.
11554         * oacc-plugin.c: Likewise.
11555         * oacc-plugin.h: Likewise.
11556         * oacc-ptx.h: Likewise.
11557         * openacc.f90: Likewise.
11558         * openacc.h: Likewise.
11559         * openacc_lib.h: Likewise.
11560         * plugin/plugin-host.c: Likewise.
11561         * plugin/plugin-nvptx.c: Likewise.
11562         * libgomp-plugin.c: Likewise.
11563         * libgomp-plugin.h: Likewise.
11564         * libgomp_target.h: Remove file after merging content into the
11565         former file.  Update all users.
11566         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
11567         (offload_targets_s, offload_targets_s_openacc): New variables.
11568         (check_effective_target_openacc_nvidia_accel_present)
11569         (check_effective_target_openacc_nvidia_accel_selected): New
11570         procedures.
11571         (libgomp_init): Update for OpenACC changes.
11572         * testsuite/libgomp-test-support.exp.in: New file.
11573         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
11574         * testsuite/libgomp.oacc-c/c.exp: Likewise.
11575         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
11576         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
11577         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
11578         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
11579         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
11580         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
11581         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
11582         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
11583         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
11584         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
11585         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
11586         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11587         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
11588         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
11589         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
11590         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
11591         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
11592         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
11593         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
11594         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
11595         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
11596         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
11597         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11598         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11599         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11600         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11601         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11602         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11603         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11604         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
11605         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
11606         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
11607         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
11608         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11609         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
11610         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11611         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
11612         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
11613         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
11614         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
11615         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11616         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11617         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11618         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
11619         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11620         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11621         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11622         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11623         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11624         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
11625         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11626         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11627         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11628         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11629         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11630         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11631         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11632         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
11633         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
11634         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
11635         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11636         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11637         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11638         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
11639         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
11640         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11641         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11642         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11643         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
11644         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11645         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11646         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11647         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
11648         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
11649         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11650         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11651         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
11652         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
11653         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
11654         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
11655         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11656         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11657         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11658         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
11659         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
11660         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11661         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11662         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
11663         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
11664         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
11665         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
11666         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11667         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11668         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11669         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11670         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
11671         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11672         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11673         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
11674         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
11675         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
11676         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11677         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
11678         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
11679         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
11680         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
11681         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
11682         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11683         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
11684         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
11685         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11686         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
11687         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
11688         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
11689         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
11690         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
11691         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
11692         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
11693         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
11694         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
11695         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
11696         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
11697         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
11698         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
11699         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
11700         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
11701         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
11702         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
11703         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
11704         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
11705         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11706         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
11707         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
11708         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11709         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11710         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11711         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
11712         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
11713         Likewise.
11714         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
11715         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
11716         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
11717         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
11718         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
11719         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11720         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11721         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11722         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11723         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11724         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11725         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11726         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11727         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11728         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11729         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11730         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11731         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11732         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11733         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11734         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11735         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11736         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11737         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11738         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11739         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11740         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11741         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11742         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11743         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11744         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11745         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11746         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11747         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11748         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11749         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11750         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11751         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11752         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11753         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11754         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11755         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11756         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11757         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11758         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11759         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11760         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11761         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11762         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11763         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11764         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11765         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11766         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11767         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11768         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11769         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11770         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11771         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11772         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11773         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11775 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
11776             Julian Brown  <julian@codesourcery.com>
11777             David Malcolm  <dmalcolm@redhat.com>
11779         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
11780         to "GNU Offloading and Multi Processing Runtime Library".  Change
11781         all users.
11782         * configure: Regenerate.
11783         * libgomp.texi: Update.
11785 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
11787         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
11788         "$tgt_dir/lib32".
11789         * configure: Regenerate.
11791         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
11792         "intelmic" in $offload_targets.
11794 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
11796         Update copyright years.
11798         * libgomp.texi: Bump @copying's copyright year.
11800 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11802         * testsuite/lib/libgomp.exp: Load target-utils.exp.
11803         Move load of target-supports.exp earlier.
11805 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
11807         * testsuite/libgomp.c/target-9.c: New test.
11809 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
11811         * config.h.in: Regenerate.
11812         * configure: Regenerate.
11813         * configure.ac: Add GCC_CHECK_EMUTLS.
11814         * libgomp.h: Add check for USE_EMUTLS: this case
11815         is equal to HAVE_TLS.
11816         * team.c: Likewise.
11818 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
11820         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
11822 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
11823             Ilya Verbin  <ilya.verbin@intel.com>
11825         * testsuite/libgomp.c/target-critical-1.c: New test.
11827 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
11829         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
11830         to dg-options unless expensive testing is on.
11831         (TESTITERS): Define to N if not defined.
11832         (main): Use TESTITERS instead of N.
11833         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
11834         dg-additional-options depending on whether expensive testing is on.
11835         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
11836         Decrease N to 100000 and CHUNKSZ to 10000.
11838 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
11840         PR fortran/63938
11841         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
11842         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
11844 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
11846         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
11848 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
11850         PR bootstrap/63784
11851         * configure: Regenerated.
11853 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
11855         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
11856         vect_simd_clones effective target.
11857         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
11859 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
11861         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
11862         of 32 as block_size.
11863         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
11864         instead of 32 as block_size.
11866 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
11867             Ilya Verbin  <ilya.verbin@intel.com>
11869         * Makefile.in: Regenerate.
11870         * configure: Regenerate.
11871         * configure.ac: Set up offload_additional_options,
11872         offload_additional_lib_paths and offload_targets.
11873         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
11874         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
11875         * testsuite/Makefile.in: Regenerate.
11876         * testsuite/lib/libgomp.exp (libgomp_init): Append
11877         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
11878         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
11879         build directory to LD_LIBRARY_PATH for intelmic offload targets.
11881 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
11882             Ilya Verbin  <ilya.verbin@intel.com>
11883             Kirill Yukhin  <kirill.yukhin@intel.com>
11884             Ilya Tocar  <ilya.tocar@intel.com>
11886         * testsuite/lib/libgomp.exp
11887         (check_effective_target_offload_device): New.
11888         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
11889         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
11890         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
11891         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
11892         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
11893         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
11894         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
11895         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
11896         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
11897         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
11898         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
11899         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
11900         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
11901         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
11902         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
11903         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
11904         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
11905         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
11906         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
11907         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
11908         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
11909         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
11910         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
11911         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
11912         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
11913         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
11914         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
11915         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
11916         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
11917         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
11918         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
11919         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
11920         * testsuite/libgomp.c/target-7.c: Fix test.
11921         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
11922         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
11923         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
11924         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
11925         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
11926         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
11927         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
11928         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
11929         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
11930         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
11931         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
11932         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
11933         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
11934         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
11935         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
11936         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
11937         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
11938         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
11939         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
11940         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
11941         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
11942         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
11943         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
11944         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
11945         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
11946         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
11947         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
11948         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
11949         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
11950         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
11951         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
11953 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
11954             Ilya Verbin  <ilya.verbin@intel.com>
11955             Thomas Schwinge  <thomas@codesourcery.com>
11956             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11958         * libgomp.map (GOMP_4.0.1): New symbol version.
11959         Add GOMP_offload_register.
11960         * libgomp_target.h: New file.
11961         * splay-tree.h: New file.
11962         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
11963         (gomp_target_init): New forward declaration.
11964         (gomp_is_initialized): New static variable.
11965         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
11966         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
11967         New structures.
11968         (offload_images, num_offload_images, devices, num_devices): New static
11969         variables.
11970         (splay_compare): New static function.
11971         (struct gomp_device_descr): New structure.
11972         (gomp_get_num_devices): Call gomp_target_init.
11973         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
11974         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
11975         (GOMP_offload_register): New function.
11976         (GOMP_target): Arrange for host callback to be performed in a separate
11977         initial thread and contention group, inheriting ICVs from
11978         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
11979         Add device initialization and lookup for target function in splay tree.
11980         (GOMP_target_data): Add device initialization and call gomp_map_vars.
11981         (GOMP_target_end_data): Call gomp_unmap_vars.
11982         (GOMP_target_update): Add device initialization and call gomp_update.
11983         (gomp_load_plugin_for_device, gomp_register_images_for_device)
11984         (gomp_target_init): New static functions.
11986 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
11987             Thomas Schwinge  <thomas@codesourcery.com>
11988             Ilya Verbin  <ilya.verbin@intel.com>
11989             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11991         * config.h.in: Regenerate.
11992         * configure: Regenerate.
11993         * configure.ac: Check for libdl, required for plugin support.
11994         (PLUGIN_SUPPORT): Define if plugins are supported.
11995         (enable_offload_targets): Support Intel MIC targets.
11996         (OFFLOAD_TARGETS): List of target names suitable for offloading.
11998 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12000         PR target/63610
12001         * configure: Regenerate.
12003 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12005         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
12007 2014-10-06  Marek Polacek  <polacek@redhat.com>
12009         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
12010         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
12011         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
12012         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
12014 2014-10-06  Marek Polacek  <polacek@redhat.com>
12016         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
12017         * testsuite/libgomp.c/nqueens-1.c: Likewise.
12018         * testsuite/libgomp.c/pr26943-3.c: Likewise.
12019         * testsuite/libgomp.c/pr26943-4.c: Likewise.
12020         * testsuite/libgomp.c/pr36802-2.c: Likewise.
12021         * testsuite/libgomp.c/pr36802-3.c: Likewise.
12022         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
12023         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
12024         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
12025         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
12026         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
12027         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
12028         * testsuite/libgomp.c/omp-single-1.c: Likewise.
12029         * testsuite/libgomp.c/omp-single-2.c: Likewise.
12030         * testsuite/libgomp.c/omp_matvec.c: Likewise.
12031         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
12032         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
12033         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
12034         declarations.
12036 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
12038         PR libgomp/61200
12039         * testsuite/libgomp.c/pr61200.c: New test.
12041 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
12043         PR c++/63248
12044         * testsuite/libgomp.c++/pr63248.C: New test.
12046 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
12048         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
12049         is not zero, but taskgroup->children is NULL and there are
12050         any task->children, schedule those instead of waiting.
12051         * testsuite/libgomp.c/depend-6.c: New test.
12052         * testsuite/libgomp.c/depend-7.c: New test.
12053         * testsuite/libgomp.c/depend-8.c: New test.
12054         * testsuite/libgomp.c/depend-9.c: New test.
12055         * testsuite/libgomp.c/depend-10.c: New test.
12057 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
12059         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
12060         (struct gomp_taskwait): New type.
12061         (struct gomp_task): Add taskwait and parent_depends_on, remove
12062         in_taskwait and taskwait_sem fields.
12063         (gomp_finish_task): Don't destroy taskwait_sem.
12064         * task.c (gomp_init_task): Don't init in_taskwait, instead init
12065         taskwait and parent_depends_on.
12066         (GOMP_task): For if (0) tasks with depend clause that depend on
12067         earlier tasks don't defer them, instead call
12068         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
12069         Initialize redundant_out field, for redundant out entries just
12070         move them at the end of linked list instead of removing them
12071         completely, and set redundant_out flag instead of redundant.
12072         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
12073         that task.
12074         (gomp_task_run_post_handle_dependers): If parent is in
12075         gomp_task_maybe_wait_for_dependencies and newly runnable task
12076         is not parent_depends_on, queue it in parent->children linked
12077         list after all runnable tasks with parent_depends_on set.
12078         Adjust for addition of taskwait indirection.
12079         (gomp_task_run_post_remove_parent): If parent is in
12080         gomp_task_maybe_wait_for_dependencies and task to be removed
12081         is parent_depends_on, decrement n_depend and if needed awake
12082         parent.  Adjust for addition of taskwait indirection.
12083         (GOMP_taskwait): Adjust for addition of taskwait indirection.
12084         (gomp_task_maybe_wait_for_dependencies): New function.
12085         * testsuite/libgomp.c/depend-5.c: New test.
12087 2014-07-13  Tobias Burnus  <burnus@net-b.de>
12089         * testsuite/libgomp.fortran/pr34020.f90: Make compile
12090         with TS 18508/Fortran 2015.
12092 2014-07-06  Marek Polacek  <polacek@redhat.com>
12094         PR c/6940
12095         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
12097 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
12099         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
12100         matches regex $lang_source_re, add $lang_include_flags to options.
12101         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
12102         * testsuite/libgomp.c++/c++.exp: Likewise.
12103         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
12104         and lang_include_flags instead of adding -fintrinsic-modules-path= to
12105         ALWAYS_CFLAGS.
12106         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
12108 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
12110         * testsuite/libgomp.fortran/fortran.exp: Explain
12111         gfortran-dg-runtest usage.
12113 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
12115         * testsuite/libgomp.fortran/simd5.f90: New test.
12116         * testsuite/libgomp.fortran/simd6.f90: New test.
12117         * testsuite/libgomp.fortran/simd7.f90: New test.
12119 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
12121         * testsuite/libgomp.c/for-2.c: Define SC to static for
12122         #pragma omp for simd testing.
12123         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
12124         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
12125         SC macro.
12126         * testsuite/libgomp.c/simd-14.c: New test.
12127         * testsuite/libgomp.c/simd-15.c: New test.
12128         * testsuite/libgomp.c/simd-16.c: New test.
12129         * testsuite/libgomp.c/simd-17.c: New test.
12130         * testsuite/libgomp.c++/for-10.C: Define SC to static for
12131         #pragma omp for simd testing.
12132         * testsuite/libgomp.c++/simd10.C: New test.
12133         * testsuite/libgomp.c++/simd11.C: New test.
12134         * testsuite/libgomp.c++/simd12.C: New test.
12135         * testsuite/libgomp.c++/simd13.C: New test.
12137         * testsuite/libgomp.fortran/aligned1.f03: New test.
12138         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
12139         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
12140         tasks with !$omp parallel !$omp single.
12141         * testsuite/libgomp.fortran/target8.f90: New test.
12142         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
12143         not to use trim in the combiner, instead call elemental function.
12144         (fn): New elemental function.
12145         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
12146         Make elemental.
12147         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
12148         omp_in): Likewise.
12149         * testsuite/libgomp.fortran/udr12.f90: New test.
12150         * testsuite/libgomp.fortran/udr13.f90: New test.
12151         * testsuite/libgomp.fortran/udr14.f90: New test.
12152         * testsuite/libgomp.fortran/udr15.f90: New test.
12154 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
12156         * omp_lib.f90.in (openmp_version): Set to 201307.
12157         * omp_lib.h.in (openmp_version): Likewise.
12158         * testsuite/libgomp.c/target-8.c: New test.
12159         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
12160         and inbranch clauses.
12161         * testsuite/libgomp.fortran/depend-3.f90: New test.
12162         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
12163         openmp_version.
12164         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12165         * testsuite/libgomp.fortran/target1.f90: New test.
12166         * testsuite/libgomp.fortran/target2.f90: New test.
12167         * testsuite/libgomp.fortran/target3.f90: New test.
12168         * testsuite/libgomp.fortran/target4.f90: New test.
12169         * testsuite/libgomp.fortran/target5.f90: New test.
12170         * testsuite/libgomp.fortran/target6.f90: New test.
12171         * testsuite/libgomp.fortran/target7.f90: New test.
12173 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
12175         PR fortran/60928
12176         * testsuite/libgomp.fortran/allocatable9.f90: New test.
12177         * testsuite/libgomp.fortran/allocatable10.f90: New test.
12178         * testsuite/libgomp.fortran/allocatable11.f90: New test.
12179         * testsuite/libgomp.fortran/allocatable12.f90: New test.
12180         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
12181         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
12182         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
12183         * testsuite/libgomp.fortran/associate1.f90: New test.
12184         * testsuite/libgomp.fortran/associate2.f90: New test.
12185         * testsuite/libgomp.fortran/procptr1.f90: New test.
12187 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
12189         * testsuite/libgomp.fortran/simd1.f90: New test.
12190         * testsuite/libgomp.fortran/udr1.f90: New test.
12191         * testsuite/libgomp.fortran/udr2.f90: New test.
12192         * testsuite/libgomp.fortran/udr3.f90: New test.
12193         * testsuite/libgomp.fortran/udr4.f90: New test.
12194         * testsuite/libgomp.fortran/udr5.f90: New test.
12195         * testsuite/libgomp.fortran/udr6.f90: New test.
12196         * testsuite/libgomp.fortran/udr7.f90: New test.
12197         * testsuite/libgomp.fortran/udr8.f90: New test.
12198         * testsuite/libgomp.fortran/udr9.f90: New test.
12199         * testsuite/libgomp.fortran/udr10.f90: New test.
12200         * testsuite/libgomp.fortran/udr11.f90: New test.
12202 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
12204         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
12205         vect_simd_clones effective target.
12206         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
12208 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
12210         PR middle-end/61252
12211         * testsuite/libgomp.c++/simd-9.C: New test.
12213 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
12215         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
12216         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
12217         texts according to their @menu entry positions.
12219 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
12221         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
12222         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
12223         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
12224         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
12225         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
12226         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
12227         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
12228         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
12229         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
12230         * testsuite/libgomp.fortran/depend-1.f90: New test.
12231         * testsuite/libgomp.fortran/depend-2.f90: New test.
12232         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
12233         * testsuite/libgomp.fortran/simd1.f90: New test.
12234         * testsuite/libgomp.fortran/simd2.f90: New test.
12235         * testsuite/libgomp.fortran/simd3.f90: New test.
12236         * testsuite/libgomp.fortran/simd4.f90: New test.
12237         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
12239 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
12241         * testsuite/libgomp.c/simd-10.c: New test.
12242         * testsuite/libgomp.c/simd-11.c: New test.
12243         * testsuite/libgomp.c/simd-12.c: New test.
12244         * testsuite/libgomp.c/simd-13.c: New test.
12246 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
12248         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
12249         atomic type clauses in any order and optional comma in between.
12250         * testsuite/libgomp.c++/atomic-15.C: Likewise.
12251         * testsuite/libgomp.c/atomic-17.c: Likewise.
12253         * testsuite/libgomp.c/simd-7.c: New test.
12254         * testsuite/libgomp.c/simd-8.c: New test.
12255         * testsuite/libgomp.c/simd-9.c: New test.
12256         * testsuite/libgomp.c/loop-16.c: New test.
12258 2014-04-02  Richard Henderson  <rth@redhat.com>
12260         * config/linux/futex.h (futex_wait): Get error value from errno.
12261         (futex_wake): Likewise.
12263 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
12265         PR c++/60331
12266         * testsuite/libgomp.c++/udr-11.C: New test.
12267         * testsuite/libgomp.c++/udr-12.C: New test.
12268         * testsuite/libgomp.c++/udr-13.C: New test.
12269         * testsuite/libgomp.c++/udr-14.C: New test.
12270         * testsuite/libgomp.c++/udr-15.C: New test.
12271         * testsuite/libgomp.c++/udr-16.C: New test.
12272         * testsuite/libgomp.c++/udr-17.C: New test.
12273         * testsuite/libgomp.c++/udr-18.C: New test.
12274         * testsuite/libgomp.c++/udr-19.C: New test.
12276 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
12278         Update copyright years
12280 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
12282         * hashtab.h: Use the standard form for the copyright notice.
12284 2014-01-02  Tobias Burnus  <burnus@net-b.de>
12286         * libgomp.texi: Bump @copying's copyright year.
12288 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
12290         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
12291         alloca () with __builtin_alloca ().
12292         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
12293         * testsuite/libgomp.c/lock-3.c: Likewise.
12294         * testsuite/libgomp.c/pr48591.c: Likewise.
12296 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
12298         PR testsuite/59534
12299         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
12300         comparisons.
12302 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
12304         PR libgomp/58756
12305         * testsuite/libgomp.c/pr58756.c: New test.
12307 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
12309         PR libgomp/59467
12310         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
12311         !$omp parallel.
12313 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
12315         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
12316         ALWAYS_CFLAGS.
12317         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
12318         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
12319         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
12320         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
12321         Likewise.
12323         * libgomp_g.h: Include <stddef.h> for size_t.
12325         * libgomp.spec.in: Update comment about libgomp's dependencies.
12326         * configure.ac: Likewise.
12327         * configure: Regenerate.
12329 2013-10-16  Tobias Burnus  <burnus@net-b.de>
12331         * libgomp.texi: (Runtime Library Routines): Update references for
12332         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
12333         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
12334         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
12335         (Environment Variables): Update references for OpenMP 4.0. Add
12336         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
12337         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
12338         order.
12340 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
12342         * env.c (parse_bind_var): Initialize value to avoid
12343         (false positive) warning.
12345 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
12347         PR libgomp/58691
12348         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
12349         to check variable.
12350         (gomp_init_num_threads): Move i variable declaration into
12351         #ifdef CPU_ALLOC_SIZE block.
12352         * config/linux/affinity.c (gomp_affinity_init_level): Test
12353         gomp_places_list_len == 0 rather than gomp_places_list == 0
12354         when checking for topology reading error.
12355         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
12356         * env.c (parse_affinity): Add ignore argument, if true, don't populate
12357         gomp_places_list, only parse env var and always return false.
12358         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
12359         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
12360         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
12361         and either of these variables were parsed correctly into a places
12362         list.
12364 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
12365             Jakub Jelinek  <jakub@redhat.com>
12367         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
12368         of 5 loopfn matches.
12369         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
12370         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
12371         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
12372         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
12373         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
12374         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
12375         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
12376         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
12378 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
12380         * Makefile.am (omp_lib.mod): Streamline rule.
12381         * Makefile.in: Regenerate.
12383         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
12384         exceptions.
12386         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
12387         * testsuite/libgomp.fortran/lib1.f90: Likewise.
12388         * testsuite/libgomp.fortran/lib2.f: Likewise.
12389         * testsuite/libgomp.fortran/lib3.f: Likewise.
12391         * configure.ac: Typo fix.
12392         * configure: Regenerate.
12394         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
12395         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12397         * omp.h.in: Don't touch the user's namespace.
12399 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
12400             Tobias Burnus  <burnus@net-b.de>
12401             Richard Henderson  <rth@redhat.com>
12403         * target.c: New file.
12404         * Makefile.am (libgomp_la_SOURCES): Add target.c.
12405         * Makefile.in: Regenerated.
12406         * libgomp_g.h (GOMP_task): Add depend argument.
12407         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
12408         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
12409         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
12410         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
12411         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
12412         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
12413         GOMP_taskgroup_start, GOMP_taskgroup_end,
12414         GOMP_parallel_sections): New prototypes.
12415         * fortran.c (omp_is_initial_device): Add ialias_redirect.
12416         (omp_is_initial_device_): New function.
12417         (ULP, STR1, STR2, ialias_redirect): Removed.
12418         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
12419         omp_set_default_device_8_, omp_get_default_device_,
12420         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
12421         functions.
12422         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
12423         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
12424         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
12425         @@GOMP_4.0.
12426         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
12427         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
12428         omp_set_default_device, omp_set_default_device_,
12429         omp_set_default_device_8_, omp_get_default_device,
12430         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
12431         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
12432         omp_get_team_num_): Export @@OMP_4.0.
12433         * team.c (struct gomp_thread_start_data): Add place field.
12434         (gomp_thread_start): Clear thr->thread_pool and
12435         thr->task before returning.  Use gomp_team_barrier_wait_final
12436         instead of gomp_team_barrier_wait.  Initialize thr->place.
12437         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
12438         team_cancelled and task_queued_count fields.
12439         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
12440         before calling pthread_exit.
12441         (gomp_free_thread): No longer static.  Use
12442         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
12443         (gomp_team_start): Add flags argument.  Set
12444         thr->thread_pool->threads_busy to nthreads immediately after creating
12445         new pool.  Use gomp_managed_threads_lock instead of
12446         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
12447         (gomp_team_end): Use gomp_managed_threads_lock instead of
12448         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
12449         of gomp_team_barrier_wait.  If team->team_cancelled, call
12450         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
12451         rather than thr->ts.work_share.
12452         (initialize_team): Don't call gomp_sem_init here.
12453         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
12454         caller.
12455         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
12456         * env.c (gomp_global_icv): Add default_device_var, target_data and
12457         bind_var initializers.
12458         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
12459         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
12460         gomp_places_list_len): New variables.
12461         (parse_bind_var, parse_one_place, parse_places_var): New functions.
12462         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
12463         sized places.
12464         (gomp_cancel_var): New global variable.
12465         (parse_int): New function.
12466         (handle_omp_display_env): New function.
12467         (initialize_env): Use it.  Initialize default_device_var.
12468         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
12469         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
12470         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
12471         been successfully parsed (and call gomp_init_affinity in that case).
12472         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12473         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12474         omp_get_team_num, omp_is_initial_device): New functions.
12475         * libgomp.h: Include stdlib.h.
12476         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
12477         Define.
12478         (struct target_mem_desc): Forward declare.
12479         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
12480         and thread_limit_var fields.
12481         (gomp_get_num_devices): New prototype.
12482         (gomp_cancel_var): New extern decl.
12483         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
12484         team_cancelled and task_queued_count fields.  Add comments about
12485         task_{,queued_,running_}count.
12486         (gomp_cancel_kind): New enum.
12487         (gomp_work_share_end_cancel): New prototype.
12488         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
12489         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
12490         and depend fields.
12491         (struct gomp_taskgroup): New type.
12492         (struct gomp_task_depend_entry,
12493         struct gomp_dependers_vec): New types.
12494         (gomp_finish_task): Free depend_hash if non-NULL.
12495         (struct gomp_team_state): Add place_partition_off
12496         and place_partition_len fields.
12497         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
12498         gomp_places_list_len): New extern decls.
12499         (struct gomp_thread): Add place field.
12500         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
12501         (gomp_init_thread_affinity): Add place argument.
12502         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12503         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12504         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12505         gomp_affinity_init_level, gomp_affinity_print_place): New
12506         prototypes.
12507         (gomp_team_start): Add flags argument.
12508         (gomp_thread_limit_var, gomp_remaining_threads_count,
12509         gomp_remaining_threads_lock): Remove.
12510         (gomp_managed_threads_lock): New variable.
12511         (struct gomp_thread_pool): Add threads_busy field.
12512         (gomp_free_thread): New prototype.
12513         * task.c: Include hashtab.h.
12514         (hash_entry_type): New typedef.
12515         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
12516         (gomp_init_task): Clear dependers, depend_hash, depend_count,
12517         copy_ctors_done and taskgroup fields.
12518         (GOMP_task): Add depend argument, handle depend clauses.  If
12519         gomp_team_barrier_cancelled or if it's taskgroup has been
12520         cancelled, don't queue or start new tasks.  Set copy_ctors_done
12521         field if needed.  Initialize taskgroup field.  If copy_ctors_done
12522         and already cancelled, don't discard the task.  If taskgroup is
12523         non-NULL, enqueue the task into taskgroup queue.  Increment
12524         num_children field in taskgroup.  Increment task_queued_count.
12525         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
12526         gomp_task_run_post_remove_taskgroup): New inline functions.
12527         (gomp_task_run_post_handle_depend_hash,
12528         gomp_task_run_post_handle_dependers,
12529         gomp_task_run_post_handle_depend): New functions.
12530         (GOMP_taskwait): Use them.  If more than one new tasks
12531         have been queued, wake other threads if needed.
12532         (gomp_barrier_handle_tasks): Likewise.  If
12533         gomp_team_barrier_cancelled, don't start any new tasks, just free
12534         all tasks.
12535         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
12536         * omp_lib.f90.in
12537         (omp_proc_bind_kind, omp_proc_bind_false,
12538         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
12539         omp_proc_bind_spread): New params.
12540         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12541         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12542         omp_get_team_num, omp_is_initial_device): New interfaces.
12543         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
12544         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
12545         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
12546         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
12547         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
12548         useless use omp_lib_kinds.
12549         * omp.h.in (omp_proc_bind_t): New typedef.
12550         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12551         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12552         omp_get_team_num, omp_is_initial_device): New prototypes.
12553         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
12554         through to gomp_team_start.
12555         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
12556         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
12557         Adjust gomp_parallel_loop_start callers.
12558         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
12559         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
12560         GOMP_loop_end_cancel): New functions.
12561         (GOMP_parallel_end): Add ialias_redirect.
12562         * hashtab.h: New file.
12563         * libgomp.texi (Environment Variables): Minor cleanup,
12564         update section refs to OpenMP 4.0rc2.
12565         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
12566         environment variables.
12567         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
12568         team->work_shares_to_free to thr->ts.work_share before calling
12569         free_work_share.
12570         (gomp_work_share_end_cancel): New function.
12571         * config/linux/proc.c: Include errno.h.
12572         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
12573         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
12574         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
12575         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
12576         gomp_cpuset_size is sizeof (cpu_set_t).
12577         (gomp_init_num_threads): Initialize gomp_cpuset_size,
12578         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
12579         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
12580         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
12581         contain any logical CPUs.
12582         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
12583         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
12584         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
12585         pthread_getaffinity_np.  Check gomp_places_list instead of
12586         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
12587         * config/linux/bar.c (gomp_barrier_wait_end,
12588         gomp_barrier_wait_last): Use BAR_* defines.
12589         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
12590         from state where needed.  Set work_share_cancelled to 0 on last
12591         thread.
12592         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
12593         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
12594         functions.
12595         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
12596         Add cpusetsize argument.
12597         (gomp_cpuset_size, gomp_cpusetp): Declare.
12598         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
12599         (affinity_counter): Remove.
12600         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
12601         if CPU_ALLOC_SIZE isn't defined.
12602         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
12603         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
12604         bind current thread to the first place.
12605         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
12606         pthread_setaffinity_np to gomp_places_list[place].
12607         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12608         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12609         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12610         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
12611         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
12612         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
12613         (gomp_barrier_t): Add awaited_final field.
12614         (gomp_barrier_init): Initialize awaited_final field.
12615         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
12616         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
12617         prototypes.
12618         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
12619         defines.
12620         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
12621         gomp_team_barrier_cancelled): New inline functions.
12622         (gomp_barrier_last_thread,
12623         gomp_team_barrier_set_task_pending,
12624         gomp_team_barrier_clear_task_pending,
12625         gomp_team_barrier_set_waiting_for_tasks,
12626         gomp_team_barrier_waiting_for_tasks,
12627         gomp_team_barrier_done): Use BAR_* defines.
12628         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
12629         (gomp_barrier_wait_end): Use BAR_* defines.
12630         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
12631         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
12632         Use BAR_* defines.
12633         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
12634         gomp_team_barrier_cancel): New functions.
12635         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
12636         argument.
12637         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12638         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12639         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12640         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
12641         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
12642         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
12643         (gomp_barrier_t): Add cancellable field.
12644         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
12645         gomp_team_barrier_cancel): New prototypes.
12646         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
12647         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
12648         gomp_team_barrier_cancelled): New inline functions.
12649         (gomp_barrier_wait_start, gomp_barrier_last_thread,
12650         gomp_team_barrier_set_task_pending,
12651         gomp_team_barrier_clear_task_pending,
12652         gomp_team_barrier_set_waiting_for_tasks,
12653         gomp_team_barrier_waiting_for_tasks,
12654         gomp_team_barrier_done): Use BAR_* defines.
12655         * barrier.c (GOMP_barrier_cancel): New function.
12656         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
12657         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
12658         omp_proc_bind_spread): New params.
12659         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12660         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12661         omp_get_team_num, omp_is_initial_device): New externals.
12662         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
12663         New functions.
12664         (gomp_resolve_num_threads): Adjust for thread_limit now being in
12665         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
12666         infinity.  If not nested, just return minimum of max_num_threads
12667         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
12668         to the returned value.  Otherwise, don't update atomically
12669         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
12670         (GOMP_parallel_end): Adjust for thread_limit now being in
12671         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
12672         infinity.  Adjust threads_busy in the pool rather than
12673         gomp_remaining_threads_count.  Remember team->nthreads and call
12674         gomp_team_end before adjusting threads_busy, if not nested
12675         afterwards, just set it to 1 non-atomically.  Add ialias.
12676         (GOMP_parallel_start): Adjust gomp_team_start caller.
12677         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
12678         * testsuite/libgomp.c/affinity-1.c: New test.
12679         * testsuite/libgomp.c/atomic-15.c: New test.
12680         * testsuite/libgomp.c/atomic-16.c: New test.
12681         * testsuite/libgomp.c/atomic-17.c: New test.
12682         * testsuite/libgomp.c/cancel-for-1.c: New test.
12683         * testsuite/libgomp.c/cancel-for-2.c: New test.
12684         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
12685         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
12686         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
12687         * testsuite/libgomp.c/cancel-sections-1.c: New test.
12688         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
12689         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
12690         * testsuite/libgomp.c/depend-1.c: New test.
12691         * testsuite/libgomp.c/depend-2.c: New test.
12692         * testsuite/libgomp.c/depend-3.c: New test.
12693         * testsuite/libgomp.c/depend-4.c: New test.
12694         * testsuite/libgomp.c/for-1.c: New test.
12695         * testsuite/libgomp.c/for-1.h: New file.
12696         * testsuite/libgomp.c/for-2.c: New test.
12697         * testsuite/libgomp.c/for-2.h: New file.
12698         * testsuite/libgomp.c/for-3.c: New test.
12699         * testsuite/libgomp.c/pr58392.c: New test.
12700         * testsuite/libgomp.c/simd-1.c: New test.
12701         * testsuite/libgomp.c/simd-2.c: New test.
12702         * testsuite/libgomp.c/simd-3.c: New test.
12703         * testsuite/libgomp.c/simd-4.c: New test.
12704         * testsuite/libgomp.c/simd-5.c: New test.
12705         * testsuite/libgomp.c/simd-6.c: New test.
12706         * testsuite/libgomp.c/target-1.c: New test.
12707         * testsuite/libgomp.c/target-2.c: New test.
12708         * testsuite/libgomp.c/target-3.c: New test.
12709         * testsuite/libgomp.c/target-4.c: New test.
12710         * testsuite/libgomp.c/target-5.c: New test.
12711         * testsuite/libgomp.c/target-6.c: New test.
12712         * testsuite/libgomp.c/target-7.c: New test.
12713         * testsuite/libgomp.c/taskgroup-1.c: New test.
12714         * testsuite/libgomp.c/thread-limit-1.c: New test.
12715         * testsuite/libgomp.c/thread-limit-2.c: New test.
12716         * testsuite/libgomp.c/thread-limit-3.c: New test.
12717         * testsuite/libgomp.c/udr-1.c: New test.
12718         * testsuite/libgomp.c/udr-2.c: New test.
12719         * testsuite/libgomp.c/udr-3.c: New test.
12720         * testsuite/libgomp.c++/affinity-1.C: New test.
12721         * testsuite/libgomp.c++/atomic-10.C: New test.
12722         * testsuite/libgomp.c++/atomic-11.C: New test.
12723         * testsuite/libgomp.c++/atomic-12.C: New test.
12724         * testsuite/libgomp.c++/atomic-13.C: New test.
12725         * testsuite/libgomp.c++/atomic-14.C: New test.
12726         * testsuite/libgomp.c++/atomic-15.C: New test.
12727         * testsuite/libgomp.c++/cancel-for-1.C: New test.
12728         * testsuite/libgomp.c++/cancel-for-2.C: New test.
12729         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
12730         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
12731         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
12732         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
12733         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
12734         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
12735         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
12736         * testsuite/libgomp.c++/cancel-test.h: New file.
12737         * testsuite/libgomp.c++/for-9.C: New test.
12738         * testsuite/libgomp.c++/for-10.C: New test.
12739         * testsuite/libgomp.c++/for-11.C: New test.
12740         * testsuite/libgomp.c++/simd-1.C: New test.
12741         * testsuite/libgomp.c++/simd-2.C: New test.
12742         * testsuite/libgomp.c++/simd-3.C: New test.
12743         * testsuite/libgomp.c++/simd-4.C: New test.
12744         * testsuite/libgomp.c++/simd-5.C: New test.
12745         * testsuite/libgomp.c++/simd-6.C: New test.
12746         * testsuite/libgomp.c++/simd-7.C: New test.
12747         * testsuite/libgomp.c++/simd-8.C: New test.
12748         * testsuite/libgomp.c++/target-1.C: New test.
12749         * testsuite/libgomp.c++/target-2.C: New test.
12750         * testsuite/libgomp.c++/target-2-aux.cc: New file.
12751         * testsuite/libgomp.c++/target-3.C: New test.
12752         * testsuite/libgomp.c++/taskgroup-1.C: New test.
12753         * testsuite/libgomp.c++/udr-1.C: New test.
12754         * testsuite/libgomp.c++/udr-2.C: New test.
12755         * testsuite/libgomp.c++/udr-3.C: New test.
12756         * testsuite/libgomp.c++/udr-4.C: New test.
12757         * testsuite/libgomp.c++/udr-5.C: New test.
12758         * testsuite/libgomp.c++/udr-6.C: New test.
12759         * testsuite/libgomp.c++/udr-7.C: New test.
12760         * testsuite/libgomp.c++/udr-8.C: New test.
12761         * testsuite/libgomp.c++/udr-9.C: New test.
12763 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
12765         PR testsuite/57605
12766         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
12767         ALWAYS_CFLAGS.
12769 2013-09-20  Alan Modra  <amodra@gmail.com>
12771         * configure: Regenerate.
12773 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
12775         * testsuite/libgomp.c/sections-2.c: New test.
12777 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12779         * testsuite/libgomp.fortran/strassen.f90:
12780         Add dg-skip-if aarch64_tiny.
12782 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
12783             Cesar Philippidis  <cesar@codesourcery.com>
12785         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
12786         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
12787         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
12788         * testsuite/libgomp.fortran/fortran.exp: Likewise.
12789         * testsuite/libgomp.graphite/graphite.exp: Likewise.
12790         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
12791         Use dg-runtest rather than gfortran-dg-runtest.
12793 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
12795         * testsuite/libgomp.c/icv-2.c: Extend current handling of
12796         Linux-based x86 systems to cover all GNU systems.
12797         * testsuite/libgomp.c/lock-3.c: Likewise.
12798         * testsuite/libgomp.c/pr48591.c: Likewise.
12800 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
12802         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
12803         GNU/Hurd, as done for Linux-based systems.
12805         * config/posix/ptrlock.h: Fix comment.
12807 2013-05-27  Tobias Burnus  <burnus@net-b.de>
12809         PR fortran/57423
12810         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
12811         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
12812         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
12813         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
12814         omp_destroy_nest_lock): Correct arguments to match the one in
12815         the OpenMP spec.
12816         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
12817         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
12818         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
12819         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
12821 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
12823         * testsuite/libgomp.c/loop-13.c: New test.
12824         * testsuite/libgomp.c/loop-14.c: New test.
12825         * testsuite/libgomp.c/loop-15.c: New test.
12826         * testsuite/libgomp.c++/loop-13.C: New test.
12827         * testsuite/libgomp.c++/loop-14.C: New test.
12828         * testsuite/libgomp.c++/loop-15.C: New test.
12830 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
12832         PR middle-end/56217
12833         * testsuite/libgomp.c++/pr56217.C: New test.
12835 2013-02-01  Alan Modra  <amodra@gmail.com>
12837         * task.c (GOMP_task, GOMP_taskwait): Comment.
12839 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
12840             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
12842         PR libgomp/55561
12843         * config/linux/wait.h (do_spin): Use atomic load for addr.
12844         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
12845         for intptr and ptrlock.
12846         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
12847         for ptrlock.
12849 2013-01-22  Alan Modra  <amodra@gmail.com>
12851         PR libgomp/51376
12852         PR libgomp/56073
12853         * task.c (GOMP_task): Revert 2011-12-09 change.
12854         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
12855         barrier to read task->children..
12856         (gomp_barrier_handle_tasks): ..and matching atomic store with
12857         release barrier here when setting parent->children to NULL.
12859 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
12860             Tobias Burnus  <burnus@net-b.de>
12862         PR driver/55884
12863         * testsuite/libgomp.fortran/fortran.exp: Use
12864         -fintrinsic-modules-path= instead of
12865         -fintrinsic-modules-path.
12867 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
12869         Update copyright years.
12871 2012-12-19  Tobias Burnus  <burnus@net-b.de>
12873         * testsuite/libgomp.fortran/fortran.exp: Set
12874         -fintrinsic-modules-path.
12876 2012-12-19  Tobias Burnus  <burnus@net-b.de>
12878         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
12879         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
12881 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
12883         PR libgomp/55411
12884         * team.c (gomp_free_thread): Decrease gomp_managed_threads
12885         if pool had any threads_used.
12887 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
12889         * testsuite/libgomp.c++/pr24455.C: Use
12890         -Wl,-undefined,dynamic_lookup on darwin.
12892 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
12894         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
12896 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
12898         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
12900 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
12901             Jim MacArthur  <jim.macarthur@arm.com>
12902             Marcus Shawcroft  <marcus.shawcroft@arm.com>
12903             Nigel Stephens  <nigel.stephens@arm.com>
12904             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12905             Richard Earnshaw  <rearnsha@arm.com>
12906             Sofiane Naci  <sofiane.naci@arm.com>
12907             Stephen Thomas  <stephen.thomas@arm.com>
12908             Tejas Belagod  <tejas.belagod@arm.com>
12909             Yufeng Zhang  <yufeng.zhang@arm.com>
12911         * configure.tgt: Add AArch64.
12913 2012-10-04  Jason Merrill  <jason@redhat.com>
12915         * testsuite/libgomp.c++/tls-init1.C: New.
12917 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
12919         * configure: Regenerated.
12921 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
12923         * config/linux/mips/futex.h (sys_futex0): Change to static
12924         function with noinline, nomips16 attributes under MIPS16. Adjust
12925         asm statement to place 'li v0,SYS_futex' immediately before
12926         syscall insn.
12928 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
12930         * libgomp.texi (Library Index): Renamed from "Index" to prevent
12931         conflict with index.html on case-insensitive file systems.
12933 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
12935         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
12936         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
12938 2012-07-02  Richard Guenther  <rguenther@suse.de>
12939             Michael Matz  <matz@suse.de>
12940             Tobias Grosser <tobias@grosser.es>
12941             Sebastian Pop <sebpop@gmail.com>
12943         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
12944         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
12945         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
12946         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
12948 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
12950         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
12952 2012-06-22  Richard Guenther  <rguenther@suse.de>
12954         Merge from graphite branch
12955         2012-01-13  Tobias Grosser  <tobias@grosser.es>
12957         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
12958         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
12960 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
12962         PR middle-end/53580
12963         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
12964         use GOMP_barrier () call instead.
12965         * testsuite/libgomp.c/pr26943-3.c: Likewise.
12966         * testsuite/libgomp.c/pr26943-4.c: Likewise.
12967         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
12968         call GOMP_barrier instead.
12969         * testsuite/libgomp.fortran/vla5.f90: Likewise.
12971 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
12973         PR libgomp/52993
12974         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
12975         argument to memset call.
12977 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12979         * configure: Regenerated.
12981 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12983         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
12985 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
12987         PR bootstrap/52812
12988         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
12990 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
12992         PR middle-end/52547
12993         * testsuite/libgomp.c/pr52547.c: New test.
12995 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12997         * testsuite/lib/libgomp.exp: load fortran-modules.exp
12999 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13001         * configure.tgt (mips-sgi-irix6*): Remove.
13003 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13005         * configure.tgt (alpha*-dec-osf*): Remove.
13007         * config/osf/sem.h: Remove.
13008         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
13010 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
13012         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
13014 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13016         PR libstdc++/52188
13017         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
13018         Remove ENABLE_SYMVERS_SOL2.
13019         * configure: Regenerate.
13020         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
13021         (PREPROCESS): New variable.
13022         (libgomp.ver): New target.
13023         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
13024         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
13025         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
13026         Use libgomp.ver.
13027         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
13028         * Makefile.in: Regenerate.
13030 2012-02-14  Walter Lee  <walt@tilera.com>
13032         * configure.tgt: Handle tilegx and tilepro.
13033         * config/linux/tile/futex.h: New file.
13035 2012-02-08  Richard Guenther  <rguenther@suse.de>
13037         PR tree-optimization/46886
13038         * testsuite/libgomp.c/pr46886.c: New testcase.
13040 2012-01-25  Matthias Klose  <doko@ubuntu.com>
13042         * config/linux/arm: Remove empty directory.
13043         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
13045 2011-12-09  Alan Modra  <amodra@gmail.com>
13047         PR libgomp/51376
13048         * task.c (GOMP_taskwait): Don't access task->children outside of
13049         task_lock mutex region.
13050         (GOMP_task): Likewise.
13052 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
13054         PR libgomp/51132
13055         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
13056         to file scope.
13057         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
13058         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
13059         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
13060         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
13061         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
13063 2011-12-02  Alan Modra  <amodra@gmail.com>
13065         * config/linux/affinity.c: Use atomic rather than sync builtin.
13066         * config/linux/lock.c: Likewise.
13067         * config/linux/ptrlock.h: Likewise.
13068         * config/linux/ptrlock.c: Likewise.
13069         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
13070         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
13071         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
13072         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
13073         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
13074         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
13075         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
13076         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
13077         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
13078         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
13080 2011-11-30  Alan Modra  <amodra@gmail.com>
13082         PR libgomp/51298
13083         * config/linux/bar.h: Use atomic rather than sync builtins.
13084         * config/linux/bar.c: Likewise.  Add missing acquire
13085         synchronisation on generation field.
13086         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
13087         double unlock.
13089 2011-11-30  Alan Modra  <amodra@gmail.com>
13091         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
13092         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
13093         * config/linux/mutex.h: Use atomic rather than sync builtins.
13094         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
13095         * config/linux/omp-lock.h: Comment fix.
13096         * config/linux/arm/mutex.h: Delete.
13097         * config/linux/powerpc/mutex.h: Delete.
13098         * config/linux/ia64/mutex.h: Delete.
13099         * config/linux/mips/mutex.h: Delete.
13101 2011-11-30  Alan Modra  <amodra@gmail.com>
13103         PR libgomp/51249
13104         * config/linux/sem.h: Rewrite.
13105         * config/linux/sem.c: Rewrite.
13107 2011-11-28  Richard Henderson  <rth@redhat.com>
13109         * libgomp.h (enum memmodel): New.
13111 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
13113         * configure: Regenerate.
13115 2011-10-10  Matthias Klose  <doko@ubuntu.com>
13117         * config/posix95: Remove empty directory.
13119 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
13121         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
13123 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
13125         PR fortran/49792
13126         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
13127         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
13129 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13131         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
13133 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13135         PR libgomp/49965
13136         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
13138 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
13140         * config/linux/proc.h: New.
13141         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
13142         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
13143         (gomp_init_num_threads): Update call to cpuset_popcount.
13144         (get_num_procs): Ditto.
13145         * config/linux/affinity.c (gomp_init_affinity): Call
13146         gomp_cpuset_popcount.
13148 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
13150         PR fortran/42041
13151         PR fortran/46752
13152         * omp.h.in (omp_in_final): New prototype.
13153         * omp_lib.f90.in (omp_in_final): New interface.
13154         (omp_integer_kind, omp_logical_kind): Remove
13155         and replace all its uses in the module with 4.
13156         (openmp_version): Change to 201107.
13157         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
13158         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
13159         kind for the parameters.
13160         (omp_in_final): New external.
13161         (openmp_version): Change to 201107.
13162         * task.c (omp_in_final): New function.
13163         (gomp_init_task): Initialize final_task.
13164         (GOMP_task): Remove unused attribute from flags.  Handle final
13165         tasks.
13166         (GOMP_taskyield): New function.
13167         (omp_in_final): Return true if if (false) or final (true) task
13168         or descendant of final (true).
13169         * fortran.c (omp_in_final_): New function.
13170         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
13171         (GOMP_3.0): Export GOMP_taskyield.
13172         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
13173         variables.
13174         (parse_unsigned_long_list): New function.
13175         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
13176         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
13177         even if parse_affinity returned false.
13178         * config/linux/affinity.c (gomp_init_affinity): Handle
13179         gomp_cpu_affinity_len == 0.
13180         * libgomp_g.h (GOMP_taskyield): New prototype.
13181         * libgomp.h (struct gomp_task): Add final_task field.
13182         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
13183         * team.c (gomp_team_start): Override new task's nthreads_var icv
13184         if list form OMP_NUM_THREADS has been used and it has value for
13185         the new nesting level.
13187         * testsuite/libgomp.c/atomic-11.c: New test.
13188         * testsuite/libgomp.c/atomic-12.c: New test.
13189         * testsuite/libgomp.c/atomic-13.c: New test.
13190         * testsuite/libgomp.c/atomic-14.c: New test.
13191         * testsuite/libgomp.c/reduction-6.c: New test.
13192         * testsuite/libgomp.c/task-5.c: New test.
13193         * testsuite/libgomp.c++/atomic-2.C: New test.
13194         * testsuite/libgomp.c++/atomic-3.C: New test.
13195         * testsuite/libgomp.c++/atomic-4.C: New test.
13196         * testsuite/libgomp.c++/atomic-5.C: New test.
13197         * testsuite/libgomp.c++/atomic-6.C: New test.
13198         * testsuite/libgomp.c++/atomic-7.C: New test.
13199         * testsuite/libgomp.c++/atomic-8.C: New test.
13200         * testsuite/libgomp.c++/atomic-9.C: New test.
13201         * testsuite/libgomp.c++/task-8.C: New test.
13202         * testsuite/libgomp.c++/reduction-4.C: New test.
13203         * testsuite/libgomp.fortran/allocatable7.f90: New test.
13204         * testsuite/libgomp.fortran/allocatable8.f90: New test.
13205         * testsuite/libgomp.fortran/crayptr3.f90: New test.
13206         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
13207         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
13208         * testsuite/libgomp.fortran/pointer1.f90: New test.
13209         * testsuite/libgomp.fortran/pointer2.f90: New test.
13210         * testsuite/libgomp.fortran/task4.f90: New test.
13212 2011-08-02  Tobias Burnus  <burnus@net-b.de>
13214         * libgomp.texi: Update OpenMP spec references to 3.1.
13215         (omp_in_final,OMP_PROC_BIND): New sections.
13216         (OMP_NUM_THREADS): Document that the value can be now a list.
13217         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
13219 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
13221         * config/linux/x86/futex.h: Check __x86_64__ instead of
13222         __LP64__.
13224 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
13226         PR middle-end/49897
13227         PR middle-end/49898
13228         * testsuite/libgomp.c/pr49897-1.c: New test.
13229         * testsuite/libgomp.c/pr49897-2.c: New test.
13230         * testsuite/libgomp.c/pr49898-1.c: New test.
13231         * testsuite/libgomp.c/pr49898-2.c: New test.
13233 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
13235         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
13236         for ia32 instead of ilp32.
13238         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
13239         * testsuite/libgomp.c/atomic-6.c: Likewise.
13241 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
13243         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
13244         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
13246 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13248         PR libgomp/45351
13249         * config/osf/sem.h: New file.
13250         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
13252 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13254         PR target/49541
13255         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
13256         ldflags.
13258 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
13260         * config/linux/wait.h (do_spin): New inline, largely copied
13261         from do_wait, just don't do futex_wait here, instead return true if
13262         it should be done.
13263         (do_wait): Implement using do_spin.
13264         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
13265         to prototype.
13266         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
13267         __sync_bool_compare_and_swap, pass the oldval to
13268         gomp_mutex_lock_slow.
13269         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
13270         If all mutex contenders are just spinning and not sleeping, don't
13271         change state to 2 unnecessarily.  Optimize the loop when state has
13272         already become 2 to use just one atomic operation per loop instead
13273         of two.
13274         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
13275         to prototype.
13276         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
13277         __sync_bool_compare_and_swap, pass the oldval to
13278         gomp_mutex_lock_slow.
13280 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
13282         PR libgomp/49490
13283         * iter.c (gomp_iter_static_next): For chunk size 0
13284         only use n ceil/ nthreads size for the first
13285         n % nthreads threads in the team instead of
13286         all threads except for the last few ones which
13287         get less work or none at all.
13288         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
13289         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
13290         chunk argument, set run_sched_modifier to 0 for static
13291         resp. 1 for other kinds.  If chunk argument is 0
13292         and not static, set value to 1.
13294 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
13296         PR c++/49043
13297         * testsuite/libgomp.c++/pr49043.C: New test.
13299         PR c++/48869
13300         * testsuite/libgomp.c++/pr48869.C: New test.
13302 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
13304         PR fortran/48894
13305         * fortran.c: Include limits.h.
13306         (TO_INT): Define.
13307         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
13308         *set.
13309         (omp_set_num_threads_8_, omp_set_schedule_8_,
13310         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
13311         omp_get_team_size_8_): Use TO_INT macro.
13312         * testsuite/libgomp.fortran/pr48894.f90: New test.
13314 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
13316         PR middle-end/48591
13317         * testsuite/libgomp.c/pr48591.c: New test.
13319 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13321         PR bootstrap/48135
13322         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
13323         * configure: Regenerate.
13325 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
13327         PR fortran/47886
13328         * testsuite/libgomp.fortran/task3.f90: New test.
13330 2011-02-24  Tobias Burnus  <burnus@net-b.de>
13332         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
13334 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
13336         PR libgomp/47854
13337         * libgomp.texi (omp_get_wtime): Don't say time in the past
13338         must be Unix Epoch.
13340 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
13342         PR libgomp/47804
13343         * testsuite/libgomp.fortran/fortran.exp: Check for both
13344         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
13345         but $blddir != "", still append ${blddir}/${lang_library_path}
13346         to ld_library_path.
13348 2011-02-16  Tobias Burnus  <burnus@net-b.de>
13350         PR libgomp/47758
13351         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
13352         of libquadmath.a before adding its libpath to ldflags.
13354 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
13356         PR libgomp/47731
13357         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
13358         to FUTEX_WAIT futex syscall.
13359         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
13361 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13363         * configure: Regenerate.
13365 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
13367         PR libstdc++/36104
13368         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
13370 2011-01-16  Gerald Pfeifer
13372         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
13374 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
13376         PR fortran/46874
13377         * libgomp.fortran/allocatable6.f90: New test.
13379 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13381         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
13382         * configure: Regenerate.
13384 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
13386         PR target/40125
13387         PR lto/46695
13388         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
13389         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
13390         * aclocal.m4: Regenerate.
13391         * configure: Regenerate.
13392         * Makefile.in: Regenerate.
13393         * testsuite/Makefile.in: Regenerate.
13395 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
13397         PR fortran/46753
13398         * libgomp.fortran/pr46753.f90: New test.
13400         PR libgomp/43706
13401         * env.c (initialize_env): Default to spin count 300000
13402         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
13403         is specified.
13405         PR libgomp/45240
13406         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
13407         at the end if sync builtins aren't supported.
13409 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13411         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
13413 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13415         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
13417 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
13419         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
13421 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13422             Tobias Burnus  <burnus@net-b.de>
13424         PR fortran/32049
13425         * configure.ac:
13426         * configure: Regenerate.
13428 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13430         * config/linux/futex.h: New.
13431         * config/linux/arm/mutex.h: New.
13432         * configure.tgt (arm*-*-linux*): Add config path.
13434 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
13436         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13438 2010-09-23  Tobias Burnus  <burnus@net-b.de>
13440         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
13441         Change Fortran datatype to LOGICAL.
13442         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
13443         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
13445 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13447         * configure: Regenerate.
13449 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
13451         * libgomp.texi: Add function keyword to a couple of Fortran
13452         interfaces, use integer instead of int for Fortran.
13454 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
13456         * libgomp.texi: Fix spelling and pasto problems throughout.
13457         Adjust prototypes to match code.
13459 2010-07-24  Tobias Burnus  <burnus@net-b.de>
13461         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
13462         silence -fwhole-file warning.
13464 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13466         * configure.tgt (*-*-solaris2.[56]*): Removed.
13468 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13470         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
13471         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
13472         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
13473         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
13474         targetting solaris2*.
13475         * configure: Regenerate.
13476         * config.h.in: Regenerate.
13478         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
13479         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
13480         Add libgomp_version_dep.
13481         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
13482         versioning.
13483         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
13484         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
13485         * Makefile.in: Regenerate.
13487         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
13488         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
13489         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
13490         to common block, protected by
13491         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
13493 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
13495         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
13497 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
13499         PR bootstrap/43170
13500         * configure: Regenerate.
13502 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13504         PR other/43620
13505         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
13506         * configure: Regenerate.
13507         * Makefile.in: Regenerate.
13508         * testsuite/Makefile.in: Regenerate.
13510 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
13512         PR c/43893
13513         * testsuite/libgomp.c/pr43893.c: New test.
13514         * testsuite/libgomp.c++/pr43893.C: New test.
13516 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
13518         PR middle-end/43570
13519         * testsuite/libgomp.fortran/vla8.f90: New test.
13521 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
13523         PR libgomp/43706
13524         * config/linux/affinity.c (gomp_init_affinity): Decrease
13525         gomp_available_cpus if affinity mask confines the process to fewer
13526         CPUs.
13527         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
13528         non-NULL, just return gomp_available_cpus.
13530         PR libgomp/43569
13531         * sections.c (gomp_sections_init): Initialize ws->mode.
13533 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13535         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
13536         not unused bar variable.
13537         * configure: Regenerate.
13539 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13541         * Makefile.in: Regenerate.
13542         * aclocal.m4: Regenerate.
13543         * testsuite/Makefile.in: Regenerate.
13545 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
13547         PR libgomp/42942
13548         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
13549         (initialize_env): Adjust callers.
13550         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
13551         when the argument is 0.
13553         * testsuite/libgomp.c/pr42942.c: New test.
13555 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
13557         PR middle-end/42644
13558         PR middle-end/42130
13559         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13560         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
13562 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13564         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
13565         * testsuite/libgomp.c++/task-6.C: Likewise.
13567 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
13569         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
13571 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
13573         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
13574         * configure: Regenerate.
13576 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
13578         PR fortran/42866
13579         * testsuite/libgomp.fortran/allocatable5.f90: New test.
13581 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
13583         * configure.ac: Test for executability of GFORTRAN.
13584         * configure: Regenerate.
13586 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13588         * configure: Regenerate.
13590 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
13592         PR libgomp/42602
13593         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
13595 2010-01-03  Richard Guenther  <rguenther@suse.de>
13597         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
13599 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
13601         * testsuite/libgomp.graphite/pr4118.c: New.
13603 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
13605         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
13606         for darwin, protect the test with require-effective-target tls_runtime.
13607         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
13609 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
13611         PR target/41605
13612         * testsuite/lib/libgomp.exp: Provide -B options to allow for
13613         link spec %s substitutions for static libraries.
13615 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
13617         PR testsuite/42135
13618         * libgomp.graphite/force-parallel-2.c: Reduce array size.
13620 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13622         * Makefile.in: Regenerate.
13623         * configure: Regenerate.
13624         * testsuite/Makefile.in: Regenerate.
13626 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
13628         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
13629         settings for LC_ALL and LANG.
13631 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
13633         PR fortran/42162
13634         * testsuite/libgomp.fortran/pr42162.f90: New test.
13636 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
13638         PR middle-end/42029
13639         * testsuite/libgomp.c/pr42029.c: New test.
13641 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
13643         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
13644         *s.  Accept ld version without text in ()s.
13645         * configure: Regenerated.
13647 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
13649         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
13651 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13653         PR libgomp/41418
13654         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
13655         or a hyphen (happens with fortran language disabled).
13656         * configure: Regenerate.
13658 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13660         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
13661         use sed script portable to Solaris /bin/sed for extracting ld
13662         version.
13663         * configure: Regenerate.
13665 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
13667         * testsuite/libgomp.graphite/bounds.c: New test.
13669 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13671         * Makefile.am (libgomp_la_LINK): New.
13672         * Makefile.in: Regenerate.
13674 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13676         * configure.ac (AC_PREREQ): Bump to 2.64.
13678 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13680         * Makefile.am (install-html, install-pdf): Remove.
13681         * Makefile.in: Regenerate.
13683         * Makefile.in: Regenerate.
13684         * aclocal.m4: Regenerate.
13685         * config.h.in: Regenerate.
13686         * configure: Regenerate.
13687         * testsuite/Makefile.in: Regenerate.
13689 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13691         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
13692         * Makefile.in: Regenerate.
13694 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
13696         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
13697         * Makefile.in: Regenerate.
13699 2009-08-19  Tobias Burnus  <burnus@net-b.de>
13701         PR fortran/41102
13702         omp_lib.h.in: Fix -std=f95 errors.
13704 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
13706         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
13707         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
13708         * testsuite/libgomp.graphite/graphite.exp: New.
13710 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
13712         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
13713         only build.
13715 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
13717         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
13718         needed memory barrier semantics.
13719         * config/linux/mips/mutex.h: New file.
13721 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13723         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
13725 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
13727         * configure: Regenerate.
13729 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
13731         PR testsuite/40699
13732         PR testsuite/40707
13733         PR testsuite/40709
13734         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
13735         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
13736         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
13738 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
13740         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
13741         options when choosing a multilib.
13743 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
13745         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
13746         ld_library_path.  Use add_path.  Add just find_libgcc_s to
13747         ld_library_path, not every libgcc multilib directory.
13748         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
13749         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
13750         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
13751         Use add_path.
13752         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
13754 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
13756         * Makefile.am (LTLDFLAGS): Define.
13757         (LINK): Define.
13758         * Makefile.in: Regenerate.
13760 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
13762         PR fortran/39718
13763         * testsuite/libgomp.fortran/fortran.exp: Don't link with
13764         libgfortranbegin, check existence of libgfortran.a instead of
13765         libgfortranbegin.a.
13767 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
13769         PR libgomp/40174
13770         * team.c (gomp_thread_start): Destroy thr->release semaphore.
13771         (gomp_free_pool_helper): Likewise.
13773 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
13774             Jakub Jelinek  <jakub@redhat.com>
13776         PR fortran/35423
13777         * testsuite/libgomp.fortran/workshare2.f90: New test.
13779 2009-04-09  Nick Clifton  <nickc@redhat.com>
13781         * iter.c: Change copyright header to refer to version 3 of the
13782         GNU General Public License with version 3.1 of the GCC Runtime
13783         Library Exception and to point readers at the COPYING3 and
13784         COPYING3.RUNTIME files and the FSF's license web page.
13785         * alloc.c: Likewise.
13786         * barrier.c: Likewise.
13787         * config/bsd/proc.c: Likewise.
13788         * config/linux/affinity.c: Likewise.
13789         * config/linux/alpha/futex.h: Likewise.
13790         * config/linux/bar.c: Likewise.
13791         * config/linux/bar.h: Likewise.
13792         * config/linux/ia64/futex.h: Likewise.
13793         * config/linux/ia64/mutex.h: Likewise.
13794         * config/linux/lock.c: Likewise.
13795         * config/linux/mips/futex.h: Likewise.
13796         * config/linux/mutex.c: Likewise.
13797         * config/linux/mutex.h: Likewise.
13798         * config/linux/powerpc/futex.h: Likewise.
13799         * config/linux/proc.c: Likewise.
13800         * config/linux/ptrlock.c: Likewise.
13801         * config/linux/ptrlock.h: Likewise.
13802         * config/linux/s390/futex.h: Likewise.
13803         * config/linux/sem.c: Likewise.
13804         * config/linux/sem.h: Likewise.
13805         * config/linux/sparc/futex.h: Likewise.
13806         * config/linux/wait.h: Likewise.
13807         * config/linux/x86/futex.h: Likewise.
13808         * config/mingw32/proc.c: Likewise.
13809         * config/mingw32/time.c: Likewise.
13810         * config/posix/affinity.c: Likewise.
13811         * config/posix/bar.c: Likewise.
13812         * config/posix/bar.h: Likewise.
13813         * config/posix/lock.c: Likewise.
13814         * config/posix/mutex.h: Likewise.
13815         * config/posix/proc.c: Likewise.
13816         * config/posix/ptrlock.h: Likewise.
13817         * config/posix/sem.c: Likewise.
13818         * config/posix/sem.h: Likewise.
13819         * config/posix/time.c: Likewise.
13820         * config/posix95/lock.c: Likewise.
13821         * critical.c: Likewise.
13822         * env.c: Likewise.
13823         * error.c: Likewise.
13824         * fortran.c: Likewise.
13825         * iter_ull.c: Likewise.
13826         * libgomp.h: Likewise.
13827         * libgomp_f.h.in: Likewise.
13828         * libgomp_g.h: Likewise.
13829         * loop.c: Likewise.
13830         * loop_ull.c: Likewise.
13831         * omp.h.in: Likewise.
13832         * omp_lib.f90.in: Likewise.
13833         * omp_lib.h.in: Likewise.
13834         * ordered.c: Likewise.
13835         * parallel.c: Likewise.
13836         * sections.c: Likewise.
13837         * single.c: Likewise.
13838         * task.c: Likewise.
13839         * team.c: Likewise.
13840         * work.c: Likewise.
13842 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
13844         * testsuite/config/default.exp: Change copyright header to refer to
13845         version 3 of the GNU General Public License and to point readers
13846         at the COPYING3 file and the FSF's license web page.
13848 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
13850         PR middle-end/39573
13851         * libgomp.c++/pr39573.C: New test.
13853 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
13855         PR other/39591
13856         * testsuite/libgomp.c/pr39591-1.c: New test.
13857         * testsuite/libgomp.c/pr39591-2.c: New test.
13858         * testsuite/libgomp.c/pr39591-3.c: New test.
13860 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
13862         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
13863         * testsuite/libgomp.c/atomic-6.c: Ditto.
13865 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
13867         PR c/39495
13868         * testsuite/libgomp.c/loop-12.c: New test.
13869         * testsuite/libgomp.c/loop-11.c: New test.
13870         * testsuite/libgomp.c++/loop-11.C: New test.
13871         * testsuite/libgomp.c++/loop-12.C: New test.
13872         * testsuite/libgomp.c++/for-8.C: New test.
13874 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13876         * configure: Regenerate.
13878 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
13880         PR middle-end/39154
13881         * testsuite/libgomp.c/pr39154.c: New test.
13883 2009-01-30  Ian Lance Taylor  <iant@google.com>
13885         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
13886         libgomp_ld_is_gold.  Get gold version number.
13887         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
13888         * configure: Rebuild.
13890 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
13892         * testsuite/lib/libgomp.exp: Add -B option for targets that
13893         use libgfortran.a%s in their specs.
13895 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
13897         PR libgomp/38086
13898         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
13899         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
13900         HAVE_AS_SYMVER_DIRECTIVE is not defined.
13901         * configure: Regenerated.
13902         * config.h.in: Likewise.
13904 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
13906         PR c++/38650
13907         * testsuite/libgomp.c/pr38650.c: New test.
13908         * testsuite/libgomp.c++/pr38650.C: New test.
13910 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
13912         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
13914 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
13916         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
13918 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13920         * configure: Regenerate.
13922 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
13924         PR middle-end/36802
13925         * testsuite/libgomp.c/pr36802-1.c: New test.
13926         * testsuite/libgomp.c/pr36802-2.c: New test.
13927         * testsuite/libgomp.c/pr36802-3.c: New test.
13929 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
13931         PR libgomp/38270
13932         * config/linux/powerpc/mutex.h: New.
13934 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
13936         PR c++/38257
13937         * testsuite/libgomp.c++/for-7.C: New test.
13939         PR c++/38348
13940         * testsuite/libgomp.c++/for-6.C: New test.
13942 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
13944         PR testsuite/28870
13945         * testsuite/lib/libgomp.exp: Include new timeout library files.
13946         (libgomp_target_compile): Set timeout value from new proc.
13948 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
13950         PR libgomp/37938
13951         * config/linux/ia64/mutex.h: New.
13953 2008-11-04  Tobias Burnus  <burnus@net-b.de>
13955         PR libgomp/37935
13956         * libgomp.texi (Runtime library routines, environment variables):
13957         Update for OpenMP version 3.0.
13959 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
13960             Steve Ellcey  <sje@cup.hp.com>
13962         * configure: Regenerate for new libtool.
13963         * Makefile.in: Ditto.
13964         * testsuite/Makefile.in: Ditto.
13966 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
13967             Andreas Tobler  <a.tobler@schweiz.org>
13969         * config/bsd/proc.c: New file.
13970         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
13971         * configure.ac: Check for header <sys/sysctl.h>
13972         * configure: Regenerate.
13973         * config.h.in: Likewise.
13975 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
13977         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
13979 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
13981         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
13982         * Makefile.in: Regenerated.
13983         * testsuite/Makefile.in: Regenerated.
13985 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
13987         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
13988         depend on blddir if blddir exists.
13989         (libgomp_target_compile): Likewise.
13990         * testsuite/libgomp.c++/c++.exp: Likewise.
13991         * testsuite/libgomp.fortran/fortran.exp: Likewise.
13993 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13995         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
13996         Do not list GPL as Invariant Section.
13998 2008-07-28  Ilie Garbacea  <ilie@mips.com>
13999             Chao-ying Fu  <fu@mips.com>
14001         * configure.tgt: Enable futex for MIPS.
14002         * config/linux/mips/futex.h: New file.
14004 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
14006         * team.c (gomp_team_end): Free team immediately if it has
14007         just one thread.
14009 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
14011         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
14012         * testsuite/libgomp.fortran/fortran.exp: Same.
14013         * testsuite/libgomp.c/c.exp: Same.
14014         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
14015         directory to library path first.
14017 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
14019         * env.c (parse_stacksize): Add cast to avoid warning.
14020         (parse_spincount): Likewise.
14022 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
14024         * testsuite/libgomp.c/loop-10.c: New test.
14025         * libgomp.c/loop-3.c (main): Add lastprivate clause.
14026         * libgomp.c++/loop-6.C (main): Likewise.
14028         PR debug/36617
14029         * testsuite/libgomp.c/debug-1.c: New test.
14031 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
14033         * testsuite/libgomp.c/nqueens-1.c: New test.
14035         PR c++/36523
14036         * testsuite/libgomp.c++/task-7.C: New function.
14038 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14040         * configure: Regenerate.
14042 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14044         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
14045         mutex when HAVE_SYNC_BUILTINS isn't defined.
14047 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14049         * libgomp.texi (omp_test_lock): Fix typo.
14051 2008-06-12  Tobias Burnus  <burnus@net-b.de>
14053         * omp_lib.f90.in: Add "implicit none".
14055 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
14057         PR middle-end/36506
14058         * testsuite/libgomp.c/reduction-5.c: New test.
14060 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
14062         * libgomp.h (struct gomp_task): Add in_tied_task field.
14063         * task.c (gomp_init_task): Initialize it.
14064         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
14065         unconditionally.  Don't call gomp_team_barrier_wake if
14066         current task is implicit or if(0) from implicit and number of
14067         running tasks is equal to nthreads - 1.
14069         PR libgomp/36471
14070         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
14071         omp_get_team_size_8): Fix pastos.
14073         PR libgomp/36469
14074         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
14075         * configure: Regenerated.
14076         * config.h.in: Regenerated.
14077         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
14078         defined.
14080 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
14082         PR bootstrap/36452
14083         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
14084         (GOMP_loop_ull_dynamic_start): Likewise.
14085         (GOMP_loop_ull_guided_start): Likewise.
14086         (GOMP_loop_ull_ordered_static_start): Likewise.
14087         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
14088         (GOMP_loop_ull_ordered_guided_start): Likewise.
14090 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
14091             Richard Henderson  <rth@redhat.com>
14092             Ulrich Drepper  <drepper@redhat.com>
14093             Jakob Blomer  <jakob.blomer@ira.uka.de>
14095         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
14096         Substitute also OMP_*LOCK_25*.
14097         * configure: Regenerated.
14098         * config.h.in: Regenerated.
14099         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
14100         ptrlock.c and task.c.
14101         * Makefile.in: Regenerated.
14102         * testsuite/Makefile.in: Regenerated.
14103         * task.c: New file.
14104         * loop_ull.c: New file.
14105         * iter_ull.c: New file.
14106         * libgomp.h: Include ptrlock.h.
14107         (enum gomp_task_kind): New type.
14108         (struct gomp_team): Add task_lock, task_queue, task_count,
14109         task_running_count, single_count fields.  Add
14110         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
14111         Remove work_share_lock, generation_mask,
14112         oldest_live_gen, num_live_gen and init_work_shares fields, add
14113         work work_share_list_alloc, work_share_list_free and work_share_chunk
14114         fields.  Change work_shares from pointer to pointers into an array.
14115         Change ordered_release field into gomp_sem_t ** from flexible array
14116         member.  Add implicit_task and initial_work_shares fields.
14117         Move close to the end of the struct.
14118         (struct gomp_team_state): Add single_count, last_work_share,
14119         active_level and level fields, remove work_share_generation.
14120         (gomp_barrier_handle_tasks): New prototype.
14121         (gomp_finish_task): New inline function.
14122         (struct gomp_work_share): Move chunk_size, end, incr into
14123         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
14124         next_ll fields.  Reshuffle fields.  Add next_alloc,
14125         next_ws, next_free and inline_ordered_team_ids fields, change
14126         ordered_team_ids into pointer from flexible array member.
14127         Add mode field.  Put lock and next into a different cache line
14128         from most of the write-once fields.
14129         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
14130         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
14131         gomp_iter_ull_guided_next): New prototypes.
14132         (gomp_new_icv): New prototype.
14133         (struct gomp_thread): Add thread_pool and task fields.
14134         (struct gomp_thread_pool): New type.
14135         (gomp_new_team): New prototype.
14136         (gomp_team_start): Change type of last argument.
14137         (gomp_new_work_share): Removed.
14138         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
14139         (gomp_work_share_init_done): New static inline.
14140         (gomp_throttled_spin_count_var, gomp_available_cpus,
14141         gomp_managed_threads): New extern decls.
14142         (gomp_init_task): New prototype.
14143         (gomp_spin_count_var): New extern var decl.
14144         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
14145         or no alias support, or if not PIC.
14146         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
14147         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
14148         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
14149         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
14150         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
14151         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
14152         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
14153         gomp_test_nest_lock_25): New prototypes.
14154         (omp_lock_symver, strong_alias): Define.
14155         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
14156         decls.
14157         (gomp_end_task): New.
14158         (struct gomp_task_icv, gomp_global_icv): New.
14159         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
14160         (struct gomp_task): New.
14161         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
14162         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
14163         (gomp_icv): New.
14164         (gomp_schedule_type): Reorder enum to match
14165         omp_sched_t.
14166         * team.c (struct gomp_thread_start_data): Add thread_pool and task
14167         fields.
14168         (gomp_thread_start): Add gomp_team_barrier_wait call.
14169         For non-nested case remove clearing of docked thread thr fields.
14170         Use pool fields instead of global gomp_* variables.  Use
14171         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
14172         Create tasks for each member thread.
14173         (free_team): Only destroy team barrier, task_lock here and free it.
14174         (gomp_free_thread): Free last_team if non-NULL.
14175         (gomp_team_end): Call gomp_team_barrier_wait instead of
14176         gomp_barrier_wait.  For nested case call one extra
14177         gomp_barrier_wait.  Move here some destruction from free_team.
14178         Call free_team on pool->last_team if any, rather than freeing
14179         current team.  Destroy work_share_list_free_lock ifndef
14180         HAVE_SYNC_BUILTINS.
14181         (gomp_new_icv): New function.
14182         (gomp_threads, gomp_threads_size, gomp_threads_used,
14183         gomp_threads_dock): Removed.
14184         (gomp_thread_destructor): New variable.
14185         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
14186         functions.
14187         (gomp_team_start): Create new pool if current thread doesn't have
14188         one.  Use pool fields instead of global gomp_* variables.
14189         Initialize thread_pool field for new threads.  Clear single_count.
14190         Change last argument from ws to team, don't create
14191         new team, set ts.work_share to &team->work_shares[0] and clear
14192         ts.last_work_share.  Don't clear ts.work_share_generation.
14193         If number of threads changed, adjust atomically gomp_managed_threads.
14194         Use gomp_init_task instead of gomp_new_task,
14195         set thr->task to the corresponding implicit_task array entry.
14196         Create tasks for each member thread.  Initialize ts.level.
14197         (initialize_team): Call pthread_key_create on
14198         gomp_thread_destructor.
14199         (team_destructor): New function.
14200         (new_team): Removed.
14201         (gomp_new_team): New function.
14202         (free_team): Free gomp_work_share blocks chained through next_alloc,
14203         instead of freeing work_shares and destroying work_share_lock.
14204         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
14205         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
14206         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
14207         of gomp_barrier_wait.
14208         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
14209         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
14210         if gomp_work_share_start returned true.  Don't unlock ws->lock.
14211         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
14212         of gomp_barrier_wait.
14213         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
14214         gomp_work_share_init_done if gomp_work_share_start returned true.
14215         Don't unlock ws->lock.
14216         * work.c: Include stddef.h.
14217         (free_work_share): Use work_share_list_free_lock instead
14218         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
14219         Call gomp_fini_work_share and then either free ws if orphaned, or
14220         put it into work_share_list_free list of the current team.
14221         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
14222         functions.
14223         (gomp_work_share_start, gomp_work_share_end,
14224         gomp_work_share_end_nowait): Rewritten.
14225         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
14226         (openmp_version): Set to 200805.
14227         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
14228         omp_sched_guided, omp_sched_auto): New parameters.
14229         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14230         omp_set_max_active_levels, omp_get_max_active_levels,
14231         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14232         omp_get_active_level): New interfaces.
14233         * omp_lib.h.in (openmp_version): Set to 200805.
14234         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
14235         omp_sched_guided, omp_sched_auto): New parameters.
14236         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14237         omp_set_max_active_levels, omp_get_max_active_levels,
14238         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14239         omp_get_active_level): New externals.
14240         * loop.c: Include limits.h.
14241         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
14242         GFS_AUTO.
14243         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
14244         Likewise.  Use gomp_icv.
14245         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
14246         ts.static_trip here.
14247         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
14248         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
14249         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
14250         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
14251         don't unlock ws->lock, otherwise lock it.
14252         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
14253         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
14254         (gomp_parallel_loop_start): Call gomp_new_team instead of
14255         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
14256         Adjust gomp_team_start caller.  Pass 0 as second argument to
14257         gomp_resolve_num_threads.
14258         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
14259         If adding ws->chunk_size nthreads + 1 times after end won't
14260         overflow, set ws->mode to 1.
14261         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
14262         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
14263         GOMP_loop_ull_ordered_static_start,
14264         GOMP_loop_ull_ordered_dynamic_start,
14265         GOMP_loop_ull_ordered_guided_start,
14266         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
14267         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
14268         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
14269         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
14270         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
14271         prototypes.
14272         * libgomp.map: Export lock routines also @@OMP_2.0.
14273         (GOMP_loop_ordered_dynamic_first,
14274         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
14275         GOMP_loop_ordered_static_first): Remove.
14276         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
14277         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
14278         GOMP_loop_ull_ordered_dynamic_next,
14279         GOMP_loop_ull_ordered_dynamic_start,
14280         GOMP_loop_ull_ordered_guided_next,
14281         GOMP_loop_ull_ordered_guided_start,
14282         GOMP_loop_ull_ordered_runtime_next,
14283         GOMP_loop_ull_ordered_runtime_start,
14284         GOMP_loop_ull_ordered_static_next,
14285         GOMP_loop_ull_ordered_static_start,
14286         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
14287         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
14288         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
14289         (omp_set_schedule, omp_get_schedule,
14290         omp_get_thread_limit, omp_set_max_active_levels,
14291         omp_get_max_active_levels, omp_get_level,
14292         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
14293         omp_set_schedule_, omp_set_schedule_8_,
14294         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
14295         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
14296         omp_get_max_active_levels_, omp_get_level_,
14297         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
14298         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
14299         New exports @@OMP_3.0.
14300         * omp.h.in (omp_sched_t): New type.
14301         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14302         omp_set_max_active_levels, omp_get_max_active_levels,
14303         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
14304         omp_get_active_level): New prototypes.
14305         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
14306         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
14307         gomp_thread_limit_var, gomp_remaining_threads_count,
14308         gomp_remaining_threads_lock): New variables.
14309         (parse_spincount): New function.
14310         (initialize_env): Call gomp_init_num_threads unconditionally.
14311         Initialize gomp_available_cpus.  Call parse_spincount,
14312         initialize gomp_{,throttled_}spin_count_var
14313         depending on presence and value of OMP_WAIT_POLICY and
14314         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
14315         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
14316         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
14317         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
14318         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
14319         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
14320         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
14321         (gomp_global_icv): New.
14322         (parse_schedule): Use it.  Parse "auto".
14323         (omp_set_num_threads): Use gomp_icv.
14324         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
14325         Likewise.
14326         (omp_get_max_threads): Move from parallel.c.
14327         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
14328         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
14329         add ialias.
14330         (parse_stacksize, parse_wait_policy): New functions.
14331         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
14332         both wrappers for compatibility and new locks.
14333         (omp_set_schedule, omp_get_schedule,
14334         omp_get_thread_limit, omp_set_max_active_levels,
14335         omp_get_max_active_levels, omp_get_level,
14336         omp_get_ancestor_thread_num, omp_get_team_size,
14337         omp_get_active_level): New ialias_redirect.
14338         (omp_set_schedule_, omp_set_schedule_8_,
14339         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
14340         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
14341         omp_get_max_active_levels_, omp_get_level_,
14342         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
14343         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
14344         New functions.
14345         * parallel.c: Include limits.h.
14346         (gomp_resolve_num_threads): Add count argument.  Rewritten.
14347         (GOMP_parallel_start): Call gomp_new_team and pass that as last
14348         argument to gomp_team_start.  Pass 0 as second argument to
14349         gomp_resolve_num_threads.
14350         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
14351         if gomp_thread_limit_var != ULONG_MAX.
14352         (omp_in_parallel): Implement using ts.active_level.
14353         (omp_get_max_threads): Move to env.c.
14354         (omp_get_level, omp_get_ancestor_thread_num,
14355         omp_get_team_size, omp_get_active_level): New functions,
14356         add ialias.
14357         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
14358         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
14359         gomp_iter_dynamic_next instead of the _locked variant and don't take
14360         lock around it, otherwise acquire it before calling
14361         gomp_iter_dynamic_next_locked.
14362         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
14363         gomp_iter_dynamic_next instead of the _locked variant and don't take
14364         lock around it.
14365         (GOMP_parallel_sections_start): Call gomp_new_team instead of
14366         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
14367         Adjust gomp_team_start caller.  Pass count as second argument to
14368         gomp_resolve_num_threads, don't adjust num_threads after the call.
14369         Use gomp_icv.
14370         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
14371         ws->chunk_size by incr.
14372         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
14373         code.
14374         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
14375         types.
14376         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
14377         (omp_check_defines): Check even the compat defines.
14378         * config/linux/ptrlock.c: New file.
14379         * config/linux/ptrlock.h: New file.
14380         * config/linux/wait.h: New file.
14381         * config/posix/ptrlock.c: New file.
14382         * config/posix/ptrlock.h: New file.
14383         * config/linux/bar.h (gomp_team_barrier_wait,
14384         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
14385         (gomp_team_barrier_set_task_pending,
14386         gomp_team_barrier_clear_task_pending,
14387         gomp_team_barrier_set_waiting_for_tasks,
14388         gomp_team_barrier_waiting_for_tasks,
14389         gomp_team_barrier_done): New inlines.
14390         (gomp_barrier_t): Rewritten.
14391         (gomp_barrier_state_t): New typedef.
14392         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
14393         gomp_barrier_wait_start): Rewritten.
14394         (gomp_barrier_wait_end): Change second argument to
14395         gomp_barrier_state_t.
14396         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
14397         inlines.
14398         * config/linux/bar.c: Include wait.h instead of libgomp.h and
14399         futex.h.
14400         (gomp_barrier_wait_end): Rewritten.
14401         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
14402         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
14403         * config/posix/bar.h (gomp_barrier_t): Add generation field.
14404         (gomp_barrier_state_t): New typedef.
14405         (gomp_team_barrier_wait,
14406         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
14407         (gomp_barrier_wait_start): Or all but low 2 bits from generation
14408         into the return value.  Return gomp_barrier_state_t.
14409         (gomp_team_barrier_set_task_pending,
14410         gomp_team_barrier_clear_task_pending,
14411         gomp_team_barrier_set_waiting_for_tasks,
14412         gomp_team_barrier_waiting_for_tasks,
14413         gomp_team_barrier_done): New inlines.
14414         (gomp_barrier_wait_end): Change second argument to
14415         gomp_barrier_state_t.
14416         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
14417         inlines.
14418         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
14419         (gomp_barrier_wait_end): Change second argument to
14420         gomp_barrier_state_t.
14421         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
14422         gomp_team_barrier_wake): New functions.
14423         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
14424         futex.h.
14425         (gomp_futex_wake, gomp_futex_wait): New variables.
14426         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
14427         * config/linux/lock.c: Rewrite to make locks task owned,
14428         for backwards compatibility provide the old entrypoints
14429         if symbol versioning.  Include wait.h instead of libgomp.h and
14430         futex.h.
14431         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
14432         * config/posix95/lock.c: Rewrite to make locks task owned,
14433         for backwards compatibility provide the old entrypoints
14434         if symbol versioning.
14435         * config/posix/lock.c: Rewrite to make locks task owned,
14436         for backwards compatibility provide the old entrypoints
14437         if symbol versioning.
14438         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
14439         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
14440         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
14441         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14442         (sys_futex0): Return error code.
14443         (futex_wake, futex_wait): If ENOSYS was returned, clear
14444         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14445         (cpu_relax, atomic_write_barrier): New static inlines.
14446         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14447         (futex_wake, futex_wait): If ENOSYS was returned, clear
14448         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14449         (cpu_relax, atomic_write_barrier): New static inlines.
14450         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14451         (sys_futex0): Return error code.
14452         (futex_wake, futex_wait): If ENOSYS was returned, clear
14453         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14454         (cpu_relax, atomic_write_barrier): New static inlines.
14455         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14456         (sys_futex0): Return error code.
14457         (futex_wake, futex_wait): If ENOSYS was returned, clear
14458         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14459         (cpu_relax, atomic_write_barrier): New static inlines.
14460         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14461         (sys_futex0): Return error code.
14462         (futex_wake, futex_wait): If ENOSYS was returned, clear
14463         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14464         (cpu_relax, atomic_write_barrier): New static inlines.
14465         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14466         (sys_futex0): Return error code.
14467         (futex_wake, futex_wait): If ENOSYS was returned, clear
14468         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14469         (cpu_relax, atomic_write_barrier): New static inlines.
14470         * config/linux/sem.c: Include wait.h instead of libgomp.h and
14471         futex.h.
14472         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
14473         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
14474         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
14475         types.
14476         (omp_nest_lock_t): Change owner into void *, add lock field.
14477         * config/posix95/omp-lock.h: Include semaphore.h.
14478         (omp_lock_25_t, omp_nest_lock_25_t): New types.
14479         (omp_lock_t): Use sem_t instead of mutex if semaphores
14480         aren't broken.
14481         (omp_nest_lock_t): Likewise.  Change owner to void *.
14482         * config/posix/omp-lock.h: Include semaphore.h.
14483         (omp_lock_25_t, omp_nest_lock_25_t): New types.
14484         (omp_lock_t): Use sem_t instead of mutex if semaphores
14485         aren't broken.
14486         (omp_nest_lock_t): Likewise.  Add owner field.
14488 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
14490         * testsuite/libgomp.c/collapse-1.c: New test.
14491         * testsuite/libgomp.c/collapse-2.c: New test.
14492         * testsuite/libgomp.c/collapse-3.c: New test.
14493         * testsuite/libgomp.c/icv-1.c: New test.
14494         * testsuite/libgomp.c/icv-2.c: New test.
14495         * testsuite/libgomp.c/lib-2.c: New test.
14496         * testsuite/libgomp.c/lock-1.c: New test.
14497         * testsuite/libgomp.c/lock-2.c: New test.
14498         * testsuite/libgomp.c/lock-3.c: New test.
14499         * testsuite/libgomp.c/loop-4.c: New test.
14500         * testsuite/libgomp.c/loop-5.c: New test.
14501         * testsuite/libgomp.c/loop-6.c: New test.
14502         * testsuite/libgomp.c/loop-7.c: New test.
14503         * testsuite/libgomp.c/loop-8.c: New test.
14504         * testsuite/libgomp.c/loop-9.c: New test.
14505         * testsuite/libgomp.c/nested-3.c: New test.
14506         * testsuite/libgomp.c/nestedfn-6.c: New test.
14507         * testsuite/libgomp.c/sort-1.c: New test.
14508         * testsuite/libgomp.c/task-1.c: New test.
14509         * testsuite/libgomp.c/task-2.c: New test.
14510         * testsuite/libgomp.c/task-3.c: New test.
14511         * testsuite/libgomp.c/task-4.c: New test.
14512         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
14513         to C++ testsuite default compiler options.
14514         * testsuite/libgomp.c++/collapse-1.C: New test.
14515         * testsuite/libgomp.c++/collapse-2.C: New test.
14516         * testsuite/libgomp.c++/ctor-10.C: New test.
14517         * testsuite/libgomp.c++/for-1.C: New test.
14518         * testsuite/libgomp.c++/for-2.C: New test.
14519         * testsuite/libgomp.c++/for-3.C: New test.
14520         * testsuite/libgomp.c++/for-4.C: New test.
14521         * testsuite/libgomp.c++/for-5.C: New test.
14522         * testsuite/libgomp.c++/loop-8.C: New test.
14523         * testsuite/libgomp.c++/loop-9.C: New test.
14524         * testsuite/libgomp.c++/loop-10.C: New test.
14525         * testsuite/libgomp.c++/task-1.C: New test.
14526         * testsuite/libgomp.c++/task-2.C: New test.
14527         * testsuite/libgomp.c++/task-3.C: New test.
14528         * testsuite/libgomp.c++/task-4.C: New test.
14529         * testsuite/libgomp.c++/task-5.C: New test.
14530         * testsuite/libgomp.c++/task-6.C: New test.
14531         * testsuite/libgomp.fortran/allocatable1.f90: New test.
14532         * testsuite/libgomp.fortran/allocatable2.f90: New test.
14533         * testsuite/libgomp.fortran/allocatable3.f90: New test.
14534         * testsuite/libgomp.fortran/allocatable4.f90: New test.
14535         * testsuite/libgomp.fortran/collapse1.f90: New test.
14536         * testsuite/libgomp.fortran/collapse2.f90: New test.
14537         * testsuite/libgomp.fortran/collapse3.f90: New test.
14538         * testsuite/libgomp.fortran/collapse4.f90: New test.
14539         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
14540         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
14541         * testsuite/libgomp.fortran/lib4.f90: New test.
14542         * testsuite/libgomp.fortran/lock-1.f90: New test.
14543         * testsuite/libgomp.fortran/lock-2.f90: New test.
14544         * testsuite/libgomp.fortran/nested1.f90: New test.
14545         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
14546         * testsuite/libgomp.fortran/strassen.f90: New test.
14547         * testsuite/libgomp.fortran/tabs1.f90: New test.
14548         * testsuite/libgomp.fortran/tabs2.f: New test.
14549         * testsuite/libgomp.fortran/task1.f90: New test.
14550         * testsuite/libgomp.fortran/task2.f90: New test.
14551         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
14552         * testsuite/libgomp.fortran/vla5.f90: Likewise.
14553         * testsuite/libgomp.c/pr26943-2.c: Likewise.
14554         * testsuite/libgomp.c/pr26943-3.c: Likewise.
14555         * testsuite/libgomp.c/pr26943-4.c: Likewise.
14557 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
14559         PR c++/36308
14560         * testsuite/libgomp.c++/ctor-11.C: New test.
14561         * testsuite/libgomp.c++/ctor-12.C: New test.
14563 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
14565         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
14567 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
14569         PR middle-end/36106
14570         * testsuite/libgomp.c/atomic-5.c: New test.
14571         * testsuite/libgomp.c/atomic-6.c: New test.
14572         * testsuite/libgomp.c/autopar-1.c: New test.
14574 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14576         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
14577         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
14578         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
14579         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
14580         * configure: Regenerate.
14581         * Makefile.in, testsuite/Makefile.in: Likewise.
14583 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
14585         PR bootstrap/35457
14586         * aclocal.m4: Regenerate.
14587         * configure: Regenerate.
14589 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
14591         PR middle-end/35611
14592         * testsuite/libgomp.c/atomic-4.c: New test.
14594         PR libgomp/35625
14595         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
14596         (gomp_iter_guided_next): Likewise.
14597         * testsuite/libgomp.c/pr35625.c: New test.
14599 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14601         * aclocal.m4: Regenerate.
14602         * configure: Likewise.
14603         * Makefile.in: Likewise.
14604         * testsuite/Makefile.in: Likewise.
14606 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
14608         PR middle-end/35185
14609         * testsuite/libgomp.c++/pr35185.C: New test.
14611 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
14613         PR middle-end/35549
14614         * testsuite/libgomp.c/pr35549.c: New test.
14616 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
14618         * testsuite/libgomp.c/atomic-3.c: New test.
14620 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14622         PR fortran/33197
14623         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
14624         .F08 file suffixes.
14626 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
14628         PR libgomp/33131
14629         * configure.ac: Add ACX_HEADER_STRING.
14630         * env.c: Include strings.h.
14631         * aclocal.m4: Regenerate.
14632         * config.h.in: Regenerate.
14633         * configure: Regenerate.
14634         * Makefile.in: Regenerate.
14635         * testsuite/Makefile.in: Regenerate.
14637 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
14639         PR middle-end/35196
14640         * testsuite/libgomp.c/pr35196.c: New test.
14642         PR middle-end/35130
14643         * testsuite/libgomp.fortran/pr35130.f90: New test.
14644         * testsuite/libgomp.c/pr35130.c: New test.
14646 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
14648         PR middle-end/33880
14649         * testsuite/libgomp.c/pr33880.c: New test.
14650         * testsuite/libgomp.fortran/pr33880.f90: New test.
14652 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
14654         * configure: Regenerate.
14656 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
14658         * configure.ac: Move futex checking into ../config/futex.m4.
14659         * configure: Rebuilt.
14660         * aclocal.m4: Rebuilt.
14661         * Makefile.in: Rebuilt.
14663         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
14664         2007-10-15 ../config/tls.m4 change.
14666 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
14668         PR c++/34513
14669         * testsuite/libgomp.c/pr34513.c: New test.
14670         * testsuite/libgomp.c++/pr34513.C: New test.
14672 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
14674         PR target/32765
14675         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
14677 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
14679         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
14681 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
14683         * testsuite/libgomp.c/private-1.c: New test.
14685 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
14686             Paolo Bonzini  <bonzini@gnu.org>
14688         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
14689         instead of 'VPATH ='.
14690         * Makefile.in: Regenerate.
14692 2007-11-23  Matthias Klose  <doko@ubuntu.com>
14694         * configure.ac: Adjust makeinfo version check.
14695         * configure: Regenerate.
14697 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
14699         PR fortran/34020
14700         * testsuite/libgomp.fortran/pr34020.f90: New test.
14702 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
14704         PR c++/33894
14705         * testsuite/libgomp.c++/atomic-1.C: New test.
14707 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
14709         PR libgomp/33275
14710         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
14711         Make x and y integers rather than (implicit) reals.  Add private (j)
14712         clause to the last omp parallel.
14714 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
14716         * configure: Regenerate following changes to ../config/tls.m4.
14718 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
14720         * testsuite/libgomp.fortran/stack.f90: New test.
14722 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
14724         * config/mingw32/proc.c: New file.
14726 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
14728         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
14729         (main): Use __get_cpuid to get i386 target fetaures.
14730         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
14731         (main): Use __get_cpuid to get x86_64 target fetaures.
14733 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
14735         PR target/32765
14736         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
14737         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
14739 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
14741         PR fortran/32550
14742         * testsuite/libgomp.fortran/pr32550.f90: New test.
14743         * testsuite/libgomp.fortran/crayptr2.f90: New test.
14745 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
14747         * aclocal.m4: Regenerated.
14749 2007-07-05  Tobias Burnus  <burnus@net-b.de>
14751         PR fortran/32359
14752         * testsuite/libgomp.fortran/pr32359.f90: New.
14754 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
14756         PR libgomp/32468
14757         * sections.c (GOMP_parallel_sections_start): Only decrease
14758         number of threads to COUNT if dyn_var is true.
14759         * testsuite/libgomp.c/pr32468.c: New test.
14761 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14763         PR libgomp/26308
14764         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
14766 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
14768         PR middle-end/32362
14769         * testsuite/libgomp.c/pr32362-1.c: New test.
14770         * testsuite/libgomp.c/pr32362-2.c: New test.
14771         * testsuite/libgomp.c/pr32362-3.c: New test.
14773 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
14775         * team.c (gomp_team_start): Fix setting up thread_attr
14776         stack size.
14778 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
14780         * configure: Regenerate.
14782 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
14784         * Makefile.in: Regenerate.
14785         * configure: Regenerate.
14786         * aclocal.m4: Regenerate.
14787         * testsuite/Makefile.in: Regenerate.
14789 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
14791         * config/linux/proc.c: New file.
14793         PR libgomp/28482
14794         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
14796 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
14798         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
14800 2007-04-16  Matthias Klose  <doko@debian.org>
14802         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
14803         flags if not building with -m64.
14804         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
14805         flag for i?86-*-* targets, if current target matches -m64.
14807 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
14809         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
14810         * Makefile.in: Regenerate.
14812 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14814         PR testsuite/31369
14815         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
14816         ld_library_path.
14817         * testsuite/libgomp.fortran/fortran.exp: Likewise.
14819 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
14821         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
14822         decls.
14823         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
14824         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
14825         (parse_affinity): New function.
14826         (initialize_env): Call it and gomp_init_affinity.
14827         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
14828         create new pthread_attr_t and call gomp_init_thread_affinity
14829         on it for each thread before passing the attribute to pthread_create.
14830         * config/linux/affinity.c: New file.
14831         * config/posix/affinity.c: New file.
14832         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
14833         * configure: Rebuilt.
14834         * config.h.in: Rebuilt.
14835         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
14836         * Makefile.in: Rebuilt.
14838 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
14840         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
14841         *-*-darwin*.
14842         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
14843         and use it if found.
14845 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
14847         * testsuite/config/default.exp: New file.
14848         * testsuite/lib/libgomp.exp: New file.
14849         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
14850         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
14851         load_lib *, load_gcc_lib *): Move to libgomp.exp.
14852         (libgomp_load): Remove.
14853         * testsuite/lib/libgomp.exp (libgomp_init): Compute
14854         always_ld_library_path, not ld_library_path.  Set additional_flags
14855         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
14856         (target_compile): Do not call libgomp_init.  Append lang_library_path
14857         and lang_link_flags to options.
14858         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
14859         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
14860         here.
14861         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
14862         always_ld_library_path.  Set LD_LIBRARY_PATH here.
14863         * testsuite/libgomp.fortran/fortran.exp: Ditto.
14864         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
14865         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
14866         CX8 flag.
14867         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
14868         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
14869         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
14870         * testsuite/libgomp.c/pr29947-1.c: Ditto.
14871         * testsuite/libgomp.c/atomic-10.c: Ditto.
14873 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
14875         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
14876         dg-final cleanup-modules line.
14877         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
14878         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
14879         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
14880         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
14881         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
14882         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
14883         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
14885 2007-03-18  Andreas Schwab  <schwab@suse.de>
14887         * acinclude.m4: Adjust regular expression for ld version
14888         extraction.
14889         * configure: Regenerate.
14891 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
14893         * Makefile.am: Add install-pdf target as copied from
14894         automake v1.10 rules.
14895         * Makefile.in: Regenerate
14897 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
14899         PR libgomp/28486
14900         * configure: Regenerate.
14902         PR c++/30703
14903         * testsuite/libgomp.c++/pr30703.C: New test.
14905 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
14907         Revert:
14908         2006-07-05  Eric Christopher  <echristo@apple.com>
14909         * configure.ac: Depend addition of -pthread on host OS.
14910         * configure: Regenerate.
14912 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14914         * libgomp.texi: Fix spacing after abbreviations.
14916 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
14918         PR libgomp/30546
14919         * configure.ac: Add check for makeinfo
14920         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
14921         if an appropriate version of makeinfo is found.
14922         * aclocal.m4: Regenerated.
14923         * configure: Regenerated.
14924         * Makefile.in: Regenerated.
14925         * testsuite/Makefile.in: Regenerated.
14927 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
14929         PR libgomp/30540
14930         * libgomp.texi: More about implementation-dependent settings.
14932 2007-01-26  Tobias Burnus  <burnus@net-b.de>
14934         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
14936 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
14938         PR middle-end/30494
14939         * testsuite/libgomp.c/pr30494.c: New test.
14941 2007-01-15  Tom Tromey  <tromey@redhat.com>
14943         * configure: Rebuilt.
14944         * configure.ac: Fixed comment.
14946 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
14948         * libgomp.texi: Document implementation specific default values of
14949         environment variables.
14951 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
14953         PR libgomp/28209
14954         * libgomp.texi: New file.
14955         * configure.ac: Add --enable-generated-files-in-srcdir option.
14956         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
14957         files to srcdir.
14958         * Makefile.in: Regenerated.
14959         * config.h.in: Regenerated.
14960         * testsuite/Makefile.in: Regenerated.
14961         * NOTES: Removed.
14963 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
14965         PR libgomp/29949
14966         * env.c (omp_set_num_threads): Set illegal thread count to 1.
14968 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
14970         * configure: Regenerate.
14972 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
14974         PR libgomp/29947
14975         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
14976         start if there shouldn't be any loop iterations.
14977         (gomp_loop_ordered_static_start): Remove start == end test.
14978         * testsuite/libgomp.c/pr29947-1.c: New test.
14979         * testsuite/libgomp.c/pr29947-2.c: New test.
14981 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
14983         * configure.tgt: Force initial-exec TLS model on Linux only.
14985 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
14987         * configure: Regenerated.
14989 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
14991         * env.c (parse_schedule): Reject out of range values.
14992         (parse_unsigned_long): Reject out of range, negative or zero values.
14994 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
14996         PR fortran/29629
14997         * testsuite/libgomp.fortran/pr29629.f90: New test.
14999 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
15001         PR libgomp/29494
15002         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
15003         * config/posix95: New directory.
15004         * config/posix95/omp-lock.h: New file.
15005         * config/posix95/lock.c: Likewise.
15007 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
15009         * aclocal.m4: Regenerate.
15010         * configure: Regenerate.
15012 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
15014         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
15015         '<' to '<='.
15017 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
15019         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
15020         test.
15021         * configure: Regenerate.
15022         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
15024 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
15026         PR middle-end/25261
15027         PR middle-end/28790
15028         * testsuite/libgomp.c/nestedfn-4.c: New test.
15029         * testsuite/libgomp.c/nestedfn-5.c: New test.
15030         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
15032         PR fortran/29097
15033         * testsuite/libgomp.fortran/condinc1.f: New test.
15034         * testsuite/libgomp.fortran/condinc2.f: New test.
15035         * testsuite/libgomp.fortran/condinc3.f90: New test.
15036         * testsuite/libgomp.fortran/condinc4.f90: New test.
15037         * testsuite/libgomp.fortran/condinc1.inc: New file.
15039 2006-09-18  Tom Tromey  <tromey@redhat.com>
15041         * configure: Rebuilt.
15043 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
15045         PR c/28768
15046         PR preprocessor/14634
15047         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
15048         to AC_DEFINE.
15049         * configure: Regenerate.
15051 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
15053         * testsuite/libgomp.fortran/reduction3.f90: Change
15054         -2147483648 to -huge(i)-1 to avoid overflow.
15055         * testsuite/libgomp.fortran/reduction4.f90: Change
15056         Z'ffffffff' to not(0) to avoid overflow.
15058 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
15060         PR libgomp/25938
15061         * Makefile.am (libsubincludedir): New.
15062         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
15063         * Makefile.in: Regenerate.
15065 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
15067         PR libgomp/28725
15068         * env.c: Include ctype.h.
15069         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
15070         leading and/or trailing whitespace and compare strings case
15071         insensitively.
15073 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
15075         PR fortran/28390
15076         * testsuite/libgomp.fortran/pr28390.f: New test.
15078 2006-07-05  Eric Christopher  <echristo@apple.com>
15080         * configure.ac: Depend addition of -pthread on host OS.
15081         * configure: Regenerate.
15083 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
15085         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
15086         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
15087         defined.
15089 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
15091         PR libgomp/26175
15092         PR libgomp/26477
15093         * configure.ac: If neither --enable-linux-futex nor
15094         --disable-linux-futex is passed, determine the default by checking
15095         for compiling and/or running against NPTL.  With --enable-linux-futex,
15096         check if SYS_gettid and SYS_futex are defined.
15097         * configure: Rebuilt.
15099 2006-06-14  Richard Henderson  <rth@redhat.com>
15101         PR libgomp/28008
15102         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
15103         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
15105 2006-06-09  Richard Henderson  <rth@redhat.com>
15107         * env.c (gomp_nthreads_var): Change to unsigned long.
15108         (gomp_run_sched_chunk): Likewise.
15109         (parse_unsigned_long): Rename from parse_num_threads and generalize.
15110         (initialize_env): Initialize gomp_thread_attr.
15111         * libgomp.h (gomp_nthreads_var): Update decl.
15112         (gomp_run_sched_chunk): Likewise.
15113         (gomp_thread_attr): Declare.
15114         * team.c (gomp_thread_attr): Export.
15115         (initialize_team): Don't initialize it.
15117 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
15119         PR fortran/27916
15120         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
15121         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
15123 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
15125         * config/mingw32/time.c: New file.
15126         * configure.tgt: Use it.
15128 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
15130         * Makefile.am: Add install-html target. Add install-html to .PHONY
15131         * Makefile.in: Regenerate.
15133 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15135         PR libgomp/27612
15136         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
15137         * testsuite/libgomp.c/critical-1.c: Likewise.
15138         * testsuite/libgomp.c/loop-1.c: Likewise.
15139         * testsuite/libgomp.c/loop-2.c: Likewise.
15140         * testsuite/libgomp.c/single-1.c: Likewise.
15141         * testsuite/libgomp.c/ordered-1.c: Likewise.
15142         * testsuite/libgomp.c/ordered-2.c: Likewise.
15144 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
15146         PR middle-end/27416
15147         * libgomp.fortran/pr27416-1.f90: New test.
15149 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
15151         PR fortran/27395
15152         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
15153         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
15155 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
15157         PR c++/26943
15158         * testsuite/libgomp.c/pr26943-1.c: New test.
15159         * testsuite/libgomp.c/pr26943-2.c: New test.
15160         * testsuite/libgomp.c/pr26943-3.c: New test.
15161         * testsuite/libgomp.c/pr26943-4.c: New test.
15162         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
15163         * testsuite/libgomp.c++/pr26943.C: New test.
15165 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
15167         PR middle-end/27337
15168         * testsuite/libgomp.c++/pr27337.C: New test.
15170 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
15172         PR c/26171
15173         * testsuite/libgomp.c/pr26171.c: New test.
15175 2006-04-25  Richard Henderson  <rth@redhat.com>
15177         PR libgomp/25865
15178         * configure.ac: Use GCC_CHECK_TLS.
15179         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
15180         * Makefile.in, aclocal.m4, configure: Regenerate.
15182 2006-04-10  Matthias Klose  <doko@debian.org>
15184         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
15185         directory names containing underscores.
15187 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
15189         PR c++/26691
15190         * testsuite/libgomp.c++/pr26691.C: New test.
15192 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
15194         * testsuite/libgomp.fortran/retval2.f90: New test.
15196 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
15198         * testsuite/libgomp.c++: New directory.
15200 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
15202         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
15203         * config/posix/sem.c: Implement the above.
15205 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
15207         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
15208         define HAVE_BROKEN_POSIX_SEMAPHORES.
15209         * configure: Rebuilt.
15210         * config.h.in: Rebuilt.
15212 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
15214         PR bootstrap/26161
15215         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
15216         for the other pthread check.
15217         * configure: Regenerate.
15218         * config.h.in: Regenerate.
15220 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
15222         PR libgomp/25938
15223         PR libgomp/25984
15224         * Makefile.am (fincludedir): New variable.
15225         (nodist_include_HEADERS): Remove Fortran files.
15226         (nodist_finclude_HEADERS): New variable.
15227         * Makefile.in: Regenerated.
15229 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
15231         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
15232         Remove tests for returning assumed character length arrays.
15234 2006-02-12  Roger Sayle  <roger@eyesopen.com>
15235             John David Anglin  <dave@hiauly1.hia.nrc.ca>
15237         PR libgomp/25936
15238         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
15240 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
15242         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
15244 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
15246         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
15247         part of LD_LIBRARY_PATH manually.
15249 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
15251         PR libgomp/25852
15252         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
15253         libgomp_init.
15255 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
15257         PR libgomp/25884
15258         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
15259         * configure.ac (PERL): Don't set.
15260         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
15261         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
15262         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
15263         * omp.h.in: Wrap the new configure substitutions with @ characters.
15264         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
15265         * aclocal.m4, configure, Makefile.in: Regenerate.
15266         * mkomp_h.pl: Delete.
15268 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
15270         PR libgomp/25259
15271         * configure.ac: Use GCC_HEADER_STDINT.
15272         * libgomp.h: Include gstdint.h.
15273         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
15274         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
15276 2006-01-24  Richard Henderson  <rth@redhat.com>
15278         PR libgomp/25942
15279         * configure.ac: Add AM_MAINTAINER_MODE.
15280         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
15282 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
15284         * Makefile.in: Regenerate.
15285         * testsuite/Makefile.in: Regenerate.
15286         * aclocal.m4: Regenerate.
15288 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
15290         * config/posix/proc.c: Conditional include of sys/loadavg.h for
15291         Solaris.
15292         * configure.ac: Add check for loadavg.h.
15293         (link_gomp): Adjust comment.
15294         * configure: Regenerate.
15295         * config.h.in: Regenerate.
15297 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
15299         PR libgomp/25877
15300         * configure.ac: Remove check for alloca.h.
15301         * configure: Regenerate.
15302         * config.h.in: Regenerate.
15303         * libgomp.h: define gomp_alloca to be __builtin_alloca.
15304         * team.c: Remove use of alloca.h.
15305         Call gomp_alloca instead of alloca.
15307 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
15309         PR libgomp/25877
15310         * team.c: Add include of alloca.h.
15311         * configure.ac: Add check for alloca.h.
15312         * configure: Regenerate.
15313         * config.h.in: Regenerate.
15315 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
15317         PR fortran/25219
15318         * testsuite/libgomp.fortran/pr25219.f90: New test.
15320 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
15322         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
15323         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
15324         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
15325         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
15326         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
15327         testsuite/libgomp.fortran/threadprivate1.f90,
15328         testsuite/libgomp.fortran/threadprivate2.f90,
15329         testsuite/libgomp.fortran/threadprivate3.f90,
15330         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
15331         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
15332         testsuite/libgomp.fortran/omp_parse3.f90: Change required
15333         effective-target to TLS runtime.
15335         * testsuite/libgomp.fortran/pr25162.f: Require
15336         effective-target TLS runtime.
15338 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
15340         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
15341         * testsuite/libgomp.c/nestedfn-3.c: New test.
15343 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
15345         PR fortran/25162
15346         * testsuite/libgomp.fortran/pr25162.f: New test.
15348 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
15350         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
15351         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
15353 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
15355         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
15356         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
15357         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
15358         single.c, team.c, work.c, config/linux/alpha/futex.h,
15359         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
15360         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
15361         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
15362         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
15363         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
15364         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
15365         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
15366         FSF address.
15368 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
15370         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
15371         to nodist_noinst_HEADERS.
15372         * Makefile.in: Rebuilt.
15374         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
15375         add integer count field.
15376         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
15377         omp_nest_lock_t type change.
15378         (omp_init_nest_lock): Likewise.  Initialize count to 0.
15379         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
15380         Increment count.
15381         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
15382         Decrement count.
15383         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
15384         Increment count if successful and return the new nesting level.
15385         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
15386         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
15387         * testsuite/libgomp.c/lib-1.c: New test.
15388         * testsuite/libgomp.fortran/lib1.f90: New test.
15389         * testsuite/libgomp.fortran/lib2.f: New test.
15390         * testsuite/libgomp.fortran/lib3.f: New test.
15392 2005-11-17  Richard Henderson  <rth@redhat.com>
15394         PR 24845
15395         * Makefile.am (nodist_toolexeclib_HEADERS): New.
15396         * configure.ac (link_gomp): New.  Substitute it.
15397         (AC_CONFIG_FILES): Add libgomp.spec.
15398         * libgomp.spec.in: New file.
15399         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
15400         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
15402 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
15404         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
15405         reduction(-:var) behaving the same as reduction(+:var).
15406         * testsuite/libgomp.c/reduction-4.c: New test.
15408 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
15410         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
15411         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
15412         testsuite/libgomp.c/copyin-3.c,
15413         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
15414         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
15415         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
15416         testsuite/libgomp.c++/pr24455.C,
15417         testsuite/libgomp.fortran/threadprivate1.f90,
15418         testsuite/libgomp.fortran/threadprivate2.f90,
15419         testsuite/libgomp.fortran/threadprivate3.f90,
15420         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
15421         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
15422         testsuite/libgomp.fortran/omp_parse3.f90: Require
15423         effective-target TLS.
15425 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
15427         * HEADER: Remove.
15429 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
15431         PR libgomp/24797
15432         * team.c (initialize_team): Pass NULL rather than free as
15433         pthread_key_create destructor.  Initialize thread specific data
15434         pointer in initial thread to a static local variable rather than
15435         malloced memory.
15437 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
15439         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
15440         its location to ld_library_path.
15442 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
15444         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
15446 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
15448         * testsuite/libgomp.c: Rename from libgomp.dg.
15450 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
15452         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
15453         threadprivate variable 'i'.
15455 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
15457         * config/linux/s390/futex.h: New file.
15458         * configure.tgt: Use it.
15460         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
15461         before the parallel.
15463 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
15465         PR c++/24734
15466         * testsuite/libgomp.c++/master-1.C: New test.
15468 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
15470         * testsuite/libgomp.dg/copyin-3.c: New test.
15472 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
15474         * testsuite/libgomp.fortran/retval1.f90: New test.
15475         * testsuite/libgomp.fortran/vla7.f90: New test.
15477 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
15479         * testsuite/libgomp.fortran/vla2.f90: New test.
15480         * testsuite/libgomp.fortran/vla3.f90: New test.
15481         * testsuite/libgomp.fortran/vla4.f90: New test.
15482         * testsuite/libgomp.fortran/vla5.f90: New test.
15483         * testsuite/libgomp.fortran/vla6.f90: New test.
15485 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
15487         * config/linux/sparc/futex.h: New file.
15488         * configure.tgt: Use it.
15489         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
15491         * critical.c: Include stdlib.h.
15492         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
15493         ignoring return value.
15494         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
15495         LIBGOMP_CHECK_SYNC_BUILTINS check.
15496         * configure: Rebuilt.
15498 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
15500         * testsuite/libgomp.fortran/vla1.f90: New test.
15502 2005-10-31  Richard Henderson  <rth@redhat.com>
15504         * testsuite/libgomp.fortran/character2.f90: Fix race condition
15505         setting 's' in different threads.
15507 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
15509         * libgomp.h (attribute_hidden, ialias): Define.
15510         * config/posix/proc.c (omp_get_num_procs): Add ialias.
15511         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
15512         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
15513         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
15514         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
15515         omp_test_lock, omp_test_nest_lock): Likewise.
15516         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
15517         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
15518         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
15519         omp_test_lock, omp_test_nest_lock): Likewise.
15520         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
15521         omp_get_dynamic, omp_get_nested): Likewise.
15522         * parallel.c (omp_get_num_threads, omp_get_max_threads,
15523         omp_get_thread_num, omp_in_parallel): Likewise.
15524         * fortran.c (ialias_redirect): Define.
15525         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
15526         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
15527         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
15528         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
15529         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
15530         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
15531         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
15532         omp_get_wtime): Add ialias_redirect.
15534 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
15536         * fortran.c: Include stdlib.h.
15538 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
15540         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
15541         * Makefile.in: Regenerated.
15543 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
15545         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
15546         * libgomp_f.h.in (omp_check_defines): New function.
15547         * env.c: Include libgomp_f.h.
15548         (initialize_env): Call omp_check_defines.
15550         * testsuite/libgomp.dg/copyin-2.c: New test.
15551         * testsuite/libgomp.c++/copyin-2.C: New test.
15552         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
15554         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
15555         * testsuite/libgomp.fortran/sharing2.f90: New test.
15557         * testsuite/libgomp.dg/copyin-1.c: New test.
15558         * testsuite/libgomp.c++/copyin-1.C: New test.
15560 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
15562         * testsuite/libgomp.fortran/crayptr1.f90: New test.
15564         * testsuite/libgomp.fortran/workshare1.f90: New test.
15566         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
15567         only test.
15568         * libgomp.fortran/sharing1.f90: New test.
15570 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
15572         PR c++/24502
15573         * testsuite/libgomp.c++/loop-7.C: New test.
15575         * testsuite/libgomp.dg/nestedfn-2.c: New test.
15577         * testsuite/libgomp.dg/nestedfn-1.c: New test.
15578         * testsuite/libgomp.fortran/reduction6.f90: New test.
15579         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
15581 2005-10-23  Richard Henderson  <rth@redhat.com>
15583         * testsuite/libgomp.c++/ctor-1.C: New.
15584         * testsuite/libgomp.c++/ctor-2.C: New.
15585         * testsuite/libgomp.c++/ctor-3.C: New.
15586         * testsuite/libgomp.c++/ctor-4.C: New.
15587         * testsuite/libgomp.c++/ctor-5.C: New.
15588         * testsuite/libgomp.c++/ctor-6.C: New.
15589         * testsuite/libgomp.c++/ctor-7.C: New.
15590         * testsuite/libgomp.c++/ctor-8.C: New.
15591         * testsuite/libgomp.c++/ctor-9.C: New.
15593 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
15595         PR 24455
15596         * testsuite/libgomp.c++/pr24455-1.C: New test.
15597         * testsuite/libgomp.c++/pr24455.C: New test.
15598         * testsuite/libgomp.dg/pr24455-1.c: New test.
15599         * testsuite/libgomp.dg/pr24455.c: New test.
15601 2005-10-20  Richard Henderson  <rth@redhat.com>
15603         * testsuite/libgomp.c++/loop-6.C: New.
15604         * testsuite/libgomp.dg/loop-3.c: New.
15606 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
15608         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
15609         explicitly private.
15610         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
15611         explicitly shared.
15613 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
15615         * testsuite/libgomp.fortran/jacobi.f: New test.
15617 2005-10-19  Richard Henderson  <rth@redhat.com>
15619         * configure.tgt (i?86-linux): Default to with_arch instead of
15620         CFLAGS.  Add -mtune to match target_cpu.
15621         (x86_64-linux): Tune to i686.
15623         * fortran.c (omp_test_nest_lock_): Fix typo.
15625 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
15627         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
15628         gomp_ordered_sync): Do nothing if team->nthreads == 1.
15629         * testsuite/libgomp.dg/ordered-3.c: New test.
15631         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
15632         Remove volatile keyword.
15634         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
15635         in COMMON block to avoid warnings on 64-bit targets.
15637 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
15639         * testsuite/libgomp.dg/shared-3.c: New test.
15641 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
15643         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
15644         * testsuite/libgomp.fortran/reduction5.f90: New test.
15646 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
15648         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
15649         dg-options.
15650         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
15651         flush loop now that __sync_synchronize has proper memory barrier.
15652         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
15653         Add -ffixed-form to dg-options.
15655 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
15657         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
15658         from subdirectories.
15659         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
15660         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
15661         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
15662         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
15663         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
15664         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
15665         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
15666         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
15667         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
15668         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
15669         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
15670         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
15671         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
15672         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
15673         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
15674         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
15675         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
15676         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
15677         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
15678         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
15679         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
15680         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
15681         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
15682         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
15683         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
15685 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
15687         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
15688         lang_library_path exists.  Use find instead of glob to gather tests.
15689         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
15691 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
15693         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
15694         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
15695         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
15696         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
15697         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
15698         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
15699         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
15700         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
15701         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
15702         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
15703         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
15704         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
15705         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
15707 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
15709         * testsuite/libgomp.dg/vla-1.c: New test.
15711         * testsuite/libgomp.fortran/reference2.f90: New test.
15713         * testsuite/libgomp.fortran/character2.f90: Remove explicit
15714         declaration of omp_get_thread_num.
15715         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
15716         use omp_lib.
15718         * testsuite/libgomp.fortran/reduction1.f90: New test.
15719         * testsuite/libgomp.fortran/reduction2.f90: New test.
15720         * testsuite/libgomp.fortran/reduction3.f90: New test.
15721         * testsuite/libgomp.fortran/reduction4.f90: New test.
15723 2005-10-13  Richard Henderson  <rth@redhat.com>
15725         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
15726         * Makefile.in: Regenerate.
15727         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
15728         * libgomp.h: Include bar.h.
15729         (struct gomp_barrier): Remove.
15730         (struct gomp_team): Add barrier.  Replace master_barrier with
15731         master_release.  Replace threads with ordered_release.
15732         (struct gomp_thread): Replace barrier with release.
15733         * ordered.c (gomp_ordered_first): Update for ordered_release change.
15734         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
15735         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
15736         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
15737         (GOMP_single_copy_end): Likewise.
15738         * team.c (gomp_threads_dock): New.
15739         (gomp_barrier_init, gomp_barrier_destroy): Remove.
15740         (gomp_thread_start): Use gomp_barrier_wait.
15741         (new_team, free_team): Update for gomp_team changes.
15742         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
15743         (gomp_team_end): Use gomp_barrier_wait.
15744         (initialize_team): Update for gomp_thread changes.
15745         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
15746         (gomp_work_share_end_nowait): Use atomic ops when available.
15747         * config/linux/bar.c, config/linux/bar.h: New files.
15748         * config/posix/bar.c, config/posix/bar.h: New files.
15750 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
15752         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
15753         * testsuite/libgomp.dg/single-2.c: New test.
15755         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
15756         lang_link_flags): Unset, so that they aren't inherited from previously
15757         sourced *.exp.
15759         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
15761 2005-10-12  Richard Henderson  <rth@redhat.com>
15763         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
15764         (libgomp_init): Use lang_test_file, lang_library_path, and
15765         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
15767         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
15768         (lang_test_file, lang_link_flags): New.
15769         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
15771         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
15772         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
15773         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
15774         testsuite/libgomp.c++/parallel-1.C,
15775         testsuite/libgomp.c++/reduction-1.C,
15776         testsuite/libgomp.c++/reduction-2.C,
15777         testsuite/libgomp.c++/reduction-3.C,
15778         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
15779         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
15780         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
15781         New files, largely cribbed from the C testsuite.
15783 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
15785         * testsuite/libgomp.fortran/character1.f90: New test.
15786         * testsuite/libgomp.fortran/character2.f90: New test.
15788         * testsuite/libgomp.dg/nested-1.c: New test.
15789         * testsuite/libgomp.dg/nested-2.c: New test.
15790         * testsuite/libgomp.fortran/do1.f90: New test.
15791         * testsuite/libgomp.fortran/do2.f90: New test.
15793         * testsuite/libgomp.fortran/reference1.f90: New test.
15795 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
15797         * testsuite/libgomp.dg/reduction-1.c: New test.
15798         * testsuite/libgomp.dg/reduction-2.c: New test.
15799         * testsuite/libgomp.dg/reduction-3.c: New test.
15801 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
15803         * testsuite/libgomp.dg/atomic-1.c: New test.
15804         * testsuite/libgomp.dg/atomic-2.c: New test.
15806 2005-10-09  Richard Henderson  <rth@redhat.com>
15808         * critical.c (atomic_lock): New.
15809         (initialize_critical): Initialize it.
15810         (GOMP_atomic_start, GOMP_atomic_end): New.
15811         * libgomp.map: Export them.
15812         * libgomp_g.h: Declare them.
15814         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
15816 2005-10-02  Richard Henderson  <rth@redhat.com>
15818         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
15819         to XCFLAGS instead of CFLAGS.
15821 2005-09-30  Richard Henderson  <rth@redhat.com>
15823         * configure.ac: Determine whether -pthread or -lpthread is needed.
15824         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
15825         * Makefile.in, configure: Rebuild.
15827 2005-09-28  Richard Henderson  <rth@redhat.com>
15829         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
15830         * testsuite/libgomp.dg/omp-single-3.c: New test.
15832 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
15834         * testsuite/libgomp.dg/omp-single-2.c: New test.
15835         * testsuite/libgomp.dg/shared-2.c: Fix return code.
15837 2005-09-27  Richard Henderson  <rth@redhat.com>
15839         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
15840         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
15842 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
15844         * testsuite/libgomp.dg/omp-loop03.c: New test.
15846 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
15848         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
15850 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
15852         * testsuite/libgomp.dg/omp-single-1.c: New test.
15853         * testsuite/libgomp.dg/shared-1.c: Return 0.
15854         Add prototype for abort.
15855         * testsuite/libgomp.dg/shared-2.c: Likewise.
15857 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
15859         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
15860         constructs.
15862 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
15864         * testsuite/libgomp.dg/shared-1.c: New test.
15865         * testsuite/libgomp.dg/shared-2.c: New test.
15867 2005-09-24  Richard Henderson  <rth@redhat.com>
15869         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
15871 2005-09-24  Richard Henderson  <rth@redhat.com>
15873         * iter.c (gomp_iter_static_next): Round up when computing number
15874         of iterations.  Don't bother distributing a remainder equally.
15876         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
15877         Don't call srand.  Zero b before testing.
15878         (main): New.
15880 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
15882         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
15883         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
15885 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
15887         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
15888         without !$omp end do, followed immediately by subroutine end.
15890 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
15892         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
15894 2005-09-22  Richard Henderson  <rth@redhat.com>
15896         * critical.c (GOMP_critical_name_start): Change argument to void**.
15897         Reuse the pointer space if the mutex fits.
15898         (GOMP_critical_name_end): Likewise.
15899         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
15900         * libgomp_g.h (GOMP_critical_name_start): Update decl.
15901         (GOMP_critical_name_end): Likewise.
15902         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
15903         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
15905 2005-09-20  Richard Henderson  <rth@redhat.com>
15907         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
15908         (create_lock_lock): New.
15909         (initialize_critical): Initialize it.
15910         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
15911         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
15913 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
15915         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
15917 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
15919         * testsuite/libgomp.dg/omp-loop01.c: New test.
15920         * testsuite/libgomp.dg/omp-loop02.c: New test.
15922 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
15924         * configure.ac (AC_PROG_FC): Add.
15925         (USE_FORTRAN): New automake conditional.
15926         * configure: Rebuilt.
15927         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
15928         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
15929         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
15930         Add rules to build them.
15931         * Makefile.in: Rebuilt.
15932         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
15933         OMP_NEST_LOCK_KIND.
15934         * libgomp.map: Add Fortran wrappers.
15935         * libgomp_f.h.in: New file.
15936         * omp_lib.h.in: New file.
15937         * omp_lib.f90.in: New file.
15938         * fortran.c: New file.
15939         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
15940         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
15941         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
15942         libgfortran has been built.
15943         * testsuite/libgomp.fortran/fortran.exp: New file.
15944         * testsuite/libgomp.fortran/omp_cond1.f: New test.
15945         * testsuite/libgomp.fortran/omp_cond2.f: New test.
15946         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
15947         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
15948         * testsuite/libgomp.fortran/omp_hello.f: New test.
15949         * testsuite/libgomp.fortran/omp_orphan.f: New test.
15950         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
15951         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
15952         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
15953         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
15954         * testsuite/libgomp.fortran/omp_reduction.f: New test.
15955         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
15956         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
15958 2005-08-30  Richard Henderson  <rth@redhat.com>
15960         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
15961         function for when aliases are not usable.
15962         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
15963         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
15964         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
15965         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
15966         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
15967         GOMP_loop_ordered_guided_next): Likewise.
15968         * ordered.c (GOMP_ordered_start): Likewise.
15970 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
15972         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
15973         * testsuite/libgomp.dg/omp_hello.c: Fix return code
15974         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
15975         * testsuite/libgomp.dg/omp_orphan.c: Likewise
15976         * testsuite/libgomp.dg/omp_reduction.c: Likewise
15977         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
15978         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
15979         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
15980         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
15982 2005-07-07  Eric Christopher  <echristo@redhat.com>
15983             Diego Novillo  <dnovillo@redhat.com>
15985         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
15986         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
15987         up code.
15988         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
15989         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
15990         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
15991         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
15992         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
15993         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
15994         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
15996 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
15998         * TOPLEVEL.patch: Remove.
16000 2005-05-16  Richard Henderson  <rth@redhat.com>
16002         * configure.ac: Test for clock_gettime.
16003         * config.h.in, configure: Rebuild.
16004         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
16005         (omp_get_wtime): Use clock_gettime if available.
16006         (omp_get_wtick): Use clock_getres if available.
16008 2005-05-11  Richard Henderson  <rth@redhat.com>
16010         * config/linux/ia64/futex.h: New file.
16011         * configure.tgt: Use it.
16013         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
16015 2005-05-07  Richard Henderson  <rth@redhat.com>
16017         * config/linux/powerpc/futex.h: New file.
16018         * configure.tgt: Use it.
16020         * config/linux/i486/futex.h: Merge ...
16021         * config/linux/x86_64/futex.h: ... into ...
16022         * config/linux/x86/futex.h: ... here.
16023         * configure.tgt: Update to match.
16025 2005-05-06  Richard Henderson  <rth@redhat.com>
16027         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
16028         * config/linux/i486/futex.h: Likewise.
16029         * config/linux/x86_64/futex.h: Likewise.
16031         * config/linux/lock.c: New file.
16032         * config/linux/omp-lock.h: New file.
16034         * critical.c, env.h: Don't include omp.h
16035         * config/posix/lock.c: Include libgomp.h instead of omp.h.
16036         * config/posix/time.c: Likewise.
16037         * config/posix/omp-lock.h: New file.
16038         * libgomp.h: Include omp-lock.h and omp.h.
16039         * Makefile.am (nodist_include_HEADERS): New.
16040         (omp.h): New rule.
16041         * configure.ac (PERL): New.
16042         * mkomp_h.pl: New file.
16043         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
16044         with templates.
16045         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
16047         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
16048         build directory.  Re-add -march=i486 hack.
16050         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
16051         (libgomp_link_flags): Remove.
16052         (libgomp_initialized): Remove.
16053         (libgomp_init): Don't protect from reinitialization.  Copy code
16054         from libstdc++ for getting the multilib set correctly.
16056 2005-05-05  Richard Henderson  <rth@redhat.com>
16058         * config/linux/alpha/futex.h: New file.
16059         * configure.tgt (alpha*-*-linux*): Use it.
16061         * config/posix/mutex.c: New file.
16062         * config/posix/sem.c: Use libgomp.h.
16064         * configure.tgt (x86_64-linux): Also test CC for -m32.
16065         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
16067         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
16068         after $gccpath.
16070         * Makefile.am (SUBDIRS): New.
16071         (libgomp_la_LDFLAGS): Add -lpthread.
16072         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
16073         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
16075         * libgomp_g.h: New file.
16076         * libgomp.h: Split out all public declarations to libgomp_g.h.
16077         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
16078         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
16079         * config/linux/sem.h: Likewise.
16080         * config/posix/sem.h: Likewise.
16082         * Makefile.am (AM_LDFLAGS): New.
16083         (libgomp_version_script): Split out from ...
16084         (libgomp_la_LDFLAGS): ... here.
16085         (libgomp_version_info): New.
16086         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
16087         (LIBGOMP_ENABLE): New.
16088         (LIBGOMP_CHECK_LINKER_FEATURES): New.
16089         (LIBGOMP_ENABLE_SYMVERS): New.
16090         * configure.ac (AC_INIT): Version 1.0.
16091         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
16092         (enable-linux-futex): Likewise.  Rename from enable-futex.
16093         (libtool_VERSION): New.
16094         (LIBGOMP_ENABLE_SYMVERS): Use it.
16095         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
16096         * Makefile.in, aclocal.m4, configure: Rebuild.
16098         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
16099         (gomp_mutex_unlock_slow): Fix typo.
16100         * config/linux/sem.c: Similarly.
16101         (gomp_sem_post_slow): Fix typo.
16102         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
16103         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
16104         [__PIC__] (sys_futex0): Don't use tmp output in asm.
16106         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
16107         (libgomp_la_LDFLAGS): Add top_srcdir to path.
16108         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
16109         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
16110         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
16111         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
16112         LDFLAGS.  Pull enable_futex check to top-level.
16113         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
16114         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
16116         First attempt at real configury.
16117         * Makefile, config.h: Remove file.
16118         * Makefile.am, Makefile.in: New file.
16119         * acinclude.m4 aclocal.m4: New file.
16120         * configure.ac, configure.tgt, configure: New file.
16122         * config/posix/lock.c: Rename from sys-lock.c.
16123         * config/posix/mutex.h: Rename from sys-mutex.h.
16124         * config/posix/sem.c: Rename from sys-sem.c.
16125         * config/posix/sem.h: Rename from sys-sem.h.
16126         * config/posix/proc.c: Rename from sys-proc.c.
16127         * config/posix/time.c: Rename from sys-proc.c.
16129         * config/linux/mutex.c: New file.
16130         * config/linux/mutex.h: New file.
16131         * config/linux/sem.c: New file.
16132         * config/linux/sem.h: New file.
16133         * config/linux/i486/futex.h: New file.
16134         * config/linux/x86_64/futex.h: New file.
16136 2005-05-04  Richard Henderson  <rth@redhat.com>
16138         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
16139         * libgomp.h: Declare them.
16140         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
16141         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
16143 2005-05-04  Richard Henderson  <rth@redhat.com>
16145         * libgomp-1 code drop
16147 2005-05-04  Richard Henderson  <rth@redhat.com>
16149         * iter.c (gomp_iter_static_next): Return tri-state on 0.
16150         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
16151         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
16152         (gomp_iter_static_next): Update.
16153         (gomp_ordered_static_next): Update.
16154         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
16155         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
16156         totally empty range.
16157         (gomp_loop_ordered_static_next): Refine test for calling
16158         gomp_ordered_static_next.
16159         * testsuite/ordered-1.c: Add case for more threads than iterations.
16161         * iter.c (gomp_iter_runtime_next_locked): Remove.
16162         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
16163         gomp_loop_guided_start, gomp_loop_ordered_static_start,
16164         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
16165         gomp_loop_static_next, 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): Downcase name, make static, add
16168         an external alias with the old name.
16169         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
16170         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
16171         switch and call one of the above static functions.
16172         * libgomp.h: Update.
16174         * work.c (gomp_work_share_start): Lock the mutex for !first too.
16175         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
16176         GOMP_loop_guided_start, GOMP_loop_runtime_start,
16177         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
16178         GOMP_loop_ordered_guided_start): Update to match.
16179         * sections.c (GOMP_sections_start): Likewise.
16180         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
16182         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
16183         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
16184         Use bounds check instead of modulus.
16185         (gomp_ordered_sync): Split out of GOMP_ordered_start.
16186         (gomp_ordered_last): Don't sync with ordered_owner here.
16187         (gomp_ordered_next): Likewise.
16188         (gomp_ordered_static_loop_next): Likewise.
16189         * loop.c, libgomp.h: Update to match.
16191         * libgomp.h (GOMP_barrier): Declare.
16193         * testsuite/barrier-1.c: New file.
16194         * testsuite/critical-1.c: New file.
16195         * testsuite/ordered-2.c: New file.
16196         * testsuite/ordered-1.c: New file.
16197         * testsuite/sections-1.c: New file.
16198         * testsuite/single-1.c: New file.
16199         * testsuite/Makefile (TESTS): Add them.
16201 2005-05-04  Richard Henderson  <rth@redhat.com>
16203         * libgomp.h (struct gomp_work_share): Add ordered_owner.
16204         * loop.c (GOMP_loop_static_start): If not the startup thread,
16205         acquire the mutex to wait for initialization complete.
16206         (GOMP_loop_ordered_static_start): Likewise.
16207         (GOMP_loop_ordered_runtime_start): Likewise.
16208         (GOMP_loop_ordered_static_first): Remove.
16209         (GOMP_loop_ordered_dynamic_first): Remove.
16210         (GOMP_loop_ordered_guided_first): Remove.
16211         (GOMP_loop_ordered_runtime_first): Remove.
16212         * ordered.c (gomp_ordered_loop_first): Post to own release when
16213         we're the first thread.
16214         (gomp_ordered_loop_last): Wait on release if not owner.
16215         (gomp_ordered_loop_next): Likewise.
16216         (gomp_ordered_static_loop_init): New.
16217         (gomp_ordered_static_loop_next): Use ordered_owner.
16218         (GOMP_ordered_start): Likewise.
16219         * work.c (gomp_new_work_share): Initialize ordered_owner.
16221 2005-05-03  Richard Henderson  <rth@redhat.com>
16223         * Makefile (OPT): New.
16224         (CFLAGS): Use it.
16226         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
16227         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
16228         * libgomp.h, libgomp.map, NOTES: Update to match.
16230         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
16231         Add initialized and thr members.
16232         (gomp_thread_start): Pause when initially spawned to wait for
16233         the whole team to be created.
16234         (gomp_team_start): Release team members at the end.
16236         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
16237         (f_foo_1): Use GOMP_loop_end.
16238         (f_foo_2): Use GOMP_loop_end_nowait.
16240         * testsuite/loop-2.c: New file.
16241         * testsuite/Makefile (TESTS): Add it.
16243 2005-05-03  Richard Henderson  <rth@redhat.com>
16245         * iter.c (gomp_iter_static_next): Fix overflow check typo.
16246         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
16247         * team.c (new_team): Initialize oldest_live_gen to 1 if no
16248         initial work_share.
16250         * testsuite/Makefile: New file.
16251         * testsuite/loop-1.c: New file.
16253 2005-05-03  Richard Henderson  <rth@redhat.com>
16255         Initial implementation and checkin.
16257 Copyright (C) 2005-2021 Free Software Foundation, Inc.
16259 Copying and distribution of this file, with or without modification,
16260 are permitted in any medium without royalty provided the copyright
16261 notice and this notice are preserved.