Fix type in last change.
[official-gcc.git] / libgomp / ChangeLog
blob41ee3ed60c55dc15f1c2bef0560f4ebdf09388fa
1 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
3         * testsuite/libgomp.oacc-c++/c++.exp: Specify
4         "-foffload=$offload_target".
5         * testsuite/libgomp.oacc-c/c.exp: Likewise.
6         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7         * testsuite/lib/libgomp.exp
8         (check_effective_target_openacc_nvidia_accel_configured): Remove,
9         as (conceptually) merged into
10         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
11         users.
13         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
14         * testsuite/libgomp-test-support.exp.in: Adjust.
15         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
16         openacc_device_types_s.
17         (offload_target_to_openacc_device_type): New proc.
18         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
19         * testsuite/libgomp.oacc-c/c.exp: Likewise.
20         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
21         * Makefile.in: Regenerate.
22         * configure: Likewise.
23         * testsuite/Makefile.in: Likewise.
25         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
26         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
27         instead of OFFLOAD_TARGETS.
28         * target.c (gomp_target_init): Adjust.
29         * testsuite/libgomp-test-support.exp.in: Likewise.
30         * testsuite/lib/libgomp.exp: Likewise.  Populate
31         openacc_device_types_s instead of offload_targets_s_openacc.
32         (check_effective_target_openacc_nvidia_accel_selected)
33         (check_effective_target_openacc_host_selected): Adjust.
34         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
35         * testsuite/libgomp.oacc-c/c.exp: Likewise.
36         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
37         * Makefile.in: Regenerate.
38         * config.h.in: Likewise.
39         * configure: Likewise.
40         * testsuite/Makefile.in: Likewise.
42         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
43         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
44         "offloading: supported, but hardware not accessible".
45         * testsuite/libgomp.oacc-c/c.exp: Likewise.
46         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
48 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
50         PR c/87924
51         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
52         goacc_wait().
53         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
54         and related adjustment.
56 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
58         PR c++/88988
59         * testsuite/libgomp.c++/pr88988.C: New test.
61 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
63         PR middle-end/89002
64         * testsuite/libgomp.c/pr89002.c: New test.
66 2019-01-28  Richard Biener  <rguenther@suse.de>
68         PR testsuite/89064
69         PR tree-optimization/86865
70         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
72 2019-01-24  Tom de Vries  <tdevries@suse.de>
74         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
75         once instantiated_devices drops to 0.
77 2019-01-23  Tom de Vries  <tdevries@suse.de>
79         PR target/PR88946
80         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
81         cuMemFree.
82         (nvptx_exec): Don't call map_push if mapnum == 0.
83         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
85 2019-01-23  Tom de Vries  <tdevries@suse.de>
87         PR target/88941
88         PR target/88939
89         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
90         (map_fini): Remove "assert (!s->map->active)".
91         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
93 2019-01-23  Tom de Vries  <tdevries@suse.de>
95         PR target/87835
96         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
97         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
99 2019-01-15  Tom de Vries  <tdevries@suse.de>
101         PR target/80547
102         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
103         New test.
105 2019-01-12  Tom de Vries  <tdevries@suse.de>
107         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
108         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
109         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
110         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
112 2019-01-12  Tom de Vries  <tdevries@suse.de>
114         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
116 2019-01-12  Tom de Vries  <tdevries@suse.de>
118         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
119         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
120         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
122 2019-01-12  Tom de Vries  <tdevries@suse.de>
124         PR target/85486
125         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
126         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
128 2019-01-12  Tom de Vries  <tdevries@suse.de>
130         PR target/85381
131         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
132         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
134 2019-01-12  Tom de Vries  <tdevries@suse.de>
136         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
137         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
138         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
140 2019-01-12  Tom de Vries  <tdevries@suse.de>
142         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
143         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
144         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
146 2019-01-12  Tom de Vries  <tdevries@suse.de>
148         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
149         resources diagnostic.
151 2019-01-12  Tom de Vries  <tdevries@suse.de>
153         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
154         vector length to be 128.
155         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
156         length 2097152 to be reduced to 1024 instead of 32.
158 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
159             James Norris  <jnorris@codesourcery.com>
161         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
162         Library Routines", and "Environment Variables".
164 2019-01-11  Tom de Vries  <tdevries@suse.de>
166         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
167         num_workers 16.
169 2019-01-11  Tom de Vries  <tdevries@suse.de>
171         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
172         -foffload=-w.
173         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
174         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
175         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
176         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
178 2019-01-11  Tom de Vries  <tdevries@suse.de>
180         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
181         test.
183 2019-01-10  Nathan Sidwell  <nathan@acm.org>
184             Julian Brown  <julian@codesourcery.com>
186         PR lto/71959
187         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
188         * testsuite/libgomp.oacc-c++/pr71959.C: New.
190 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
192         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
193         and paste code.
195 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
197         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
198         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
199         write.
201 2019-01-09  Tom de Vries  <tdevries@suse.de>
203         PR target/88756
204         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
205         #define instead of "const int".
206         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
207         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
208         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
209         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
211 2019-01-09  Tom de Vries  <tdevries@suse.de>
213         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
214         one worker.
216 2019-01-07  Tom de Vries  <tdevries@suse.de>
218         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
219         GOMP_OPENACC_DIM argument.
221 2019-01-03  Tom de Vries  <tdevries@suse.de>
223         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
224         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
226 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
228         Update copyright years.
230 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
232         * libgomp.texi: Bump @copying's copyright year.
234 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
236         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
237         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
238         (GOACC_declare): Redefine the "device" argument to "flags".
240 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
241             Cesar Philippidis  <cesar@codesourcery.com>
243         * target.c (struct gomp_coalesce_chunk): New structure.
244         (struct gomp_coalesce_buf): Update the chunks member to use that
245         type.  Adjust all users.
247 2018-12-19  Tom de Vries  <tdevries@suse.de>
249         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
250         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
251         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
253 2018-12-19  Tom de Vries  <tdevries@suse.de>
255         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
256         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
257         gcc/testsuite/gcc.dg/goacc.
258         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
260 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
261             Chung-Lin Tang  <cltang@codesourcery.com>
263         * oacc-mem.c (acc_present_or_create): Remove definition and change
264         to alias of acc_create.
265         (acc_present_or_copyin): Remove definition and change to alias of
266         acc_copyin.
267         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
268         of acc_present_or_create.
269         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
270         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
271         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
272         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
273         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
274         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
275         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
276         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
277         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
278         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
279         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
280         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
281         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
282         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
283         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
284         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
286 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
288         PR libgomp/88495
289         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
290         "identical parameters".
291         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
292         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
294         PR libgomp/88484
295         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
296         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
298         PR libgomp/88407
299         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
300         (nvptx_wait_async): Unseen async-argument is a no-op.
301         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
302         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
303         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
304         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
305         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
306         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
307         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
308         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
309         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
311         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
312         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
314 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
316         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
317         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
318         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
320 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
322         PR libgomp/88370
323         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
324         (acc_set_cuda_stream): Clarify.
325         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
326         "async_valid_p".
327         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
328         acc_async_sync".
329         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
330         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
331         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
332         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
334 2018-12-14  Tom de Vries  <tdevries@suse.de>
336         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
337         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
338         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
339         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
340         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
342 2018-12-13  Tom de Vries  <tdevries@suse.de>
344         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
345         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
346         * fortran.c (omp_display_affinity_): ... here.
347         * libgomp.h (gomp_print_string): Declare.
348         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
349         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
350         write.
352 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
354         PR libgomp/88460
355         * testsuite/libgomp.c++/for-24.C (results): Include it in
356         omp declare target region.
357         (main): Use map (always, tofrom: results) instead of
358         map (tofrom: results).
360 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
362         PR fortran/88463
363         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
364         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
366         * testsuite/libgomp.c-c++-common/for-16.c: New test.
368 2018-12-12  Andreas Schwab  <schwab@suse.de>
370         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
371         clobbered.
373 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
375         PR fortran/88411
376         * testsuite/libgomp.fortran/async_io_8.f90: New test.
378 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
379             Jakub Jelinek  <jakub@redhat.com>
381         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
382         devicep->host2dev_func.
384 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
386         PR libgomp/87995
387         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
388         tls_runtime effective target.
389         (t): New threadprivate variable.
390         (main): Set t in threads which execute iterations of the worksharing
391         loop.  Propagate that to the task after the loop and don't abort
392         if the current taskgroup hasn't been cancelled.
394 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
396         * testsuite/libgomp.c/task-reduction-3.c: New test.
398         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
400 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
402         PR libgomp/88288
403         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
404         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
406 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
408         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
410 2018-10-19  Richard Biener  <rguenther@suse.de>
412         PR tree-optimization/88182
413         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
415 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
417         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
418         (RUNTEST): Don't define.
419         (RUNTESTDEFAULTFLAGS): Add.
420         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
421         (distclean-am): Depend on distclean-DEJAGNU.
422         (check-am): If -j% option is present in MFLAGS and if
423         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
424         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
425         * testsuite/Makefile.in: Regenerated.
427 2018-11-26  Richard Biener  <rguenther@suse.de>
429         PR tree-optimization/88182
430         * testsuite/libgomp.c++/pr88182.C: New testcase.
432 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
434         PR bootstrap/88106
435         * config/mingw32/affinity-fmt.c: New file.
437 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
439         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
440         (gomp_display_affinity): Use __builtin_choose_expr to handle
441         properly handle argument having integral, or pointer or some other
442         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
443         with uint64_t type instead of %llx and unsigned long long.
445         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
446         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
448 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
450         * affinity.c: Include <string.h>, <stdio.h>.
451         (gomp_display_affinity_place): Remove cpusetp.
452         * teams.c: Include <limits.h>.
454 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
456         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
457         in_reduction clause for s[0].
459         * affinity.c (gomp_display_affinity_place): New function.
460         * affinity-fmt.c: New file.
461         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
462         * config/linux/affinity.c (gomp_display_affinity_place): New function.
463         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
464         Move these functions to ...
465         * config/nvptx/teams.c: ... here.  New file.
466         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
467         New functions.
468         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
469         functions.
470         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
471         and _aligned_malloc.
472         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
473         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
474         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
475         gomp_affinity_format_len): New variables.
476         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
477         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
478         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
479         modifiers.  Display (non-default) chunk sizes.  Print
480         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
481         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
482         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
483         * fortran.c: Include stdio.h and string.h.
484         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
485         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
486         (omp_set_affinity_format_, omp_get_affinity_format_,
487         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
488         omp_pause_resource_all_): New functions.
489         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
490         switch.
491         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
492         functions to ...
493         * teams.c: ... here.  New file.
494         * libgomp_g.h: Include gstdint.h.
495         (GOMP_loop_nonmonotonic_runtime_start,
496         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
497         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
498         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
499         GOMP_parallel_loop_nonmonotonic_runtime,
500         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
501         GOMP_loop_ull_nonmonotonic_runtime_start,
502         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
503         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
504         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
505         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
506         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
507         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
508         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
509         GOMP_teams_reg): Declare.
510         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
511         gomp_aligned_alloc uses fallback implementation.
512         (gomp_aligned_alloc, gomp_aligned_free): Declare.
513         (enum gomp_schedule_type): Add GFS_MONOTONIC.
514         (struct gomp_doacross_work_share): Add extra field.
515         (struct gomp_work_share): Add task_reductions field.
516         (struct gomp_taskgroup): Add workshare and reductions fields.
517         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
518         (gomp_thread_handle): New typedef.
519         (gomp_display_affinity_place, gomp_set_affinity_format,
520         gomp_display_string, gomp_display_affinity,
521         gomp_display_affinity_thread): Declare.
522         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
523         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
524         gomp_workshare_task_reduction_register): Declare.
525         (gomp_team_start): Add taskgroup argument.
526         (gomp_pause_host): Declare.
527         (gomp_init_work_share, gomp_work_share_start): Change bool argument
528         to size_t.
529         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
530         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
531         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
532         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
533         GOMP_loop_ull_doacross_start,
534         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
535         GOMP_loop_maybe_nonmonotonic_runtime_next,
536         GOMP_loop_maybe_nonmonotonic_runtime_start,
537         GOMP_loop_nonmonotonic_runtime_next,
538         GOMP_loop_nonmonotonic_runtime_start,
539         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
540         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
541         GOMP_loop_ull_nonmonotonic_runtime_next,
542         GOMP_loop_ull_nonmonotonic_runtime_start,
543         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
544         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
545         GOMP_taskgroup_reduction_register,
546         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
547         GOMP_teams_reg and GOMP_taskwait_depend.
548         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
549         omp_{capture,display}_affinity{,_}, and
550         omp_[gs]et_affinity_format{,_}.
551         * loop.c: Include string.h.
552         (GOMP_loop_runtime_next): Add ialias.
553         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
554         (gomp_loop_static_start, gomp_loop_dynamic_start,
555         gomp_loop_guided_start, gomp_loop_ordered_static_start,
556         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
557         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
558         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
559         or gomp_doacross_init callers.
560         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
561         GOMP_loop_doacross_start): New functions.
562         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
563         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
564         Mask off GFS_MONOTONIC bit.
565         (GOMP_loop_maybe_nonmonotonic_runtime_next,
566         GOMP_loop_maybe_nonmonotonic_runtime_start,
567         GOMP_loop_nonmonotonic_runtime_next,
568         GOMP_loop_nonmonotonic_runtime_start,
569         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
570         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
571         functions.
572         (gomp_parallel_loop_start): Pass NULL as taskgroup to
573         gomp_team_start.
574         * loop_ull.c: Include string.h.
575         (GOMP_loop_ull_runtime_next): Add ialias.
576         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
577         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
578         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
579         gomp_loop_ull_ordered_dynamic_start,
580         gomp_loop_ull_ordered_guided_start,
581         gomp_loop_ull_doacross_static_start,
582         gomp_loop_ull_doacross_dynamic_start,
583         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
584         and gomp_doacross_ull_init callers.
585         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
586         GOMP_loop_ull_doacross_start): New functions.
587         (GOMP_loop_ull_runtime_start,
588         GOMP_loop_ull_ordered_runtime_start,
589         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
590         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
591         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
592         GOMP_loop_ull_nonmonotonic_runtime_next,
593         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
594         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
595         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
596         (omp_pause_resource_t, omp_depend_t): New typedefs.
597         (enum omp_lock_hint_t): Renamed to ...
598         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
599         enumerators using numbers and omp_lock_hint_* as their aliases.
600         (omp_lock_hint_t): New typedef.  Rename to ...
601         (omp_sync_hint_t): ... this.
602         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
603         omp_sync_hint_t instead of omp_lock_hint_t.
604         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
605         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
606         Declare.
607         (omp_target_is_present, omp_target_disassociate_ptr):
608         Change first argument from void * to const void *.
609         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
610         from void * to const void *.
611         (omp_target_associate_ptr): Change first and second arguments from
612         void * to const void *.
613         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
614         omp_pause_hard): New parameters.
615         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
616         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
617         New interfaces.
618         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
619         omp_pause_hard): New parameters.
620         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
621         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
622         New externals.
623         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
624         EXTRA argument.  If not needed to prepare array, if extra is 0,
625         clear ws->doacross, otherwise allocate just doacross structure and
626         extra payload.  If array is needed, allocate also extra payload.
627         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
628         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
629         doacross == NULL.
630         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
631         gomp_team_start.
632         (GOMP_parallel): Likewise.  Formatting fix.
633         (GOMP_parallel_reductions): New function.
634         (GOMP_cancellation_point): If taskgroup has workshare
635         flag set, check cancelled of prev taskgroup if any.
636         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
637         on prev taskgroup if any.
638         * sections.c: Include string.h.
639         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
640         (GOMP_sections_start): Adjust gomp_work_share_start caller.
641         (GOMP_sections2_start): New function.
642         (GOMP_parallel_sections_start, GOMP_parallel_sections):
643         Pass NULL as taskgroup to gomp_team_start.
644         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
645         gomp_work_share_start callers.
646         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
647         If taskgroup has workshare flag set, check cancelled on prev
648         taskgroup if any.  Guard all cancellation tests with
649         gomp_cancel_var test.
650         (omp_target_is_present, omp_target_disassociate_ptr):
651         Change ptr argument from void * to const void *.
652         (omp_target_memcpy): Change src argument from void * to const void *.
653         (omp_target_memcpy_rect): Likewise.
654         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
655         instead of char * where needed.
656         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
657         from void * to const void *.
658         (omp_pause_resource, omp_pause_resource_all): New functions.
659         * task.c (gomp_task_handle_depend): Handle new depend array format
660         in addition to the old.  Handle mutexinoutset kinds the same as
661         inout for now, handle unspecified kinds.
662         (gomp_create_target_task): If taskgroup has workshare flag set, check
663         cancelled on prev taskgroup if any.  Guard all cancellation tests with
664         gomp_cancel_var test.  Handle new depend array format count in
665         addition to the old.
666         (GOMP_task): Likewise.  Adjust function comment.
667         (gomp_task_run_pre): If taskgroup has workshare flag set, check
668         cancelled on prev taskgroup if any.  Guard all cancellation tests with
669         gomp_cancel_var test.
670         (GOMP_taskwait_depend): New function.
671         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
672         format in addition to the old.  Handle mutexinoutset kinds the same as
673         inout for now, handle unspecified kinds.  Fix a function comment typo.
674         (gomp_taskgroup_init): New function.
675         (GOMP_taskgroup_start): Use it.
676         (gomp_reduction_register, gomp_create_artificial_team,
677         GOMP_taskgroup_reduction_register,
678         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
679         gomp_parallel_reduction_register,
680         gomp_workshare_task_reduction_register,
681         gomp_workshare_taskgroup_start,
682         GOMP_workshare_task_reduction_unregister): New functions.
683         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
684         check cancelled on prev taskgroup if any.  Guard all cancellation
685         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
686         by calling GOMP_taskgroup_reduction_register.
687         * team.c (gomp_thread_attr): Remove comment.
688         (struct gomp_thread_start_data): Add handle field.
689         (gomp_thread_start): Call pthread_detach.
690         (gomp_new_team): Adjust gomp_init_work_share caller.
691         (gomp_free_pool_helper): Call pthread_detach.
692         (gomp_team_start): Add taskgroup argument, initialize implicit
693         tasks' taskgroup field to that.  Don't call
694         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
695         (gomp_team_end): Determine nesting by thr->ts.level != 0
696         rather than thr->ts.team != NULL.
697         (gomp_pause_pool_helper, gomp_pause_host): New functions.
698         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
699         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
700         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
701         if more than 1 allocate also extra payload at the end of array.  Never
702         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
703         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
704         return true instead of ws.
705         * Makefile.in: Regenerated.
706         * configure: Regenerated.
707         * config.h.in: Regenerated.
708         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
709         in some cases.
710         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
711         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
712         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
713         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
714         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
715         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
716         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
717         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
718         * testsuite/libgomp.c-c++-common/for-10.c: New test.
719         * testsuite/libgomp.c-c++-common/for-11.c: New test.
720         * testsuite/libgomp.c-c++-common/for-12.c: New test.
721         * testsuite/libgomp.c-c++-common/for-13.c: New test.
722         * testsuite/libgomp.c-c++-common/for-14.c: New test.
723         * testsuite/libgomp.c-c++-common/for-15.c: New test.
724         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
725         define a different N(test), don't define N(f0) to N(f14), but instead
726         define N(f20) to N(f34) using != comparisons.
727         * testsuite/libgomp.c-c++-common/for-7.c: New test.
728         * testsuite/libgomp.c-c++-common/for-8.c: New test.
729         * testsuite/libgomp.c-c++-common/for-9.c: New test.
730         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
731         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
732         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
733         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
734         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
735         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
736         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
737         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
738         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
739         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
740         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
741         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
742         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
743         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
744         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
745         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
746         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
747         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
748         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
749         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
750         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
751         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
752         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
753         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
754         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
755         * testsuite/libgomp.c++/depend-1.C: New test.
756         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
757         * testsuite/libgomp.c++/depobj-1.C: New test.
758         * testsuite/libgomp.c++/for-16.C: New test.
759         * testsuite/libgomp.c++/for-21.C: New test.
760         * testsuite/libgomp.c++/for-22.C: New test.
761         * testsuite/libgomp.c++/for-23.C: New test.
762         * testsuite/libgomp.c++/for-24.C: New test.
763         * testsuite/libgomp.c++/for-25.C: New test.
764         * testsuite/libgomp.c++/for-26.C: New test.
765         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
766         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
767         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
768         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
769         * testsuite/libgomp.c++/task-reduction-10.C: New test.
770         * testsuite/libgomp.c++/task-reduction-11.C: New test.
771         * testsuite/libgomp.c++/task-reduction-12.C: New test.
772         * testsuite/libgomp.c++/task-reduction-13.C: New test.
773         * testsuite/libgomp.c++/task-reduction-14.C: New test.
774         * testsuite/libgomp.c++/task-reduction-15.C: New test.
775         * testsuite/libgomp.c++/task-reduction-16.C: New test.
776         * testsuite/libgomp.c++/task-reduction-17.C: New test.
777         * testsuite/libgomp.c++/task-reduction-18.C: New test.
778         * testsuite/libgomp.c++/task-reduction-19.C: New test.
779         * testsuite/libgomp.c/task-reduction-1.c: New test.
780         * testsuite/libgomp.c++/task-reduction-1.C: New test.
781         * testsuite/libgomp.c/task-reduction-2.c: New test.
782         * testsuite/libgomp.c++/task-reduction-2.C: New test.
783         * testsuite/libgomp.c++/task-reduction-3.C: New test.
784         * testsuite/libgomp.c++/task-reduction-4.C: New test.
785         * testsuite/libgomp.c++/task-reduction-5.C: New test.
786         * testsuite/libgomp.c++/task-reduction-6.C: New test.
787         * testsuite/libgomp.c++/task-reduction-7.C: New test.
788         * testsuite/libgomp.c++/task-reduction-8.C: New test.
789         * testsuite/libgomp.c++/task-reduction-9.C: New test.
790         * testsuite/libgomp.c/teams-1.c: New test.
791         * testsuite/libgomp.c/teams-2.c: New test.
792         * testsuite/libgomp.c/thread-limit-4.c: New test.
793         * testsuite/libgomp.c/thread-limit-5.c: New test.
794         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
796 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
798         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
799         acc_memcpy_to/from_device functions, now with async parameter.
800         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
801         (acc_memcpy_from_device): Likewise.
802         (acc_memcpy_to_device_async): New API function.
803         (acc_memcpy_from_device_async): Likewise.
804         (present_create_copy): Add async parameter and async setting/unsetting.
805         (acc_create): Adjust present_create_copy call.
806         (acc_copyin): Likewise.
807         (acc_present_or_create): Likewise.
808         (acc_present_or_copyin): Likewise.
809         (acc_create_async): New API function.
810         (acc_copyin_async): New API function.
811         (delete_copyout): Add async parameter and async setting/unsetting.
812         (acc_delete): Adjust delete_copyout call.
813         (acc_copyout): Likewise.
814         (acc_delete_async): New API function.
815         (acc_copyout_async): Likewise.
816         (update_dev_host): Add async parameter and async setting/unsetting.
817         (acc_update_device): Adjust update_dev_host call.
818         (acc_update_self): Likewise.
819         (acc_update_device_async): New API function.
820         (acc_update_self_async): Likewise.
821         * openacc.h (acc_copyin_async): Declare new API function.
822         (acc_create_async): Likewise.
823         (acc_copyout_async): Likewise.
824         (acc_delete_async): Likewise.
825         (acc_update_device_async): Likewise.
826         (acc_update_self_async): Likewise.
827         (acc_memcpy_to_device_async): Likewise.
828         (acc_memcpy_from_device_async): Likewise.
829         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
830         (acc_copyin_async_64_h): New subroutine.
831         (acc_copyin_async_array_h): New subroutine.
832         (acc_create_async_32_h): New subroutine.
833         (acc_create_async_64_h): New subroutine.
834         (acc_create_async_array_h): New subroutine.
835         (acc_copyout_async_32_h): New subroutine.
836         (acc_copyout_async_64_h): New subroutine.
837         (acc_copyout_async_array_h): New subroutine.
838         (acc_delete_async_32_h): New subroutine.
839         (acc_delete_async_64_h): New subroutine.
840         (acc_delete_async_array_h): New subroutine.
841         (acc_update_device_async_32_h): New subroutine.
842         (acc_update_device_async_64_h): New subroutine.
843         (acc_update_device_async_array_h): New subroutine.
844         (acc_update_self_async_32_h): New subroutine.
845         (acc_update_self_async_64_h): New subroutine.
846         (acc_update_self_async_array_h): New subroutine.
847         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
848         (acc_copyin_async_64_h): New subroutine.
849         (acc_copyin_async_array_h): New subroutine.
850         (acc_create_async_32_h): New subroutine.
851         (acc_create_async_64_h): New subroutine.
852         (acc_create_async_array_h): New subroutine.
853         (acc_copyout_async_32_h): New subroutine.
854         (acc_copyout_async_64_h): New subroutine.
855         (acc_copyout_async_array_h): New subroutine.
856         (acc_delete_async_32_h): New subroutine.
857         (acc_delete_async_64_h): New subroutine.
858         (acc_delete_async_array_h): New subroutine.
859         (acc_update_device_async_32_h): New subroutine.
860         (acc_update_device_async_64_h): New subroutine.
861         (acc_update_device_async_array_h): New subroutine.
862         (acc_update_self_async_32_h): New subroutine.
863         (acc_update_self_async_64_h): New subroutine.
864         (acc_update_self_async_array_h): New subroutine.
865         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
866         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
867         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
868         acc_memcpy_to_device_async*, acc_update_device_async*, and
869         acc_update_self_async* entries.
870         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
871         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
872         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
874 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
876         PR bootstrap/82856
877         * Makefile.am: Include multilib.am
878         (AUTOMAKE_OPTIONS): Add info-in-builddir.
879         (CLEANFILES): Remove libgomp.info.
880         * configure.ac: Remove AC_PREREQ.
881         * testsuite/Makefile.am (RUNTEST): Remove quotes.
882         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
883         Regenerate.
885 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
886             Julian Brown  <julian@codesourcery.com>
888         * testsuite/libgomp.oacc-c++/this.C: New.
890 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
892         * plugin/plugin-nvptx.c (struct cuda_map): New.
893         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
894         h_tail with (cuda_map *) map.
895         (cuda_map_create): New function.
896         (cuda_map_destroy): New function.
897         (map_init): Update to use a linked list of cuda_map objects.
898         (map_fini): Likewise.
899         (map_pop): Likewise.
900         (map_push): Likewise.  Return CUdeviceptr instead of void.
901         (init_streams_for_device): Remove stales references to ptx_stream
902         members.
903         (select_stream_for_async): Likewise.
904         (nvptx_exec): Update call to map_init.
906 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
907             Julian Brown  <julian@codesourcery.com>
909         PR middle-end/86336
910         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
912 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
913         Thomas Koenig <tkoenig@gcc.gnu.org>
915         PR fortran/25829
916         * testsuite/libgomp.fortran/async_io_1.f90: New test.
917         * testsuite/libgomp.fortran/async_io_2.f90: New test.
918         * testsuite/libgomp.fortran/async_io_3.f90: New test.
919         * testsuite/libgomp.fortran/async_io_4.f90: New test.
920         * testsuite/libgomp.fortran/async_io_5.f90: New test.
921         * testsuite/libgomp.fortran/async_io_6.f90: New test.
922         * testsuite/libgomp.fortran/async_io_7.f90: New test.
924 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
925             Tom de Vries  <tdevries@suse.de>
927         PR target/85590
928         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
929         (cuOccupancyMaxPotentialBlockSize): Declare.
930         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
931         CUDA_ONE_CALL_MAYBE_NULL.
932         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
933         CUoccupancyB2DSize and declare
934         cuOccupancyMaxPotentialBlockSize.
935         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
936         default num_gangs and num_workers when the driver supports it.
938 2018-08-08  Tom de Vries  <tdevries@suse.de>
940         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
941         CUDA_ONE_CALL_MAYBE_NULL.
942         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
943         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
944         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
945         are not found.
947 2018-08-08  Tom de Vries  <tdevries@suse.de>
949         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
950         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
951         present.
953 2018-08-08  Tom de Vries  <tdevries@suse.de>
955         * plugin/plugin-nvptx.c
956         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
957         (nvptx_open_device): Use
958         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
960 2018-08-08  Tom de Vries  <tdevries@suse.de>
962         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
963         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
965 2018-08-07  Tom de Vries  <tdevries@suse.de>
967         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
968         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
969         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
970         corresponding call in CUDA_ONE_CALL.  Add def/undef of
971         CUDA_ONE_CALL_MAYBE_NULL.
972         (CUDA_CALL_EXISTS): Define.
974 2018-08-07  Tom de Vries  <tdevries@suse.de>
976         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
977         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
978         corresponding undefs right after.
980 2018-08-04  Tom de Vries  <tdevries@suse.de>
982         * plugin/configfrag.ac: For --without-cuda-driver, set
983         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
984         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
985         * configure: Regenerate.
987 2018-08-02  Tom de Vries  <tdevries@suse.de>
989         PR target/86660
990         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
991         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
992         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
993         Same.
994         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
995         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
996         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
998 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
999             Thomas Schwinge <thomas@codesourcery.com>
1001         * config/nvptx/oacc-parallel.c: Truncate.
1003 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
1004             James Norris <jnorris@codesourcery.com>
1006         * plugin/plugin-nvptx.c (struct map): Removed.
1007         (map_init, map_pop): Remove use of struct map.
1008         (map_push): Likewise and change argument list.
1009         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
1011 2018-08-01  Tom de Vries  <tdevries@suse.de>
1013         * plugin/cuda-lib.def: New file.  Factor out of ...
1014         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
1015         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
1016         using CUDA_CALLS.
1018 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1020         Revert 'AsyncI/O patch committed'.
1021         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
1022                 Thomas Koenig <tkoenig@gcc.gnu.org>
1024         PR fortran/25829
1025         * testsuite/libgomp.fortran/async_io_1.f90: New test.
1026         * testsuite/libgomp.fortran/async_io_2.f90: New test.
1027         * testsuite/libgomp.fortran/async_io_3.f90: New test.
1028         * testsuite/libgomp.fortran/async_io_4.f90: New test.
1029         * testsuite/libgomp.fortran/async_io_5.f90: New test.
1030         * testsuite/libgomp.fortran/async_io_6.f90: New test.
1031         * testsuite/libgomp.fortran/async_io_7.f90: New test.
1033 2018-07-30  Tom de Vries  <tdevries@suse.de>
1035         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
1036         (nvptx_exec): Ensure worker and vector default dims don't exceed
1037         targ_fn->max_threads_per_block.
1039 2018-07-30  Tom de Vries  <tdevries@suse.de>
1041         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
1042         (nvptx_open_device): Init default_dims for device.
1043         (nvptx_exec): Use default_dims from device.
1045 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
1047         PR testsuite/86660
1048         * testsuite/libgomp.c++/for-15.C (results): Include it in
1049         omp declare target region.
1050         (main): Use map (always, tofrom: results) instead of
1051         map (tofrom: results).
1053         PR middle-end/86660
1054         * testsuite/libgomp.c/pr86660.c: New test.
1056 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
1057             Tom de Vries  <tdevries@suse.de>
1059         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
1060         sufficient resources to launch a kernel, and give a hint on how to fix
1061         it.
1063 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
1064             Tom de Vries  <tdevries@suse.de>
1066         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
1067         max_threads_per_block and max_threads_per_multiprocessor fields.
1068         (nvptx_open_device): Initialize new fields.
1069         (nvptx_exec): Use num_sms, and new fields.
1071 2018-07-26  Tom de Vries  <tdevries@suse.de>
1073         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
1074         to correct locations.  Remove xfail.
1076 2018-07-26  Tom de Vries  <tdevries@suse.de>
1078         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
1079         acc_wait.  Move acc_async_test calls to correct locations.  Remove
1080         xfail.
1082 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
1083         Thomas Koenig <tkoenig@gcc.gnu.org>
1085         PR fortran/25829
1086         * testsuite/libgomp.fortran/async_io_1.f90: New test.
1087         * testsuite/libgomp.fortran/async_io_2.f90: New test.
1088         * testsuite/libgomp.fortran/async_io_3.f90: New test.
1089         * testsuite/libgomp.fortran/async_io_4.f90: New test.
1090         * testsuite/libgomp.fortran/async_io_5.f90: New test.
1091         * testsuite/libgomp.fortran/async_io_6.f90: New test.
1092         * testsuite/libgomp.fortran/async_io_7.f90: New test.
1094 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
1096         PR middle-end/86542
1097         * testsuite/libgomp.c++/pr86542.C: New test.
1099         PR middle-end/86539
1100         * testsuite/libgomp.c++/pr86539.C: New test.
1102 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
1104         PR c++/86443
1105         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
1106         (results): Make sure the variable is not inside declare target region.
1107         (qux): Remove unused function.
1109 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
1111         PR c++/86443
1112         * testsuite/libgomp.c++/for-15.C: New test.
1114 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
1116         PR c++/86291
1117         * testsuite/libgomp.c++/pr86291.C: New test.
1119 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
1121         * libgomp.texi (Top): Move www.openmp.org to https.
1122         (Enabling OpenMP): Ditto.
1123         (omp_get_active_level): Ditto.
1124         (omp_get_ancestor_thread_num): Ditto.
1125         (omp_get_cancellation): Ditto.
1126         (omp_get_default_device): Ditto.
1127         (omp_get_dynamic): Ditto.
1128         (omp_get_level): Ditto.
1129         (omp_get_max_active_levels): Ditto.
1130         (omp_get_max_task_priority): Ditto.
1131         (omp_get_max_threads): Ditto.
1132         (omp_get_nested): Ditto.
1133         (omp_get_num_devices): Ditto.
1134         (omp_get_num_procs): Ditto.
1135         (omp_get_num_teams): Ditto.
1136         (omp_get_num_threads): Ditto.
1137         (omp_get_proc_bind): Ditto.
1138         (omp_get_schedule): Ditto.
1139         (omp_get_team_num): Ditto.
1140         (omp_get_team_size): Ditto.
1141         (omp_get_thread_limit): Ditto.
1142         (omp_get_thread_num): Ditto.
1143         (omp_in_parallel): Ditto.
1144         (omp_in_final): Ditto.
1145         (omp_is_initial_device): Ditto.
1146         (omp_set_default_device): Ditto.
1147         (omp_set_dynamic): Ditto.
1148         (omp_set_max_active_levels): Ditto.
1149         (omp_set_nested): Ditto.
1150         (omp_set_num_threads): Ditto.
1151         (omp_set_schedule): Ditto.
1152         (omp_init_lock): Ditto.
1153         (omp_set_lock): Ditto.
1154         (omp_test_lock): Ditto.
1155         (omp_unset_lock): Ditto.
1156         (omp_destroy_lock): Ditto.
1157         (omp_init_nest_lock): Ditto.
1158         (omp_set_nest_lock): Ditto.
1159         (omp_test_nest_lock): Ditto.
1160         (omp_unset_nest_lock): Ditto.
1161         (omp_destroy_nest_lock): Ditto.
1162         (omp_get_wtick): Ditto.
1163         (omp_get_wtime): Ditto.
1164         (OMP_CANCELLATION): Ditto.
1165         (OMP_DISPLAY_ENV): Ditto.
1166         (OMP_DEFAULT_DEVICE): Ditto.
1167         (OMP_DYNAMIC): Ditto.
1168         (OMP_MAX_ACTIVE_LEVELS): Ditto.
1169         (OMP_MAX_TASK_PRIORITY): Ditto.
1170         (OMP_NESTED): Ditto.
1171         (OMP_NUM_THREADS): Ditto.
1172         (OMP_PROC_BIND): Ditto.
1173         (OMP_PLACES): Ditto.
1174         (OMP_STACKSIZE): Ditto.
1175         (OMP_SCHEDULE): Ditto.
1176         (OMP_THREAD_LIMIT): Ditto.
1177         (OMP_WAIT_POLICY): Ditto.
1179 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
1180             James Norris  <jnorris@codesourcery.com>
1181             Julian Brown  <julian@codesourcery.com>
1182             Thomas Schwinge  <thomas@codesourcery.com>
1183             Tom de Vries  <tom@codesourcery.com>
1185         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
1186         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
1187         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
1188         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
1189         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
1190         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
1191         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
1192         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
1193         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
1194         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
1195         Likewise.
1196         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
1197         Likewise.
1198         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
1199         Likewise.
1200         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
1201         Likewise.
1202         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
1203         Likewise.
1204         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
1205         Likewise.
1206         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
1207         Likewise.
1208         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
1209         Likewise.
1210         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
1211         Likewise.
1212         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
1213         Likewise.
1214         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
1215         Likewise.
1216         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
1217         Likewise.
1218         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
1219         Likewise.
1220         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
1221         Likewise.
1222         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
1223         Likewise.
1224         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
1225         Likewise.
1226         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
1227         Likewise.
1228         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
1229         Likewise.
1230         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
1231         Likewise.
1232         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
1233         Likewise.
1234         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
1235         Likewise.
1236         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
1237         Likewise.
1238         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
1239         Likewise.
1240         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
1241         Likewise.
1242         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
1243         Likewise.
1244         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
1245         Likewise.
1246         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
1247         Likewise.
1248         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
1249         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
1250         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
1251         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
1252         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
1253         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
1254         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
1255         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
1256         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1257         Likewise.
1258         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1259         Likewise.
1260         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
1261         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
1262         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
1263         Likewise.
1264         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
1265         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
1266         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1267         Likewise.
1268         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1269         Likewise.
1270         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1271         Likewise.
1272         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1273         Likewise.
1274         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1275         Likewise.
1276         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
1277         Likewise.
1278         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
1279         Likewise.
1280         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
1281         Likewise.
1282         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
1283         Likewise.
1284         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
1285         Likewise.
1286         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
1287         Likewise.
1288         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
1289         Likewise.
1290         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
1291         Likewise.
1292         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
1293         Likewise.
1294         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
1295         Likewise.
1296         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
1297         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
1298         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
1299         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
1300         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
1301         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
1302         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
1304 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
1305             Thomas Schwinge <thomas@codesourcery.com>
1306             Cesar Philippidis  <cesar@codesourcery.com>
1308         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
1309         (gomp_acc_remove_pointer): Update declaration.
1310         (gomp_acc_declare_allocate): Declare.
1311         (gomp_remove_var): Declare.
1312         * libgomp.map (OACC_2.5): Define.
1313         * oacc-mem.c (acc_map_data): Update refcount.
1314         (acc_unmap_data): Likewise.
1315         (present_create_copy): Likewise.
1316         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
1317         (acc_copyin): Likewise.
1318         (FLAG_FINALIZE): Define.
1319         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
1320         (acc_delete_finalize): New function.
1321         (acc_delete_finalize_async): New function.
1322         (acc_copyout_finalize): New function.
1323         (acc_copyout_finalize_async): New function.
1324         (gomp_acc_insert_pointer): Update refcounts.
1325         (gomp_acc_remove_pointer): Return if data is not present on the
1326         accelerator.
1327         * oacc-parallel.c (find_pset): Rename to find_pointer.
1328         (find_pointer): Add support for GOMP_MAP_POINTER.
1329         (handle_ftn_pointers): New function.
1330         (GOACC_parallel_keyed): Update refcounts of variables.
1331         (GOACC_enter_exit_data): Add support for finalized data mappings.
1332         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
1333         of fortran arrays.
1334         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
1335         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
1336         for GOMP_MAP_FORCE_FROM.
1337         * openacc.f90 (module openacc_internal): Add
1338         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
1339         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
1340         acc_copyout_finalize and acc_delete_finalize.
1341         (acc_copyout_finalize_32_h): New subroutine.
1342         (acc_copyout_finalize_64_h): New subroutine.
1343         (acc_copyout_finalize_array_h): New subroutine.
1344         (acc_delete_finalize_32_h): New subroutine.
1345         (acc_delete_finalize_64_h): New subroutine.
1346         (acc_delete_finalize_array_h): New subroutine.
1347         * openacc.h (acc_copyout_finalize): Declare.
1348         (acc_copyout_finalize_async): Declare.
1349         (acc_delete_finalize): Declare.
1350         (acc_delete_finalize_async): Declare.
1351         * openacc_lib.h (acc_copyout_finalize): New interface.
1352         (acc_delete_finalize): New interface.
1353         * target.c (gomp_map_vars): Update dynamic_refcount.
1354         (gomp_remove_var): New function.
1355         (gomp_unmap_vars): Use it.
1356         (gomp_unload_image_from_device): Likewise.
1357         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
1358         case to utilize OpenACC 2.5 data clause semantics.
1359         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1360         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1361         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1362         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1363         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1364         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1365         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1366         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
1367         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
1368         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
1369         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
1370         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
1371         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
1372         utilize OpenACC 2.5 data clause semantics.
1373         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1374         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1375         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1376         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1377         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1378         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1379         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1380         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
1381         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
1383 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
1385         PR fortran/85841
1386         PR testsuite/85865
1387         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
1388         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1389         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1390         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1391         * testsuite/libgomp.fortran/task2.f90: Ditto.
1392         * testsuite/libgomp.fortran/vla1.f90: Ditto.
1393         * testsuite/libgomp.fortran/vla2.f90: Ditto.
1394         * testsuite/libgomp.fortran/vla3.f90: Ditto.
1395         * testsuite/libgomp.fortran/vla4.f90: Ditto.
1396         * testsuite/libgomp.fortran/vla5.f90: Ditto.
1397         * testsuite/libgomp.fortran/vla6.f90: Ditto.
1398         * testsuite/libgomp.fortran/vla8.f90: Ditto.
1399         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
1400         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
1402 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
1404         PR c++/85782
1405         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
1407 2018-05-09  Tom de Vries  <tom@codesourcery.com>
1409         PR libgomp/82901
1410         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
1411         to GOACC_enter_exit_data.
1413 2018-05-09  Tom de Vries  <tom@codesourcery.com>
1415         PR libgomp/83792
1416         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
1417         (async_synchronous_p): New function.
1418         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
1419         async_valid_p.
1420         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
1421         async_valid_stream_id_p.
1422         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
1423         * oacc-parallel.c (GOACC_parallel_keyed): Same.
1425 2018-05-07  Tom de Vries  <tom@codesourcery.com>
1427         PR testsuite/85677
1428         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
1429         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
1431 2018-05-03  Tom de Vries  <tom@codesourcery.com>
1433         PR testsuite/85106
1434         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
1435         extra_tool_flags if it contains an -foffload=-fdump-* flag.
1436         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
1437         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
1439 2018-05-02  Tom de Vries  <tom@codesourcery.com>
1441         PR libgomp/85411
1442         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
1443         GOMP_OPENACC_DIM ...
1444         * env.c (parse_gomp_openacc_dim): ... here.  New function.
1445         (initialize_env): Call parse_gomp_openacc_dim.
1446         (goacc_default_dims): Define.
1447         * libgomp.h (goacc_default_dims): Declare.
1448         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
1449         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
1450         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
1451         GOMP_PLUGIN_acc_default_dim.
1452         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
1453         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
1455 2018-05-02  Tom de Vries  <tom@codesourcery.com>
1457         PR testsuite/83791
1458         * testsuite/libgomp.c++/udr-9.C: Update.
1459         * testsuite/libgomp.c++/atomic-16.C: Remove.
1460         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
1461         * testsuite/libgomp.c++/loop-13.C: Remove.
1462         * testsuite/libgomp.c++/loop-14.C: Remove.
1463         * testsuite/libgomp.c++/loop-15.C: Remove.
1464         * testsuite/libgomp.c++/monotonic-1.C: Remove.
1465         * testsuite/libgomp.c++/monotonic-2.C: Remove.
1466         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
1467         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
1468         * testsuite/libgomp.c++/ordered-1.C: Remove.
1469         * testsuite/libgomp.c++/pr45784.C: Remove.
1470         * testsuite/libgomp.c++/pr64824.C: Remove.
1471         * testsuite/libgomp.c++/pr64868.C: Remove.
1472         * testsuite/libgomp.c++/pr66199-1.C: Remove.
1473         * testsuite/libgomp.c++/pr66199-2.C: Remove.
1474         * testsuite/libgomp.c++/pr66199-3.C: Remove.
1475         * testsuite/libgomp.c++/pr66199-4.C: Remove.
1476         * testsuite/libgomp.c++/pr66199-5.C: Remove.
1477         * testsuite/libgomp.c++/pr66199-6.C: Remove.
1478         * testsuite/libgomp.c++/pr66199-7.C: Remove.
1479         * testsuite/libgomp.c++/pr66199-8.C: Remove.
1480         * testsuite/libgomp.c++/pr66199-9.C: Remove.
1481         * testsuite/libgomp.c++/pr69389.C: Remove.
1482         * testsuite/libgomp.c++/simd10.C: Remove.
1483         * testsuite/libgomp.c++/simd11.C: Remove.
1484         * testsuite/libgomp.c++/simd12.C: Remove.
1485         * testsuite/libgomp.c++/simd13.C: Remove.
1486         * testsuite/libgomp.c++/target-1.C: Remove.
1487         * testsuite/libgomp.c++/target-3.C: Remove.
1488         * testsuite/libgomp.c++/target-4.C: Remove.
1489         * testsuite/libgomp.c++/target-5.C: Remove.
1490         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
1491         * testsuite/libgomp.c++/taskloop-1.C: Remove.
1492         * testsuite/libgomp.c++/taskloop-2.C: Remove.
1493         * testsuite/libgomp.c++/taskloop-3.C: Remove.
1494         * testsuite/libgomp.c++/taskloop-4.C: Remove.
1495         * testsuite/libgomp.c++/udr-9.C: Remove.
1496         * testsuite/libgomp.c++/for-10.C: Remove.
1497         * testsuite/libgomp.c++/for-11.C: Remove.
1498         * testsuite/libgomp.c++/for-12.C: Remove.
1499         * testsuite/libgomp.c++/for-13.C: Remove.
1500         * testsuite/libgomp.c++/for-14.C: Remove.
1501         * testsuite/libgomp.c++/for-9.C: Remove.
1502         * testsuite/libgomp.c/atomic-18.c: Move ...
1503         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
1504         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
1505         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
1506         * testsuite/libgomp.c/loop-13.c: Move ...
1507         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
1508         * testsuite/libgomp.c/loop-14.c: Move ...
1509         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
1510         * testsuite/libgomp.c/loop-15.c: Remove.
1511         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
1512         * testsuite/libgomp.c/monotonic-1.c: Move ...
1513         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
1514         * testsuite/libgomp.c/monotonic-2.c: Move ...
1515         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
1516         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
1517         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
1518         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
1519         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
1520         * testsuite/libgomp.c/ordered-4.c: Move ...
1521         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
1522         * testsuite/libgomp.c/pr45784.c: Move ...
1523         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
1524         * testsuite/libgomp.c/pr64824.c: Move ...
1525         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
1526         * testsuite/libgomp.c/pr64868.c: Move ...
1527         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
1528         * testsuite/libgomp.c/pr66199-1.c: Move ...
1529         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
1530         * testsuite/libgomp.c/pr66199-2.c: Move ...
1531         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
1532         * testsuite/libgomp.c/pr66199-3.c: Move ...
1533         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
1534         * testsuite/libgomp.c/pr66199-4.c: Move ...
1535         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
1536         * testsuite/libgomp.c/pr66199-5.c: Move ...
1537         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
1538         * testsuite/libgomp.c/pr66199-6.c: Move ...
1539         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
1540         * testsuite/libgomp.c/pr66199-7.c: Move ...
1541         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
1542         * testsuite/libgomp.c/pr66199-8.c: Move ...
1543         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
1544         * testsuite/libgomp.c/pr66199-9.c: Move ...
1545         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
1546         * testsuite/libgomp.c/pr69389.c: Move ...
1547         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
1548         * testsuite/libgomp.c/simd-14.c: Move ...
1549         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
1550         * testsuite/libgomp.c/simd-15.c: Move ...
1551         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
1552         * testsuite/libgomp.c/simd-16.c: Move ...
1553         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
1554         * testsuite/libgomp.c/simd-17.c: Move ...
1555         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
1556         * testsuite/libgomp.c/target-1.c: Move ...
1557         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
1558         * testsuite/libgomp.c/target-10.c: Move ...
1559         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
1560         * testsuite/libgomp.c/target-13.c: Move ...
1561         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
1562         * testsuite/libgomp.c/target-2.c: Move ...
1563         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
1564         * testsuite/libgomp.c/taskgroup-1.c: Move ...
1565         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
1566         * testsuite/libgomp.c/taskloop-1.c: Move ...
1567         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
1568         * testsuite/libgomp.c/taskloop-2.c: Move ...
1569         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
1570         * testsuite/libgomp.c/taskloop-3.c: Move ...
1571         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
1572         * testsuite/libgomp.c/taskloop-4.c: Move ...
1573         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
1574         * testsuite/libgomp.c/udr-1.c: Move ...
1575         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
1576         * testsuite/libgomp.c/for-1.c: Move ...
1577         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
1578         * testsuite/libgomp.c/for-1.h: Move ...
1579         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
1580         * testsuite/libgomp.c/for-2.c: Move ...
1581         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
1582         * testsuite/libgomp.c/for-2.h: Move ...
1583         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
1584         * testsuite/libgomp.c/for-3.c: Move ...
1585         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
1586         * testsuite/libgomp.c/for-4.c: Move ...
1587         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
1588         * testsuite/libgomp.c/for-5.c: Move ...
1589         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
1590         * testsuite/libgomp.c/for-6.c: Move ...
1591         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
1593 2018-05-02  Tom de Vries  <tom@codesourcery.com>
1595         PR libgomp/82428
1596         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
1597         __builtin_goacc_parlevel_{id,size}.
1598         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
1599         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
1600         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
1601         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
1602         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
1603         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
1604         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
1605         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
1606         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
1607         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
1608         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
1609         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
1610         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
1611         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
1612         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
1613         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
1614         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
1615         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
1616         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
1617         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
1618         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
1619         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
1620         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
1622 2018-05-02  Tom de Vries  <tom@codesourcery.com>
1624         PR testsuite/85106
1625         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
1627 2018-05-02  Tom de Vries  <tom@codesourcery.com>
1629         PR testsuite/85106
1630         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
1632 2018-04-29  Julian Brown  <julian@codesourcery.com>
1633             Tom de Vries  <tom@codesourcery.com>
1635         PR testsuite/85527
1636         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
1637         arbitrary order for iterations of atomic subtract check.
1639 2018-04-28  Tom de Vries  <tom@codesourcery.com>
1641         PR testsuite/85527
1642         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
1643         atomic capture results obtained in parallel loop to an array, instead of
1644         to a scalar.
1646 2018-04-26  Tom de Vries  <tom@codesourcery.com>
1648         PR libgomp/84020
1649         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
1650         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
1651         (process_GOMP_NVPTX_JIT): New function.
1652         (link_ptx): Use process_GOMP_NVPTX_JIT.
1654 2018-04-26  Richard Biener <rguenther@suse.de>
1655             Tom de Vries  <tom@codesourcery.com>
1657         PR lto/85422
1658         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
1660 2018-04-26  Tom de Vries  <tom@codesourcery.com>
1662         PR target/85519
1663         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
1664         recursion depth from 25 to 23.
1665         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
1667 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
1669         * configure: Regenerated.
1671 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
1672             Tom de Vries  <tom@codesourcery.com>
1674         PR target/85445
1675         * testsuite/libgomp.oacc-c++/ref-1.C: New.
1677 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
1679         PR libgomp/85463
1680         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
1681         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
1682         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
1683         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
1684         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
1685         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
1687         PR libfortran/85166
1688         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
1689         abort".
1690         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
1692 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
1694         * configure: Regenerated.
1696 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
1698         PR jit/85384
1699         * configure: Regenerate.
1701 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
1702             Tom de Vries  <tom@codesourcery.com>
1704         PR middle-end/84955
1705         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
1706         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
1708 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
1710         PR fortran/83064
1711         PR testsuite/85346
1712         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
1713         test from gfortran.dg to here.
1715 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
1717         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
1718         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
1720 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
1722         PR middle-end/84955
1723         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
1724         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
1726 2018-04-05  Tom de Vries  <tom@codesourcery.com>
1728         PR target/85204
1729         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
1731 2018-03-26  Tom de Vries  <tom@codesourcery.com>
1733         PR tree-optimization/85063
1734         * testsuite/libgomp.c/switch-conversion-2.c: New test.
1735         * testsuite/libgomp.c/switch-conversion.c: New test.
1736         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
1737         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
1739 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
1741         PR fortran/84381
1742         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
1743         call abort by STOP n.
1744         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
1745         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
1746         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
1747         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
1748         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
1749         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
1750         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
1751         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
1752         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
1753         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
1754         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
1755         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
1756         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
1757         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
1758         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
1759         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
1760         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
1761         * testsuite/libgomp.fortran/associate1.f90: Likewise.
1762         * testsuite/libgomp.fortran/associate2.f90: Likewise.
1763         * testsuite/libgomp.fortran/associate3.f90: Likewise.
1764         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
1765         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
1766         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
1767         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
1768         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
1769         * testsuite/libgomp.fortran/character1.f90: Likewise.
1770         * testsuite/libgomp.fortran/character2.f90: Likewise.
1771         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
1772         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
1773         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
1774         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
1775         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
1776         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
1777         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
1778         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
1779         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
1780         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
1781         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
1782         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
1783         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
1784         * testsuite/libgomp.fortran/do1.f90: Likewise.
1785         * testsuite/libgomp.fortran/do2.f90: Likewise.
1786         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
1787         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
1788         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
1789         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
1790         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
1791         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
1792         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
1793         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
1794         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
1795         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
1796         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
1797         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
1798         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
1799         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
1800         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
1801         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
1802         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
1803         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
1804         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
1805         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
1806         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
1807         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
1808         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
1809         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
1810         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
1811         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
1812         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
1813         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
1814         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
1815         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
1816         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
1817         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
1818         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
1819         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
1820         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
1821         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
1822         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
1823         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
1824         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
1825         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
1826         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
1827         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
1828         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
1829         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
1830         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
1831         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
1832         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
1833         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
1834         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
1835         * testsuite/libgomp.fortran/lib1.f90: Likewise.
1836         * testsuite/libgomp.fortran/lib2.f: Likewise.
1837         * testsuite/libgomp.fortran/lib3.f: Likewise.
1838         * testsuite/libgomp.fortran/lib4.f90: Likewise.
1839         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
1840         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
1841         * testsuite/libgomp.fortran/nested1.f90: Likewise.
1842         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
1843         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
1844         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
1845         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
1846         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
1847         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
1848         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
1849         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
1850         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
1851         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
1852         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
1853         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
1854         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
1855         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
1856         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
1857         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
1858         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
1859         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
1860         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
1861         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
1862         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
1863         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
1864         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
1865         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
1866         * testsuite/libgomp.fortran/pr25162.f: Likewise.
1867         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
1868         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
1869         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
1870         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
1871         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
1872         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
1873         * testsuite/libgomp.fortran/pr28390.f: Likewise.
1874         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
1875         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
1876         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
1877         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
1878         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
1879         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
1880         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
1881         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
1882         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
1883         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
1884         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
1885         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
1886         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
1887         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
1888         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
1889         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
1890         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
1891         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
1892         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
1893         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
1894         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
1895         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
1896         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
1897         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
1898         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
1899         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
1900         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
1901         * testsuite/libgomp.fortran/reference1.f90: Likewise.
1902         * testsuite/libgomp.fortran/reference2.f90: Likewise.
1903         * testsuite/libgomp.fortran/retval1.f90: Likewise.
1904         * testsuite/libgomp.fortran/retval2.f90: Likewise.
1905         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
1906         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
1907         * testsuite/libgomp.fortran/simd1.f90: Likewise.
1908         * testsuite/libgomp.fortran/simd2.f90: Likewise.
1909         * testsuite/libgomp.fortran/simd3.f90: Likewise.
1910         * testsuite/libgomp.fortran/simd4.f90: Likewise.
1911         * testsuite/libgomp.fortran/simd5.f90: Likewise.
1912         * testsuite/libgomp.fortran/simd6.f90: Likewise.
1913         * testsuite/libgomp.fortran/simd7.f90: Likewise.
1914         * testsuite/libgomp.fortran/stack.f90: Likewise.
1915         * testsuite/libgomp.fortran/strassen.f90: Likewise.
1916         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
1917         * testsuite/libgomp.fortran/tabs2.f: Likewise.
1918         * testsuite/libgomp.fortran/target1.f90: Likewise.
1919         * testsuite/libgomp.fortran/target2.f90: Likewise.
1920         * testsuite/libgomp.fortran/target3.f90: Likewise.
1921         * testsuite/libgomp.fortran/target4.f90: Likewise.
1922         * testsuite/libgomp.fortran/target5.f90: Likewise.
1923         * testsuite/libgomp.fortran/target6.f90: Likewise.
1924         * testsuite/libgomp.fortran/target7.f90: Likewise.
1925         * testsuite/libgomp.fortran/target8.f90: Likewise.
1926         * testsuite/libgomp.fortran/task1.f90: Likewise.
1927         * testsuite/libgomp.fortran/task2.f90: Likewise.
1928         * testsuite/libgomp.fortran/task3.f90: Likewise.
1929         * testsuite/libgomp.fortran/task4.f90: Likewise.
1930         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
1931         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
1932         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
1933         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
1934         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
1935         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
1936         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
1937         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
1938         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
1939         * testsuite/libgomp.fortran/udr1.f90: Likewise.
1940         * testsuite/libgomp.fortran/udr10.f90: Likewise.
1941         * testsuite/libgomp.fortran/udr11.f90: Likewise.
1942         * testsuite/libgomp.fortran/udr12.f90: Likewise.
1943         * testsuite/libgomp.fortran/udr13.f90: Likewise.
1944         * testsuite/libgomp.fortran/udr14.f90: Likewise.
1945         * testsuite/libgomp.fortran/udr15.f90: Likewise.
1946         * testsuite/libgomp.fortran/udr2.f90: Likewise.
1947         * testsuite/libgomp.fortran/udr3.f90: Likewise.
1948         * testsuite/libgomp.fortran/udr4.f90: Likewise.
1949         * testsuite/libgomp.fortran/udr5.f90: Likewise.
1950         * testsuite/libgomp.fortran/udr6.f90: Likewise.
1951         * testsuite/libgomp.fortran/udr7.f90: Likewise.
1952         * testsuite/libgomp.fortran/udr8.f90: Likewise.
1953         * testsuite/libgomp.fortran/udr9.f90: Likewise.
1954         * testsuite/libgomp.fortran/vla1.f90: Likewise.
1955         * testsuite/libgomp.fortran/vla2.f90: Likewise.
1956         * testsuite/libgomp.fortran/vla3.f90: Likewise.
1957         * testsuite/libgomp.fortran/vla4.f90: Likewise.
1958         * testsuite/libgomp.fortran/vla5.f90: Likewise.
1959         * testsuite/libgomp.fortran/vla6.f90: Likewise.
1960         * testsuite/libgomp.fortran/vla7.f90: Likewise.
1961         * testsuite/libgomp.fortran/vla8.f90: Likewise.
1962         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
1963         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
1964         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
1965         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
1966         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
1967         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
1968         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
1969         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
1970         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
1971         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
1972         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
1973         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
1974         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
1975         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
1976         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
1977         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
1978         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
1979         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
1980         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
1981         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
1982         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
1983         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
1984         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
1985         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
1986         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
1987         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
1988         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
1989         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
1990         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
1991         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
1992         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
1993         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
1994         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
1995         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
1996         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
1997         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
1998         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
1999         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
2000         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
2001         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
2002         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
2003         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2004         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
2005         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
2006         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
2007         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
2008         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
2009         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
2010         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
2011         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
2012         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
2013         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
2014         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
2015         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2016         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
2017         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
2018         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
2019         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
2020         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
2021         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
2022         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
2023         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
2024         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
2025         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
2026         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
2027         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
2028         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
2029         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
2030         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
2031         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
2032         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
2033         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
2034         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
2035         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
2036         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
2037         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
2038         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
2039         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
2040         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
2041         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
2042         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
2043         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
2044         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
2045         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
2046         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
2047         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
2048         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
2049         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
2050         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
2051         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
2052         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
2053         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
2054         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
2055         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
2057 2018-03-20  Richard Biener  <rguenther@suse.de>
2059         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
2060         parallelizable loop.
2062 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
2064         PR target/84148
2065         * configure: Regenerate.
2067 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
2069         PR fortran/84418
2070         * libgomp.fortran/pr84418-1.f90: New test.
2071         * libgomp.fortran/pr84418-2.f90: New test.
2073 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
2075         PR fortran/84313
2076         * testsuite/libgomp.fortran/threadprivate4.f90: Add
2077         -std=f2003 -fall-intrinsics into dg-additional-options.
2079 2018-02-08  Martin Jambor  <mjambor@suse.cz>
2081         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
2082         clonable.
2084 2018-02-08  Martin Jambor  <mjambor@suse.cz>
2086         * testsuite/libgomp.hsa.c/staticvar.c: New test.
2088 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2090         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
2091         [__cplusplus]: Declare extern "C".
2093 2018-02-07  Tom de Vries  <tom@codesourcery.com>
2095         PR libgomp/84217
2096         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
2098 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
2099             Jakub Jelinek  <jakub@redhat.com>
2101         PR libgomp/84096
2102         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
2103         instead of omp_lock_t.
2105 2018-01-25  Tom de Vries  <tom@codesourcery.com>
2107         PR target/84028
2108         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
2110 2018-01-24  Tom de Vries  <tom@codesourcery.com>
2112         PR target/83589
2113         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
2115 2018-01-24  Tom de Vries  <tom@codesourcery.com>
2117         PR target/81352
2118         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
2120 2018-01-19  Tom de Vries  <tom@codesourcery.com>
2121             Cesar Philippidis  <cesar@codesourcery.com>
2123         PR target/83920
2124         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
2125         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
2127 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
2129         Update copyright years.
2131         * libgomp.texi: Bump @copying's copyright year.
2133 2017-12-30  Tom de Vries  <tom@codesourcery.com>
2135         PR libgomp/83046
2136         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
2137         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
2139 2017-12-27  Tom de Vries  <tom@codesourcery.com>
2141         PR c++/83046
2142         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
2143         (test_nonstatic): Fix return type to workaround PR83046.
2145 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
2147         PR testsuite/83281
2148         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
2149         j suffix instead of i.
2150         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
2151         Likewise.
2153 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
2155         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
2156         call to acc_wait (1).
2158 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
2160         PR fortran/81304
2161         * testsuite/libgomp.fortran/pr81304.f90: New test.
2163 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
2165         PR fortran/81841
2166         * libgomp.fortran/pr81841.f90: New test.
2168 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
2170         PR libgomp/83106
2171         * target.c (gomp_target_init): Compute lengths just once and
2172         use them in both malloc size and subsequent copying.
2174 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
2176         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
2177         * acinclude.m4: Add cet.m4.
2178         * configure: Regenerate.
2179         * Makefile.in: Likewise.
2180         * testsuite/Makefile.in: Likewise.
2182 2017-11-15  Tom de Vries  <tom@codesourcery.com>
2184         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
2185         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
2186         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
2187         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
2188         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
2189         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
2191 2017-11-14  Tom de Vries  <tom@codesourcery.com>
2193         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
2194         non-nvidia devices.
2196 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
2198         PR c++/82835
2199         * testsuite/libgomp.c++/pr82835.C: New test.
2201 2017-11-06  Martin Liska  <mliska@suse.cz>
2203         * testsuite/libgomp.c++/loop-2.C: Return a value
2204         for functions with non-void return type, or change type to void,
2205         or add -Wno-return-type for test.
2206         * testsuite/libgomp.c++/loop-4.C: Likewise.
2207         * testsuite/libgomp.c++/parallel-1.C: Likewise.
2208         * testsuite/libgomp.c++/shared-1.C: Likewise.
2209         * testsuite/libgomp.c++/single-1.C: Likewise.
2210         * testsuite/libgomp.c++/single-2.C: Likewise.
2212 2017-10-31  Tom de Vries  <tom@codesourcery.com>
2214         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
2215         "do {} while (false)".
2216         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
2217         after HSA_DEBUG call.
2219 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
2221         * target.c (struct gomp_coalesce_buf): New type.
2222         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
2223         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
2224         (gomp_copy_host2dev): Add CBUF argument, if copying into
2225         the cached ranges, memcpy into buffer instead of copying
2226         into device.
2227         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
2228         Add CBUF argument, pass it through to other calls.
2229         (gomp_map_vars): Aggregate copies from host to device if small enough
2230         and with small enough gaps in between into memcpy into a buffer and
2231         fewer host to device copies from the buffer.
2232         (gomp_update): Adjust gomp_copy_host2dev caller.
2234 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
2236         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
2237         run" directive.
2238         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
2239         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
2240         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
2241         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
2243 2017-10-16  Tom de Vries  <tom@codesourcery.com>
2245         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
2246         openacc_nvidia_accel_selected.
2247         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
2248         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
2249         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
2250         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
2251         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
2252         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
2253         openacc_nvidia_accel_selected. Skip for shared memory device.
2254         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
2255         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
2257 2017-10-09  Martin Jambor  <mjambor@suse.cz>
2259         PR hsa/82416
2260         * testsuite/libgomp.hsa.c/pr82416.c: New test.
2262 2017-10-07  Tom de Vries  <tom@codesourcery.com>
2264         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
2265         Remove acc_device_nvidia references.
2266         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
2267         Same.
2269 2017-10-05  Tom de Vries  <tom@codesourcery.com>
2271         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
2272         vector_length(32) clause from acc parallel directive.
2273         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
2275 2017-10-04  Tom de Vries  <tom@codesourcery.com>
2277         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
2278         (main): Reduce sum of arr elements.  Assert that hres is exactly
2279         representable in 32-bit floating point.
2280         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
2281         (main): Reduce sum of arr elements.  Assert that hres and hmres are
2282         exactly representable in 32-bit floating point.
2283         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
2285 2017-09-28  Tom de Vries  <tom@codesourcery.com>
2287         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
2288         setting.
2289         * testsuite/libgomp.c++/pr69393.C: Same.
2290         * testsuite/libgomp.c++/taskloop-1.C: Same.
2291         * testsuite/libgomp.c++/taskloop-3.C: Same.
2292         * testsuite/libgomp.c++/taskloop-4.C: Same.
2293         * testsuite/libgomp.c/for-4.c: Same.
2294         * testsuite/libgomp.c/pr66199-3.c: Same.
2295         * testsuite/libgomp.c/pr66199-4.c: Same.
2296         * testsuite/libgomp.c/pr66199-6.c: Same.
2297         * testsuite/libgomp.c/taskloop-1.c: Same.
2298         * testsuite/libgomp.c/taskloop-3.c: Same.
2299         * testsuite/libgomp.c/taskloop-4.c: Same.
2300         * testsuite/libgomp.fortran/aligned1.f03: Same.
2301         * testsuite/libgomp.fortran/condinc1.f: Same.
2302         * testsuite/libgomp.fortran/condinc3.f90: Same.
2303         * testsuite/libgomp.fortran/crayptr1.f90: Same.
2304         * testsuite/libgomp.fortran/crayptr2.f90: Same.
2305         * testsuite/libgomp.fortran/crayptr3.f90: Same.
2306         * testsuite/libgomp.fortran/omp_cond1.f: Same.
2307         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
2308         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
2309         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
2310         * testsuite/libgomp.fortran/recursion1.f90: Same.
2311         * testsuite/libgomp.fortran/target2.f90: Same.
2312         * testsuite/libgomp.fortran/target5.f90: Same.
2313         * testsuite/libgomp.fortran/task3.f90: Same.
2315 2017-09-28  Tom de Vries  <tom@codesourcery.com>
2317         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
2318         vector_length(32) clause from acc parallel directive.
2319         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
2321 2017-09-27  Tom de Vries  <tom@codesourcery.com>
2323         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
2324         Remove acc_device_nvidia references.
2326 2017-09-16  Tom de Vries  <tom@codesourcery.com>
2328         PR c/81875
2329         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
2331 2017-09-14  Tom de Vries  <tom@codesourcery.com>
2333         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
2334         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
2335         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
2336         * testsuite/libgomp.c/c.exp: Include test-cases from
2337         libgomp.c-c++-common.
2338         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
2339         files.
2341 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
2343         PR c++/81314
2344         * testsuite/libgomp.c++/pr81314.C: New test.
2346 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
2348         * libgomp.texi (Top): www.openacc.org now uses https.
2349         (Enabling OpenACC): Ditto.
2350         (acc_get_num_devices): Ditto.
2351         (acc_set_device_type): Ditto.
2352         (acc_get_device_type): Ditto.
2353         (acc_set_device_num): Ditto.
2354         (acc_get_device_num): Ditto.
2355         (acc_async_test): Ditto.
2356         (acc_async_test_all): Ditto.
2357         (acc_wait): Ditto.
2358         (acc_wait_all): Ditto.
2359         (acc_wait_all_async): Ditto.
2360         (acc_wait_async): Ditto.
2361         (acc_init): Ditto.
2362         (acc_shutdown): Ditto.
2363         (acc_on_device): Ditto.
2364         (acc_malloc): Ditto.
2365         (acc_free): Ditto.
2366         (acc_copyin): Ditto.
2367         (acc_present_or_copyin): Ditto.
2368         (acc_create): Ditto.
2369         (acc_present_or_create): Ditto.
2370         (acc_copyout): Ditto.
2371         (acc_delete): Ditto.
2372         (acc_update_device): Ditto.
2373         (acc_update_self): Ditto.
2374         (acc_map_data): Ditto.
2375         (acc_unmap_data): Ditto.
2376         (acc_deviceptr): Ditto.
2377         (acc_hostptr): Ditto.
2378         (acc_is_present): Ditto.
2379         (acc_memcpy_to_device): Ditto.
2380         (acc_memcpy_from_device): Ditto.
2381         (acc_get_current_cuda_device): Ditto.
2382         (acc_get_current_cuda_context): Ditto.
2383         (acc_get_cuda_stream): Ditto.
2384         (acc_set_cuda_stream): Ditto.
2385         (ACC_DEVICE_TYPE): Ditto.
2386         (ACC_DEVICE_NUM): Ditto.
2387         (OpenACC Library Interoperability): Ditto.
2389 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
2391         PR c/81687
2392         * testsuite/libgomp.c/pr81687-1.c: New test.
2393         * testsuite/libgomp.c/pr81687-2.c: New test.
2395 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
2397         PR c/69389
2398         * testsuite/libgomp.c/pr69389.c: New test.
2399         * testsuite/libgomp.c++/pr69389.C: New test.
2401 2017-08-07  Tom de Vries  <tom@codesourcery.com>
2403         PR middle-end/78266
2404         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
2405         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
2407 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
2409         PR c/45784
2410         * testsuite/libgomp.c/pr45784.c: New test.
2411         * testsuite/libgomp.c++/pr45784.C: New test.
2413 2017-07-19  Tom de Vries  <tom@codesourcery.com>
2415         * testsuite/libgomp.oacc-c/vec.c: New test.
2417 2017-07-03  Tom de Vries  <tom@codesourcery.com>
2419         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
2421 2017-06-27  Tom de Vries  <tom@codesourcery.com>
2423         * plugin/plugin-nvptx.c (notify_var): New function.
2424         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
2426 2017-06-27  Tom de Vries  <tom@codesourcery.com>
2428         * env.c (parse_unsigned_long_1): Factor out of ...
2429         (parse_unsigned_long): ... here.
2430         (parse_int_1): Factor out of ...
2431         (parse_int): ... here.
2432         (parse_int_secure): New function.
2433         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
2434         * secure_getenv.h: Factor out of ...
2435         * plugin/plugin-hsa.c: ... here.
2436         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
2438 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
2440         PR c++/81130
2441         * testsuite/libgomp.c++/pr81130.C: New test.
2443 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2445         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
2446         default args.
2447         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
2448         dg-xfail-run-if default args.
2450 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2452         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
2453         * testsuite/libgomp.c/pr39591-3.c: Likewise.
2455 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
2457         PR libgomp/80822
2458         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
2459         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
2460         sibling lists, depending on level just pick up what CPUs to put
2461         together into a place vs. whether add multiple ordered places.
2463 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
2465         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
2466         * libgomp.map (OACC_2.0.1): Add these.
2467         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
2468         for "acc_wait", and "acc_wait_all", respectively.
2469         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
2470         for "acc_wait", and "acc_wait_all", respectively.
2471         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
2472         * libgomp.texi (acc_wait, acc_wait_all): Update.
2473         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
2474         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
2475         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
2477         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
2478         acc_present_or_copyin and acc_present_or_create procedures,
2479         respectively.
2480         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
2481         generally different variants of OpenACC Runtime Library functions.
2482         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2484         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
2485         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2487         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
2488         of preprocessor definitions.
2489         * libgomp.h (strong_alias): Guard by "#ifdef
2490         HAVE_ATTRIBUTE_ALIAS".
2491         * oacc-mem.c: Provide "acc_pcreate" as alias for
2492         "acc_present_or_create", and "acc_pcopyin" as alias for
2493         "acc_present_or_copyin".
2494         * libgomp.map: New version "OACC_2.0.1".
2495         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
2496         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
2497         its content into...
2498         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
2499         Extend testing.
2501         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
2502         when disabling nvptx offloading.
2504 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
2506         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
2507         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
2508         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
2510         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
2511         * testsuite/lib/libgomp.exp
2512         (check_effective_target_openacc_nvidia_accel_configured): New
2513         proc.
2514         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
2515         (check_effective_target_c++): New procs.
2516         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
2517         (check_effective_target_c++): Likewise.
2519 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
2521         PR middle-end/80809
2522         * testsuite/libgomp.c/pr80809-2.c: New test.
2523         * testsuite/libgomp.c/pr80809-3.c: New test.
2525         PR middle-end/80809
2526         * testsuite/libgomp.c/pr80809-1.c: New test.
2528         PR middle-end/80853
2529         * testsuite/libgomp.c/pr80853.c: New test.
2531 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
2533         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
2534         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
2535         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
2536         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
2537         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
2539         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
2540         Debug output for failure.
2542 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2544         * testsuite/lib/libgomp.exp: Load scanlang.exp.
2546 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
2548         PR bootstrap/80531
2549         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
2550         bootstrap compare failures.
2552 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
2554         * testsuite/libgomp.c/target-36.c: New testcase.
2556 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
2558         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
2559         instead of char.
2561 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
2563         PR libgomp/80394
2564         * testsuite/libgomp.c/pr80394.c: New test.
2566 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
2568         PR libgomp/79876
2569         * config/posix/thread-stacksize.h: New file.
2570         * config/darwin/thread-stacksize.h: New file.
2571         * config/nvptx/thread-stacksize.h: New file.
2572         * env.c: Include thread-stacksize.h.
2573         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
2574         instead of 0.  Call pthread_attr_setstacksize even if
2575         GOMP_DEFAULT_STACKSIZE is non-zero.
2577 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
2579         * env.c (initialize_env): Initialize stacksize to 0.
2581 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
2583         PR c++/80029
2584         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
2586 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
2588         PR c/79940
2589         * testsuite/libgomp.c/pr79940.c: New test.
2591 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2593         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
2594         targets.
2595         Add __float128 options.
2597 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
2599         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
2600         hppa*-*-* dg-skip-if directive.
2602 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
2604         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
2605         dg-skip-if directive into a comment.
2607 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
2608             Chung-Lin Tang  <cltang@codesourcery.com>
2610         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
2611         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
2612         add additional case.
2613         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
2614         "openacc_nvidia_accel_selected".
2615         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
2616         Add num_workers(8) clause.
2618 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
2620         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
2621         hppa*-*-*.
2622         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
2623         include complex.h on hppa*-*-hpux*.
2624         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
2626 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
2628         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
2630         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
2631         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
2632         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
2633         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
2634         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
2635         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
2636         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
2637         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
2638         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
2639         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
2641 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
2643         * libgomp-plugin.h: #include <stdbool.h>.
2644         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
2645         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
2646         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
2647         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
2648         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
2649         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
2650         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
2651         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
2652         (GOMP_OFFLOAD_openacc_register_async_cleanup)
2653         (GOMP_OFFLOAD_openacc_async_test)
2654         (GOMP_OFFLOAD_openacc_async_test_all)
2655         (GOMP_OFFLOAD_openacc_async_wait)
2656         (GOMP_OFFLOAD_openacc_async_wait_async)
2657         (GOMP_OFFLOAD_openacc_async_wait_all)
2658         (GOMP_OFFLOAD_openacc_async_wait_all_async)
2659         (GOMP_OFFLOAD_openacc_async_set_async)
2660         (GOMP_OFFLOAD_openacc_create_thread_data)
2661         (GOMP_OFFLOAD_openacc_destroy_thread_data)
2662         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
2663         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
2664         (GOMP_OFFLOAD_openacc_get_cuda_stream)
2665         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
2666         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
2667         these.
2668         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
2669         (GOMP_OFFLOAD_unload_image): Fix argument types.
2671 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
2673         * testsuite/lib/libgomp.exp
2674         (check_effective_target_hsa_offloading_selected_nocache): Fix up
2675         check_compile invocation.  Fix up removal of executable.  Drop
2676         bogus "2>&1" argument.
2678         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
2679         directive.
2681 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
2682             Martin Jambor  <mjambor@suse.cz>
2684         * plugin/hsa.h: Moved to top level include.
2685         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
2687 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
2689         PR other/79046
2690         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
2691         of cat to get version from BASE-VER file.
2692         * testsuite/Makefile.in: Regenerated.
2694 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
2696         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
2697         for _WIN64.
2699 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
2701         * plugin/hsa.h: Add GCC runtime library exception.
2702         * plugin/hsa_ext_finalize.h: Likewise.
2704         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
2705         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
2706         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
2707         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
2708         plugin/include/cuda as include dir and -ldl instead of -lcuda as
2709         library to link ptx plugin against.
2710         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
2711         (CUDA_CALLS): Define.
2712         (cuda_lib, cuda_lib_inited): New variables.
2713         (init_cuda_lib): New function.
2714         (CUDA_CALL_PREFIX): Define.
2715         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
2716         (CUDA_CALL): Use FN instead of (FN).
2717         (CUDA_CALL_NOCHECK): Define.
2718         (cuda_error, fini_streams_for_device, select_stream_for_async,
2719         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
2720         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
2721         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
2722         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
2723         CUDA_CALL_NOCHECK.
2724         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
2725         CUDA_CALL_NOCHECK.
2726         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
2727         Use CUDA_CALL_NOCHECK.
2728         * plugin/cuda/cuda.h: New file.
2729         * config.h.in: Regenerated.
2730         * configure: Regenerated.
2732         PR other/79046
2733         * configure.ac: Add GCC_BASE_VER.
2734         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
2735         get version from BASE-VER file.
2736         * testsuite/Makefile.in: Regenerated.
2737         * configure: Regenerated.
2738         * Makefile.in: Regenerated.
2740 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2742         PR libgomp/60670
2743         * Makefile.am: Make fincludedir multilib-aware.
2744         * Makefile.in: Regenerate.
2746 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
2748         Update copyright years.
2750         * libgomp.texi: Bump @copying's copyright year.
2752 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2754         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
2755         pthread_spinlock_t instead of gomp_mutex_t lock.
2756         (gomp_get_thread_pool): Likewise.
2757         (gomp_release_thread_pool): Likewise.
2758         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
2759         Likewise.
2761 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2763         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
2764         thread pool in case nthreads == 1.
2766 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
2768         * config/nvptx/env.c: Delete.
2769         * icv.c: Move definitions of ICV variables back ...
2770         * env.c: ...here.  Do not compile environment-related functionality if
2771         LIBGOMP_OFFLOADED_ONLY is set.
2773 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
2775         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
2776         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
2777         * configure: Regenerate.
2778         * config.h.in: Likewise.
2780 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
2782         * Makefile.in: Regenerate with automake-1.11.6.
2783         * aclocal.m4: Likewise.
2784         * configure: Likewise.
2785         * testsuite/Makefile.in: Likewise.
2787 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
2789         * config/nvptx/critical.c: Delete to use generic implementation.
2791 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
2793         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
2794         ../../affinity.c as fallback.
2795         * config/nvptx/affinity.c: Delete to use fallback implementation.
2797 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
2798             Jakub Jelinek  <jakub@redhat.com>
2799             Dmitry Melnik  <dm@ispras.ru>
2801         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
2802         * Makefile.in. Regenerate.
2803         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
2804         (LIBGOMP_USE_PTHREADS): ...here; new define.
2805         * configure: Regenerate.
2806         * config.h.in: Likewise.
2807         * config/posix/affinity.c: Move to...
2808         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
2809         interface by LIBGOMP_USE_PTHREADS. 
2810         * critical.c: Split out GOMP_atomic_{start,end} into...
2811         * atomic.c: ...here (new file).
2812         * env.c: Split out ICV definitions into...
2813         * icv.c: ...here (new file) and...
2814         * icv-device.c: ...here. New file.
2815         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
2816         (gomp_destroy_lock_30): Ditto.
2817         (gomp_set_lock_30): Ditto.
2818         (gomp_unset_lock_30): Ditto.
2819         (gomp_test_lock_30): Ditto.
2820         (gomp_init_nest_lock_30): Ditto.
2821         (gomp_destroy_nest_lock_30): Ditto.
2822         (gomp_set_nest_lock_30): Ditto.
2823         (gomp_unset_nest_lock_30): Ditto.
2824         (gomp_test_nest_lock_30): Ditto.
2825         * lock.c: New.
2826         * config/nvptx/lock.c: New.
2827         * config/nvptx/bar.c: New.
2828         * config/nvptx/bar.h: New.
2829         * config/nvptx/doacross.h: New.
2830         * config/nvptx/error.c: New.
2831         * config/nvptx/icv-device.c: New.
2832         * config/nvptx/mutex.h: New.
2833         * config/nvptx/pool.h: New.
2834         * config/nvptx/proc.c: New.
2835         * config/nvptx/ptrlock.h: New.
2836         * config/nvptx/sem.h: New.
2837         * config/nvptx/simple-bar.h: New.
2838         * config/nvptx/target.c: New.
2839         * config/nvptx/task.c: New.
2840         * config/nvptx/team.c: New.
2841         * config/nvptx/time.c: New.
2842         * config/posix/simple-bar.h: New.
2843         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
2844         (gomp_num_teams_var): Declare.
2845         (struct gomp_thread_pool): Change threads_dock member to
2846         gomp_simple_barrier_t.
2847         [__nvptx__] (gomp_thread): New implementation.
2848         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
2849         (gomp_thread_destructor): Ditto.
2850         (gomp_init_thread_affinity): Ditto.
2851         * team.c: Guard uses of Pthreads-specific interfaces by
2852         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
2853         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
2854         * config/nvptx/alloc.c: Delete.
2855         * config/nvptx/barrier.c: Ditto.
2856         * config/nvptx/fortran.c: Ditto.
2857         * config/nvptx/iter.c: Ditto.
2858         * config/nvptx/iter_ull.c: Ditto.
2859         * config/nvptx/loop.c: Ditto.
2860         * config/nvptx/loop_ull.c: Ditto.
2861         * config/nvptx/ordered.c: Ditto.
2862         * config/nvptx/parallel.c: Ditto.
2863         * config/nvptx/priority_queue.c: Ditto.
2864         * config/nvptx/sections.c: Ditto.
2865         * config/nvptx/single.c: Ditto.
2866         * config/nvptx/splay-tree.c: Ditto.
2867         * config/nvptx/work.c: Ditto.
2868         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
2869         -foffload=-lgfortran in addition to -lgfortran.
2870         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
2871         * plugin/plugin-nvptx.c: Include <limits.h>.
2872         (struct targ_fn_descriptor): Add new fields.
2873         (struct ptx_device): Ditto.  Set them...
2874         (nvptx_open_device): ...here.
2875         (nvptx_adjust_launch_bounds): New.
2876         (nvptx_host2dev): Allow NULL 'nvthd'.
2877         (nvptx_dev2host): Ditto.
2878         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
2879         (link_ptx): Adjust log sizes.
2880         (nvptx_host2dev): Allow NULL 'nvthd'.
2881         (nvptx_dev2host): Ditto.
2882         (nvptx_set_clocktick): New.  Use it...
2883         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
2884         fields.
2885         (GOMP_OFFLOAD_dev2dev): New.
2886         (nvptx_adjust_launch_bounds): New.
2887         (nvptx_stacks_size): New.
2888         (nvptx_stacks_alloc): New.
2889         (nvptx_stacks_free): New.
2890         (GOMP_OFFLOAD_run): New.
2891         (GOMP_OFFLOAD_async_run): New (stub).
2893 2016-11-23  Martin Jambor  <mjambor@suse.cz>
2895         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
2896         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
2897         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
2899 2016-11-23  Martin Liska  <mliska@suse.cz>
2900             Martin Jambor  <mjambor@suse.cz>
2902         * plugin/hsa.h: New file.
2903         * plugin/hsa_ext_finalize.h: New file.
2904         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
2905         header file unistd.h, and functions secure_getenv, __secure_getenv,
2906         getuid, geteuid, getgid and getegid.
2907         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
2908         -D_GNU_SOURCE.
2909         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
2910         Handle various cases of secure_getenv presence, add an implementation
2911         when we can test effective UID and GID.
2912         (struct hsa_runtime_fn_info): New structure.
2913         (hsa_runtime_fn_info hsa_fns): New variable.
2914         (hsa_runtime_lib): Likewise.
2915         (support_cpu_devices): Likewise.
2916         (init_enviroment_variables): Load newly introduced ENV
2917         variables.
2918         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
2919         (hsa_fatal): Likewise.
2920         (DLSYM_FN): New macro.
2921         (init_hsa_runtime_functions): New function.
2922         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
2923         structure.  Depending on environment, also allow CPU devices.
2924         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
2925         (get_kernarg_memory_region): Likewise.
2926         (GOMP_OFFLOAD_init_device): Likewise.
2927         (destroy_hsa_program): Likewise.
2928         (init_basic_kernel_info): New function.
2929         (GOMP_OFFLOAD_load_image): Use it.
2930         (create_and_finalize_hsa_program): Call hsa run-time functions via
2931         hsa_fns structure.
2932         (create_single_kernel_dispatch): Likewise.
2933         (release_kernel_dispatch): Likewise.
2934         (init_single_kernel): Likewise.
2935         (parse_target_attributes): Allow up multiple HSA grid dimensions.
2936         (get_group_size): New function.
2937         (run_kernel): Likewise.
2938         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
2939         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
2940         structure.
2941         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
2942         * testsuite/libgomp-test-support.exp.in: Likewise.
2943         * Makefile.in: Regenerated.
2944         * aclocal.m4: Likewise.
2945         * config.h.in: Likewise.
2946         * configure: Likewise.
2947         * testsuite/Makefile.in: Likewise.
2949 2016-11-15  Martin Jambor  <mjambor@suse.cz>
2950             Alexander Monakov  <amonakov@ispras.ru>
2952         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
2953         mapping clauses to target constructs.
2954         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
2956 2016-11-15  Matthias Klose  <doko@ubuntu.com>
2958         * configure: Regenerate.
2960 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
2962         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
2963         * omp_lib.h.in (openmp_version): Likewise.
2964         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
2965         of 201307.
2966         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
2968         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
2969         (fib_wrapper): Add map(from: x) clause.
2970         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
2971         (e_53_2): Likewise.
2972         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
2973         (accum): Add map(tmp) clause.
2974         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
2975         (accum): Add map(tofrom: tmp) clause.
2976         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
2977         (gramSchmidt): Likewise.
2978         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
2979         map(tofrom: sum) clause.
2980         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
2981         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
2982         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
2983         only allowed on the loop iterator.
2984         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
2985         * testsuite/libgomp.fortran/taskloop2.f90: New test.
2986         * testsuite/libgomp.fortran/taskloop4.f90: New test.
2987         * testsuite/libgomp.fortran/doacross1.f90: New test.
2988         * testsuite/libgomp.fortran/doacross3.f90: New test.
2989         * testsuite/libgomp.fortran/taskloop1.f90: New test.
2990         * testsuite/libgomp.fortran/taskloop3.f90: New test.
2991         * testsuite/libgomp.fortran/doacross2.f90: New test.
2992         * testsuite/libgomp.c/doacross-1.c (main): Add missing
2993         #pragma omp atomic read.
2994         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
2995         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
2997 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
2998             Nathan Sidwell  <nathan@acm.org>
3000         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
3001         to determine default geometry.
3002         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
3003         dimension.
3005 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
3007         * hashtab.h: Use standard GPLv3 with runtime exception
3008         boilerplate.
3010 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
3012         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
3013         size when allocating new thread.
3015 2016-09-14  Marek Polacek  <polacek@redhat.com>
3017         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
3019 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
3021         PR fortran/71014
3022         * testsuite/libgomp.fortran/pr71014.f90: New test.
3024 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
3026         PR middle-end/70895
3027         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
3028         firstprivate clauses.
3029         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
3030         copy clauses.
3031         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3032         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
3033         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
3034         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
3035         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
3036         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
3037         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3038         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
3039         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3040         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3041         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3042         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
3044 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
3046         PR fortran/70598
3047         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
3049 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
3051         PR c++/58706
3052         * testsuite/libgomp.c++/pr58706.C: New test.
3054 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
3056         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
3057         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
3058         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3059         Likewise.
3060         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
3061         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
3062         Likewise.
3063         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
3065         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
3066         test, and don't hardcode -O0.
3068 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
3070         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
3072 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
3074         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
3075         test.
3077 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
3079         PR middle-end/71734
3080         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
3081         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
3083 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
3085         PR fortran/71717
3086         * testsuite/libgomp.fortran/associate3.f90: New test.
3088 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
3090         * testsuite/libgomp.c++/target-21.C: New test.
3092 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
3094         * testsuite/libgomp.c++/target-20.C: New test.
3096 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
3097             Cesar Philippidis  <cesar@codesourcery.com>
3099         PR middle-end/71373
3100         * libgomp.oacc-c/nested-function-1.c: New file.
3101         * libgomp.oacc-c/nested-function-2.c: Likewise.
3102         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
3103         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
3104         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
3106 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
3108         PR c/71381
3109         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
3110         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
3111         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
3113 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
3115         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
3116         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
3118 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
3120         PR c/70688
3121         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
3123 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
3125         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
3126         instead of invalid schedule(static, 0).
3127         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
3129 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
3131         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
3132         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
3133         parameter, use to set async stream around call to gomp_unmap_vars,
3134         call gomp_unmap_vars() with 'do_copyfrom' set to true.
3135         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
3136         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
3137         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
3138         (event_add): Add int parameter, initialize 'val' field when
3139         adding new ptx_event struct.
3140         (nvptx_evec): Adjust event_add() call arguments.
3141         (nvptx_host2dev): Likewise.
3142         (nvptx_dev2host): Likewise.
3143         (nvptx_wait_async): Likewise.
3144         (nvptx_wait_all_async): Likewise.
3145         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
3146         pass to event_add() call.
3147         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
3148         parameter.
3149         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
3150         call openacc.register_async_cleanup_func() hook.
3151         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
3152         * target.c (gomp_copy_from_async): Delete function.
3153         (gomp_map_vars): Remove async_refcount.
3154         (gomp_unmap_vars): Likewise.
3155         (gomp_load_image_to_device): Likewise.
3156         (omp_target_associate_ptr): Likewise.
3157         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
3158         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
3159         (gomp_copy_from_async): Remove.
3161 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
3163         * target.c (gomp_device_copy): New function.
3164         (gomp_copy_host2dev): Likewise.
3165         (gomp_copy_dev2host): Likewise.
3166         (gomp_free_device_memory): Likewise.
3167         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
3168         (gomp_map_pointer): Likewise.
3169         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
3170         NULL value from alloc_func plugin hook.
3171         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
3172         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
3173         (gomp_unmap_vars): Likewise.
3174         (gomp_update): Adjust to call gomp_copy_dev2host and
3175         gomp_copy_host2dev functions.
3176         (gomp_unload_image_from_device): Handle false value from
3177         unload_image_func plugin hook.
3178         (gomp_init_device): Handle false value from init_device_func
3179         plugin hook.
3180         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
3181         (omp_target_free): Adjust to call gomp_free_device_memory.
3182         (omp_target_memcpy): Handle return values from host2dev_func,
3183         dev2host_func, and dev2dev_func plugin hooks.
3184         (omp_target_memcpy_rect_worker): Likewise.
3185         (gomp_target_fini): Handle false value from fini_device_func
3186         plugin hook.
3187         * libgomp.h (struct gomp_device_descr): Adjust return type of
3188         init_device_func, fini_device_func, unload_image_func, free_func,
3189         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
3190         * oacc-init.c (acc_shutdown_1): Handle false value from
3191         fini_device_func plugin hook.
3192         * oacc-host.c (host_init_device): Change return type to bool.
3193         (host_fini_device): Likewise.
3194         (host_unload_image): Likewise.
3195         (host_free): Likewise.
3196         (host_dev2host): Likewise.
3197         (host_host2dev): Likewise.
3198         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
3199         (acc_memcpy_to_device): Likewise.
3200         (acc_memcpy_from_device): Likewise.
3201         (delete_copyout): Add libfnname parameter, handle free_func
3202         hook fatal error case.
3203         (acc_delete): Adjust delete_copyout call.
3204         (acc_copyout): Likewise.
3205         (update_dev_host): Move gomp_mutex_unlock to after
3206         host2dev/dev2host hook calls.
3208         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
3209         to 'hsa_error_msg', for clarity.
3210         (hsa_fatal): Likewise.
3211         (hsa_error): New function.
3212         (init_hsa_context): Change return type to bool, adjust to return
3213         false on error.
3214         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
3215         return value.
3216         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
3217         return false on error.
3218         (get_agent_info): Adjust to return NULL on error.
3219         (destroy_hsa_program): Change return type to bool, adjust to
3220         return false on error.
3221         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
3222         (destroy_module): Change return type to bool, adjust to
3223         return false on error.
3224         (GOMP_OFFLOAD_unload_image): Likewise.
3225         (GOMP_OFFLOAD_fini_device): Likewise.
3226         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
3227         (GOMP_OFFLOAD_free): Change to return false when called.
3228         (GOMP_OFFLOAD_dev2host): Likewise.
3229         (GOMP_OFFLOAD_host2dev): Likewise.
3230         (GOMP_OFFLOAD_dev2dev): Likewise.
3232         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
3233         (CUDA_CALL): Likewise.
3234         (CUDA_CALL_ASSERT): Likewise.
3235         (map_init): Change return type to bool, use CUDA_CALL* macros.
3236         (map_fini): Likewise.
3237         (init_streams_for_device): Change return type to bool, adjust
3238         call to map_init.
3239         (fini_streams_for_device): Change return type to bool, adjust
3240         call to map_fini.
3241         (select_stream_for_async): Release stream_lock before calls to
3242         GOMP_PLUGIN_fatal, adjust call to map_init.
3243         (nvptx_init): Use CUDA_CALL* macros.
3244         (nvptx_attach_host_thread_to_device): Change return type to bool,
3245         use CUDA_CALL* macros.
3246         (nvptx_open_device): Use CUDA_CALL* macros.
3247         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
3248         macros.
3249         (nvptx_get_num_devices): Use CUDA_CALL* macros.
3250         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
3251         (nvptx_exec): Use CUDA_CALL* macros.
3252         (nvptx_alloc): Use CUDA_CALL* macros.
3253         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
3254         (nvptx_host2dev): Likewise.
3255         (nvptx_dev2host): Likewise.
3256         (nvptx_wait): Use CUDA_CALL* macros.
3257         (nvptx_wait_async): Likewise.
3258         (nvptx_wait_all): Likewise.
3259         (nvptx_wait_all_async): Likewise.
3260         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
3261         use CUDA_CALL* macros, adjust call to map_fini.
3262         (GOMP_OFFLOAD_init_device): Change return type to bool,
3263         adjust code accordingly.
3264         (GOMP_OFFLOAD_fini_device): Likewise.
3265         (GOMP_OFFLOAD_load_image): Adjust calls to
3266         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
3267         use CUDA_CALL* macros.
3268         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
3269         return code.
3270         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
3271         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
3272         handle error return.
3273         (GOMP_OFFLOAD_dev2host): Likewise.
3274         (GOMP_OFFLOAD_host2dev): Likewise.
3275         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
3276         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
3278 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
3280         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
3281         (acc_free): Likewise.
3282         (acc_memcpy_to_device): Likewise.
3283         (acc_memcpy_from_device): Likewise.
3284         (acc_deviceptr): Likewise.
3285         (acc_hostptr): Likewise.
3286         (acc_is_present): Likewise.
3287         (acc_map_data): Likewise.
3288         (acc_unmap_data): Likewise.
3289         (present_create_copy): Likewise.
3290         (delete_copyout): Likewise.
3291         (update_dev_host): Likewise.
3292         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
3293         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
3294         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
3295         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
3296         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
3297         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
3298         it only runs on nvptx targets.
3299         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3300         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
3301         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3302         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
3303         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3304         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
3305         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
3306         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
3307         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
3308         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
3309         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3310         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
3311         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
3312         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
3313         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
3314         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
3315         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
3316         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
3317         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
3318         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
3319         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
3320         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
3321         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
3323 2016-05-23  Martin Jambor  <mjambor@suse.cz>
3325         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
3327 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
3329         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
3330         to gomp_init_targets_once.
3331         (acc_set_device_type): Remove !cached_base_dev condition on call to
3332         gomp_init_targets_once, move call to before acc_device_lock acquire,
3333         to avoid deadlock.
3334         (acc_get_device_num): Remove !cached_base_dev condition on call to
3335         gomp_init_targets_once.
3336         (acc_set_device_num): Likewise.
3338 2016-05-16  Martin Jambor  <mjambor@suse.cz>
3340         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
3342 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
3344         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
3345         expected partitioning.
3347 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
3349         PR middle-end/70626
3350         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
3351         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
3352         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
3354 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
3356         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
3357         non-fatal.
3359 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
3361         PR middle-end/70680
3362         * testsuite/libgomp.c/pr70680-1.c: New test.
3363         * testsuite/libgomp.c/pr70680-2.c: New test.
3365 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
3367         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
3368         pass parameter variables to subroutines.
3370 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
3372         PR middle-end/70643
3373         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
3375 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
3377         PR testsuite/68242
3378         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
3379         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3381 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
3383         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
3384         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
3385         GOACC_declare prototype.
3387         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
3388         Merge this file, and...
3389         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
3390         ... this file, and...
3391         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
3392         ... this file, and...
3393         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
3394         ... this file, and...
3395         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
3396         ... this file, and...
3397         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
3398         ... this file, and...
3399         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
3400         ... this file, and...
3401         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
3402         ... this file, and...
3403         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
3404         ... this file, and...
3405         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
3406         ... this file, and...
3407         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
3408         ... this file, and...
3409         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
3410         ... this file, and...
3411         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
3412         ... this file into...
3413         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
3414         file.
3416         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
3417         Make failure observable.
3419 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
3421         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
3422         field.
3423         * target.c (gomp_target_fallback_firstprivate,
3424         gomp_target_unshare_firstprivate): Removed.
3425         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
3426         before waiting for dependencies.
3427         (gomp_target_task_fn): Don't copy firstprivate vars here.
3428         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
3429         firstprivate_copies here.
3430         (gomp_create_target_task): Don't initialize firstprivate_copies field.
3431         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
3432         explicit/implicit firstprivate.
3434 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
3436         PR lto/70289
3437         PR ipa/70348
3438         PR tree-optimization/70373
3439         PR middle-end/70533
3440         PR middle-end/70534
3441         PR middle-end/70535
3442         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
3443         test.
3444         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
3445         test.
3446         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
3447         test.
3448         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
3449         test.
3450         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
3451         test.
3452         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
3453         test.
3454         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
3455         test.
3456         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
3457         test.
3458         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
3459         test.
3460         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
3461         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
3462         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
3463         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
3464         test.
3465         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
3466         test.
3467         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
3468         test.
3469         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
3470         test.
3471         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
3472         coverage.
3473         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
3474         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
3475         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
3476         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
3477         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
3478         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
3479         coverage.
3480         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
3481         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
3482         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
3483         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
3484         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
3485         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
3486         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
3487         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
3488         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
3489         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3490         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3491         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3492         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3493         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3494         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
3496 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
3497             James Norris  <jnorris@codesourcery.com>
3498             Nathan Sidwell  <nathan@codesourcery.com>
3499             Julian Brown  <julian@codesourcery.com>
3500             Cesar Philippidis  <cesar@codesourcery.com>
3501             Chung-Lin Tang  <cltang@codesourcery.com>
3502             Tom de Vries  <tom@codesourcery.com>
3504         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
3505         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
3506         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
3507         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
3508         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3509         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3510         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3511         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3512         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
3513         XFAIL.
3514         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
3515         Incorporate...
3516         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
3517         file.
3518         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
3519         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
3520         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
3521         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
3522         Likewise.
3523         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
3524         Likewise.
3525         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
3526         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
3527         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
3528         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
3529         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
3530         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3531         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
3532         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
3533         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3534         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
3535         Likewise.
3536         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
3537         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3538         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
3539         file...
3540         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
3541         file into...
3542         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
3543         file.  Update.
3544         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
3545         file.
3546         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
3547         Likewise.
3548         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
3549         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
3550         ... this new file.  Update.
3551         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
3552         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
3553         ... this new file.  Update.
3554         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
3555         file.  Incorporate...
3556         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
3557         file, and...
3558         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
3559         file, and...
3560         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
3561         file.
3562         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
3564 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
3566         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
3567         set-torture-options.
3569 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
3571         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
3572         gcc-dg-runtest.
3573         * testsuite/libgomp.oacc-c/c.exp: Likewise.
3574         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
3575         -fno-builtin-acc_on_device instead of -O0.
3576         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
3577         -O0.
3578         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
3579         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
3580         Likewise.
3581         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
3582         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
3583         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
3584         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
3585         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3586         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3587         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
3588         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
3589         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
3590         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3591         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
3592         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3593         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
3594         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3595         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3596         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3597         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3598         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
3599         Don't specify -O2.
3600         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
3601         Likewise.
3602         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
3603         Likewise.
3605 2016-03-24  Martin Liska  <mliska@suse.cz>
3607         * plugin/plugin-hsa.c (packet_store_release): New function
3608         that is taken from the HSA runtime manual.
3609         (GOMP_OFFLOAD_run): Use the function.
3611 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
3613         PR c++/70376
3614         * testsuite/libgomp.c++/pr70376.C: New test.
3616 2016-03-23  Tom de Vries  <tom@codesourcery.com>
3618         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
3619         initialization of lresult and lvresult.
3620         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
3622 2016-03-23  James Norris  <jnorris@codesourcery.com>
3623             Daichi Fukuoka <dc-fukuoka@sgi.com>
3625         PR libgomp/69414
3626         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
3627         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
3628         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
3629         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
3631 2016-03-23  Martin Liska  <mliska@suse.cz>
3633         PR hsa/70337
3634         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
3635         argument just in case a dispatched kernel uses that argument.
3637 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
3639         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
3640         -ftree-parallelize-loops/-fopenacc changes.
3641         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
3642         Likewise.
3643         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
3644         Likewise.
3645         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
3646         Likewise.
3647         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
3648         Likewise.
3649         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
3650         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
3652 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
3654         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
3655         always_ld_library_path the path to libgcc_s.
3657 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
3659         PR testsuite/70009
3660         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
3662 2016-03-09  Tom de Vries  <tom@codesourcery.com>
3664         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
3665         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
3666         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
3667         Same.
3668         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
3669         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
3670         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
3671         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
3673 2016-03-07  Martin Jambor  <mjambor@suse.cz>
3675         * testsuite/lib/libgomp.exp
3676         (check_effective_target_hsa_offloading_selected_nocache): New.
3677         (check_effective_target_hsa_offloading_selected): Likewise.
3678         * testsuite/libgomp.hsa.c/c.exp: Likewise.
3679         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
3680         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
3681         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
3682         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
3683         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
3684         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
3685         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
3686         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
3687         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
3688         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
3689         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
3690         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
3691         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
3692         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
3693         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
3694         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
3696 2016-03-07  Martin Jambor  <mjambor@suse.cz>
3698         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
3699         non-shared memory accelerators.
3700         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
3701         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
3702         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
3703         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
3704         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
3705         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
3706         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
3707         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
3708         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
3710 2016-03-07  Martin Jambor  <mjambor@suse.cz>
3712         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
3713         ALWAYS_CFLAGS.
3715 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
3717         PR libgomp/69555
3718         * testsuite/libgomp.c++/pr69555-1.C: New test.
3719         * testsuite/libgomp.c++/pr69555-2.C: New test.
3721 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
3722             Martin Jambor  <mjambor@suse.cz>
3724         * testsuite/lib/libgomp.exp
3725         (check_effective_target_offload_device_shared_as): New proc.
3726         * testsuite/libgomp.c++/declare_target-1.C: New test.
3728 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
3730         PR driver/68463
3731         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
3733 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
3735         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
3736         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
3737         dims.
3738         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
3739         -ftree-parallelize-loops/-fopenacc changes.
3740         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
3741         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
3742         Likewise.
3743         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
3744         Likewise.
3745         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
3746         Likewise.
3747         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
3748         Likewise.
3749         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
3750         Likewise.
3751         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
3752         Likewise.
3753         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
3754         Likewise.
3755         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
3756         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
3757         Likewise.
3758         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
3759         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
3760         Likewise.
3761         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
3762         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
3763         Likewise.
3765 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
3767         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
3769 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
3771         PR driver/69805
3772         * testsuite/libgomp.c/pr69805.c: New test.
3774 2016-02-16  Tom de Vries  <tom@codesourcery.com>
3776         PR lto/67709
3777         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
3779 2016-02-09  Tom de Vries  <tom@codesourcery.com>
3781         PR tree-optimization/69599
3782         * testsuite/libgomp.c/omp-nested-3.c: New test.
3783         * testsuite/libgomp.c/pr46032-2.c: New test.
3784         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
3785         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
3787 2016-02-09  Tom de Vries  <tom@codesourcery.com>
3789         PR lto/69707
3790         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
3792 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
3794         * testsuite/libgomp.c/target-31.c: Fix testcase.
3796 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
3798         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
3799         clause.
3800         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
3801         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
3802         reduction and map clauses.
3803         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
3805 2016-02-02  James Norris  <jnorris@codesourcery.com>
3807         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
3809 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
3811         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
3812         * oacc-parallel.c (GOACC_host_data): Remove function definition.
3814         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
3815         cases.
3817         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
3818         variables.
3819         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
3820         (hsa_kmt_lib): Set variables.
3821         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
3822         always_ld_library_path.
3823         * Makefile.in: Regenerate.
3824         * configure: Likewise.
3825         * testsuite/Makefile.in: Likewise.
3827         * plugin/configfrag.ac (offload_additional_options)
3828         (offload_additional_lib_paths): Don't amend for hsa offloading.
3829         * configure: Regenerate.
3831         * plugin/configfrag.ac: Don't configure for offloading target if
3832         we don't build the corresponding plugin.
3833         * configure: Regenerate.
3835 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
3837         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
3838         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
3840 2016-01-26  Tom de Vries  <tom@codesourcery.com>
3842         PR tree-optimization/69110
3843         * testsuite/libgomp.c/pr69110.c: New test.
3845 2016-01-25  Richard Biener  <rguenther@suse.de>
3847         PR lto/69393
3848         * testsuite/libgomp.c++/pr69393.C: New testcase.
3850 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
3852         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
3853         function wasn't mapped to the device with non-shared memory.
3855 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
3857         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
3859 2016-01-19  Martin Jambor  <mjambor@suse.cz>
3860             Martin Liska  <mliska@suse.cz>
3862         * plugin/Makefrag.am: Add HSA plugin requirements.
3863         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
3864         (HSA_RUNTIME_LIB): Likewise.
3865         (HSA_RUNTIME_CPPFLAGS): Likewise.
3866         (HSA_RUNTIME_INCLUDE): New substitution.
3867         (HSA_RUNTIME_LIB): Likewise.
3868         (HSA_RUNTIME_LDFLAGS): Likewise.
3869         (hsa-runtime): New configure option.
3870         (hsa-runtime-include): Likewise.
3871         (hsa-runtime-lib): Likewise.
3872         (PLUGIN_HSA): New substitution variable.
3873         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
3874         configure options.
3875         (PLUGIN_HSA_CPPFLAGS): Likewise.
3876         (PLUGIN_HSA_LDFLAGS): Likewise.
3877         (PLUGIN_HSA_LIBS): Likewise.
3878         Check that we have access to HSA run-time.
3879         * libgomp-plugin.h (offload_target_type): New element
3880         OFFLOAD_TARGET_TYPE_HSA.
3881         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
3882         args.
3883         (bool gomp_create_target_task): Updated.
3884         (gomp_device_descr): Extra parameter of run_func and async_run_func,
3885         new field can_run_func.
3886         * libgomp_g.h (GOMP_target_ext): Update prototype.
3887         * oacc-host.c (host_run): Added a new parameter args.
3888         * target.c (calculate_firstprivate_requirements): New function.
3889         (copy_firstprivate_data): Likewise.
3890         (gomp_target_fallback_firstprivate): Use them.
3891         (gomp_target_unshare_firstprivate): New function.
3892         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
3893         devices.
3894         (GOMP_target): Do host fallback for all shared memory devices.  Do not
3895         pass any args to plugins.
3896         (GOMP_target_ext): Introduce device-specific argument parameter args.
3897         Allow host fallback if device shares memory.  Do not remap data if
3898         device has shared memory.
3899         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
3900         like host fallback for mappings.
3901         (GOMP_target_data): Treat shared memory devices like host fallback.
3902         (GOMP_target_data_ext): Likewise.
3903         (GOMP_target_update): Likewise.
3904         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
3905         gomp_create_target_task.
3906         (GOMP_target_enter_exit_data): Likewise.
3907         (omp_target_alloc): Treat shared memory devices like host fallback.
3908         (omp_target_free): Likewise.
3909         (omp_target_is_present): Likewise.
3910         (omp_target_memcpy): Likewise.
3911         (omp_target_memcpy_rect): Likewise.
3912         (omp_target_associate_ptr): Likewise.
3913         (gomp_load_plugin_for_device): Also load can_run.
3914         * task.c (GOMP_PLUGIN_target_task_completion): Free
3915         firstprivate_copies.
3916         (gomp_create_target_task): Accept new argument args and store it to
3917         ttask.
3918         * plugin/plugin-hsa.c: New file.
3920 2016-01-18  Tom de Vries  <tom@codesourcery.com>
3922         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
3923         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
3924         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
3925         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
3926         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
3927         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
3928         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
3929         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
3930         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
3931         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
3932         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
3933         Same.
3934         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
3935         Same.
3936         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
3937         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
3938         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
3939         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
3940         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
3941         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
3942         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
3943         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
3944         Same.
3945         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
3947 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
3949         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
3951 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
3953         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
3955 2016-01-12  James Norris  <jnorris@codesourcery.com>
3957         * libgomp.texi: Updates for OpenACC.
3959 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
3961         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
3963 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
3965         PR fortran/66680
3966         * testsuite/libgomp.fortran/pr66680.f90: New test.
3968 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
3970         PR middle-end/68960
3971         * testsuite/libgomp.c/pr68960.c: New test.
3973 2016-01-06  Nathan Sidwell  <nathan@acm.org>
3975         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
3976         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
3978 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
3980         Update copyright years.
3982         * libgomp.texi: Bump @copying's copyright year.
3984 2015-12-31  Nathan Sidwell  <nathan@acm.org>
3986         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
3987         dg-additional-options syntax.
3988         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
3989         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
3990         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
3991         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
3992         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
3993         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
3994         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
3995         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
3996         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
3997         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
3998         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
3999         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
4000         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
4001         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4002         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
4003         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
4004         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4005         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4007 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
4009         * libgomp.h (REFCOUNT_LINK): Define.
4010         (struct splay_tree_key_s): Add link_key.
4011         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
4012         Replace target address of the pointer with target address of newly
4013         mapped object in the splay tree.  Set link pointer on target to the
4014         device address of the mapped object.
4015         (gomp_unmap_vars): Restore target address of the pointer in the splay
4016         tree for REFCOUNT_LINK objects after unmapping.
4017         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
4018         declare target link" objects.
4019         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
4020         "omp declare target link" objects, which were mapped for the image.
4021         (gomp_exit_data): Restore target address of the pointer in the splay
4022         tree for REFCOUNT_LINK objects after unmapping.
4023         * testsuite/libgomp.c/target-link-1.c: New file.
4025 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
4027         * libgomp.h (gomp_device_state): New enum.
4028         (struct gomp_device_descr): Replace is_initialized with state.
4029         (gomp_fini_device): Remove declaration.
4030         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
4031         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
4032         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
4033         (acc_set_device_type): Use state instead of is_initialized.
4034         (acc_set_device_num): Likewise.
4035         * target.c (resolve_device): Use state instead of is_initialized.
4036         Do not initialize finalized device.
4037         (gomp_map_vars): Do nothing if device is finalized.
4038         (gomp_unmap_vars): Likewise.
4039         (gomp_update): Likewise.
4040         (GOMP_offload_register_ver): Use state instead of is_initialized.
4041         (GOMP_offload_unregister_ver): Likewise.
4042         (gomp_init_device): Likewise.
4043         (gomp_unload_device): Likewise.
4044         (gomp_fini_device): Remove.
4045         (gomp_get_target_fn_addr): Do nothing if device is finalized.
4046         (GOMP_target): Go to host fallback if device is finalized.
4047         (GOMP_target_ext): Likewise.
4048         (gomp_exit_data): Do nothing if device is finalized.
4049         (gomp_target_task_fn): Go to host fallback if device is finalized.
4050         (gomp_target_fini): New static function.
4051         (gomp_target_init): Use state instead of is_initialized.
4052         Call gomp_target_fini at exit.
4054 2015-12-09  Tom de Vries  <tom@codesourcery.com>
4056         PR tree-optimization/68716
4057         * testsuite/libgomp.c/omp-nested-2.c: New test.
4059 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
4061         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
4062         target openacc_nvidia_accel_selected.
4063         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
4064         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
4065         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
4066         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
4068 2015-12-01  Julian Brown  <julian@codesourcery.com>
4069             James Norris  <James_Norris@mentor.com>
4071         * oacc-parallel.c (GOACC_host_data): New function.
4072         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
4073         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
4074         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
4075         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
4076         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
4077         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
4078         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
4080 2015-11-30  James Norris  <jnorris@codesourcery.com>
4081             Cesar Philippidis  <cesar@codesourcery.com>
4083         libgomp/
4084         * libgomp.oacc-fortran/routine-5.f90: New test.
4085         * libgomp.oacc-fortran/routine-7.f90: New test.
4086         * libgomp.oacc-fortran/routine-9.f90: New test.
4088 2015-11-30  Tom de Vries  <tom@codesourcery.com>
4090         PR tree-optimization/46032
4091         * testsuite/libgomp.c/pr46032.c: New test.
4093 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
4095         PR libgomp/68579
4096         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
4097         (gomp_create_target_task): Call it before freeing
4098         GOMP_TARGET_TASK_DATA tasks.
4100         PR c/63326
4101         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
4102         in between case label and OpenMP standalone directives.
4103         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
4105 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
4107         * configure: Regenerate.
4109 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
4111         * testsuite/libgomp.c/target-35.c: New test.
4113 2015-11-22  James Norris  <jnorris@codesourcery.com>
4114             Cesar Philippidis  <cesar@codesourcery.com>
4116         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
4117         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4118         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4119         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4120         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4122 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
4124         PR middle-end/68221
4125         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
4126         * testsuite/libgomp.c/reduction-12.c: Likewise.
4127         * testsuite/libgomp.c++/reduction-11.C: Likewise.
4128         * testsuite/libgomp.c++/reduction-12.C: Likewise.
4130 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
4132         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
4133         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
4134         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
4135         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
4136         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
4137         and fix.
4138         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4139         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4141 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
4143         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
4144         worker & gang cases.
4145         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
4147 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
4149         * config/nvptx/priority_queue.c: New file.
4151 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
4153         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
4154         sections.
4156 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
4157             Aldy Hernandez  <aldyh@redhat.com>
4158             Ilya Verbin  <ilya.verbin@intel.com>
4160         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
4161         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
4162         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
4163         iterators or IV by chunk size.
4164         * parallel.c (gomp_resolve_num_threads): Don't assume that
4165         if thr->ts.team is non-NULL, then pool must be non-NULL.
4166         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
4167         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
4168         GOMP_PLUGIN_target_task_completion.
4169         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
4170         * Makefile.in: Regenerate.
4171         * libgomp.h: Shuffle prototypes and forward definitions around so
4172         priority queues can be defined.
4173         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
4174         (enum gomp_target_task_state): New enum.
4175         (struct gomp_target_task): Add state, tgt, task and team fields.
4176         (gomp_create_target_task): Change return type to bool, add
4177         state argument.
4178         (gomp_target_task_fn): Change return type to bool.
4179         (struct gomp_device_descr): Add async_run_func.
4180         (struct gomp_task): Remove children, next_child, prev_child,
4181         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
4182         Add pnode field.
4183         (struct gomp_taskgroup): Remove children.
4184         Add taskgroup_queue.
4185         (struct gomp_team): Change task_queue type to a priority queue.
4186         (splay_compare): Define inline.
4187         (priority_queue_offset): New.
4188         (priority_node_to_task): New.
4189         (task_to_priority_node): New.
4190         * oacc-mem.c: Do not include splay-tree.h.
4191         * priority_queue.c: New file.
4192         * priority_queue.h: New file.
4193         * splay-tree.c: Do not include splay-tree.h.
4194         (splay_tree_foreach_internal): New.
4195         (splay_tree_foreach): New.
4196         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
4197         (splay_tree_callback): Define typedef.
4198         * target.c (splay_compare): Move to libgomp.h.
4199         (GOMP_target): Don't adjust *thr in any way around running offloaded
4200         task.
4201         (GOMP_target_ext): Likewise.  Handle target nowait.
4202         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
4203         return value from gomp_create_target_task, if false, fallthrough
4204         as if no dependencies exist.
4205         (gomp_target_task_fn): Change return type to bool, return true
4206         if the task should have another part scheduled later.  Handle
4207         target nowait.
4208         (gomp_load_plugin_for_device): Initialize async_run.
4209         * task.c (gomp_init_task): Initialize children_queue.
4210         (gomp_clear_parent_in_list): New.
4211         (gomp_clear_parent_in_tree): New.
4212         (gomp_clear_parent): Handle priorities.
4213         (GOMP_task): Likewise.
4214         (priority_queue_move_task_first,
4215         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
4216         New functions.
4217         (gomp_create_target_task): Use priority queues.  Change return type
4218         to bool, add state argument, return false if for async
4219         {{enter,exit} data,update} constructs no dependencies need to be
4220         waited for, handle target nowait.  Set task->fn to NULL instead of
4221         gomp_target_task_fn.
4222         (verify_children_queue): Remove.
4223         (priority_list_upgrade_task): New.
4224         (priority_queue_upgrade_task): New.
4225         (verify_task_queue): Remove.
4226         (priority_list_downgrade_task): New.
4227         (priority_queue_downgrade_task): New.
4228         (gomp_task_run_pre): Use priority queues.
4229         Abstract code out to priority_queue_downgrade_task.
4230         (gomp_task_run_post_handle_dependers): Use priority queues.
4231         (gomp_task_run_post_remove_parent): Likewise.
4232         (gomp_task_run_post_remove_taskgroup): Likewise.
4233         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
4234         tasks specially.
4235         (GOMP_taskwait): Likewise.
4236         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
4237         priority-queue_upgrade_task.
4238         (GOMP_taskgroup_start): Use priority queues.
4239         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
4240         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
4241         barrier.
4242         * taskloop.c (GOMP_taskloop): Handle priorities.
4243         * team.c (gomp_new_team): Call priority_queue_init.
4244         (free_team): Call priority_queue_free.
4245         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
4246         team created for target nowait in implicit parallel region.
4247         (gomp_team_start): For nested check, test thr->ts.level instead of
4248         thr->ts.team != NULL.
4249         * testsuite/libgomp.c/doacross-3.c: New test.
4250         * testsuite/libgomp.c/ordered-5.c: New test.
4251         * testsuite/libgomp.c/priority.c: New test.
4252         * testsuite/libgomp.c/target-31.c: New test.
4253         * testsuite/libgomp.c/target-32.c: New test.
4254         * testsuite/libgomp.c/target-33.c: New test.
4255         * testsuite/libgomp.c/target-34.c: New test.
4257 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
4259         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
4261         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
4262         loop is sequential.
4264 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
4266         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
4267         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
4269 2015-11-12  James Norris  <jnorris@codesourcery.com>
4270             Joseph Myers  <joseph@codesourcery.com>
4272         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
4273         * oacc-parallel.c (GOACC_declare): New function.
4274         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
4275         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
4276         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
4277         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
4278         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
4280 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
4282         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
4284 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
4286         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
4287         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
4289 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
4291         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
4292         inadvertent commit.
4294 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
4296         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
4297         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
4298         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
4299         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
4300         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
4302 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
4304         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
4305         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
4307 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
4308             Ilya Verbin  <ilya.verbin@intel.com>
4310         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
4311         GOMP_loop_nonmonotonic_dynamic_start,
4312         GOMP_loop_nonmonotonic_guided_next,
4313         GOMP_loop_nonmonotonic_guided_start,
4314         GOMP_loop_ull_nonmonotonic_dynamic_next,
4315         GOMP_loop_ull_nonmonotonic_dynamic_start,
4316         GOMP_loop_ull_nonmonotonic_guided_next,
4317         GOMP_loop_ull_nonmonotonic_guided_start,
4318         GOMP_parallel_loop_nonmonotonic_dynamic,
4319         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
4320         (GOMP_target_41): Renamed to ...
4321         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
4322         arguments.
4323         (GOMP_target_data_41): Renamed to ...
4324         (GOMP_target_data_ext): ... this.
4325         (GOMP_target_update_41): Renamed to ...
4326         (GOMP_target_update_ext): ... this.
4327         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
4328         GOMP_target_data_ext and GOMP_target_update_ext instead of
4329         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
4330         Export GOMP_loop_nonmonotonic_dynamic_next,
4331         GOMP_loop_nonmonotonic_dynamic_start,
4332         GOMP_loop_nonmonotonic_guided_next,
4333         GOMP_loop_nonmonotonic_guided_start,
4334         GOMP_loop_ull_nonmonotonic_dynamic_next,
4335         GOMP_loop_ull_nonmonotonic_dynamic_start,
4336         GOMP_loop_ull_nonmonotonic_guided_next,
4337         GOMP_loop_ull_nonmonotonic_guided_start,
4338         GOMP_parallel_loop_nonmonotonic_dynamic and
4339         GOMP_parallel_loop_nonmonotonic_guided.
4340         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
4341         GOMP_parallel_loop_nonmonotonic_guided,
4342         GOMP_loop_nonmonotonic_dynamic_start,
4343         GOMP_loop_nonmonotonic_guided_start,
4344         GOMP_loop_nonmonotonic_dynamic_next,
4345         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
4346         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
4347         GOMP_loop_ull_nonmonotonic_guided_start,
4348         GOMP_loop_ull_nonmonotonic_dynamic_next,
4349         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
4350         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
4351         functions.
4352         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
4353         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
4354         Use gomp_map_val function.
4355         (gomp_target_fallback_firstprivate): New static function.
4356         (GOMP_target_41): Renamed to ...
4357         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
4358         arguments.  Move firstprivate fallback handling into a new
4359         function.
4360         (GOMP_target_data_41): Renamed to ...
4361         (GOMP_target_data_ext): ... this.
4362         (GOMP_target_update_41): Renamed to ...
4363         (GOMP_target_update_ext): ... this.
4364         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
4365         gomp_map_0len_lookup instead of gomp_map_lookup.
4366         (omp_target_is_present): Use gomp_map_0len_lookup instead of
4367         gomp_map_lookup.
4368         * testsuite/libgomp.c/target-28.c: Likewise.
4369         * testsuite/libgomp.c/monotonic-1.c: New test.
4370         * testsuite/libgomp.c/monotonic-2.c: New test.
4371         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
4372         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
4373         * testsuite/libgomp.c/pr66199-5.c: New test.
4374         * testsuite/libgomp.c/pr66199-6.c: New test.
4375         * testsuite/libgomp.c/pr66199-7.c: New test.
4376         * testsuite/libgomp.c/pr66199-8.c: New test.
4377         * testsuite/libgomp.c/pr66199-9.c: New test.
4378         * testsuite/libgomp.c/reduction-11.c: New test.
4379         * testsuite/libgomp.c/reduction-12.c: New test.
4380         * testsuite/libgomp.c/reduction-13.c: New test.
4381         * testsuite/libgomp.c/reduction-14.c: New test.
4382         * testsuite/libgomp.c/reduction-15.c: New test.
4383         * testsuite/libgomp.c/target-12.c (main): Adjust for
4384         omp_target_is_present change for one-past-last element.
4385         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
4386         the same var is both mapped and privatized.
4387         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
4388         handling of zero-length array sections.
4389         * testsuite/libgomp.c/target-28.c: New test.
4390         * testsuite/libgomp.c/target-29.c: New test.
4391         * testsuite/libgomp.c/target-30.c: New test.
4392         * testsuite/libgomp.c/target-teams-1.c: New test.
4393         * testsuite/libgomp.c++/member-6.C: New test.
4394         * testsuite/libgomp.c++/member-7.C: New test.
4395         * testsuite/libgomp.c++/monotonic-1.C: New test.
4396         * testsuite/libgomp.c++/monotonic-2.C: New test.
4397         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
4398         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
4399         * testsuite/libgomp.c++/pr66199-3.C: New test.
4400         * testsuite/libgomp.c++/pr66199-4.C: New test.
4401         * testsuite/libgomp.c++/pr66199-5.C: New test.
4402         * testsuite/libgomp.c++/pr66199-6.C: New test.
4403         * testsuite/libgomp.c++/pr66199-7.C: New test.
4404         * testsuite/libgomp.c++/pr66199-8.C: New test.
4405         * testsuite/libgomp.c++/pr66199-9.C: New test.
4406         * testsuite/libgomp.c++/reduction-11.C: New test.
4407         * testsuite/libgomp.c++/reduction-12.C: New test.
4408         * testsuite/libgomp.c++/target-13.C: New test.
4409         * testsuite/libgomp.c++/target-14.C: New test.
4410         * testsuite/libgomp.c++/target-15.C: New test.
4411         * testsuite/libgomp.c++/target-16.C: New test.
4412         * testsuite/libgomp.c++/target-17.C: New test.
4413         * testsuite/libgomp.c++/target-18.C: New test.
4414         * testsuite/libgomp.c++/target-19.C: New test.
4416 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
4418         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
4419         and reduction copy.
4420         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4421         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4422         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4423         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4424         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
4425         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
4426         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
4427         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4428         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
4429         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
4430         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
4431         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
4432         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
4433         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
4435 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
4437         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
4438         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
4439         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
4440         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
4441         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
4442         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
4443         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
4444         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
4446 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
4448         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
4449         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
4450         (GOMP_OFFLOAD_openacc_parallel): Likewise.
4451         * oacc-host.c (host_openacc_exec): Likewise.
4452         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
4454 2015-11-03  Julian Brown  <julian@codesourcery.com>
4455             Thomas Schwinge  <thomas@codesourcery.com>
4457         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
4458         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
4459         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
4460         Likewise.
4461         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
4462         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
4464 2015-11-03  James Norris  <jnorris@codesourcery.com>
4466         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
4467         file.
4468         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
4469         Likewise.
4470         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
4471         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
4472         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4473         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
4474         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4476 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
4478         * openacc.h (enum acc_device_t): Reformat. Ensure layout
4479         compatibility.
4480         (enum acc_async_t): Reformat.
4481         (acc_on_device): Declare compatible with builtin and provide C++
4482         wrapper.
4483         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
4485 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
4486             Cesar Philippidis  <cesar@codesourcery.com>
4488         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
4489         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
4490         ... this.  Add a description of the test at the top of the file.
4491         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
4492         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
4493         ... this.  Add a description of the test at the top of the file.
4495 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
4497         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
4498         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
4499         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
4500         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
4501         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
4502         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
4504 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
4506         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
4507         dimensions.
4509 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
4511         PR testsuite/68063
4512         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
4514 2015-10-27  James Norris  <jnorris@codesourcery.com>
4516         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
4517         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
4519 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
4521         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
4522         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
4524         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
4525         acc_device_nvidia usage.
4526         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
4527         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
4528         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
4530         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
4531         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
4533         PR libgomp/66518
4534         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
4536         PR libgomp/65437
4537         PR libgomp/66518
4538         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
4539         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
4541 2015-10-23  Tom de Vries  <tom@codesourcery.com>
4543         PR testsuite/68063
4544         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
4546 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
4548         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
4549         vector_length.
4550         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4552 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
4553             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
4555         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
4556         to 0 when mapnum is 0.
4558 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4560         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
4561         Cast to int from int32_t.
4563 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
4564             Aldy Hernandez  <aldyh@redhat.com>
4565             Ilya Verbin  <ilya.verbin@intel.com>
4567         * config/linux/affinity.c (omp_get_place_num_procs,
4568         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
4569         * config/linux/doacross.h: New file.
4570         * config/posix/affinity.c (omp_get_place_num_procs,
4571         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
4572         * config/posix/doacross.h: New file.
4573         * env.c: Include gomp-constants.h.
4574         (struct gomp_task_icv): Rename run_sched_modifier to
4575         run_sched_chunk_size.
4576         (gomp_max_task_priority_var): New variable.
4577         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
4578         (handle_omp_display_env): Change _OPENMP value from 201307 to
4579         201511.  Print OMP_MAX_TASK_PRIORITY.
4580         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
4581         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
4582         chunk_size and run_sched_modifier to run_sched_chunk_size.
4583         (omp_get_max_task_priority, omp_get_initial_device,
4584         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
4585         omp_get_partition_place_nums): New functions.
4586         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
4587         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
4588         to chunk_size.
4589         (omp_get_num_places_, omp_get_place_num_procs_,
4590         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
4591         omp_get_place_proc_ids_8_, omp_get_place_num_,
4592         omp_get_partition_num_places_, omp_get_partition_place_nums_,
4593         omp_get_partition_place_nums_8_, omp_get_initial_device_,
4594         omp_get_max_task_priority_): New functions.
4595         * libgomp_g.h (GOMP_loop_doacross_static_start,
4596         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
4597         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
4598         GOMP_loop_ull_doacross_dynamic_start,
4599         GOMP_loop_ull_doacross_guided_start,
4600         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
4601         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
4602         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
4603         GOMP_target_data_41, GOMP_target_update_41,
4604         GOMP_target_enter_exit_data): New prototypes.
4605         (GOMP_task): Add prototype argument.
4606         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
4607         (struct gomp_doacross_work_share): New type.
4608         (struct gomp_work_share): Add doacross field.
4609         (struct gomp_task_icv): Rename run_sched_modifier to
4610         run_sched_chunk_size.
4611         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
4612         GOMP_TASK_UNDEFERRED.  Add comments.
4613         (struct gomp_task_depend_entry): Add comments.
4614         (struct gomp_task): Likewise.
4615         (struct gomp_taskgroup): Likewise.
4616         (struct gomp_target_task): New type.
4617         (struct gomp_team): Add comment.
4618         (gomp_get_place_proc_ids_8, gomp_doacross_init,
4619         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
4620         gomp_create_target_task, gomp_target_task_fn): New prototypes.
4621         (struct target_var_desc): New type.
4622         (struct target_mem_desc): Adjust comment.  Use struct
4623         target_var_desc instead of splay_tree_key for list.
4624         (REFCOUNT_INFINITY): Define.
4625         (struct splay_tree_key_s): Remove copy_from field.
4626         (struct gomp_device_descr): Add dev2dev_func field.
4627         (enum gomp_map_vars_kind): New enum.
4628         (gomp_map_vars): Add one argument.
4629         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
4630         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
4631         omp_get_place_num_procs, omp_get_place_num_procs_,
4632         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
4633         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
4634         omp_get_place_num_, omp_get_partition_num_places,
4635         omp_get_partition_num_places_, omp_get_partition_place_nums,
4636         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
4637         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
4638         omp_target_free, omp_target_is_present, omp_target_memcpy,
4639         omp_target_memcpy_rect, omp_target_associate_ptr and
4640         omp_target_disassociate_ptr.
4641         (GOMP_4.0.2): Renamed to ...
4642         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
4643         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
4644         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
4645         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
4646         GOMP_loop_doacross_static_start, GOMP_doacross_post,
4647         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
4648         GOMP_loop_ull_doacross_guided_start,
4649         GOMP_loop_ull_doacross_runtime_start,
4650         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
4651         GOMP_doacross_ull_wait.
4652         * libgomp.texi: Document omp_get_max_task_priority.
4653         Rename modifier argument to chunk_size for omp_set_schedule and
4654         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
4655         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
4656         to run_sched_chunk_size renaming.
4657         (GOMP_loop_ordered_runtime_start): Likewise.
4658         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
4659         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
4660         GOMP_parallel_loop_runtime_start): New functions.
4661         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
4662         to run_sched_chunk_size renaming.
4663         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
4664         GOMP_loop_doacross_guided_start): New functions or aliases.
4665         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
4666         run_sched_modifier to run_sched_chunk_size renaming.
4667         (GOMP_loop_ull_ordered_runtime_start): Likewise.
4668         (gomp_loop_ull_doacross_static_start,
4669         gomp_loop_ull_doacross_dynamic_start,
4670         gomp_loop_ull_doacross_guided_start,
4671         GOMP_loop_ull_doacross_runtime_start): New functions.
4672         (GOMP_loop_ull_doacross_static_start,
4673         GOMP_loop_ull_doacross_dynamic_start,
4674         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
4675         * oacc-mem.c (acc_map_data, present_create_copy,
4676         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
4677         to gomp_map_vars.
4678         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
4679         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
4680         instead of false to gomp_map_vars.
4681         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
4682         * omp.h.in (omp_lock_hint_t): New type.
4683         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
4684         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
4685         omp_get_place_num, omp_get_partition_num_places,
4686         omp_get_partition_place_nums, omp_get_initial_device,
4687         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
4688         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
4689         omp_target_associate_ptr, omp_target_disassociate_ptr): New
4690         prototypes.
4691         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
4692         (omp_lock_hint_none, omp_lock_hint_uncontended,
4693         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
4694         omp_lock_hint_speculative): New parameters.
4695         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
4696         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
4697         omp_get_place_num, omp_get_partition_num_places,
4698         omp_get_partition_place_nums, omp_get_initial_device,
4699         omp_get_max_task_priority): New interfaces.
4700         (omp_set_schedule, omp_get_schedule): Rename modifier argument
4701         to chunk_size.
4702         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
4703         (omp_lock_hint_none, omp_lock_hint_uncontended,
4704         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
4705         omp_lock_hint_speculative): New parameters.
4706         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
4707         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
4708         omp_get_place_num, omp_get_partition_num_places,
4709         omp_get_partition_place_nums, omp_get_initial_device,
4710         omp_get_max_task_priority): New functions and subroutines.
4711         * ordered.c: Include stdarg.h and string.h.
4712         (MAX_COLLAPSED_BITS): Define.
4713         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
4714         gomp_doacross_ull_init, GOMP_doacross_ull_post,
4715         GOMP_doacross_ull_wait): New functions.
4716         * target.c: Include errno.h.
4717         (resolve_device): If device is not initialized, call
4718         gomp_init_device on it.
4719         (gomp_map_lookup): New function.
4720         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
4721         Don't bump refcount if REFCOUNT_INFINITY.  Handle
4722         GOMP_MAP_ALWAYS_TO_P.
4723         (get_kind): Rename is_openacc argument to short_mapkind.
4724         (gomp_map_pointer): Use gomp_map_lookup.
4725         (gomp_map_fields_existing): New function.
4726         (gomp_map_vars): Rename is_openacc argument to short_mapkind
4727         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
4728         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
4729         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
4730         Adjust for tgt->list changed type and copy_from living in there.
4731         (gomp_copy_from_async): Adjust for tgt->list changed type and
4732         copy_from living in there.
4733         (gomp_unmap_vars): Likewise.
4734         (gomp_update): Likewise.  Rename is_openacc argument to
4735         short_mapkind.  Don't fail if object is not mapped.
4736         (gomp_load_image_to_device): Initialize refcount to
4737         REFCOUNT_INFINITY.
4738         (gomp_target_fallback): New function.
4739         (gomp_get_target_fn_addr): Likewise.
4740         (GOMP_target): Adjust gomp_map_vars caller, use
4741         gomp_get_target_fn_addr and gomp_target_fallback.
4742         (GOMP_target_41): New function.
4743         (gomp_target_data_fallback): New function.
4744         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
4745         (GOMP_target_data_41): New function.
4746         (GOMP_target_update): Adjust gomp_update caller.
4747         (GOMP_target_update_41): New function.
4748         (gomp_exit_data, GOMP_target_enter_exit_data,
4749         gomp_target_task_fn, omp_target_alloc, omp_target_free,
4750         omp_target_is_present, omp_target_memcpy,
4751         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
4752         omp_target_associate_ptr, omp_target_disassociate_ptr,
4753         gomp_load_plugin_for_device): New functions.
4754         * task.c: Include gomp-constants.h.  Include taskloop.c
4755         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
4756         (gomp_task_handle_depend): New function.
4757         (GOMP_task): Use it.  Add priority argument.  Use
4758         gomp-constant.h constants instead of hardcoded numbers.
4759         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
4760         (gomp_create_target_task): New function.
4761         (verify_children_queue, verify_taskgroup_queue,
4762         verify_task_queue): New functions.
4763         (gomp_task_run_pre): Call verify_*_queue functions.
4764         If an upcoming tied task is about to leave the sibling or
4765         taskgroup queues in an invalid state, adjust appropriately.
4766         Remove taskgroup argument.  Add comments.
4767         (gomp_task_run_post_handle_dependers): Add comments.
4768         (gomp_task_run_post_remove_parent): Likewise.
4769         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
4770         (GOMP_taskwait): Likewise.  Add comments.
4771         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
4772         problem such that the first non parent_depends_on task does not
4773         end up at the end of the children queue.
4774         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
4775         GOMP_TASK_UNDEFERRED.
4776         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
4777         * taskloop.c: New file.
4778         * testsuite/lib/libgomp.exp
4779         (check_effective_target_offload_device_nonshared_as): New proc.
4780         * testsuite/libgomp.c/affinity-2.c: New test.
4781         * testsuite/libgomp.c/doacross-1.c: New test.
4782         * testsuite/libgomp.c/doacross-2.c: New test.
4783         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
4784         Add map clause to target.
4785         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
4786         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
4787         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
4788         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
4789         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
4790         Likewise.
4791         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
4792         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
4793         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
4794         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
4795         not defined.  Use those where needed.
4796         * testsuite/libgomp.c/for-4.c: New test.
4797         * testsuite/libgomp.c/for-5.c: New test.
4798         * testsuite/libgomp.c/for-6.c: New test.
4799         * testsuite/libgomp.c/linear-1.c: New test.
4800         * testsuite/libgomp.c/ordered-4.c: New test.
4801         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
4802         only allowed on the loop iterator.
4803         * testsuite/libgomp.c/pr66199-3.c: New test.
4804         * testsuite/libgomp.c/pr66199-4.c: New test.
4805         * testsuite/libgomp.c/reduction-7.c: New test.
4806         * testsuite/libgomp.c/reduction-8.c: New test.
4807         * testsuite/libgomp.c/reduction-9.c: New test.
4808         * testsuite/libgomp.c/reduction-10.c: New test.
4809         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
4810         map(tofrom:s).
4811         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
4812         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
4813         * testsuite/libgomp.c/target-11.c: New test.
4814         * testsuite/libgomp.c/target-12.c: New test.
4815         * testsuite/libgomp.c/target-13.c: New test.
4816         * testsuite/libgomp.c/target-14.c: New test.
4817         * testsuite/libgomp.c/target-15.c: New test.
4818         * testsuite/libgomp.c/target-16.c: New test.
4819         * testsuite/libgomp.c/target-17.c: New test.
4820         * testsuite/libgomp.c/target-18.c: New test.
4821         * testsuite/libgomp.c/target-19.c: New test.
4822         * testsuite/libgomp.c/target-20.c: New test.
4823         * testsuite/libgomp.c/target-21.c: New test.
4824         * testsuite/libgomp.c/target-22.c: New test.
4825         * testsuite/libgomp.c/target-23.c: New test.
4826         * testsuite/libgomp.c/target-24.c: New test.
4827         * testsuite/libgomp.c/target-25.c: New test.
4828         * testsuite/libgomp.c/target-26.c: New test.
4829         * testsuite/libgomp.c/target-27.c: New test.
4830         * testsuite/libgomp.c/taskloop-1.c: New test.
4831         * testsuite/libgomp.c/taskloop-2.c: New test.
4832         * testsuite/libgomp.c/taskloop-3.c: New test.
4833         * testsuite/libgomp.c/taskloop-4.c: New test.
4834         * testsuite/libgomp.c++/ctor-13.C: New test.
4835         * testsuite/libgomp.c++/doacross-1.C: New test.
4836         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
4837         Replace offload_device with offload_device_nonshared_as.
4838         * testsuite/libgomp.c++/for-12.C: New test.
4839         * testsuite/libgomp.c++/for-13.C: New test.
4840         * testsuite/libgomp.c++/for-14.C: New test.
4841         * testsuite/libgomp.c++/linear-1.C: New test.
4842         * testsuite/libgomp.c++/member-1.C: New test.
4843         * testsuite/libgomp.c++/member-2.C: New test.
4844         * testsuite/libgomp.c++/member-3.C: New test.
4845         * testsuite/libgomp.c++/member-4.C: New test.
4846         * testsuite/libgomp.c++/member-5.C: New test.
4847         * testsuite/libgomp.c++/ordered-1.C: New test.
4848         * testsuite/libgomp.c++/reduction-5.C: New test.
4849         * testsuite/libgomp.c++/reduction-6.C: New test.
4850         * testsuite/libgomp.c++/reduction-7.C: New test.
4851         * testsuite/libgomp.c++/reduction-8.C: New test.
4852         * testsuite/libgomp.c++/reduction-9.C: New test.
4853         * testsuite/libgomp.c++/reduction-10.C: New test.
4854         * testsuite/libgomp.c++/reference-1.C: New test.
4855         * testsuite/libgomp.c++/simd14.C: New test.
4856         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
4857         * testsuite/libgomp.c++/target-5.C: New test.
4858         * testsuite/libgomp.c++/target-6.C: New test.
4859         * testsuite/libgomp.c++/target-7.C: New test.
4860         * testsuite/libgomp.c++/target-8.C: New test.
4861         * testsuite/libgomp.c++/target-9.C: New test.
4862         * testsuite/libgomp.c++/target-10.C: New test.
4863         * testsuite/libgomp.c++/target-11.C: New test.
4864         * testsuite/libgomp.c++/target-12.C: New test.
4865         * testsuite/libgomp.c++/taskloop-1.C: New test.
4866         * testsuite/libgomp.c++/taskloop-2.C: New test.
4867         * testsuite/libgomp.c++/taskloop-3.C: New test.
4868         * testsuite/libgomp.c++/taskloop-4.C: New test.
4869         * testsuite/libgomp.c++/taskloop-5.C: New test.
4870         * testsuite/libgomp.c++/taskloop-6.C: New test.
4871         * testsuite/libgomp.c++/taskloop-7.C: New test.
4872         * testsuite/libgomp.c++/taskloop-8.C: New test.
4873         * testsuite/libgomp.c++/taskloop-9.C: New test.
4874         * testsuite/libgomp.fortran/affinity1.f90: New test.
4875         * testsuite/libgomp.fortran/affinity2.f90: New test.
4877 2015-10-13  Tom de Vries  <tom@codesourcery.com>
4879         PR tree-optimization/67476
4880         * testsuite/libgomp.c/autopar-3.c: New test.
4881         * testsuite/libgomp.c/autopar-4.c: New test.
4882         * testsuite/libgomp.c/autopar-5.c: New test.
4883         * testsuite/libgomp.c/autopar-6.c: New test.
4884         * testsuite/libgomp.c/autopar-7.c: New test.
4885         * testsuite/libgomp.c/autopar-8.c: New test.
4887 2015-10-12  James Norris  <jnorris@codesourcery.com>
4889         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
4890         initializer.
4892 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
4894         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
4895         using load_gcc_lib.
4897 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
4899         * oacc-ptx.h: Remove file, moving its content into...
4900         * config/nvptx/fortran.c: ... here...
4901         * config/nvptx/oacc-init.c: ..., here...
4902         * config/nvptx/oacc-parallel.c: ..., and here.
4903         * config/nvptx/openacc.f90: New file.
4904         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
4905         (link_ptx): Don't link in predefined bits of PTX code.
4907 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
4908             Bernd Schmidt <bernds@codesourcery.com>
4910         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
4911         (struct targ_ptx_obj): New.
4912         (nvptx_tdata): Move earlier, change data format.
4913         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
4914         objects.
4915         (GOMP_OFFLOAD_load_image): Adjust.
4917 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
4919         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
4920         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
4921         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
4922         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
4923         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
4924         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
4925         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
4926         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
4927         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
4928         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
4929         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
4930         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
4931         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
4932         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
4933         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
4934         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
4935         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
4936         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4937         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
4938         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
4939         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4940         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
4941         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
4942         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
4943         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
4944         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
4945         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
4946         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
4947         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4948         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
4949         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
4950         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
4951         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
4952         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
4953         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4954         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
4955         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4956         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
4957         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4958         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
4959         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4960         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4961         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
4962         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
4963         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
4964         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
4965         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
4966         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
4967         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
4968         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
4969         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
4970         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
4971         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
4972         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
4973         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
4974         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
4975         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
4976         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
4977         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
4978         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
4979         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
4980         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
4981         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
4983 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
4985         * oacc-init.c (acc_on_device): Force optimization level.
4987 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
4989         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
4990         (cuda_errlist): Delete.
4991         (cuda_error): Reimplement.
4993 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
4995         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
4996         array.
4997         * libgomp.map (GOACC_parallel_keyed): New.
4998         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
4999         all callers.
5000         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
5001         and take keyed varargs list.  Adjust call to exec_func.
5002         (GOACC_parallel): Force host fallback.
5003         * libgomp_g.h (GOACC_parallel): Remove.
5004         (GOACC_parallel_keyed): Declare.
5005         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
5006         (stuct targ_gn_descriptor): Replace name field with launch field.
5007         (nvptx_exec): Lose separate geometry args, take array.  Process
5008         dynamic dimensions and adjust.
5009         (struct nvptx_tdata): Replace fn_names field with fn_descs.
5010         (GOMP_OFFLOAD_load_image): Adjust for change in function table
5011         data.
5012         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
5013         passing.
5014         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
5015         passing.
5017 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
5019         PR libgomp/67141
5020         * oacc-int.h (goacc_host_init): Add declaration.
5021         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
5022         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
5024 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
5025             Sebastian Pop  <s.pop@samsung.com>
5027         * testsuite/libgomp.graphite/bounds.c (int foo): Modifed test case to
5028         match o/p.
5029         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
5030         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
5031         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
5032         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
5033         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
5035 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
5037         * configure.tgt: Add missing ;; in between nvptx and rtems
5038         snippets.
5040 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5042         * config/posix/pool.h (gomp_adjust_thread_attr): New.
5043         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
5044         (gomp_thread_pool_reservoir): Add priority member.
5045         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
5046         priority.
5047         (parse_thread_pools): Likewise.
5048         * team.c (gomp_team_start): Call configuration provided
5049         gomp_adjust_thread_attr(). Destroy thread attributes if
5050         necessary.
5051         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
5053 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5055         * config/posix/pool.h: New.
5056         * config/rtems/pool.h: Likewise.
5057         * config/rtems/proc.c: Likewise.
5058         * libgomp.h (gomp_thread_destructor): Declare.
5059         * team.c: Include configuration provided "pool.h".
5060         (gomp_get_thread_pool): Define in configuration.
5061         (gomp_team_end): Call configuration defined
5062         gomp_release_thread_pool().
5064 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5066         * config/rtems/bar.c: New.
5067         * config/rtems/bar.h: Likewise.
5068         * config/rtems/mutex.c: Likewise.
5069         * config/rtems/mutex.h: Likewise.
5070         * config/rtems/sem.c: Likewise.
5071         * config/rtems/sem.h: Likewise.
5072         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
5073         <sys/lock.h> header file.
5074         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
5075         supported by Newlib.
5076         * configure: Regenerate.
5078 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5080         * team.c (gomp_new_thread_pool): Delete and move content to ...
5081         (gomp_get_thread_pool): ... new function.  Allocate and
5082         initialize thread pool on demand.
5083         (get_last_team): Use gomp_get_thread_pool().
5084         (gomp_team_start): Delete thread pool initialization.
5086 2015-09-03  Tom de Vries  <tom@codesourcery.com>
5088         PR tree-optimization/65637
5089         * testsuite/libgomp.c/autopar-2.c: New test.
5091 2015-08-29  Tom de Vries  <tom@codesourcery.com>
5093         PR tree-optimization/46193
5094         * testsuite/libgomp.c/pr46193.c: New test.
5096 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
5098         libgomp/
5099         * libgomp.map: Add 4.0.2 version.
5100         * target.c (offload_image_descr): Add version field.
5101         (gomp_load_image_to_device): Add version argument.  Adjust plugin
5102         call.  Improve load mismatch diagnostic.
5103         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
5104         call.
5105         (GOMP_offload_regster): Make stub function, move bulk to ...
5106         (GOMP_offload_register_ver): ... here.  Process version argument.
5107         (GOMP_offload_unregister): Make stub function, move bulk to ...
5108         (GOMP_offload_unregister_ver): ... here.  Process version argument.
5109         (gomp_init_device): Process version field.
5110         (gomp_unload_device): Process version field.
5111         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
5112         macros.  Check plugin version.
5113         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
5114         loader and unloader types.
5115         * oacc-host.c: Include gomp-constants.h.
5116         (host_version): New.
5117         (host_load_image, host_unload_image): Adjust.
5118         (host_dispatch): Add host_version.
5119         * plugin/plugin-nvptx.c: Include gomp-constants.h.
5120         (GOMP_OFFLOAD_version): New.
5121         (GOMP_OFFLOAD_load_image): Add version arg and check it.
5122         (GOMP_OFFLOAD_unload_image): Likewise.
5123         * plugin/plugin-host.c: Include gomp-constants.h.
5124         (GOMP_OFFLOAD_version): New.
5125         (GOMP_OFFLOAD_load_image): Add version arg.
5126         (GOMP_OFFLOAD_unload_image): Likewise.
5128 2015-08-24  Tom de Vries  <tom@codesourcery.com>
5130         PR tree-optimization/65468
5131         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
5133 2015-08-24  Tom de Vries  <tom@codesourcery.com>
5135         PR tree-optimization/65468
5136         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
5138 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
5140         PR libgomp/66761
5141         PR libgomp/67303
5142         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
5143         (gomp_iter_guided_next): Idem.
5144         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
5145         (gomp_iter_ull_guided_next): Idem.
5146         * config/linux/wait.h (do_spin): Idem.
5148 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
5150         * libgomp-plugin.h (enum offload_target_type): Remove
5151         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
5152         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
5153         * openacc.h (enum acc_device_t): Likewise.
5154         * openacc_lib.h: Likewise.
5155         * oacc-init.c (name_of_acc_device_t): Don't handle it.
5156         (acc_on_device): Just use __builtin_acc_on_device.
5157         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
5158         of acc_on_device builtin.
5159         * plugin/plugin-host.h: Remove file.
5160         * plugin/plugin-host.c: Likewise, but salvage some content into...
5161         * oacc-host.c: ... this file.
5162         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
5163         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
5164         * Makefile.in: Regenerate.
5165         * configure: Likewise.
5166         * testsuite/lib/libgomp.exp
5167         (check_effective_target_openacc_host_nonshm_selected): Remove.
5168         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
5169         ACC_DEVICE_TYPE=host_nonshm.
5170         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5171         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5172         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
5173         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5174         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5175         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5177 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
5178             Jakub Jelinek  <jakub@redhat.com>
5180         * config/nvptx/affinity.c: New file.
5181         * config/nvptx/alloc.c: Likewise.
5182         * config/nvptx/bar.c: Likewise.
5183         * config/nvptx/barrier.c: Likewise.
5184         * config/nvptx/critical.c: Likewise.
5185         * config/nvptx/env.c: Likewise.
5186         * config/nvptx/error.c: Likewise.
5187         * config/nvptx/fortran.c: Likewise.
5188         * config/nvptx/iter.c: Likewise.
5189         * config/nvptx/iter_ull.c: Likewise.
5190         * config/nvptx/libgomp-plugin.c: Likewise.
5191         * config/nvptx/lock.c: Likewise.
5192         * config/nvptx/loop.c: Likewise.
5193         * config/nvptx/loop_ull.c: Likewise.
5194         * config/nvptx/mutex.c: Likewise.
5195         * config/nvptx/oacc-async.c: Likewise.
5196         * config/nvptx/oacc-cuda.c: Likewise.
5197         * config/nvptx/oacc-host.c: Likewise.
5198         * config/nvptx/oacc-init.c: Likewise.
5199         * config/nvptx/oacc-mem.c: Likewise.
5200         * config/nvptx/oacc-parallel.c: Likewise.
5201         * config/nvptx/oacc-plugin.c: Likewise.
5202         * config/nvptx/omp-lock.h: Likewise.
5203         * config/nvptx/ordered.c: Likewise.
5204         * config/nvptx/parallel.c: Likewise.
5205         * config/nvptx/proc.c: Likewise.
5206         * config/nvptx/ptrlock.c: Likewise.
5207         * config/nvptx/sections.c: Likewise.
5208         * config/nvptx/sem.c: Likewise.
5209         * config/nvptx/single.c: Likewise.
5210         * config/nvptx/splay-tree.c: Likewise.
5211         * config/nvptx/target.c: Likewise.
5212         * config/nvptx/task.c: Likewise.
5213         * config/nvptx/team.c: Likewise.
5214         * config/nvptx/time.c: Likewise.
5215         * config/nvptx/work.c: Likewise.
5216         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
5217         * configure: Regenerate.
5218         * configure.tgt (config_path): Set to "nvptx" for target
5219         nvptx*-*-*.
5221 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
5223         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
5225 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
5227         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
5228         (cuda_errlist): Constify.
5229         (errmsg):  Move into ...
5230         (cuda_error): ... here.  Make smaller.
5231         (_XSTR, _STR): Delete.
5232         (cuda_synames): Delete.
5233         (verify_device_library): Delete.
5234         (nvptx_init): Don't call it.
5236 2015-07-28  Tom de Vries  <tom@codesourcery.com>
5238         * testsuite/libgomp.c/uns-outer-4.c: New test.
5240 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
5242         * testsuite/libgomp.c/pr66714.c: New test.
5244 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
5246         PR libgomp/66950
5247         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
5248         (fib_ref): New function.
5249         (fib): Correct corner cases in the recursion.
5250         (main): Replace the non-simd loop with fib_ref call.
5251         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
5252         subroutine.
5253         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
5254         for the last array element value.  Replace the non-simd loop with
5255         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
5256         of the last array element with according Fibonacci sequence element.
5257         (fib): Correct corner cases in the recursion.
5259 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
5261         * target.c (gomp_offload_image_to_device): Rename to ...
5262         (gomp_load_image_to_device): ... here.
5263         (GOMP_offload_register): Adjust call.
5264         (gomp_init_device): Likewise.
5265         (gomp_unload_image_from_device): New.  Broken out of ...
5266         (GOMP_offload_unregister): ... here.  Call it.
5267         (gomp_unload_device): New.
5268         * libgomp.h (gomp_unload_device): Declare.
5269         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
5270         mem maps.
5272 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
5274         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
5275         wait=-specific if.
5276         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
5277         !=0 condition.
5278         (goacc_waits): Move !num_waits handling to ...
5279         (GOACC_wait): ... here, the only caller that might have zero waits.
5281         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
5282         (struct ptx_image_data): Move earlier, add fns field.
5283         (struct ptx_device): Add images and image_lock fields.
5284         (ptx_images, ptx_image_lock): Delete.
5285         (nvptx_open_device): Initialize images and image_lock fields.
5286         (nvptx_close_device): Destroy image_lock.
5287         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
5288         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
5289         fields.
5291 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
5293         * target.c (GOMP_offload_register): Use int for device type arg.
5294         (GOMP_offload_unregister): Likewise.
5296         * target.c (struct_offload_image_descr): Constify host_table.
5297         (gomp_offload_image_to_device): Likewise.
5298         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
5300         * libgomp.h (gomp_device_descr): Constify target data arguments.
5301         * target.c (struct offload_image_descr): Constify target_data.
5302         (gomp_offload_image_to_device): Likewise.
5303         (GOMP_offload_register): Likewise.
5304         (GOMP_offload_unrefister): Likewise.
5305         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
5306         GOMP_OFFLOAD_unload_image): Constify target data.
5307         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
5308         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
5310 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
5312         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
5313         Workaround driver library const error.
5314         (struct nvptx_tdata, nvptx_tdata_t): New.
5315         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
5316         type.
5318 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
5320         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
5321         of EPS parameter from integer to real.
5322         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
5323         type of EPS parameter from integer to real.
5325 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5327         * team.c (get_last_team): New.
5328         (gomp_new_team): Recycle last non-nested team if possible.
5329         (gomp_team_end): Move team work share list free lock destruction
5330         to ...
5331         (free_team): ... here.
5333 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
5335         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
5336         and ref from int to double.  Replaced their comparison with
5337         an inequality of their difference and EPS.
5338         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
5339         comparison of pri and a reference number with an inequality of their
5340         difference and EPS.
5341         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
5342         the comparison of sum and sum_ref with an inequality of their
5343         difference and EPS.
5344         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
5345         the comparison of pri and a reference number with an inequality of
5346         their difference and EPS.
5348 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
5350         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
5351         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
5352         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
5353         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
5354         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
5355         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
5356         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
5357         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
5358         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
5359         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
5360         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
5361         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
5362         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
5363         variables.
5364         (vec_mult): Likewise.  Add #pragma omp taskwait.
5365         (main): Adjust caller.
5366         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
5367         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
5368         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
5369         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
5370         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
5371         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
5372         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
5373         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
5374         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
5375         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
5376         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
5377         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
5378         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
5379         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
5380         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
5381         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
5382         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
5383         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
5384         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
5385         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
5386         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
5387         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
5388         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
5389         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
5390         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
5391         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
5392         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
5393         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
5394         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
5395         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
5396         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
5397         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
5398         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
5399         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
5400         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
5401         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
5402         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
5403         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
5404         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
5405         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
5406         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
5407         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
5408         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
5409         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
5410         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
5411         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
5412         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
5413         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
5414         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
5415         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
5416         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
5417         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
5418         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
5419         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
5420         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
5421         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
5422         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
5423         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
5424         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
5425         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
5426         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
5427         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
5428         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
5429         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
5430         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
5431         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
5432         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
5433         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
5434         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
5435         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
5436         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
5437         (vec_mult): Add !$omp taskwait.
5438         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
5439         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
5440         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
5441         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
5442         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
5443         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
5444         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
5445         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
5446         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
5447         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
5448         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
5449         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
5450         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
5451         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
5452         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
5453         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
5454         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
5455         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
5456         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
5457         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
5458         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
5459         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
5460         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
5461         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
5462         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
5463         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
5464         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
5465         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
5466         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
5467         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
5468         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
5469         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
5470         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
5471         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
5472         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
5473         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
5474         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
5475         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
5476         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
5477         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
5478         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
5479         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
5480         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
5481         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
5482         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
5483         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
5484         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
5485         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
5486         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
5487         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
5488         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
5489         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
5490         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
5491         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
5492         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
5493         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
5494         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
5495         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
5496         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
5497         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
5498         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
5499         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
5500         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
5501         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
5502         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
5503         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
5504         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
5506 2015-07-10  Tom de Vries  <tom@codesourcery.com>
5508         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
5509         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
5511 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
5513         PR libgomp/65099
5514         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
5515         in a 64-bit configuration.
5516         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
5517         offloading testing if no such device is available.
5518         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5519         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
5521 2015-07-08  Tom de Vries  <tom@codesourcery.com>
5523         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
5524         second call to f.
5525         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5527 2015-07-07  Tom de Vries  <tom@codesourcery.com>
5529         PR tree-optimization/66642
5530         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
5531         iteration count case.
5532         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
5533         function, factor out of ...
5534         (main): ... here.  Test low iteration count case.
5536 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
5538         * libgomp.h (gomp_thread_pool): Comment last_team field.
5540 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
5542         * testsuite/libgomp.c++/pr66702-1.C: Require
5543         vect_simd_clones effective target.
5544         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
5546 2015-06-30  Tom de Vries  <tom@codesourcery.com>
5548         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
5549         already set.  Use DEFAULT_CFLAGS in dg-runtest.
5550         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
5551         "-O2".
5553 2015-06-30  Tom de Vries  <tom@codesourcery.com>
5555         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
5556         already set.  Use DEFAULT_CFLAGS in dg-runtest.
5557         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
5558         * testsuite/libgomp.c++/pr64824.C: Same.
5559         * testsuite/libgomp.c++/pr64868.C: Same.
5560         * testsuite/libgomp.c++/pr66199-1.C: Same.
5561         * testsuite/libgomp.c++/pr66199-2.C: Same.
5562         * testsuite/libgomp.c++/target-2.C: Same.
5563         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
5564         -std=<standard> option.
5565         * testsuite/libgomp.c++/udr-11.C: Same.
5566         * testsuite/libgomp.c++/udr-12.C: Same.
5567         * testsuite/libgomp.c++/udr-13.C: Same.
5568         * testsuite/libgomp.c++/udr-14.C: Same.
5569         * testsuite/libgomp.c++/udr-15.C: Same.
5570         * testsuite/libgomp.c++/udr-16.C: Same.
5571         * testsuite/libgomp.c++/udr-17.C: Same.
5572         * testsuite/libgomp.c++/udr-18.C: Same.
5573         * testsuite/libgomp.c++/udr-19.C: Same.
5574         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
5575         * testsuite/libgomp.c++/simd-1.C: Same.
5576         * testsuite/libgomp.c++/simd-2.C: Same.
5577         * testsuite/libgomp.c++/simd-3.C: Same.
5578         * testsuite/libgomp.c++/simd-4.C: Same.
5579         * testsuite/libgomp.c++/simd-5.C: Same.
5580         * testsuite/libgomp.c++/simd-6.C: Same.
5581         * testsuite/libgomp.c++/simd-7.C: Same.
5582         * testsuite/libgomp.c++/simd-8.C: Same.
5583         * testsuite/libgomp.c++/simd-9.C: Same.
5584         * testsuite/libgomp.c++/simd10.C: Same.
5585         * testsuite/libgomp.c++/simd11.C: Same.
5586         * testsuite/libgomp.c++/simd12.C: Same.
5587         * testsuite/libgomp.c++/simd13.C: Same.
5589 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
5591         PR middle-end/66702
5592         * testsuite/libgomp.c++/pr66702-1.C: New test.
5593         * testsuite/libgomp.c++/pr66702-2.C: New test.
5595 2015-06-30  Tom de Vries  <tom@codesourcery.com>
5597         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
5598         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
5599         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
5600         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
5602 2015-06-30  Tom de Vries  <tom@codesourcery.com>
5604         PR tree-optimization/66652
5605         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
5606         using restrict pointers.
5607         (main): Add arguments to calls to f.
5608         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5610 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
5612         * configure.ac: Fix check for header <sys/sysctl.h>.
5613         * configure: Regenerate.
5614         * config.h.in: Likewise.
5616 2015-06-23  Tom de Vries  <tom@codesourcery.com>
5618         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
5619         abort.
5620         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
5622 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
5624         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
5625         acc_device_nvidia.
5627         PR libgomp/66518
5628         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
5629         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5631 2015-06-15  Tom de Vries  <tom@codesourcery.com>
5633         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
5634         dg-additional-options for any remaining options.
5635         * testsuite/libgomp.c/atomic-2.c: Same.
5636         * testsuite/libgomp.c/atomic-4.c: Same.
5637         * testsuite/libgomp.c/atomic-5.c: Same.
5638         * testsuite/libgomp.c/atomic-6.c: Same.
5639         * testsuite/libgomp.c/autopar-1.c: Same.
5640         * testsuite/libgomp.c/copyin-1.c: Same.
5641         * testsuite/libgomp.c/copyin-2.c: Same.
5642         * testsuite/libgomp.c/copyin-3.c: Same.
5643         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
5644         * testsuite/libgomp.c/nestedfn-5.c: Same.
5645         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
5646         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
5647         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
5648         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5649         * testsuite/libgomp.c/pr32362-1.c: Same.
5650         * testsuite/libgomp.c/pr32362-2.c: Same.
5651         * testsuite/libgomp.c/pr32362-3.c: Same.
5652         * testsuite/libgomp.c/pr39591-1.c: Same.
5653         * testsuite/libgomp.c/pr39591-2.c: Same.
5654         * testsuite/libgomp.c/pr39591-3.c: Same.
5655         * testsuite/libgomp.c/pr58392.c: Same.
5656         * testsuite/libgomp.c/pr58756.c: Same.
5657         * testsuite/libgomp.c/simd-1.c: Same.
5658         * testsuite/libgomp.c/simd-10.c: Same.
5659         * testsuite/libgomp.c/simd-11.c: Same.
5660         * testsuite/libgomp.c/simd-12.c: Same.
5661         * testsuite/libgomp.c/simd-13.c: Same.
5662         * testsuite/libgomp.c/simd-14.c: Same.
5663         * testsuite/libgomp.c/simd-15.c: Same.
5664         * testsuite/libgomp.c/simd-2.c: Same.
5665         * testsuite/libgomp.c/simd-3.c: Same.
5666         * testsuite/libgomp.c/simd-4.c: Same.
5667         * testsuite/libgomp.c/simd-5.c: Same.
5668         * testsuite/libgomp.c/simd-6.c: Same.
5669         * testsuite/libgomp.c/simd-7.c: Same.
5670         * testsuite/libgomp.c/simd-8.c: Same.
5671         * testsuite/libgomp.c/simd-9.c: Same.
5673 2015-06-15  Tom de Vries  <tom@codesourcery.com>
5675         * testsuite/libgomp.c/pr35625.c: Fix typo.
5677 2015-06-15  Tom de Vries  <tom@codesourcery.com>
5679         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
5680         in dg-options.
5681         * testsuite/libgomp.c/atomic-3.c: Same.
5682         * testsuite/libgomp.c/debug-1.c: Same.
5683         * testsuite/libgomp.c/nqueens-1.c: Same.
5684         * testsuite/libgomp.c/pr26171.c: Same.
5685         * testsuite/libgomp.c/pr48591.c: Same.
5686         * testsuite/libgomp.c/pr64824.c: Same.
5687         * testsuite/libgomp.c/pr64868.c: Same.
5688         * testsuite/libgomp.c/pr66133.c: Same.
5689         * testsuite/libgomp.c/pr66199-1.c: Same.
5690         * testsuite/libgomp.c/pr66199-2.c: Same.
5691         * testsuite/libgomp.c/target-8.c: Same.
5693 2015-06-15  Tom de Vries  <tom@codesourcery.com>
5695         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
5696         -std={gnu99,c99}.
5697         * testsuite/libgomp.c/for-1.c: Same.
5698         * testsuite/libgomp.c/for-2.c: Same.
5699         * testsuite/libgomp.c/for-3.c: Same.
5700         * testsuite/libgomp.c/pr35625.c: Same.
5701         * testsuite/libgomp.c/pr39154.c: Same.
5702         * testsuite/libgomp.c/simd-16.c: Same.
5703         * testsuite/libgomp.c/simd-17.c: Same.
5705 2015-06-13  Tom de Vries  <tom@codesourcery.com>
5707         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
5709 2015-06-13  Tom de Vries  <tom@codesourcery.com>
5711         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
5712         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
5713         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
5714         (N): Define.
5715         (main): Use N instead of hardcoded constants.
5717 2015-06-05  Tom de Vries  <tom@codesourcery.com>
5719         merge from gomp4 branch:
5720         2015-05-28  Tom de Vries  <tom@codesourcery.com>
5722         PR tree-optimization/65443
5723         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
5724         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
5725         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
5727 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
5729         * testsuite/libgomp.graphite/bounds.c: Adjust for
5730         cleanup-tree-dump removal.
5731         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
5732         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
5733         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
5734         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
5735         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
5736         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
5737         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
5738         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
5739         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
5740         * testsuite/libgomp.graphite/pr41118.c: Likewise.
5742 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
5744         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
5745         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
5746         (futex_wake) [!__x86_64__]: Ditto.
5748 2015-05-28  Julian Brown  <julian@codesourcery.com>
5750         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
5751         function comment. Only call gomp_fatal if new argument is true.
5752         (acc_dev_num_out_of_range): New function.
5753         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
5754         acc_dev_num_out_of_range as appropriate.
5755         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
5756         (acc_get_device_num, acc_set_device_num): Update calls to
5757         resolve_device.
5758         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
5759         output.
5761 2015-05-28  Julian Brown  <julian@codesourcery.com>
5763         PR libgomp/65742
5764         * oacc-init.c (plugin/plugin-host.h): Include.
5765         (acc_on_device): Check whether we're in an offloaded region for
5766         host_nonshm
5767         plugin. Don't use __builtin_acc_on_device.
5768         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
5769         nonshm_exec flag in thread-local data.
5770         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
5771         data for host_nonshm plugin.
5772         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
5773         for host_nonshm plugin.
5774         * plugin/plugin-host.h: New.
5776 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
5778         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
5780 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
5782         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
5783         Declare as int.
5784         (FUTEX_PRIVATE_FLAG): Remove L suffix.
5785         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
5786         Declare as int.
5788 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
5790         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
5792 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
5794         * target.c (gomp_map_pointer): New function abstracting out
5795         GOMP_MAP_POINTER handling.
5796         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
5797         gomp_map_pointer().
5799 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
5801         PR middle-end/66199
5802         * testsuite/libgomp.c/pr66199-1.c: New test.
5803         * testsuite/libgomp.c/pr66199-2.c: New test.
5804         * testsuite/libgomp.c++/pr66199-1.C: New test.
5805         * testsuite/libgomp.c++/pr66199-2.C: New test.
5806         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
5807         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
5809 2015-05-19  Julian Brown  <julian@codesourcery.com>
5811         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
5812         on cuInit failure.
5814 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
5816         PR middle-end/66133
5817         * testsuite/libgomp.c/pr66133.c: New test.
5819 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
5821         * Makefile.in: Regenerated with automake-1.11.6.
5822         * aclocal.m4: Likewise.
5823         * config.h.in: Likewise.
5824         * configure: Likewise.
5825         * testsuite/Makefile.in: Likewise.
5827 2015-05-08  Jason Merrill  <jason@redhat.com>
5829         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
5830         _Complex.
5832         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
5834 2015-05-06  Julian Brown  <julian@codesourcery.com>
5836         * oacc-init.c (acc_device_lock): Add explanatory comment.
5837         (resolve_device): Add comment about locking requirement.
5838         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
5839         gomp_init_device and gomp_fini_device calls.
5840         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
5841         (acc_get_device_num, acc_set_device_num): Add locking around
5842         resolve_device and gomp_init_device calls.
5844 2015-05-06  Julian Brown  <julian@codesourcery.com>
5846         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
5847         goacc_thread_lock on error paths.
5848         * oacc-mem.c (lookup_host): Remove locking from function. Note
5849         locking requirement for caller in function comment.
5850         (lookup_dev): Likewise.
5851         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
5852         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
5853         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
5854         Add locking.
5856 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
5858         PR testsuite/65205
5859         PR libgomp/65993
5860         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
5861         don't expect "0x" prefix for "%p" format specifier, don't expect
5862         "(nil)" for NULL pointer.
5863         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5864         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5865         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5866         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5867         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5868         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5869         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5870         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5871         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
5872         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
5873         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5874         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5875         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5876         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5877         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
5878         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
5879         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
5880         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
5881         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5882         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5883         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5884         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5885         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5886         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5887         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5888         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5889         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
5890         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5891         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
5892         accurately specify what we're looking for.
5893         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5894         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5895         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5896         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5897         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5899 2015-04-30  James Norris  <jnorris@codesourcery.com>
5901         PR testsuite/65205
5902         * testsuite/lib/libgomp.exp
5903         (check_effective_target_openacc_host_selected)
5904         (check_effective_target_openacc_host_nonshm_selected): New
5905         procedures.
5906         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
5907         dg-shouldfail.
5908         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
5909         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
5910         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5911         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5912         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5913         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
5914         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5915         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5916         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5917         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5918         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5919         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
5920         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
5921         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5922         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5923         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
5924         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5925         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5926         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
5927         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
5928         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
5929         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
5930         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
5931         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5932         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5933         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5934         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5935         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5936         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5937         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5938         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5939         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
5940         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
5941         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
5942         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
5943         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
5944         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
5945         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
5946         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
5947         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
5948         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
5949         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
5950         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
5952 2015-04-08  Julian Brown  <julian@codesourcery.com>
5954         * libgomp.h (target_mem_desc: Remove mem_map field.
5955         (acc_dispatch_t): Remove open_device_func, close_device_func,
5956         get_device_num_func, set_device_num_func, target_data members.
5957         Change create_thread_data_func argument to device number instead of
5958         generic pointer.
5959         * oacc-async.c (assert.h): Include.
5960         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
5961         (acc_wait_all, acc_wait_all_async): Use current host thread's
5962         active device, not base_dev.
5963         * oacc-cuda.c (acc_get_current_cuda_device)
5964         (acc_get_current_cuda_context, acc_get_cuda_stream)
5965         (acc_set_cuda_stream): Likewise.
5966         * oacc-host.c (host_dispatch): Don't set open_device_func,
5967         close_device_func, get_device_num_func or set_device_num_func.
5968         * oacc-init.c (base_dev, init_key): Remove.
5969         (cached_base_dev): New.
5970         (name_of_acc_device_t): New.
5971         (acc_init_1): Initialise default-numbered device, not zeroth.
5972         (acc_shutdown_1): Close all devices of a given type.
5973         (goacc_destroy_thread): Don't use base_dev.
5974         (lazy_open, lazy_init, lazy_init_and_open): Remove.
5975         (goacc_attach_host_thread_to_device): New.
5976         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
5977         (acc_get_num_devices): Don't use base_dev.
5978         (acc_set_device_type): Reimplement.
5979         (acc_get_device_type): Don't use base_dev.
5980         (acc_get_device_num): Tweak logic.
5981         (acc_set_device_num): Likewise.
5982         (acc_on_device): Use acc_get_device_type.
5983         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
5984         (goacc_lazy_initialize): Reimplement with acc_init and
5985         goacc_attach_host_thread_to_device.
5986         * oacc-int.h (goacc_thread): Add base_dev field.
5987         (base_dev): Remove extern declaration.
5988         (goacc_attach_host_thread_to_device): Add prototype.
5989         * oacc-mem.c (acc_malloc): Use current thread's device instead of
5990         base_dev.
5991         (acc_free): Likewise.
5992         (acc_memcpy_to_device): Likewise.
5993         (acc_memcpy_from_device): Likewise.
5994         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
5995         goacc_lazy_initialize (throughout).
5996         (GOACC_parallel): Use tgt_offset to locate target functions.
5997         * target.c (gomp_map_vars): Don't set tgt->mem_map.
5998         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
5999         (gomp_load_plugin_for_device): Remove open_device, close_device,
6000         get_device_num, set_device_num openacc hook initialisation. Don't set
6001         openacc.target_data.
6002         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
6003         (GOMP_OFFLOAD_openacc_close_device)
6004         (GOMP_OFFLOAD_openacc_get_device_num)
6005         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
6006         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
6007         to int.
6008         * plugin/plugin-nvptx.c (ptx_inited): Remove.
6009         (instantiated_devices, ptx_dev_lock): New.
6010         (struct ptx_image_data): New.
6011         (ptx_devices, ptx_images, ptx_image_lock): New.
6012         (fini_streams_for_device): Reorder cuStreamDestroy call.
6013         (nvptx_get_num_devices): Remove forward declaration.
6014         (nvptx_init): Change return type to bool.
6015         (nvptx_fini): Remove.
6016         (nvptx_attach_host_thread_to_device): New.
6017         (nvptx_open_device): Return struct ptx_device* instead of void*.
6018         (nvptx_close_device): Change argument type to struct ptx_device*,
6019         return type to void.
6020         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
6021         (kernel_target_data, kernel_host_table): Remove static globals.
6022         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
6023         (GOMP_OFFLOAD_init_device): Reimplement.
6024         (GOMP_OFFLOAD_fini_device): Likewise.
6025         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
6026         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
6027         (GOMP_OFFLOAD_host2dev): Use ORD argument.
6028         (GOMP_OFFLOAD_openacc_open_device)
6029         (GOMP_OFFLOAD_openacc_close_device)
6030         (GOMP_OFFLOAD_openacc_set_device_num)
6031         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
6032         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
6033         (device number).
6035         testsuite/
6036         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
6038 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
6040         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
6041         * libgomp.h (struct gomp_memory_mapping): Remove.
6042         (struct target_mem_desc): Change type of mem_map from
6043         gomp_memory_mapping * to splay_tree_s *.
6044         (struct gomp_device_descr): Remove register_image_func, get_table_func.
6045         Add load_image_func, unload_image_func.
6046         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
6047         Remove offload_regions_registered.
6048         (gomp_init_tables): Remove.
6049         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
6050         to splay_tree_s *.
6051         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
6052         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
6053         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
6054         offload_regions_registered.
6055         Initialize load_image_func, unload_image_func, mem_map.root.
6056         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
6057         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
6058         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
6059         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
6060         gomp_memory_mapping *.  Use dev's lock and splay_tree.
6061         (lookup_dev): Use dev's lock.
6062         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
6063         (acc_is_present): Likewise.
6064         (acc_map_data): Likewise.
6065         (acc_unmap_data): Likewise.  Use dev's lock.
6066         (present_create_copy): Likewise.
6067         (delete_copyout): Pass dev to lookup_host instead of mem_map.
6068         (update_dev_host): Likewise.
6069         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
6070         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
6071         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
6072         (GOMP_OFFLOAD_get_table): Remove
6073         (GOMP_OFFLOAD_load_image): New function.
6074         (GOMP_OFFLOAD_unload_image): New function.
6075         * target.c (register_lock): New mutex for offload image registration.
6076         (num_devices): Do not guard with PLUGIN_SUPPORT.
6077         (gomp_realloc_unlock): New static function.
6078         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
6079         before gomp_fatal.
6080         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
6081         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
6082         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
6083         mem_map's.
6084         (gomp_unmap_vars): Likewise.
6085         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
6086         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
6087         (gomp_offload_image_to_device): New static function.
6088         (GOMP_offload_register): Add mutex lock.
6089         Call gomp_offload_image_to_device for all initialized devices.
6090         Replace gomp_realloc with gomp_realloc_unlock.
6091         (GOMP_offload_unregister): New function.
6092         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
6093         get_table_func from the plugin with calls to init_device_func and
6094         gomp_offload_image_to_device.
6095         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
6096         to splay_tree_s *.
6097         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
6098         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
6099         (GOMP_target_data): Do not call gomp_init_tables.
6100         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
6101         (gomp_load_plugin_for_device): Replace register_image and get_table
6102         with load_image and unload_image in DLSYM ().
6103         (gomp_register_images_for_device): Remove function.
6104         (gomp_target_init): Do not initialize current_device.mem_map.*,
6105         current_device.offload_regions_registered.
6106         Remove call to gomp_register_images_for_device.
6107         Do not free offload_images and num_offload_images.
6109 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
6111         PR fortran/65597
6112         * testsuite/libgomp.fortran/pr65597.f90: New test.
6114 2015-03-27  Tom de Vries  <tom@codesourcery.com>
6116         PR testsuite/65594
6117         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
6118         (init, check): New function.
6119         (foo): Change return type to void.
6120         (main): Call init and check.
6122 2015-03-27  Tom de Vries  <tom@codesourcery.com>
6124         PR testsuite/65594
6125         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
6126         (foo): Use M for non-inner loops to scale down test-case.
6128 2015-03-25  Kai Tietz  <ktietz@redhat.com>
6130         PR libgomp/64972
6131         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
6132         (GOACC_data_start): Likewise.
6133         * target.c (gomp_map_vars): Likewise.
6135 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
6137         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
6138         hppa*-*-hpux*.
6140 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
6142         * testsuite/libgomp.c/target-10.c: New test.
6143         * testsuite/libgomp.c++/target-4.C: New test.
6145 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
6147         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
6148         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
6150 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6152         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
6153         * configure.ac (*-*-rtems*): Assume Pthread is supported.
6154         (pthread.h): Check for this header file.
6155         * configure: Regenerate.
6157 2015-02-25  Tom de Vries  <tom@codesourcery.com>
6159         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
6160         (check_reduction_op, check_reduction_macro, max, min):
6161         Declare.
6162         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
6163         function.
6164         (main): Use new functions.
6166 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
6168         * target.c (gomp_load_plugin_for_device): Use const char * instead of
6169         char * for variables holding dlerror return values.
6170         (DLSYM_OPT): Ditto.
6172 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
6174         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
6176 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
6177             Cesar Philippidis  <cesar@codesourcery.com>
6179         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
6180         GOACC_ctaid, and GOACC_nctaid routines.
6182 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
6184         PR c/64824
6185         * testsuite/libgomp.c/atomic-18.c: New test.
6186         * testsuite/libgomp.c++/atomic-16.C: New test.
6188 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
6190         PR c/64824
6191         PR c/64868
6192         * testsuite/libgomp.c/pr64824.c: New test.
6193         * testsuite/libgomp.c/pr64868.c: New test.
6194         * testsuite/libgomp.c++/pr64824.C: New test.
6195         * testsuite/libgomp.c++/pr64868.C: New test.
6197 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
6199         PR libgomp/64635
6200         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
6201         Link with -lpthread.
6202         * config/aix/plugin-suffix.h: Delete.
6204 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
6206         PR libgomp/64635
6207         * configure.tgt (*-*-aix*): Use config_path "aix posix".
6208         (*-*-darwin*): Use config_path "bsd darwin posix".
6209         (*-*-hpux*): Use config_path "hpux posix".
6210         * target.c: Add include of plugin-suffix.h and use
6211         SONAME_SUFFIX macro.
6212         * config/aix/plugin-suffix.h: New file.
6213         * config/darwin/plugin-suffix.h: New file.
6214         * config/hpux/plugin-suffix.h: New file.
6215         * config/posix/plugin-suffix.h: New file.
6217 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
6219         PR middle-end/64734
6220         * libgomp.c/pr64734.c: New test.
6222 2015-01-23  Tom de Vries  <tom@codesourcery.com>
6224         PR libgomp/64672
6225         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
6227 2015-01-23  Tom de Vries  <tom@codesourcery.com>
6229         PR libgomp/64707
6230         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
6231         dg-options.
6233 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
6235         PR libgomp/64625
6236         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
6237         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
6238         formal parameter.  Update all users.
6239         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
6240         Document unused formal parameter.
6242 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
6244         * oacc-parallel.c: Don't include <alloca.h>.
6245         (GOACC_parallel): Use gomp_alloca instead of alloca.
6247 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
6249         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
6251 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
6252             James Norris  <jnorris@codesourcery.com>
6253             Tom de Vries  <tom@codesourcery.com>
6254             Julian Brown  <julian@codesourcery.com>
6255             Cesar Philippidis  <cesar@codesourcery.com>
6256             Nathan Sidwell  <nathan@codesourcery.com>
6257             Tobias Burnus  <burnus@net-b.de>
6259         * Makefile.am (search_path): Add $(top_srcdir)/../include.
6260         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
6261         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
6262         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
6263         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
6264         Include $(top_srcdir)/plugin/Makefrag.am.
6265         (nodist_libsubinclude_HEADERS): Add openacc.h.
6266         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
6267         openacc.f90, openacc.mod, openacc_kinds.mod.
6268         (omp_lib.mod): Generalize into...
6269         (%.mod): ... this new rule.
6270         (openacc_kinds.mod, openacc.mod): New rules.
6271         * plugin/configfrag.ac: New file.
6272         * configure.ac: Move plugin/offloading support into it.  Include
6273         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
6274         * plugin/Makefrag.am: New file.
6275         * testsuite/Makefile.am (OFFLOAD_TARGETS)
6276         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
6277         export.
6278         (libgomp-test-support.exp): New rule.
6279         (all-local): Depend on it.
6280         * Makefile.in: Regenerate.
6281         * testsuite/Makefile.in: Regenerate.
6282         * config.h.in: Likewise.
6283         * configure: Likewise.
6284         * configure.tgt: Harden shell syntax.
6285         * env.c: Include "oacc-int.h".
6286         (parse_acc_device_type): New function.
6287         (gomp_debug_var, goacc_device_type, goacc_device_num): New
6288         variables.
6289         (initialize_env): Initialize those.  Call
6290         goacc_runtime_initialize.
6291         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
6292         (gomp_fatal): Call gomp_vfatal.
6293         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
6294         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
6295         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
6296         (splay_tree_node, splay_tree, splay_tree_key)
6297         (struct target_mem_desc, struct splay_tree_key_s)
6298         (struct gomp_memory_mapping, struct acc_dispatch_t)
6299         (struct gomp_device_descr, gomp_acc_insert_pointer)
6300         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
6301         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
6302         (gomp_free_memmap, gomp_fini_device): New declarations.
6303         (gomp_vdebug, gomp_debug): New macros.
6304         Include "splay-tree.h".
6305         * libgomp.map (OACC_2.0): New symbol version.  Use for
6306         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
6307         acc_set_device_type_h_, acc_get_device_type,
6308         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
6309         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
6310         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
6311         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
6312         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
6313         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
6314         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
6315         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
6316         acc_copyin_array_h_, acc_present_or_copyin,
6317         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
6318         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
6319         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
6320         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
6321         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
6322         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
6323         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
6324         acc_update_device, acc_update_device_32_h_,
6325         acc_update_device_64_h_, acc_update_device_array_h_,
6326         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
6327         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
6328         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
6329         acc_is_present_64_h_, acc_is_present_array_h_,
6330         acc_memcpy_to_device, acc_memcpy_from_device,
6331         acc_get_current_cuda_device, acc_get_current_cuda_context,
6332         acc_get_cuda_stream, acc_set_cuda_stream.
6333         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
6334         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
6335         GOACC_update, GOACC_wait, GOACC_get_thread_num,
6336         GOACC_get_num_threads.
6337         (GOMP_PLUGIN_1.0): New symbol version.  Use for
6338         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
6339         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
6340         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
6341         GOMP_PLUGIN_acc_thread.
6342         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
6343         environment variable.
6344         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
6345         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
6346         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
6347         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
6348         (splay_tree_remove): New declarations.
6349         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
6350         (splay_tree_remove, splay_tree_lookup): Move into...
6351         * splay-tree.c: ... this new file.
6352         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
6353         (splay_tree_node, splay_tree, splay_tree_key)
6354         (struct target_mem_desc, struct splay_tree_key_s)
6355         (struct gomp_device_descr): Don't declare.
6356         (num_devices_openmp): New variable.
6357         (gomp_get_num_devices ): Use it.
6358         (gomp_init_targets_once): New function.
6359         (gomp_get_num_devices ): Use it.
6360         (get_kind, gomp_copy_from_async, gomp_free_memmap)
6361         (gomp_fini_device, gomp_register_image_for_device): New functions.
6362         (gomp_map_vars): Add devaddrs parameter.
6363         (gomp_update): Add mm parameter.
6364         (gomp_init_device): Move most of it into...
6365         (gomp_init_tables): ... this new function.
6366         (gomp_register_images_for_device): Remove function.
6367         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
6368         Make them hidden instead of static.
6369         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
6370         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
6371         (GOMP_target_end_data, GOMP_target_update)
6372         (gomp_load_plugin_for_device, gomp_target_init): Update for
6373         OpenACC changes.
6374         * oacc-async.c: New file.
6375         * oacc-cuda.c: Likewise.
6376         * oacc-host.c: Likewise.
6377         * oacc-init.c: Likewise.
6378         * oacc-int.h: Likewise.
6379         * oacc-mem.c: Likewise.
6380         * oacc-parallel.c: Likewise.
6381         * oacc-plugin.c: Likewise.
6382         * oacc-plugin.h: Likewise.
6383         * oacc-ptx.h: Likewise.
6384         * openacc.f90: Likewise.
6385         * openacc.h: Likewise.
6386         * openacc_lib.h: Likewise.
6387         * plugin/plugin-host.c: Likewise.
6388         * plugin/plugin-nvptx.c: Likewise.
6389         * libgomp-plugin.c: Likewise.
6390         * libgomp-plugin.h: Likewise.
6391         * libgomp_target.h: Remove file after merging content into the
6392         former file.  Update all users.
6393         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
6394         (offload_targets_s, offload_targets_s_openacc): New variables.
6395         (check_effective_target_openacc_nvidia_accel_present)
6396         (check_effective_target_openacc_nvidia_accel_selected): New
6397         procedures.
6398         (libgomp_init): Update for OpenACC changes.
6399         * testsuite/libgomp-test-support.exp.in: New file.
6400         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
6401         * testsuite/libgomp.oacc-c/c.exp: Likewise.
6402         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6403         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
6404         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
6405         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6406         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
6407         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
6408         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
6409         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
6410         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
6411         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6412         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
6413         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6414         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
6415         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
6416         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
6417         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
6418         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
6419         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
6420         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
6421         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
6422         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
6423         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6424         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6425         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6426         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6427         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6428         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6429         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6430         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6431         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
6432         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
6433         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
6434         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
6435         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6436         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6437         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6438         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
6439         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
6440         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
6441         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
6442         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6443         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6444         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6445         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
6446         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6447         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6448         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6449         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6450         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6451         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
6452         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6453         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6454         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6455         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6456         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6457         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6458         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6459         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
6460         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
6461         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
6462         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6463         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6464         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6465         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
6466         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
6467         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6468         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6469         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6470         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
6471         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6472         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6473         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6474         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
6475         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
6476         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6477         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6478         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
6479         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
6480         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
6481         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
6482         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6483         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6484         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6485         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
6486         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
6487         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6488         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6489         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
6490         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
6491         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
6492         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
6493         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6494         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6495         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6496         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6497         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
6498         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6499         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6500         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
6501         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
6502         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
6503         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6504         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
6505         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
6506         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
6507         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
6508         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
6509         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6510         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
6511         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
6512         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6513         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
6514         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
6515         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6516         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
6517         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
6518         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
6519         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
6520         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
6521         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
6522         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6523         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
6524         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
6525         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
6526         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
6527         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
6528         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
6529         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
6530         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
6531         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
6532         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6533         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
6534         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6535         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6536         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6537         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6538         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6539         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
6540         Likewise.
6541         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
6542         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
6543         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
6544         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
6545         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
6546         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
6547         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
6548         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6549         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6550         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6551         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
6552         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
6553         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
6554         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
6555         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6556         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
6557         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
6558         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
6559         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
6560         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
6561         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
6562         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
6563         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
6564         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
6565         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
6566         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
6567         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6568         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6569         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6570         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6571         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6572         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6573         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6574         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6575         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
6576         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
6577         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
6578         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
6579         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
6580         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
6581         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
6582         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
6583         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
6584         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
6585         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
6586         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
6587         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
6588         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
6589         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6590         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6591         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6592         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6593         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6594         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6595         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
6596         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
6597         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
6598         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
6599         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
6600         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
6602 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
6603             Julian Brown  <julian@codesourcery.com>
6604             David Malcolm  <dmalcolm@redhat.com>
6606         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
6607         to "GNU Offloading and Multi Processing Runtime Library".  Change
6608         all users.
6609         * configure: Regenerate.
6610         * libgomp.texi: Update.
6612 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
6614         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
6615         "$tgt_dir/lib32".
6616         * configure: Regenerate.
6618         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
6619         "intelmic" in $offload_targets.
6621 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
6623         Update copyright years.
6625         * libgomp.texi: Bump @copying's copyright year.
6627 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6629         * testsuite/lib/libgomp.exp: Load target-utils.exp.
6630         Move load of target-supportes.exp earlier.
6632 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
6634         * testsuite/libgomp.c/target-9.c: New test.
6636 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
6638         * config.h.in: Regenerate.
6639         * configure: Regenerate.
6640         * configure.ac: Add GCC_CHECK_EMUTLS.
6641         * libgomp.h: Add check for USE_EMUTLS: this case
6642         is equal to HAVE_TLS.
6643         * team.c: Likewise.
6645 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
6647         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
6649 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
6650             Ilya Verbin  <ilya.verbin@intel.com>
6652         * testsuite/libgomp.c/target-critical-1.c: New test.
6654 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
6656         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
6657         to dg-options unless expensive testing is on.
6658         (TESTITERS): Define to N if not defined.
6659         (main): Use TESTITERS instead of N.
6660         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
6661         dg-additional-options depending on whether expensive testing is on.
6662         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
6663         Decrease N to 100000 and CHUNKSZ to 10000.
6665 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
6667         PR fortran/63938
6668         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
6669         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
6671 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
6673         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
6675 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
6677         PR bootstrap/63784
6678         * configure: Regenerated.
6680 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
6682         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
6683         vect_simd_clones effective target.
6684         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
6686 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
6688         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
6689         of 32 as block_size.
6690         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
6691         instead of 32 as block_size.
6693 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
6694             Ilya Verbin  <ilya.verbin@intel.com>
6696         * Makefile.in: Regenerate.
6697         * configure: Regenerate.
6698         * configure.ac: Set up offload_additional_options,
6699         offload_additional_lib_paths and offload_targets.
6700         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
6701         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
6702         * testsuite/Makefile.in: Regenerate.
6703         * testsuite/lib/libgomp.exp (libgomp_init): Append
6704         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
6705         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
6706         build directory to LD_LIBRARY_PATH for intelmic offload targets.
6708 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
6709             Ilya Verbin  <ilya.verbin@intel.com>
6710             Kirill Yukhin  <kirill.yukhin@intel.com>
6711             Ilya Tocar  <ilya.tocar@intel.com>
6713         * testsuite/lib/libgomp.exp
6714         (check_effective_target_offload_device): New.
6715         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
6716         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
6717         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
6718         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
6719         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
6720         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
6721         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
6722         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
6723         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
6724         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
6725         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
6726         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
6727         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
6728         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
6729         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
6730         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
6731         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
6732         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
6733         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
6734         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
6735         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
6736         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
6737         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
6738         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
6739         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
6740         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
6741         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
6742         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
6743         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
6744         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
6745         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
6746         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
6747         * testsuite/libgomp.c/target-7.c: Fix test.
6748         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
6749         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
6750         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
6751         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
6752         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
6753         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
6754         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
6755         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
6756         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
6757         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
6758         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
6759         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
6760         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
6761         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
6762         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
6763         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
6764         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
6765         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
6766         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
6767         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
6768         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
6769         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
6770         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
6771         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
6772         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
6773         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
6774         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
6775         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
6776         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
6777         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
6778         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
6780 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
6781             Ilya Verbin  <ilya.verbin@intel.com>
6782             Thomas Schwinge  <thomas@codesourcery.com>
6783             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6785         * libgomp.map (GOMP_4.0.1): New symbol version.
6786         Add GOMP_offload_register.
6787         * libgomp_target.h: New file.
6788         * splay-tree.h: New file.
6789         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
6790         (gomp_target_init): New forward declaration.
6791         (gomp_is_initialized): New static variable.
6792         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
6793         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
6794         New structures.
6795         (offload_images, num_offload_images, devices, num_devices): New static
6796         variables.
6797         (splay_compare): New static function.
6798         (struct gomp_device_descr): New structure.
6799         (gomp_get_num_devices): Call gomp_target_init.
6800         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
6801         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
6802         (GOMP_offload_register): New function.
6803         (GOMP_target): Arrange for host callback to be performed in a separate
6804         initial thread and contention group, inheriting ICVs from
6805         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
6806         Add device initialization and lookup for target function in splay tree.
6807         (GOMP_target_data): Add device initialization and call gomp_map_vars.
6808         (GOMP_target_end_data): Call gomp_unmap_vars.
6809         (GOMP_target_update): Add device initialization and call gomp_update.
6810         (gomp_load_plugin_for_device, gomp_register_images_for_device)
6811         (gomp_target_init): New static functions.
6813 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
6814             Thomas Schwinge  <thomas@codesourcery.com>
6815             Ilya Verbin  <ilya.verbin@intel.com>
6816             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6818         * config.h.in: Regenerate.
6819         * configure: Regenerate.
6820         * configure.ac: Check for libdl, required for plugin support.
6821         (PLUGIN_SUPPORT): Define if plugins are supported.
6822         (enable_offload_targets): Support Intel MIC targets.
6823         (OFFLOAD_TARGETS): List of target names suitable for offloading.
6825 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6827         PR target/63610
6828         * configure: Regenerate.
6830 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6832         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
6834 2014-10-06  Marek Polacek  <polacek@redhat.com>
6836         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
6837         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
6838         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
6839         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6841 2014-10-06  Marek Polacek  <polacek@redhat.com>
6843         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
6844         * testsuite/libgomp.c/nqueens-1.c: Likewise.
6845         * testsuite/libgomp.c/pr26943-3.c: Likewise.
6846         * testsuite/libgomp.c/pr26943-4.c: Likewise.
6847         * testsuite/libgomp.c/pr36802-2.c: Likewise.
6848         * testsuite/libgomp.c/pr36802-3.c: Likewise.
6849         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
6850         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
6851         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
6852         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
6853         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
6854         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
6855         * testsuite/libgomp.c/omp-single-1.c: Likewise.
6856         * testsuite/libgomp.c/omp-single-2.c: Likewise.
6857         * testsuite/libgomp.c/omp_matvec.c: Likewise.
6858         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
6859         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
6860         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
6861         declarations.
6863 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
6865         PR libgomp/61200
6866         * testsuite/libgomp.c/pr61200.c: New test.
6868 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
6870         PR c++/63248
6871         * testsuite/libgomp.c++/pr63248.C: New test.
6873 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
6875         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
6876         is not zero, but taskgroup->children is NULL and there are
6877         any task->children, schedule those instead of waiting.
6878         * testsuite/libgomp.c/depend-6.c: New test.
6879         * testsuite/libgomp.c/depend-7.c: New test.
6880         * testsuite/libgomp.c/depend-8.c: New test.
6881         * testsuite/libgomp.c/depend-9.c: New test.
6882         * testsuite/libgomp.c/depend-10.c: New test.
6884 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
6886         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
6887         (struct gomp_taskwait): New type.
6888         (struct gomp_task): Add taskwait and parent_depends_on, remove
6889         in_taskwait and taskwait_sem fields.
6890         (gomp_finish_task): Don't destroy taskwait_sem.
6891         * task.c (gomp_init_task): Don't init in_taskwait, instead init
6892         taskwait and parent_depends_on.
6893         (GOMP_task): For if (0) tasks with depend clause that depend on
6894         earlier tasks don't defer them, instead call
6895         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
6896         Initialize redundant_out field, for redundant out entries just
6897         move them at the end of linked list instead of removing them
6898         completely, and set redundant_out flag instead of redundant.
6899         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
6900         that task.
6901         (gomp_task_run_post_handle_dependers): If parent is in
6902         gomp_task_maybe_wait_for_dependencies and newly runnable task
6903         is not parent_depends_on, queue it in parent->children linked
6904         list after all runnable tasks with parent_depends_on set.
6905         Adjust for addition of taskwait indirection.
6906         (gomp_task_run_post_remove_parent): If parent is in
6907         gomp_task_maybe_wait_for_dependencies and task to be removed
6908         is parent_depends_on, decrement n_depend and if needed awake
6909         parent.  Adjust for addition of taskwait indirection.
6910         (GOMP_taskwait): Adjust for addition of taskwait indirection.
6911         (gomp_task_maybe_wait_for_dependencies): New function.
6912         * testsuite/libgomp.c/depend-5.c: New test.
6914 2014-07-13  Tobias Burnus  <burnus@net-b.de>
6916         * testsuite/libgomp.fortran/pr34020.f90: Make compile
6917         with TS 18508/Fortran 2015.
6919 2014-07-06  Marek Polacek  <polacek@redhat.com>
6921         PR c/6940
6922         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
6924 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
6926         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
6927         matches regex $lang_source_re, add $lang_include_flags to options.
6928         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
6929         * testsuite/libgomp.c++/c++.exp: Likewise.
6930         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
6931         and lang_include_flags instead of adding -fintrinsic-modules-path= to
6932         ALWAYS_CFLAGS.
6933         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
6935 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
6937         * testsuite/libgomp.fortran/fortran.exp: Explain
6938         gfortran-dg-runtest usage.
6940 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
6942         * testsuite/libgomp.fortran/simd5.f90: New test.
6943         * testsuite/libgomp.fortran/simd6.f90: New test.
6944         * testsuite/libgomp.fortran/simd7.f90: New test.
6946 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
6948         * testsuite/libgomp.c/for-2.c: Define SC to static for
6949         #pragma omp for simd testing.
6950         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
6951         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
6952         SC macro.
6953         * testsuite/libgomp.c/simd-14.c: New test.
6954         * testsuite/libgomp.c/simd-15.c: New test.
6955         * testsuite/libgomp.c/simd-16.c: New test.
6956         * testsuite/libgomp.c/simd-17.c: New test.
6957         * testsuite/libgomp.c++/for-10.C: Define SC to static for
6958         #pragma omp for simd testing.
6959         * testsuite/libgomp.c++/simd10.C: New test.
6960         * testsuite/libgomp.c++/simd11.C: New test.
6961         * testsuite/libgomp.c++/simd12.C: New test.
6962         * testsuite/libgomp.c++/simd13.C: New test.
6964         * testsuite/libgomp.fortran/aligned1.f03: New test.
6965         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
6966         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
6967         tasks with !$omp parallel !$omp single.
6968         * testsuite/libgomp.fortran/target8.f90: New test.
6969         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
6970         not to use trim in the combiner, instead call elemental function.
6971         (fn): New elemental function.
6972         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
6973         Make elemental.
6974         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
6975         omp_in): Likewise.
6976         * testsuite/libgomp.fortran/udr12.f90: New test.
6977         * testsuite/libgomp.fortran/udr13.f90: New test.
6978         * testsuite/libgomp.fortran/udr14.f90: New test.
6979         * testsuite/libgomp.fortran/udr15.f90: New test.
6981 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
6983         * omp_lib.f90.in (openmp_version): Set to 201307.
6984         * omp_lib.h.in (openmp_version): Likewise.
6985         * testsuite/libgomp.c/target-8.c: New test.
6986         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
6987         and inbranch clauses.
6988         * testsuite/libgomp.fortran/depend-3.f90: New test.
6989         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
6990         openmp_version.
6991         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
6992         * testsuite/libgomp.fortran/target1.f90: New test.
6993         * testsuite/libgomp.fortran/target2.f90: New test.
6994         * testsuite/libgomp.fortran/target3.f90: New test.
6995         * testsuite/libgomp.fortran/target4.f90: New test.
6996         * testsuite/libgomp.fortran/target5.f90: New test.
6997         * testsuite/libgomp.fortran/target6.f90: New test.
6998         * testsuite/libgomp.fortran/target7.f90: New test.
7000 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
7002         PR fortran/60928
7003         * testsuite/libgomp.fortran/allocatable9.f90: New test.
7004         * testsuite/libgomp.fortran/allocatable10.f90: New test.
7005         * testsuite/libgomp.fortran/allocatable11.f90: New test.
7006         * testsuite/libgomp.fortran/allocatable12.f90: New test.
7007         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
7008         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
7009         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
7010         * testsuite/libgomp.fortran/associate1.f90: New test.
7011         * testsuite/libgomp.fortran/associate2.f90: New test.
7012         * testsuite/libgomp.fortran/procptr1.f90: New test.
7014 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
7016         * testsuite/libgomp.fortran/simd1.f90: New test.
7017         * testsuite/libgomp.fortran/udr1.f90: New test.
7018         * testsuite/libgomp.fortran/udr2.f90: New test.
7019         * testsuite/libgomp.fortran/udr3.f90: New test.
7020         * testsuite/libgomp.fortran/udr4.f90: New test.
7021         * testsuite/libgomp.fortran/udr5.f90: New test.
7022         * testsuite/libgomp.fortran/udr6.f90: New test.
7023         * testsuite/libgomp.fortran/udr7.f90: New test.
7024         * testsuite/libgomp.fortran/udr8.f90: New test.
7025         * testsuite/libgomp.fortran/udr9.f90: New test.
7026         * testsuite/libgomp.fortran/udr10.f90: New test.
7027         * testsuite/libgomp.fortran/udr11.f90: New test.
7029 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
7031         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
7032         vect_simd_clones effective target.
7033         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
7035 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
7037         PR middle-end/61252
7038         * testsuite/libgomp.c++/simd-9.C: New test.
7040 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
7042         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
7043         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
7044         texts according to their @menu entry positions.
7046 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
7048         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
7049         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
7050         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
7051         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
7052         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
7053         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
7054         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
7055         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
7056         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
7057         * testsuite/libgomp.fortran/depend-1.f90: New test.
7058         * testsuite/libgomp.fortran/depend-2.f90: New test.
7059         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
7060         * testsuite/libgomp.fortran/simd1.f90: New test.
7061         * testsuite/libgomp.fortran/simd2.f90: New test.
7062         * testsuite/libgomp.fortran/simd3.f90: New test.
7063         * testsuite/libgomp.fortran/simd4.f90: New test.
7064         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
7066 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
7068         * testsuite/libgomp.c/simd-10.c: New test.
7069         * testsuite/libgomp.c/simd-11.c: New test.
7070         * testsuite/libgomp.c/simd-12.c: New test.
7071         * testsuite/libgomp.c/simd-13.c: New test.
7073 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
7075         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
7076         atomic type clauses in any order and optional comma in between.
7077         * testsuite/libgomp.c++/atomic-15.C: Likewise.
7078         * testsuite/libgomp.c/atomic-17.c: Likewise.
7080         * testsuite/libgomp.c/simd-7.c: New test.
7081         * testsuite/libgomp.c/simd-8.c: New test.
7082         * testsuite/libgomp.c/simd-9.c: New test.
7083         * testsuite/libgomp.c/loop-16.c: New test.
7085 2014-04-02  Richard Henderson  <rth@redhat.com>
7087         * config/linux/futex.h (futex_wait): Get error value from errno.
7088         (futex_wake): Likewise.
7090 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
7092         PR c++/60331
7093         * testsuite/libgomp.c++/udr-11.C: New test.
7094         * testsuite/libgomp.c++/udr-12.C: New test.
7095         * testsuite/libgomp.c++/udr-13.C: New test.
7096         * testsuite/libgomp.c++/udr-14.C: New test.
7097         * testsuite/libgomp.c++/udr-15.C: New test.
7098         * testsuite/libgomp.c++/udr-16.C: New test.
7099         * testsuite/libgomp.c++/udr-17.C: New test.
7100         * testsuite/libgomp.c++/udr-18.C: New test.
7101         * testsuite/libgomp.c++/udr-19.C: New test.
7103 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
7105         Update copyright years
7107 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
7109         * hashtab.h: Use the standard form for the copyright notice.
7111 2014-01-02  Tobias Burnus  <burnus@net-b.de>
7113         * libgomp.texi: Bump @copying's copyright year.
7115 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
7117         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h inlcude. Replace
7118         alloca () with __builtin_alloca ().
7119         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
7120         * testsuite/libgomp.c/lock-3.c: Likewise.
7121         * testsuite/libgomp.c/pr48591.c: Likewise.
7123 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
7125         PR testsuite/59534
7126         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
7127         comparisons.
7129 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
7131         PR libgomp/58756
7132         * testsuite/libgomp.c/pr58756.c: New test.
7134 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
7136         PR libgomp/59467
7137         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
7138         !$omp parallel.
7140 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
7142         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
7143         ALWAYS_CFLAGS.
7144         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
7145         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
7146         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
7147         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
7148         Likewise.
7150         * libgomp_g.h: Include <stddef.h> for size_t.
7152         * libgomp.spec.in: Update comment about libgomp's dependencies.
7153         * configure.ac: Likewise.
7154         * configure: Regenerate.
7156 2013-10-16  Tobias Burnus  <burnus@net-b.de>
7158         * libgomp.texi: (Runtime Library Routines): Update references for
7159         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
7160         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
7161         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
7162         (Environment Variables): Update references for OpenMP 4.0. Add
7163         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
7164         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
7165         order.
7167 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
7169         * env.c (parse_bind_var): Initialize value to avoid
7170         (false positive) warning.
7172 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
7174         PR libgomp/58691
7175         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
7176         to check variable.
7177         (gomp_init_num_threads): Move i variable declaration into
7178         #ifdef CPU_ALLOC_SIZE block.
7179         * config/linux/affinity.c (gomp_affinity_init_level): Test
7180         gomp_places_list_len == 0 rather than gomp_places_list == 0
7181         when checking for topology reading error.
7182         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
7183         * env.c (parse_affinity): Add ignore argument, if true, don't populate
7184         gomp_places_list, only parse env var and always return false.
7185         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
7186         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
7187         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
7188         and either of these variables were parsed correctly into a places
7189         list.
7191 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
7192             Jakub Jelinek  <jakub@redhat.com>
7194         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
7195         of 5 loopfn matches.
7196         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7197         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7198         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7199         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7200         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7201         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7202         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7203         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7205 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
7207         * Makefile.am (omp_lib.mod): Streamline rule.
7208         * Makefile.in: Regenerate.
7210         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
7211         exceptions.
7213         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
7214         * testsuite/libgomp.fortran/lib1.f90: Likewise.
7215         * testsuite/libgomp.fortran/lib2.f: Likewise.
7216         * testsuite/libgomp.fortran/lib3.f: Likewise.
7218         * configure.ac: Typo fix.
7219         * configure: Regenerate.
7221         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
7222         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7224         * omp.h.in: Don't touch the user's namespace.
7226 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
7227             Tobias Burnus  <burnus@net-b.de>
7228             Richard Henderson  <rth@redhat.com>
7230         * target.c: New file.
7231         * Makefile.am (libgomp_la_SOURCES): Add target.c.
7232         * Makefile.in: Regenerated.
7233         * libgomp_g.h (GOMP_task): Add depend argument.
7234         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
7235         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
7236         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
7237         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
7238         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
7239         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
7240         GOMP_taskgroup_start, GOMP_taskgroup_end,
7241         GOMP_parallel_sections): New prototypes.
7242         * fortran.c (omp_is_initial_device): Add ialias_redirect.
7243         (omp_is_initial_device_): New function.
7244         (ULP, STR1, STR2, ialias_redirect): Removed.
7245         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
7246         omp_set_default_device_8_, omp_get_default_device_,
7247         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
7248         functions.
7249         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
7250         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
7251         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
7252         @@GOMP_4.0.
7253         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
7254         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
7255         omp_set_default_device, omp_set_default_device_,
7256         omp_set_default_device_8_, omp_get_default_device,
7257         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
7258         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
7259         omp_get_team_num_): Export @@OMP_4.0.
7260         * team.c (struct gomp_thread_start_data): Add place field.
7261         (gomp_thread_start): Clear thr->thread_pool and
7262         thr->task before returning.  Use gomp_team_barrier_wait_final
7263         instead of gomp_team_barrier_wait.  Initialize thr->place.
7264         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
7265         team_cancelled and task_queued_count fields.
7266         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
7267         before calling pthread_exit.
7268         (gomp_free_thread): No longer static.  Use
7269         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
7270         (gomp_team_start): Add flags argument.  Set
7271         thr->thread_pool->threads_busy to nthreads immediately after creating
7272         new pool.  Use gomp_managed_threads_lock instead of
7273         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
7274         (gomp_team_end): Use gomp_managed_threads_lock instead of
7275         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
7276         of gomp_team_barrier_wait.  If team->team_cancelled, call
7277         gomp_fini_worshare on ws chain starting at team->work_shares_to_free
7278         rather than thr->ts.work_share.
7279         (initialize_team): Don't call gomp_sem_init here.
7280         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
7281         caller.
7282         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
7283         * env.c (gomp_global_icv): Add default_device_var, target_data and
7284         bind_var initializers.
7285         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
7286         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
7287         gomp_places_list_len): New variables.
7288         (parse_bind_var, parse_one_place, parse_places_var): New functions.
7289         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
7290         sized places.
7291         (gomp_cancel_var): New global variable.
7292         (parse_int): New function.
7293         (handle_omp_display_env): New function.
7294         (initialize_env): Use it.  Initialize default_device_var.
7295         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
7296         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
7297         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
7298         been successfully parsed (and call gomp_init_affinity in that case).
7299         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7300         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7301         omp_get_team_num, omp_is_initial_device): New functions.
7302         * libgomp.h: Include stdlib.h.
7303         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
7304         Define.
7305         (struct target_mem_desc): Forward declare.
7306         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
7307         and thread_limit_var fields.
7308         (gomp_get_num_devices): New prototype.
7309         (gomp_cancel_var): New extern decl.
7310         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
7311         team_cancelled and task_queued_count fields.  Add comments about
7312         task_{,queued_,running_}count.
7313         (gomp_cancel_kind): New enum.
7314         (gomp_work_share_end_cancel): New prototype.
7315         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
7316         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
7317         and depend fields.
7318         (struct gomp_taskgroup): New type.
7319         (struct gomp_task_depend_entry,
7320         struct gomp_dependers_vec): New types.
7321         (gomp_finish_task): Free depend_hash if non-NULL.
7322         (struct gomp_team_state): Add place_partition_off
7323         and place_partition_len fields.
7324         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
7325         gomp_places_list_len): New extern decls.
7326         (struct gomp_thread): Add place field.
7327         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
7328         (gomp_init_thread_affinity): Add place argument.
7329         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7330         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7331         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7332         gomp_affinity_init_level, gomp_affinity_print_place): New
7333         prototypes.
7334         (gomp_team_start): Add flags argument.
7335         (gomp_thread_limit_var, gomp_remaining_threads_count,
7336         gomp_remaining_threads_lock): Remove.
7337         (gomp_managed_threads_lock): New variable.
7338         (struct gomp_thread_pool): Add threads_busy field.
7339         (gomp_free_thread): New prototype.
7340         * task.c: Include hashtab.h.
7341         (hash_entry_type): New typedef.
7342         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
7343         (gomp_init_task): Clear dependers, depend_hash, depend_count,
7344         copy_ctors_done and taskgroup fields.
7345         (GOMP_task): Add depend argument, handle depend clauses.  If
7346         gomp_team_barrier_cancelled or if it's taskgroup has been
7347         cancelled, don't queue or start new tasks.  Set copy_ctors_done
7348         field if needed.  Initialize taskgroup field.  If copy_ctors_done
7349         and already cancelled, don't discard the task.  If taskgroup is
7350         non-NULL, enqueue the task into taskgroup queue.  Increment
7351         num_children field in taskgroup.  Increment task_queued_count.
7352         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
7353         gomp_task_run_post_remove_taskgroup): New inline functions.
7354         (gomp_task_run_post_handle_depend_hash,
7355         gomp_task_run_post_handle_dependers,
7356         gomp_task_run_post_handle_depend): New functions.
7357         (GOMP_taskwait): Use them.  If more than one new tasks
7358         have been queued, wake other threads if needed.
7359         (gomp_barrier_handle_tasks): Likewise.  If
7360         gomp_team_barrier_cancelled, don't start any new tasks, just free
7361         all tasks.
7362         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
7363         * omp_lib.f90.in
7364         (omp_proc_bind_kind, omp_proc_bind_false,
7365         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
7366         omp_proc_bind_spread): New params.
7367         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7368         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7369         omp_get_team_num, omp_is_initial_device): New interfaces.
7370         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
7371         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
7372         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
7373         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
7374         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
7375         useless use omp_lib_kinds.
7376         * omp.h.in (omp_proc_bind_t): New typedef.
7377         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7378         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7379         omp_get_team_num, omp_is_initial_device): New prototypes.
7380         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
7381         through to gomp_team_start.
7382         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
7383         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
7384         Adjust gomp_parallel_loop_start callers.
7385         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
7386         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
7387         GOMP_loop_end_cancel): New functions.
7388         (GOMP_parallel_end): Add ialias_redirect.
7389         * hashtab.h: New file.
7390         * libgomp.texi (Environment Variables): Minor cleanup,
7391         update section refs to OpenMP 4.0rc2.
7392         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
7393         environment variables.
7394         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
7395         team->work_shares_to_free to thr->ts.work_share before calling
7396         free_work_share.
7397         (gomp_work_share_end_cancel): New function.
7398         * config/linux/proc.c: Include errno.h.
7399         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
7400         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
7401         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
7402         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
7403         gomp_cpuset_size is sizeof (cpu_set_t).
7404         (gomp_init_num_threads): Initialize gomp_cpuset_size,
7405         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
7406         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
7407         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
7408         contain any logical CPUs.
7409         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
7410         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
7411         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
7412         pthread_getaffinity_np.  Check gomp_places_list instead of
7413         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
7414         * config/linux/bar.c (gomp_barrier_wait_end,
7415         gomp_barrier_wait_last): Use BAR_* defines.
7416         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
7417         from state where needed.  Set work_share_cancelled to 0 on last
7418         thread.
7419         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
7420         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
7421         functions.
7422         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
7423         Add cpusetsize argument.
7424         (gomp_cpuset_size, gomp_cpusetp): Declare.
7425         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
7426         (affinity_counter): Remove.
7427         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
7428         if CPU_ALLOC_SIZE isn't defined.
7429         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
7430         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
7431         bind current thread to the first place.
7432         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
7433         pthread_setaffinity_np to gomp_places_list[place].
7434         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7435         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7436         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7437         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
7438         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
7439         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
7440         (gomp_barrier_t): Add awaited_final field.
7441         (gomp_barrier_init): Initialize awaited_final field.
7442         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
7443         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
7444         prototypes.
7445         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
7446         defines.
7447         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
7448         gomp_team_barrier_cancelled): New inline functions.
7449         (gomp_barrier_last_thread,
7450         gomp_team_barrier_set_task_pending,
7451         gomp_team_barrier_clear_task_pending,
7452         gomp_team_barrier_set_waiting_for_tasks,
7453         gomp_team_barrier_waiting_for_tasks,
7454         gomp_team_barrier_done): Use BAR_* defines.
7455         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
7456         (gomp_barrier_wait_end): Use BAR_* defines.
7457         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
7458         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
7459         Use BAR_* defines.
7460         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
7461         gomp_team_barrier_cancel): New functions.
7462         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
7463         argument.
7464         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
7465         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
7466         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
7467         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
7468         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
7469         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
7470         (gomp_barrier_t): Add cancellable field.
7471         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
7472         gomp_team_barrier_cancel): New prototypes.
7473         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
7474         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
7475         gomp_team_barrier_cancelled): New inline functions.
7476         (gomp_barrier_wait_start, gomp_barrier_last_thread,
7477         gomp_team_barrier_set_task_pending,
7478         gomp_team_barrier_clear_task_pending,
7479         gomp_team_barrier_set_waiting_for_tasks,
7480         gomp_team_barrier_waiting_for_tasks,
7481         gomp_team_barrier_done): Use BAR_* defines.
7482         * barrier.c (GOMP_barrier_cancel): New function.
7483         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
7484         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
7485         omp_proc_bind_spread): New params.
7486         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
7487         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
7488         omp_get_team_num, omp_is_initial_device): New externals.
7489         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
7490         New functions.
7491         (gomp_resolve_num_threads): Adjust for thread_limit now being in
7492         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
7493         infinity.  If not nested, just return minimum of max_num_threads
7494         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
7495         to the returned value.  Otherwise, don't update atomically
7496         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
7497         (GOMP_parallel_end): Adjust for thread_limit now being in
7498         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
7499         infinity.  Adjust threads_busy in the pool rather than
7500         gomp_remaining_threads_count.  Remember team->nthreads and call
7501         gomp_team_end before adjusting threads_busy, if not nested
7502         afterwards, just set it to 1 non-atomically.  Add ialias.
7503         (GOMP_parallel_start): Adjust gomp_team_start caller.
7504         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
7505         * testsuite/libgomp.c/affinity-1.c: New test.
7506         * testsuite/libgomp.c/atomic-15.c: New test.
7507         * testsuite/libgomp.c/atomic-16.c: New test.
7508         * testsuite/libgomp.c/atomic-17.c: New test.
7509         * testsuite/libgomp.c/cancel-for-1.c: New test.
7510         * testsuite/libgomp.c/cancel-for-2.c: New test.
7511         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
7512         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
7513         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
7514         * testsuite/libgomp.c/cancel-sections-1.c: New test.
7515         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
7516         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
7517         * testsuite/libgomp.c/depend-1.c: New test.
7518         * testsuite/libgomp.c/depend-2.c: New test.
7519         * testsuite/libgomp.c/depend-3.c: New test.
7520         * testsuite/libgomp.c/depend-4.c: New test.
7521         * testsuite/libgomp.c/for-1.c: New test.
7522         * testsuite/libgomp.c/for-1.h: New file.
7523         * testsuite/libgomp.c/for-2.c: New test.
7524         * testsuite/libgomp.c/for-2.h: New file.
7525         * testsuite/libgomp.c/for-3.c: New test.
7526         * testsuite/libgomp.c/pr58392.c: New test.
7527         * testsuite/libgomp.c/simd-1.c: New test.
7528         * testsuite/libgomp.c/simd-2.c: New test.
7529         * testsuite/libgomp.c/simd-3.c: New test.
7530         * testsuite/libgomp.c/simd-4.c: New test.
7531         * testsuite/libgomp.c/simd-5.c: New test.
7532         * testsuite/libgomp.c/simd-6.c: New test.
7533         * testsuite/libgomp.c/target-1.c: New test.
7534         * testsuite/libgomp.c/target-2.c: New test.
7535         * testsuite/libgomp.c/target-3.c: New test.
7536         * testsuite/libgomp.c/target-4.c: New test.
7537         * testsuite/libgomp.c/target-5.c: New test.
7538         * testsuite/libgomp.c/target-6.c: New test.
7539         * testsuite/libgomp.c/target-7.c: New test.
7540         * testsuite/libgomp.c/taskgroup-1.c: New test.
7541         * testsuite/libgomp.c/thread-limit-1.c: New test.
7542         * testsuite/libgomp.c/thread-limit-2.c: New test.
7543         * testsuite/libgomp.c/thread-limit-3.c: New test.
7544         * testsuite/libgomp.c/udr-1.c: New test.
7545         * testsuite/libgomp.c/udr-2.c: New test.
7546         * testsuite/libgomp.c/udr-3.c: New test.
7547         * testsuite/libgomp.c++/affinity-1.C: New test.
7548         * testsuite/libgomp.c++/atomic-10.C: New test.
7549         * testsuite/libgomp.c++/atomic-11.C: New test.
7550         * testsuite/libgomp.c++/atomic-12.C: New test.
7551         * testsuite/libgomp.c++/atomic-13.C: New test.
7552         * testsuite/libgomp.c++/atomic-14.C: New test.
7553         * testsuite/libgomp.c++/atomic-15.C: New test.
7554         * testsuite/libgomp.c++/cancel-for-1.C: New test.
7555         * testsuite/libgomp.c++/cancel-for-2.C: New test.
7556         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
7557         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
7558         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
7559         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
7560         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
7561         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
7562         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
7563         * testsuite/libgomp.c++/cancel-test.h: New file.
7564         * testsuite/libgomp.c++/for-9.C: New test.
7565         * testsuite/libgomp.c++/for-10.C: New test.
7566         * testsuite/libgomp.c++/for-11.C: New test.
7567         * testsuite/libgomp.c++/simd-1.C: New test.
7568         * testsuite/libgomp.c++/simd-2.C: New test.
7569         * testsuite/libgomp.c++/simd-3.C: New test.
7570         * testsuite/libgomp.c++/simd-4.C: New test.
7571         * testsuite/libgomp.c++/simd-5.C: New test.
7572         * testsuite/libgomp.c++/simd-6.C: New test.
7573         * testsuite/libgomp.c++/simd-7.C: New test.
7574         * testsuite/libgomp.c++/simd-8.C: New test.
7575         * testsuite/libgomp.c++/target-1.C: New test.
7576         * testsuite/libgomp.c++/target-2.C: New test.
7577         * testsuite/libgomp.c++/target-2-aux.cc: New file.
7578         * testsuite/libgomp.c++/target-3.C: New test.
7579         * testsuite/libgomp.c++/taskgroup-1.C: New test.
7580         * testsuite/libgomp.c++/udr-1.C: New test.
7581         * testsuite/libgomp.c++/udr-2.C: New test.
7582         * testsuite/libgomp.c++/udr-3.C: New test.
7583         * testsuite/libgomp.c++/udr-4.C: New test.
7584         * testsuite/libgomp.c++/udr-5.C: New test.
7585         * testsuite/libgomp.c++/udr-6.C: New test.
7586         * testsuite/libgomp.c++/udr-7.C: New test.
7587         * testsuite/libgomp.c++/udr-8.C: New test.
7588         * testsuite/libgomp.c++/udr-9.C: New test.
7590 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
7592         PR testsuite/57605
7593         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
7594         ALWAYS_CFLAGS.
7596 2013-09-20  Alan Modra  <amodra@gmail.com>
7598         * configure: Regenerate.
7600 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
7602         * testsuite/libgomp.c/sections-2.c: New test.
7604 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7606         * testsuite/libgomp.fortran/strassen.f90:
7607         Add dg-skip-if aarch64_tiny.
7609 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
7610             Cesar Philippidis  <cesar@codesourcery.com>
7612         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
7613         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
7614         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
7615         * testsuite/libgomp.fortran/fortran.exp: Likewise.
7616         * testsuite/libgomp.graphite/graphite.exp: Likewise.
7617         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
7618         Use dg-runtest rather than gfortran-dg-runtest.
7620 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
7622         * testsuite/libgomp.c/icv-2.c: Extend current handling of
7623         Linux-based x86 systems to cover all GNU systems.
7624         * testsuite/libgomp.c/lock-3.c: Likewise.
7625         * testsuite/libgomp.c/pr48591.c: Likewise.
7627 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
7629         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
7630         GNU/Hurd, as done for Linux-based systems.
7632         * config/posix/ptrlock.h: Fix comment.
7634 2013-05-27  Tobias Burnus  <burnus@net-b.de>
7636         PR fortran/57423
7637         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
7638         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
7639         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
7640         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
7641         omp_destroy_nest_lock): Correct arguments to match the one in
7642         the OpenMP spec.
7643         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
7644         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
7645         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
7646         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
7648 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
7650         * testsuite/libgomp.c/loop-13.c: New test.
7651         * testsuite/libgomp.c/loop-14.c: New test.
7652         * testsuite/libgomp.c/loop-15.c: New test.
7653         * testsuite/libgomp.c++/loop-13.C: New test.
7654         * testsuite/libgomp.c++/loop-14.C: New test.
7655         * testsuite/libgomp.c++/loop-15.C: New test.
7657 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
7659         PR middle-end/56217
7660         * testsuite/libgomp.c++/pr56217.C: New test.
7662 2013-02-01  Alan Modra  <amodra@gmail.com>
7664         * task.c (GOMP_task, GOMP_taskwait): Comment.
7666 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
7667             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
7669         PR libgomp/55561
7670         * config/linux/wait.h (do_spin): Use atomic load for addr.
7671         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
7672         for intptr and ptrlock.
7673         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
7674         for ptrlock.
7676 2013-01-22  Alan Modra  <amodra@gmail.com>
7678         PR libgomp/51376
7679         PR libgomp/56073
7680         * task.c (GOMP_task): Revert 2011-12-09 change.
7681         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
7682         barrier to read task->children..
7683         (gomp_barrier_handle_tasks): ..and matching atomic store with
7684         release barrier here when setting parent->children to NULL.
7686 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
7687             Tobias Burnus  <burnus@net-b.de>
7689         PR driver/55884
7690         * testsuite/libgomp.fortran/fortran.exp: Use
7691         -fintrinsic-modules-path= instead of
7692         -fintrinsic-modules-path.
7694 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
7696         Update copyright years.
7698 2012-12-19  Tobias Burnus  <burnus@net-b.de>
7700         * testsuite/libgomp.fortran/fortran.exp: Set
7701         -fintrinsic-modules-path.
7703 2012-12-19  Tobias Burnus  <burnus@net-b.de>
7705         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
7706         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
7708 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
7710         PR libgomp/55411
7711         * team.c (gomp_free_thread): Decrease gomp_managed_threads
7712         if pool had any threads_used.
7714 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
7716         * testsuite/libgomp.c++/pr24455.C: Use
7717         -Wl,-undefined,dynamic_lookup on darwin.
7719 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
7721         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
7723 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
7725         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
7727 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
7728             Jim MacArthur  <jim.macarthur@arm.com>
7729             Marcus Shawcroft  <marcus.shawcroft@arm.com>
7730             Nigel Stephens  <nigel.stephens@arm.com>
7731             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7732             Richard Earnshaw  <rearnsha@arm.com>
7733             Sofiane Naci  <sofiane.naci@arm.com>
7734             Stephen Thomas  <stephen.thomas@arm.com>
7735             Tejas Belagod  <tejas.belagod@arm.com>
7736             Yufeng Zhang  <yufeng.zhang@arm.com>
7738         * configure.tgt: Add AArch64.
7740 2012-10-04  Jason Merrill  <jason@redhat.com>
7742         * testsuite/libgomp.c++/tls-init1.C: New.
7744 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
7746         * configure: Regenerated.
7748 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
7750         * config/linux/mips/futex.h (sys_futex0): Change to static
7751         function with noinline, nomips16 attributes under MIPS16. Adjust
7752         asm statement to place 'li v0,SYS_futex' immediately before
7753         syscall insn.
7755 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
7757         * libgomp.texi (Library Index): Renamed from "Index" to prevent
7758         conflict with index.html on case-insensitive file systems.
7760 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
7762         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
7763         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
7765 2012-07-02  Richard Guenther  <rguenther@suse.de>
7766             Michael Matz  <matz@suse.de>
7767             Tobias Grosser <tobias@grosser.es>
7768             Sebastian Pop <sebpop@gmail.com>
7770         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
7771         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7772         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7773         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7775 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
7777         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
7779 2012-06-22  Richard Guenther  <rguenther@suse.de>
7781         Merge from graphite branch
7782         2012-01-13  Tobias Grosser  <tobias@grosser.es>
7784         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
7785         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7787 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
7789         PR middle-end/53580
7790         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
7791         use GOMP_barrier () call instead.
7792         * testsuite/libgomp.c/pr26943-3.c: Likewise.
7793         * testsuite/libgomp.c/pr26943-4.c: Likewise.
7794         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
7795         call GOMP_barrier instead.
7796         * testsuite/libgomp.fortran/vla5.f90: Likewise.
7798 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
7800         PR libgomp/52993
7801         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
7802         argument to memset call.
7804 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
7806         * configure: Regenerated.
7808 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7810         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
7812 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
7814         PR bootstrap/52812
7815         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
7817 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
7819         PR middle-end/52547
7820         * testsuite/libgomp.c/pr52547.c: New test.
7822 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7824         * testsuite/lib/libgomp.exp: load fortran-modules.exp
7826 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7828         * configure.tgt (mips-sgi-irix6*): Remove.
7830 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7832         * configure.tgt (alpha*-dec-osf*): Remove.
7834         * config/osf/sem.h: Remove.
7835         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
7837 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
7839         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
7841 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7843         PR libstdc++/52188
7844         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
7845         Remove ENABLE_SYMVERS_SOL2.
7846         * configure: Regenerate.
7847         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
7848         (PREPROCESS): New variable.
7849         (libgomp.ver): New target.
7850         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
7851         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
7852         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
7853         Use libgomp.ver.
7854         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
7855         * Makefile.in: Regenerate.
7857 2012-02-14  Walter Lee  <walt@tilera.com>
7859         * configure.tgt: Handle tilegx and tilepro.
7860         * config/linux/tile/futex.h: New file.
7862 2012-02-08  Richard Guenther  <rguenther@suse.de>
7864         PR tree-optimization/46886
7865         * testsuite/libgomp.c/pr46886.c: New testcase.
7867 2012-01-25  Matthias Klose  <doko@ubuntu.com>
7869         * config/linux/arm: Remove empty directory.
7870         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
7872 2011-12-09  Alan Modra  <amodra@gmail.com>
7874         PR libgomp/51376
7875         * task.c (GOMP_taskwait): Don't access task->children outside of
7876         task_lock mutex region.
7877         (GOMP_task): Likewise.
7879 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
7881         PR libgomp/51132
7882         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
7883         to file scope.
7884         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7885         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7886         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7887         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7888         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7890 2011-12-02  Alan Modra  <amodra@gmail.com>
7892         * config/linux/affinity.c: Use atomic rather than sync builtin.
7893         * config/linux/lock.c: Likewise.
7894         * config/linux/ptrlock.h: Likewise.
7895         * config/linux/ptrlock.c: Likewise.
7896         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
7897         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
7898         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
7899         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
7900         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
7901         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
7902         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
7903         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
7904         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
7905         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
7907 2011-11-30  Alan Modra  <amodra@gmail.com>
7909         PR libgomp/51298
7910         * config/linux/bar.h: Use atomic rather than sync builtins.
7911         * config/linux/bar.c: Likewise.  Add missing acquire
7912         synchronisation on generation field.
7913         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
7914         double unlock.
7916 2011-11-30  Alan Modra  <amodra@gmail.com>
7918         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
7919         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
7920         * config/linux/mutex.h: Use atomic rather than sync builtins.
7921         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
7922         * config/linux/omp-lock.h: Comment fix.
7923         * config/linux/arm/mutex.h: Delete.
7924         * config/linux/powerpc/mutex.h: Delete.
7925         * config/linux/ia64/mutex.h: Delete.
7926         * config/linux/mips/mutex.h: Delete.
7928 2011-11-30  Alan Modra  <amodra@gmail.com>
7930         PR libgomp/51249
7931         * config/linux/sem.h: Rewrite.
7932         * config/linux/sem.c: Rewrite.
7934 2011-11-28  Richard Henderson  <rth@redhat.com>
7936         * libgomp.h (enum memmodel): New.
7938 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
7940         * configure: Regenerate.
7942 2011-10-10  Matthias Klose  <doko@ubuntu.com>
7944         * config/posix95: Remove empty directory.
7946 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
7948         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
7950 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
7952         PR fortran/49792
7953         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
7954         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
7956 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7958         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
7960 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7962         PR libgomp/49965
7963         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
7965 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
7967         * config/linux/proc.h: New.
7968         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
7969         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
7970         (gomp_init_num_threads): Update call to cpuset_popcount.
7971         (get_num_procs): Ditto.
7972         * config/linux/affinity.c (gomp_init_affinity): Call
7973         gomp_cpuset_popcount.
7975 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
7977         PR fortran/42041
7978         PR fortran/46752
7979         * omp.h.in (omp_in_final): New prototype.
7980         * omp_lib.f90.in (omp_in_final): New interface.
7981         (omp_integer_kind, omp_logical_kind): Remove
7982         and replace all its uses in the module with 4.
7983         (openmp_version): Change to 201107.
7984         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
7985         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
7986         kind for the parameters.
7987         (omp_in_final): New external.
7988         (openmp_version): Change to 201107.
7989         * task.c (omp_in_final): New function.
7990         (gomp_init_task): Initialize final_task.
7991         (GOMP_task): Remove unused attribute from flags.  Handle final
7992         tasks.
7993         (GOMP_taskyield): New function.
7994         (omp_in_final): Return true if if (false) or final (true) task
7995         or descendant of final (true).
7996         * fortran.c (omp_in_final_): New function.
7997         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
7998         (GOMP_3.0): Export GOMP_taskyield.
7999         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
8000         variables.
8001         (parse_unsigned_long_list): New function.
8002         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
8003         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
8004         even if parse_affinity returned false.
8005         * config/linux/affinity.c (gomp_init_affinity): Handle
8006         gomp_cpu_affinity_len == 0.
8007         * libgomp_g.h (GOMP_taskyield): New prototype.
8008         * libgomp.h (struct gomp_task): Add final_task field.
8009         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
8010         * team.c (gomp_team_start): Override new task's nthreads_var icv
8011         if list form OMP_NUM_THREADS has been used and it has value for
8012         the new nesting level.
8014         * testsuite/libgomp.c/atomic-11.c: New test.
8015         * testsuite/libgomp.c/atomic-12.c: New test.
8016         * testsuite/libgomp.c/atomic-13.c: New test.
8017         * testsuite/libgomp.c/atomic-14.c: New test.
8018         * testsuite/libgomp.c/reduction-6.c: New test.
8019         * testsuite/libgomp.c/task-5.c: New test.
8020         * testsuite/libgomp.c++/atomic-2.C: New test.
8021         * testsuite/libgomp.c++/atomic-3.C: New test.
8022         * testsuite/libgomp.c++/atomic-4.C: New test.
8023         * testsuite/libgomp.c++/atomic-5.C: New test.
8024         * testsuite/libgomp.c++/atomic-6.C: New test.
8025         * testsuite/libgomp.c++/atomic-7.C: New test.
8026         * testsuite/libgomp.c++/atomic-8.C: New test.
8027         * testsuite/libgomp.c++/atomic-9.C: New test.
8028         * testsuite/libgomp.c++/task-8.C: New test.
8029         * testsuite/libgomp.c++/reduction-4.C: New test.
8030         * testsuite/libgomp.fortran/allocatable7.f90: New test.
8031         * testsuite/libgomp.fortran/allocatable8.f90: New test.
8032         * testsuite/libgomp.fortran/crayptr3.f90: New test.
8033         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
8034         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
8035         * testsuite/libgomp.fortran/pointer1.f90: New test.
8036         * testsuite/libgomp.fortran/pointer2.f90: New test.
8037         * testsuite/libgomp.fortran/task4.f90: New test.
8039 2011-08-02  Tobias Burnus  <burnus@net-b.de>
8041         * libgomp.texi: Update OpenMP spec references to 3.1.
8042         (omp_in_final,OMP_PROC_BIND): New sections.
8043         (OMP_NUM_THREADS): Document that the value can be now a list.
8044         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
8046 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
8048         * config/linux/x86/futex.h: Check __x86_64__ instead of
8049         __LP64__.
8051 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
8053         PR middle-end/49897
8054         PR middle-end/49898
8055         * testsuite/libgomp.c/pr49897-1.c: New test.
8056         * testsuite/libgomp.c/pr49897-2.c: New test.
8057         * testsuite/libgomp.c/pr49898-1.c: New test.
8058         * testsuite/libgomp.c/pr49898-2.c: New test.
8060 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
8062         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
8063         for ia32 instead of ilp32.
8065         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
8066         * testsuite/libgomp.c/atomic-6.c: Likewise.
8068 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
8070         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
8071         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
8073 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8075         PR libgomp/45351
8076         * config/osf/sem.h: New file.
8077         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
8079 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8081         PR target/49541
8082         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
8083         ldflags.
8085 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
8087         * config/linux/wait.h (do_spin): New inline, largely copied
8088         from do_wait, just don't do futex_wait here, instead return true if
8089         it should be done.
8090         (do_wait): Implement using do_spin.
8091         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
8092         to prototype.
8093         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
8094         __sync_bool_compare_and_swap, pass the oldval to
8095         gomp_mutex_lock_slow.
8096         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
8097         If all mutex contenders are just spinning and not sleeping, don't
8098         change state to 2 unnecessarily.  Optimize the loop when state has
8099         already become 2 to use just one atomic operation per loop instead
8100         of two.
8101         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
8102         to prototype.
8103         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
8104         __sync_bool_compare_and_swap, pass the oldval to
8105         gomp_mutex_lock_slow.
8107 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
8109         PR libgomp/49490
8110         * iter.c (gomp_iter_static_next): For chunk size 0
8111         only use n ceil/ nthreads size for the first
8112         n % nthreads threads in the team instead of
8113         all threads except for the last few ones which
8114         get less work or none at all.
8115         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
8116         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
8117         chunk argument, set run_sched_modifier to 0 for static
8118         resp. 1 for other kinds.  If chunk argument is 0
8119         and not static, set value to 1.
8121 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
8123         PR c++/49043
8124         * testsuite/libgomp.c++/pr49043.C: New test.
8126         PR c++/48869
8127         * testsuite/libgomp.c++/pr48869.C: New test.
8129 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
8131         PR fortran/48894
8132         * fortran.c: Include limits.h.
8133         (TO_INT): Define.
8134         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
8135         *set.
8136         (omp_set_num_threads_8_, omp_set_schedule_8_,
8137         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
8138         omp_get_team_size_8_): Use TO_INT macro.
8139         * testsuite/libgomp.fortran/pr48894.f90: New test.
8141 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
8143         PR middle-end/48591
8144         * testsuite/libgomp.c/pr48591.c: New test.
8146 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8148         PR bootstrap/48135
8149         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
8150         * configure: Regenerate.
8152 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
8154         PR fortran/47886
8155         * testsuite/libgomp.fortran/task3.f90: New test.
8157 2011-02-24  Tobias Burnus  <burnus@net-b.de>
8159         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
8161 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
8163         PR libgomp/47854
8164         * libgomp.texi (omp_get_wtime): Don't say time in the past
8165         must be Unix Epoch.
8167 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
8169         PR libgomp/47804
8170         * testsuite/libgomp.fortran/fortran.exp: Check for both
8171         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
8172         but $blddir != "", still append ${blddir}/${lang_library_path}
8173         to ld_library_path.
8175 2011-02-16  Tobias Burnus  <burnus@net-b.de>
8177         PR libgomp/47758
8178         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
8179         of libquadmath.a before adding its libpath to ldflags.
8181 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
8183         PR libgomp/47731
8184         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
8185         to FUTEX_WAIT futex syscall.
8186         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
8188 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8190         * configure: Regenerate.
8192 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
8194         PR libstdc++/36104
8195         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
8197 2011-01-16  Gerald Pfeifer
8199         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
8201 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
8203         PR fortran/46874
8204         * libgomp.fortran/allocatable6.f90: New test.
8206 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8208         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
8209         * configure: Regenerate.
8211 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
8213         PR target/40125
8214         PR lto/46695
8215         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
8216         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
8217         * aclocal.m4: Regenerate.
8218         * configure: Regenerate.
8219         * Makefile.in: Regenerate.
8220         * testsuite/Makefile.in: Regenerate.
8222 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
8224         PR fortran/46753
8225         * libgomp.fortran/pr46753.f90: New test.
8227         PR libgomp/43706
8228         * env.c (initialize_env): Default to spin count 300000
8229         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
8230         is specified.
8232         PR libgomp/45240
8233         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
8234         at the end if sync builtins aren't supported.
8236 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8238         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
8240 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8242         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
8244 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
8246         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
8248 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8249             Tobias Burnus  <burnus@net-b.de>
8251         PR fortran/32049
8252         * configure.ac:
8253         * configure: Regenerate.
8255 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
8257         * config/linux/futex.h: New.
8258         * config/linux/arm/mutex.h: New.
8259         * configure.tgt (arm*-*-linux*): Add config path.
8261 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
8263         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8265 2010-09-23  Tobias Burnus  <burnus@net-b.de>
8267         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
8268         Change Fortran datatype to LOGICAL.
8269         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
8270         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
8272 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8274         * configure: Regenerate.
8276 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
8278         * libgomp.texi: Add function keyword to a couple of Fortran
8279         interfaces, use integer instead of int for Fortran.
8281 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
8283         * libgomp.texi: Fix spelling and pasto problems throughout.
8284         Adjust prototypes to match code.
8286 2010-07-24  Tobias Burnus  <burnus@net-b.de>
8288         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
8289         silence -fwhole-file warning.
8291 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8293         * configure.tgt (*-*-solaris2.[56]*): Removed.
8295 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8297         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
8298         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
8299         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
8300         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
8301         targetting solaris2*.
8302         * configure: Regenerate.
8303         * config.h.in: Regenerate.
8305         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
8306         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
8307         Add libgomp_version_dep.
8308         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
8309         versioning.
8310         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
8311         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
8312         * Makefile.in: Regenerate.
8314         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
8315         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
8316         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
8317         to common block, protected by
8318         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
8320 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
8322         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
8324 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
8326         PR bootstrap/43170
8327         * configure: Regenerate.
8329 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8331         PR other/43620
8332         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
8333         * configure: Regenerate.
8334         * Makefile.in: Regenerate.
8335         * testsuite/Makefile.in: Regenerate.
8337 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
8339         PR c/43893
8340         * testsuite/libgomp.c/pr43893.c: New test.
8341         * testsuite/libgomp.c++/pr43893.C: New test.
8343 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
8345         PR middle-end/43570
8346         * testsuite/libgomp.fortran/vla8.f90: New test.
8348 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
8350         PR libgomp/43706
8351         * config/linux/affinity.c (gomp_init_affinity): Decrease
8352         gomp_available_cpus if affinity mask confines the process to fewer
8353         CPUs.
8354         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
8355         non-NULL, just return gomp_available_cpus.
8357         PR libgomp/43569
8358         * sections.c (gomp_sections_init): Initialize ws->mode.
8360 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
8362         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
8363         not unused bar variable.
8364         * configure: Regenerate.
8366 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8368         * Makefile.in: Regenerate.
8369         * aclocal.m4: Regenerate.
8370         * testsuite/Makefile.in: Regenerate.
8372 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
8374         PR libgomp/42942
8375         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
8376         (initialize_env): Adjust callers.
8377         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
8378         when the argument is 0.
8380         * testsuite/libgomp.c/pr42942.c: New test.
8382 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
8384         PR middle-end/42644
8385         PR middle-end/42130
8386         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
8387         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
8389 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8391         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
8392         * testsuite/libgomp.c++/task-6.C: Likewise.
8394 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
8396         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
8398 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
8400         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
8401         * configure: Regenerate.
8403 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
8405         PR fortran/42866
8406         * testsuite/libgomp.fortran/allocatable5.f90: New test.
8408 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
8410         * configure.ac: Test for executability of GFORTRAN.
8411         * configure: Regenerate.
8413 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8415         * configure: Regenerate.
8417 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
8419         PR libgomp/42602
8420         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
8422 2010-01-03  Richard Guenther  <rguenther@suse.de>
8424         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
8426 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
8428         * testsuite/libgomp.graphite/pr4118.c: New.
8430 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
8432         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
8433         for darwin, protect the test with require-effective-target tls_runtime.
8434         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
8436 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
8438         PR target/41605
8439         * testsuite/lib/libgomp.exp: Provide -B options to allow for
8440         link spec %s substitutions for static libraries.
8442 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
8444         PR testsuite/42135
8445         * libgomp.graphite/force-parallel-2.c: Reduce array size.
8447 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8449         * Makefile.in: Regenerate.
8450         * configure: Regenerate.
8451         * testsuite/Makefile.in: Regenerate.
8453 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
8455         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
8456         settings for LC_ALL and LANG.
8458 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
8460         PR fortran/42162
8461         * testsuite/libgomp.fortran/pr42162.f90: New test.
8463 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
8465         PR middle-end/42029
8466         * testsuite/libgomp.c/pr42029.c: New test.
8468 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
8470         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
8471         *s.  Accept ld version without text in ()s.
8472         * configure: Regenerated.
8474 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
8476         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
8478 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8480         PR libgomp/41418
8481         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
8482         or a hyphen (happens with fortran language disabled).
8483         * configure: Regenerate.
8485 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8487         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
8488         use sed script portable to Solaris /bin/sed for extracting ld
8489         version.
8490         * configure: Regenerate.
8492 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
8494         * testsuite/libgomp.graphite/bounds.c: New test.
8496 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8498         * Makefile.am (libgomp_la_LINK): New.
8499         * Makefile.in: Regenerate.
8501 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8503         * configure.ac (AC_PREREQ): Bump to 2.64.
8505 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8507         * Makefile.am (install-html, install-pdf): Remove.
8508         * Makefile.in: Regenerate.
8510         * Makefile.in: Regenerate.
8511         * aclocal.m4: Regenerate.
8512         * config.h.in: Regenerate.
8513         * configure: Regenerate.
8514         * testsuite/Makefile.in: Regenerate.
8516 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8518         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
8519         * Makefile.in: Regenerate.
8521 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
8523         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
8524         * Makefile.in: Regenerate.
8526 2009-08-19  Tobias Burnus  <burnus@net-b.de>
8528         PR fortran/41102
8529         omp_lib.h.in: Fix -std=f95 errors.
8531 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
8533         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
8534         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
8535         * testsuite/libgomp.graphite/graphite.exp: New.
8537 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
8539         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
8540         only build.
8542 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
8544         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
8545         needed memory barrier semantics.
8546         * config/linux/mips/mutex.h: New file.
8548 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8550         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
8552 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
8554         * configure: Regenerate.
8556 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
8558         PR testsuite/40699
8559         PR testsuite/40707
8560         PR testsuite/40709
8561         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
8562         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
8563         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
8565 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
8567         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
8568         options when choosing a multilib.
8570 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
8572         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
8573         ld_library_path.  Use add_path.  Add just find_libgcc_s to
8574         ld_library_path, not every libgcc multilib directory.
8575         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
8576         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
8577         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
8578         Use add_path.
8579         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
8581 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
8583         * Makefile.am (LTLDFLAGS): Define.
8584         (LINK): Define.
8585         * Makefile.in: Regenerate.
8587 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
8589         PR fortran/39718
8590         * testsuite/libgomp.fortran/fortran.exp: Don't link with
8591         libgfortranbegin, check existence of libgfortran.a instead of
8592         libgfortranbegin.a.
8594 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
8596         PR libgomp/40174
8597         * team.c (gomp_thread_start): Destroy thr->release semaphore.
8598         (gomp_free_pool_helper): Likewise.
8600 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
8601             Jakub Jelinek  <jakub@redhat.com>
8603         PR fortran/35423
8604         * testsuite/libgomp.fortran/workshare2.f90: New test.
8606 2009-04-09  Nick Clifton  <nickc@redhat.com>
8608         * iter.c: Change copyright header to refer to version 3 of the
8609         GNU General Public License with version 3.1 of the GCC Runtime
8610         Library Exception and to point readers at the COPYING3 and
8611         COPYING3.RUNTIME files and the FSF's license web page.
8612         * alloc.c: Likewise.
8613         * barrier.c: Likewise.
8614         * config/bsd/proc.c: Likewise.
8615         * config/linux/affinity.c: Likewise.
8616         * config/linux/alpha/futex.h: Likewise.
8617         * config/linux/bar.c: Likewise.
8618         * config/linux/bar.h: Likewise.
8619         * config/linux/ia64/futex.h: Likewise.
8620         * config/linux/ia64/mutex.h: Likewise.
8621         * config/linux/lock.c: Likewise.
8622         * config/linux/mips/futex.h: Likewise.
8623         * config/linux/mutex.c: Likewise.
8624         * config/linux/mutex.h: Likewise.
8625         * config/linux/powerpc/futex.h: Likewise.
8626         * config/linux/proc.c: Likewise.
8627         * config/linux/ptrlock.c: Likewise.
8628         * config/linux/ptrlock.h: Likewise.
8629         * config/linux/s390/futex.h: Likewise.
8630         * config/linux/sem.c: Likewise.
8631         * config/linux/sem.h: Likewise.
8632         * config/linux/sparc/futex.h: Likewise.
8633         * config/linux/wait.h: Likewise.
8634         * config/linux/x86/futex.h: Likewise.
8635         * config/mingw32/proc.c: Likewise.
8636         * config/mingw32/time.c: Likewise.
8637         * config/posix/affinity.c: Likewise.
8638         * config/posix/bar.c: Likewise.
8639         * config/posix/bar.h: Likewise.
8640         * config/posix/lock.c: Likewise.
8641         * config/posix/mutex.h: Likewise.
8642         * config/posix/proc.c: Likewise.
8643         * config/posix/ptrlock.h: Likewise.
8644         * config/posix/sem.c: Likewise.
8645         * config/posix/sem.h: Likewise.
8646         * config/posix/time.c: Likewise.
8647         * config/posix95/lock.c: Likewise.
8648         * critical.c: Likewise.
8649         * env.c: Likewise.
8650         * error.c: Likewise.
8651         * fortran.c: Likewise.
8652         * iter_ull.c: Likewise.
8653         * libgomp.h: Likewise.
8654         * libgomp_f.h.in: Likewise.
8655         * libgomp_g.h: Likewise.
8656         * loop.c: Likewise.
8657         * loop_ull.c: Likewise.
8658         * omp.h.in: Likewise.
8659         * omp_lib.f90.in: Likewise.
8660         * omp_lib.h.in: Likewise.
8661         * ordered.c: Likewise.
8662         * parallel.c: Likewise.
8663         * sections.c: Likewise.
8664         * single.c: Likewise.
8665         * task.c: Likewise.
8666         * team.c: Likewise.
8667         * work.c: Likewise.
8669 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
8671         * testsuite/config/default.exp: Change copyright header to refer to
8672         version 3 of the GNU General Public License and to point readers
8673         at the COPYING3 file and the FSF's license web page.
8675 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
8677         PR middle-end/39573
8678         * libgomp.c++/pr39573.C: New test.
8680 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
8682         PR other/39591
8683         * testsuite/libgomp.c/pr39591-1.c: New test.
8684         * testsuite/libgomp.c/pr39591-2.c: New test.
8685         * testsuite/libgomp.c/pr39591-3.c: New test.
8687 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
8689         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
8690         * testsuite/libgomp.c/atomic-6.c: Ditto.
8692 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
8694         PR c/39495
8695         * testsuite/libgomp.c/loop-12.c: New test.
8696         * testsuite/libgomp.c/loop-11.c: New test.
8697         * testsuite/libgomp.c++/loop-11.C: New test.
8698         * testsuite/libgomp.c++/loop-12.C: New test.
8699         * testsuite/libgomp.c++/for-8.C: New test.
8701 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8703         * configure: Regenerate.
8705 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
8707         PR middle-end/39154
8708         * testsuite/libgomp.c/pr39154.c: New test.
8710 2009-01-30  Ian Lance Taylor  <iant@google.com>
8712         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
8713         libgomp_ld_is_gold.  Get gold version number.
8714         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
8715         * configure: Rebuild.
8717 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
8719         * testsuite/lib/libgomp.exp: Add -B option for targets that
8720         use libgfortran.a%s in their specs.
8722 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
8724         PR libgomp/38086
8725         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
8726         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
8727         HAVE_AS_SYMVER_DIRECTIVE is not defined.
8728         * configure: Regenerated.
8729         * config.h.in: Likewise.
8731 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
8733         PR c++/38650
8734         * testsuite/libgomp.c/pr38650.c: New test.
8735         * testsuite/libgomp.c++/pr38650.C: New test.
8737 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
8739         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
8741 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
8743         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
8745 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8747         * configure: Regenerate.
8749 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
8751         PR middle-end/36802
8752         * testsuite/libgomp.c/pr36802-1.c: New test.
8753         * testsuite/libgomp.c/pr36802-2.c: New test.
8754         * testsuite/libgomp.c/pr36802-3.c: New test.
8756 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
8758         PR libgomp/38270
8759         * config/linux/powerpc/mutex.h: New.
8761 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
8763         PR c++/38257
8764         * testsuite/libgomp.c++/for-7.C: New test.
8766         PR c++/38348
8767         * testsuite/libgomp.c++/for-6.C: New test.
8769 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
8771         PR testsuite/28870
8772         * testsuite/lib/libgomp.exp: Include new timeout library files.
8773         (libgomp_target_compile): Set timeout value from new proc.
8775 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
8777         PR libgomp/37938
8778         * config/linux/ia64/mutex.h: New.
8780 2008-11-04  Tobias Burnus  <burnus@net-b.de>
8782         PR libgomp/37935
8783         * libgomp.texi (Runtime library routines, environment variables):
8784         Update for OpenMP version 3.0.
8786 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
8787             Steve Ellcey  <sje@cup.hp.com>
8789         * configure: Regenerate for new libtool.
8790         * Makefile.in: Ditto.
8791         * testsuite/Makefile.in: Ditto.
8793 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
8794             Andreas Tobler  <a.tobler@schweiz.org>
8796         * config/bsd/proc.c: New file.
8797         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
8798         * configure.ac: Check for header <sys/sysctl.h>
8799         * configure: Regenerate.
8800         * config.h.in: Likewise.
8802 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
8804         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
8806 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
8808         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
8809         * Makefile.in: Regenerated.
8810         * testsuite/Makefile.in: Regenerated.
8812 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
8814         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
8815         depend on blddir if blddir exists.
8816         (libgomp_target_compile): Likewise.
8817         * testsuite/libgomp.c++/c++.exp: Likewise.
8818         * testsuite/libgomp.fortran/fortran.exp: Likewise.
8820 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8822         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
8823         Do not list GPL as Invariant Section.
8825 2008-07-28  Ilie Garbacea  <ilie@mips.com>
8826             Chao-ying Fu  <fu@mips.com>
8828         * configure.tgt: Enable futex for MIPS.
8829         * config/linux/mips/futex.h: New file.
8831 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
8833         * team.c (gomp_team_end): Free team immediately if it has
8834         just one thread.
8836 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
8838         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
8839         * testsuite/libgomp.fortran/fortran.exp: Same.
8840         * testsuite/libgomp.c/c.exp: Same.
8841         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
8842         directory to library path first.
8844 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
8846         * env.c (parse_stacksize): Add cast to avoid warning.
8847         (parse_spincount): Likewise.
8849 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
8851         * testsuite/libgomp.c/loop-10.c: New test.
8852         * libgomp.c/loop-3.c (main): Add lastprivate clause.
8853         * libgomp.c++/loop-6.C (main): Likewise.
8855         PR debug/36617
8856         * testsuite/libgomp.c/debug-1.c: New test.
8858 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
8860         * testsuite/libgomp.c/nqueens-1.c: New test.
8862         PR c++/36523
8863         * testsuite/libgomp.c++/task-7.C: New function.
8865 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8867         * configure: Regenerate.
8869 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8871         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
8872         mutex when HAVE_SYNC_BUILTINS isn't defined.
8874 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8876         * libgomp.texi (omp_test_lock): Fix typo.
8878 2008-06-12  Tobias Burnus  <burnus@net-b.de>
8880         * omp_lib.f90.in: Add "implicit none".
8882 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
8884         PR middle-end/36506
8885         * testsuite/libgomp.c/reduction-5.c: New test.
8887 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
8889         * libgomp.h (struct gomp_task): Add in_tied_task field.
8890         * task.c (gomp_init_task): Initialize it.
8891         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
8892         unconditionally.  Don't call gomp_team_barrier_wake if
8893         current task is implicit or if(0) from implicit and number of
8894         running tasks is equal to nthreads - 1.
8896         PR libgomp/36471
8897         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
8898         omp_get_team_size_8): Fix pastos.
8900         PR libgomp/36469
8901         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
8902         * configure: Regenerated.
8903         * config.h.in: Regenerated.
8904         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
8905         defined.
8907 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
8909         PR bootstrap/36452
8910         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
8911         (GOMP_loop_ull_dynamic_start): Likewise.
8912         (GOMP_loop_ull_guided_start): Likewise.
8913         (GOMP_loop_ull_ordered_static_start): Likewise.
8914         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
8915         (GOMP_loop_ull_ordered_guided_start): Likewise.
8917 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
8918             Richard Henderson  <rth@redhat.com>
8919             Ulrich Drepper  <drepper@redhat.com>
8920             Jakob Blomer  <jakob.blomer@ira.uka.de>
8922         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
8923         Substitute also OMP_*LOCK_25*.
8924         * configure: Regenerated.
8925         * config.h.in: Regenerated.
8926         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
8927         ptrlock.c and task.c.
8928         * Makefile.in: Regenerated.
8929         * testsuite/Makefile.in: Regenerated.
8930         * task.c: New file.
8931         * loop_ull.c: New file.
8932         * iter_ull.c: New file.
8933         * libgomp.h: Include ptrlock.h.
8934         (enum gomp_task_kind): New type.
8935         (struct gomp_team): Add task_lock, task_queue, task_count,
8936         task_running_count, single_count fields.  Add
8937         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
8938         Remove work_share_lock, generation_mask,
8939         oldest_live_gen, num_live_gen and init_work_shares fields, add
8940         work work_share_list_alloc, work_share_list_free and work_share_chunk
8941         fields.  Change work_shares from pointer to pointers into an array.
8942         Change ordered_release field into gomp_sem_t ** from flexible array
8943         member.  Add implicit_task and initial_work_shares fields.
8944         Move close to the end of the struct.
8945         (struct gomp_team_state): Add single_count, last_work_share,
8946         active_level and level fields, remove work_share_generation.
8947         (gomp_barrier_handle_tasks): New prototype.
8948         (gomp_finish_task): New inline function.
8949         (struct gomp_work_share): Move chunk_size, end, incr into
8950         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
8951         next_ll fields.  Reshuffle fields.  Add next_alloc,
8952         next_ws, next_free and inline_ordered_team_ids fields, change
8953         ordered_team_ids into pointer from flexible array member.
8954         Add mode field.  Put lock and next into a different cache line
8955         from most of the write-once fields.
8956         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
8957         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
8958         gomp_iter_ull_guided_next): New prototypes.
8959         (gomp_new_icv): New prototype.
8960         (struct gomp_thread): Add thread_pool and task fields.
8961         (struct gomp_thread_pool): New type.
8962         (gomp_new_team): New prototype.
8963         (gomp_team_start): Change type of last argument.
8964         (gomp_new_work_share): Removed.
8965         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
8966         (gomp_work_share_init_done): New static inline.
8967         (gomp_throttled_spin_count_var, gomp_available_cpus,
8968         gomp_managed_threads): New extern decls.
8969         (gomp_init_task): New prototype.
8970         (gomp_spin_count_var): New extern var decl.
8971         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
8972         or no alias support, or if not PIC.
8973         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
8974         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
8975         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
8976         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
8977         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
8978         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
8979         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
8980         gomp_test_nest_lock_25): New prototypes.
8981         (omp_lock_symver, strong_alias): Define.
8982         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
8983         decls.
8984         (gomp_end_task): New.
8985         (struct gomp_task_icv, gomp_global_icv): New.
8986         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
8987         (struct gomp_task): New.
8988         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
8989         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
8990         (gomp_icv): New.
8991         (gomp_schedule_type): Reorder enum to match
8992         omp_sched_t.
8993         * team.c (struct gomp_thread_start_data): Add thread_pool and task
8994         fields.
8995         (gomp_thread_start): Add gomp_team_barrier_wait call.
8996         For non-nested case remove clearing of docked thread thr fields.
8997         Use pool fields instead of global gomp_* variables.  Use
8998         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
8999         Create tasks for each member thread.
9000         (free_team): Only destroy team barrier, task_lock here and free it.
9001         (gomp_free_thread): Free last_team if non-NULL.
9002         (gomp_team_end): Call gomp_team_barrier_wait instead of
9003         gomp_barrier_wait.  For nested case call one extra
9004         gomp_barrier_wait.  Move here some destruction from free_team.
9005         Call free_team on pool->last_team if any, rather than freeing
9006         current team.  Destroy work_share_list_free_lock ifndef
9007         HAVE_SYNC_BUILTINS.
9008         (gomp_new_icv): New function.
9009         (gomp_threads, gomp_threads_size, gomp_threads_used,
9010         gomp_threads_dock): Removed.
9011         (gomp_thread_destructor): New variable.
9012         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
9013         functions.
9014         (gomp_team_start): Create new pool if current thread doesn't have
9015         one.  Use pool fields instead of global gomp_* variables.
9016         Initialize thread_pool field for new threads.  Clear single_count.
9017         Change last argument from ws to team, don't create
9018         new team, set ts.work_share to &team->work_shares[0] and clear
9019         ts.last_work_share.  Don't clear ts.work_share_generation.
9020         If number of threads changed, adjust atomically gomp_managed_threads.
9021         Use gomp_init_task instead of gomp_new_task,
9022         set thr->task to the corresponding implicit_task array entry.
9023         Create tasks for each member thread.  Initialize ts.level.
9024         (initialize_team): Call pthread_key_create on
9025         gomp_thread_destructor.
9026         (team_destructor): New function.
9027         (new_team): Removed.
9028         (gomp_new_team): New function.
9029         (free_team): Free gomp_work_share blocks chained through next_alloc,
9030         instead of freeing work_shares and destroying work_share_lock.
9031         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
9032         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
9033         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
9034         of gomp_barrier_wait.
9035         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
9036         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
9037         if gomp_work_share_start returned true.  Don't unlock ws->lock.
9038         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
9039         of gomp_barrier_wait.
9040         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
9041         gomp_work_share_init_done if gomp_work_share_start returned true.
9042         Don't unlock ws->lock.
9043         * work.c: Include stddef.h.
9044         (free_work_share): Use work_share_list_free_lock instead
9045         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
9046         Call gomp_fini_work_share and then either free ws if orphaned, or
9047         put it into work_share_list_free list of the current team.
9048         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
9049         functions.
9050         (gomp_work_share_start, gomp_work_share_end,
9051         gomp_work_share_end_nowait): Rewritten.
9052         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
9053         (openmp_version): Set to 200805.
9054         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
9055         omp_sched_guided, omp_sched_auto): New parameters.
9056         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9057         omp_set_max_active_levels, omp_get_max_active_levels,
9058         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9059         omp_get_active_level): New interfaces.
9060         * omp_lib.h.in (openmp_version): Set to 200805.
9061         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
9062         omp_sched_guided, omp_sched_auto): New parameters.
9063         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9064         omp_set_max_active_levels, omp_get_max_active_levels,
9065         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9066         omp_get_active_level): New externals.
9067         * loop.c: Include limits.h.
9068         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
9069         GFS_AUTO.
9070         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
9071         Likewise.  Use gomp_icv.
9072         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
9073         ts.static_trip here.
9074         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
9075         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
9076         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
9077         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
9078         don't unlock ws->lock, otherwise lock it.
9079         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
9080         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
9081         (gomp_parallel_loop_start): Call gomp_new_team instead of
9082         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
9083         Adjust gomp_team_start caller.  Pass 0 as second argument to
9084         gomp_resolve_num_threads.
9085         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
9086         If adding ws->chunk_size nthreads + 1 times after end won't
9087         overflow, set ws->mode to 1.
9088         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
9089         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
9090         GOMP_loop_ull_ordered_static_start,
9091         GOMP_loop_ull_ordered_dynamic_start,
9092         GOMP_loop_ull_ordered_guided_start,
9093         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
9094         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
9095         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
9096         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
9097         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
9098         prototypes.
9099         * libgomp.map: Export lock routines also @@OMP_2.0.
9100         (GOMP_loop_ordered_dynamic_first,
9101         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
9102         GOMP_loop_ordered_static_first): Remove.
9103         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
9104         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
9105         GOMP_loop_ull_ordered_dynamic_next,
9106         GOMP_loop_ull_ordered_dynamic_start,
9107         GOMP_loop_ull_ordered_guided_next,
9108         GOMP_loop_ull_ordered_guided_start,
9109         GOMP_loop_ull_ordered_runtime_next,
9110         GOMP_loop_ull_ordered_runtime_start,
9111         GOMP_loop_ull_ordered_static_next,
9112         GOMP_loop_ull_ordered_static_start,
9113         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
9114         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
9115         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
9116         (omp_set_schedule, omp_get_schedule,
9117         omp_get_thread_limit, omp_set_max_active_levels,
9118         omp_get_max_active_levels, omp_get_level,
9119         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
9120         omp_set_schedule_, omp_set_schedule_8_,
9121         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
9122         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
9123         omp_get_max_active_levels_, omp_get_level_,
9124         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
9125         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
9126         New exports @@OMP_3.0.
9127         * omp.h.in (omp_sched_t): New type.
9128         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9129         omp_set_max_active_levels, omp_get_max_active_levels,
9130         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
9131         omp_get_active_level): New prototypes.
9132         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
9133         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
9134         gomp_thread_limit_var, gomp_remaining_threads_count,
9135         gomp_remaining_threads_lock): New variables.
9136         (parse_spincount): New function.
9137         (initialize_env): Call gomp_init_num_threads unconditionally.
9138         Initialize gomp_available_cpus.  Call parse_spincount,
9139         initialize gomp_{,throttled_}spin_count_var
9140         depending on presence and value of OMP_WAIT_POLICY and
9141         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
9142         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
9143         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
9144         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
9145         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
9146         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
9147         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
9148         (gomp_global_icv): New.
9149         (parse_schedule): Use it.  Parse "auto".
9150         (omp_set_num_threads): Use gomp_icv.
9151         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
9152         Likewise.
9153         (omp_get_max_threads): Move from parallel.c.
9154         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
9155         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
9156         add ialias.
9157         (parse_stacksize, parse_wait_policy): New functions.
9158         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
9159         both wrappers for compatibility and new locks.
9160         (omp_set_schedule, omp_get_schedule,
9161         omp_get_thread_limit, omp_set_max_active_levels,
9162         omp_get_max_active_levels, omp_get_level,
9163         omp_get_ancestor_thread_num, omp_get_team_size,
9164         omp_get_active_level): New ialias_redirect.
9165         (omp_set_schedule_, omp_set_schedule_8_,
9166         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
9167         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
9168         omp_get_max_active_levels_, omp_get_level_,
9169         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
9170         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
9171         New functions.
9172         * parallel.c: Include limits.h.
9173         (gomp_resolve_num_threads): Add count argument.  Rewritten.
9174         (GOMP_parallel_start): Call gomp_new_team and pass that as last
9175         argument to gomp_team_start.  Pass 0 as second argument to
9176         gomp_resolve_num_threads.
9177         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
9178         if gomp_thread_limit_var != ULONG_MAX.
9179         (omp_in_parallel): Implement using ts.active_level.
9180         (omp_get_max_threads): Move to env.c.
9181         (omp_get_level, omp_get_ancestor_thread_num,
9182         omp_get_team_size, omp_get_active_level): New functions,
9183         add ialias.
9184         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
9185         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
9186         gomp_iter_dynamic_next instead of the _locked variant and don't take
9187         lock around it, otherwise acquire it before calling
9188         gomp_iter_dynamic_next_locked.
9189         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
9190         gomp_iter_dynamic_next instead of the _locked variant and don't take
9191         lock around it.
9192         (GOMP_parallel_sections_start): Call gomp_new_team instead of
9193         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
9194         Adjust gomp_team_start caller.  Pass count as second argument to
9195         gomp_resolve_num_threads, don't adjust num_threads after the call.
9196         Use gomp_icv.
9197         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
9198         ws->chunk_size by incr.
9199         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
9200         code.
9201         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
9202         types.
9203         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
9204         (omp_check_defines): Check even the compat defines.
9205         * config/linux/ptrlock.c: New file.
9206         * config/linux/ptrlock.h: New file.
9207         * config/linux/wait.h: New file.
9208         * config/posix/ptrlock.c: New file.
9209         * config/posix/ptrlock.h: New file.
9210         * config/linux/bar.h (gomp_team_barrier_wait,
9211         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
9212         (gomp_team_barrier_set_task_pending,
9213         gomp_team_barrier_clear_task_pending,
9214         gomp_team_barrier_set_waiting_for_tasks,
9215         gomp_team_barrier_waiting_for_tasks,
9216         gomp_team_barrier_done): New inlines.
9217         (gomp_barrier_t): Rewritten.
9218         (gomp_barrier_state_t): New typedef.
9219         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
9220         gomp_barrier_wait_start): Rewritten.
9221         (gomp_barrier_wait_end): Change second argument to
9222         gomp_barrier_state_t.
9223         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
9224         inlines.
9225         * config/linux/bar.c: Include wait.h instead of libgomp.h and
9226         futex.h.
9227         (gomp_barrier_wait_end): Rewritten.
9228         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
9229         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
9230         * config/posix/bar.h (gomp_barrier_t): Add generation field.
9231         (gomp_barrier_state_t): New typedef.
9232         (gomp_team_barrier_wait,
9233         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
9234         (gomp_barrier_wait_start): Or all but low 2 bits from generation
9235         into the return value.  Return gomp_barrier_state_t.
9236         (gomp_team_barrier_set_task_pending,
9237         gomp_team_barrier_clear_task_pending,
9238         gomp_team_barrier_set_waiting_for_tasks,
9239         gomp_team_barrier_waiting_for_tasks,
9240         gomp_team_barrier_done): New inlines.
9241         (gomp_barrier_wait_end): Change second argument to
9242         gomp_barrier_state_t.
9243         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
9244         inlines.
9245         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
9246         (gomp_barrier_wait_end): Change second argument to
9247         gomp_barrier_state_t.
9248         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
9249         gomp_team_barrier_wake): New functions.
9250         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
9251         futex.h.
9252         (gomp_futex_wake, gomp_futex_wait): New variables.
9253         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
9254         * config/linux/lock.c: Rewrite to make locks task owned,
9255         for backwards compatibility provide the old entrypoints
9256         if symbol versioning.  Include wait.h instead of libgomp.h and
9257         futex.h.
9258         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
9259         * config/posix95/lock.c: Rewrite to make locks task owned,
9260         for backwards compatibility provide the old entrypoints
9261         if symbol versioning.
9262         * config/posix/lock.c: Rewrite to make locks task owned,
9263         for backwards compatibility provide the old entrypoints
9264         if symbol versioning.
9265         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
9266         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
9267         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
9268         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9269         (sys_futex0): Return error code.
9270         (futex_wake, futex_wait): If ENOSYS was returned, clear
9271         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9272         (cpu_relax, atomic_write_barrier): New static inlines.
9273         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9274         (futex_wake, futex_wait): If ENOSYS was returned, clear
9275         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9276         (cpu_relax, atomic_write_barrier): New static inlines.
9277         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9278         (sys_futex0): Return error code.
9279         (futex_wake, futex_wait): If ENOSYS was returned, clear
9280         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9281         (cpu_relax, atomic_write_barrier): New static inlines.
9282         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9283         (sys_futex0): Return error code.
9284         (futex_wake, futex_wait): If ENOSYS was returned, clear
9285         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9286         (cpu_relax, atomic_write_barrier): New static inlines.
9287         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9288         (sys_futex0): Return error code.
9289         (futex_wake, futex_wait): If ENOSYS was returned, clear
9290         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9291         (cpu_relax, atomic_write_barrier): New static inlines.
9292         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
9293         (sys_futex0): Return error code.
9294         (futex_wake, futex_wait): If ENOSYS was returned, clear
9295         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
9296         (cpu_relax, atomic_write_barrier): New static inlines.
9297         * config/linux/sem.c: Include wait.h instead of libgomp.h and
9298         futex.h.
9299         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
9300         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
9301         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
9302         types.
9303         (omp_nest_lock_t): Change owner into void *, add lock field.
9304         * config/posix95/omp-lock.h: Include semaphore.h.
9305         (omp_lock_25_t, omp_nest_lock_25_t): New types.
9306         (omp_lock_t): Use sem_t instead of mutex if semaphores
9307         aren't broken.
9308         (omp_nest_lock_t): Likewise.  Change owner to void *.
9309         * config/posix/omp-lock.h: Include semaphore.h.
9310         (omp_lock_25_t, omp_nest_lock_25_t): New types.
9311         (omp_lock_t): Use sem_t instead of mutex if semaphores
9312         aren't broken.
9313         (omp_nest_lock_t): Likewise.  Add owner field.
9315 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
9317         * testsuite/libgomp.c/collapse-1.c: New test.
9318         * testsuite/libgomp.c/collapse-2.c: New test.
9319         * testsuite/libgomp.c/collapse-3.c: New test.
9320         * testsuite/libgomp.c/icv-1.c: New test.
9321         * testsuite/libgomp.c/icv-2.c: New test.
9322         * testsuite/libgomp.c/lib-2.c: New test.
9323         * testsuite/libgomp.c/lock-1.c: New test.
9324         * testsuite/libgomp.c/lock-2.c: New test.
9325         * testsuite/libgomp.c/lock-3.c: New test.
9326         * testsuite/libgomp.c/loop-4.c: New test.
9327         * testsuite/libgomp.c/loop-5.c: New test.
9328         * testsuite/libgomp.c/loop-6.c: New test.
9329         * testsuite/libgomp.c/loop-7.c: New test.
9330         * testsuite/libgomp.c/loop-8.c: New test.
9331         * testsuite/libgomp.c/loop-9.c: New test.
9332         * testsuite/libgomp.c/nested-3.c: New test.
9333         * testsuite/libgomp.c/nestedfn-6.c: New test.
9334         * testsuite/libgomp.c/sort-1.c: New test.
9335         * testsuite/libgomp.c/task-1.c: New test.
9336         * testsuite/libgomp.c/task-2.c: New test.
9337         * testsuite/libgomp.c/task-3.c: New test.
9338         * testsuite/libgomp.c/task-4.c: New test.
9339         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
9340         to C++ testsuite default compiler options.
9341         * testsuite/libgomp.c++/collapse-1.C: New test.
9342         * testsuite/libgomp.c++/collapse-2.C: New test.
9343         * testsuite/libgomp.c++/ctor-10.C: New test.
9344         * testsuite/libgomp.c++/for-1.C: New test.
9345         * testsuite/libgomp.c++/for-2.C: New test.
9346         * testsuite/libgomp.c++/for-3.C: New test.
9347         * testsuite/libgomp.c++/for-4.C: New test.
9348         * testsuite/libgomp.c++/for-5.C: New test.
9349         * testsuite/libgomp.c++/loop-8.C: New test.
9350         * testsuite/libgomp.c++/loop-9.C: New test.
9351         * testsuite/libgomp.c++/loop-10.C: New test.
9352         * testsuite/libgomp.c++/task-1.C: New test.
9353         * testsuite/libgomp.c++/task-2.C: New test.
9354         * testsuite/libgomp.c++/task-3.C: New test.
9355         * testsuite/libgomp.c++/task-4.C: New test.
9356         * testsuite/libgomp.c++/task-5.C: New test.
9357         * testsuite/libgomp.c++/task-6.C: New test.
9358         * testsuite/libgomp.fortran/allocatable1.f90: New test.
9359         * testsuite/libgomp.fortran/allocatable2.f90: New test.
9360         * testsuite/libgomp.fortran/allocatable3.f90: New test.
9361         * testsuite/libgomp.fortran/allocatable4.f90: New test.
9362         * testsuite/libgomp.fortran/collapse1.f90: New test.
9363         * testsuite/libgomp.fortran/collapse2.f90: New test.
9364         * testsuite/libgomp.fortran/collapse3.f90: New test.
9365         * testsuite/libgomp.fortran/collapse4.f90: New test.
9366         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
9367         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
9368         * testsuite/libgomp.fortran/lib4.f90: New test.
9369         * testsuite/libgomp.fortran/lock-1.f90: New test.
9370         * testsuite/libgomp.fortran/lock-2.f90: New test.
9371         * testsuite/libgomp.fortran/nested1.f90: New test.
9372         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
9373         * testsuite/libgomp.fortran/strassen.f90: New test.
9374         * testsuite/libgomp.fortran/tabs1.f90: New test.
9375         * testsuite/libgomp.fortran/tabs2.f: New test.
9376         * testsuite/libgomp.fortran/task1.f90: New test.
9377         * testsuite/libgomp.fortran/task2.f90: New test.
9378         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
9379         * testsuite/libgomp.fortran/vla5.f90: Likewise.
9380         * testsuite/libgomp.c/pr26943-2.c: Likewise.
9381         * testsuite/libgomp.c/pr26943-3.c: Likewise.
9382         * testsuite/libgomp.c/pr26943-4.c: Likewise.
9384 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
9386         PR c++/36308
9387         * testsuite/libgomp.c++/ctor-11.C: New test.
9388         * testsuite/libgomp.c++/ctor-12.C: New test.
9390 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
9392         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
9394 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
9396         PR middle-end/36106
9397         * testsuite/libgomp.c/atomic-5.c: New test.
9398         * testsuite/libgomp.c/atomic-6.c: New test.
9399         * testsuite/libgomp.c/autopar-1.c: New test.
9401 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9403         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
9404         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
9405         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
9406         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
9407         * configure: Regenerate.
9408         * Makefile.in, testsuite/Makefile.in: Likewise.
9410 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
9412         PR bootstrap/35457
9413         * aclocal.m4: Regenerate.
9414         * configure: Regenerate.
9416 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
9418         PR middle-end/35611
9419         * testsuite/libgomp.c/atomic-4.c: New test.
9421         PR libgomp/35625
9422         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
9423         (gomp_iter_guided_next): Likewise.
9424         * testsuite/libgomp.c/pr35625.c: New test.
9426 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9428         * aclocal.m4: Regenerate.
9429         * configure: Likewise.
9430         * Makefile.in: Likewise.
9431         * testsuite/Makefile.in: Likewise.
9433 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
9435         PR middle-end/35185
9436         * testsuite/libgomp.c++/pr35185.C: New test.
9438 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
9440         PR middle-end/35549
9441         * testsuite/libgomp.c/pr35549.c: New test.
9443 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
9445         * testsuite/libgomp.c/atomic-3.c: New test.
9447 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9449         PR fortran/33197
9450         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
9451         .F08 file suffixes.
9453 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
9455         PR libgomp/33131
9456         * configure.ac: Add ACX_HEADER_STRING.
9457         * env.c: Include strings.h.
9458         * aclocal.m4: Regenerate.
9459         * config.h.in: Regenerate.
9460         * configure: Regenerate.
9461         * Makefile.in: Regenerate.
9462         * testsuite/Makefile.in: Regenerate.
9464 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
9466         PR middle-end/35196
9467         * testsuite/libgomp.c/pr35196.c: New test.
9469         PR middle-end/35130
9470         * testsuite/libgomp.fortran/pr35130.f90: New test.
9471         * testsuite/libgomp.c/pr35130.c: New test.
9473 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
9475         PR middle-end/33880
9476         * testsuite/libgomp.c/pr33880.c: New test.
9477         * testsuite/libgomp.fortran/pr33880.f90: New test.
9479 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
9481         * configure: Regenerate.
9483 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
9485         * configure.ac: Move futex checking into ../config/futex.m4.
9486         * configure: Rebuilt.
9487         * aclocal.m4: Rebuilt.
9488         * Makefile.in: Rebuilt.
9490         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
9491         2007-10-15 ../config/tls.m4 change.
9493 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
9495         PR c++/34513
9496         * testsuite/libgomp.c/pr34513.c: New test.
9497         * testsuite/libgomp.c++/pr34513.C: New test.
9499 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
9501         PR target/32765
9502         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
9504 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
9506         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
9508 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
9510         * testsuite/libgomp.c/private-1.c: New test.
9512 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
9513             Paolo Bonzini  <bonzini@gnu.org>
9515         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
9516         instead of 'VPATH ='.
9517         * Makefile.in: Regenerate.
9519 2007-11-23  Matthias Klose  <doko@ubuntu.com>
9521         * configure.ac: Adjust makeinfo version check.
9522         * configure: Regenerate.
9524 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
9526         PR fortran/34020
9527         * testsuite/libgomp.fortran/pr34020.f90: New test.
9529 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
9531         PR c++/33894
9532         * testsuite/libgomp.c++/atomic-1.C: New test.
9534 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
9536         PR libgomp/33275
9537         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
9538         Make x and y integers rather than (implicit) reals.  Add private (j)
9539         clause to the last omp parallel.
9541 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
9543         * configure: Regenerate following changes to ../config/tls.m4.
9545 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
9547         * testsuite/libgomp.fortran/stack.f90: New test.
9549 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
9551         * config/mingw32/proc.c: New file.
9553 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
9555         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
9556         (main): Use __get_cpuid to get i386 target fetaures.
9557         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
9558         (main): Use __get_cpuid to get x86_64 target fetaures.
9560 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
9562         PR target/32765
9563         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
9564         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
9566 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
9568         PR fortran/32550
9569         * testsuite/libgomp.fortran/pr32550.f90: New test.
9570         * testsuite/libgomp.fortran/crayptr2.f90: New test.
9572 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
9574         * aclocal.m4: Regenerated.
9576 2007-07-05  Tobias Burnus  <burnus@net-b.de>
9578         PR fortran/32359
9579         * testsuite/libgomp.fortran/pr32359.f90: New.
9581 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
9583         PR libgomp/32468
9584         * sections.c (GOMP_parallel_sections_start): Only decrease
9585         number of threads to COUNT if dyn_var is true.
9586         * testsuite/libgomp.c/pr32468.c: New test.
9588 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9590         PR libgomp/26308
9591         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
9593 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
9595         PR middle-end/32362
9596         * testsuite/libgomp.c/pr32362-1.c: New test.
9597         * testsuite/libgomp.c/pr32362-2.c: New test.
9598         * testsuite/libgomp.c/pr32362-3.c: New test.
9600 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
9602         * team.c (gomp_team_start): Fix setting up thread_attr
9603         stack size.
9605 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
9607         * configure: Regenerate.
9609 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
9611         * Makefile.in: Regenerate.
9612         * configure: Regenerate.
9613         * aclocal.m4: Regenerate.
9614         * testsuite/Makefile.in: Regenerate.
9616 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
9618         * config/linux/proc.c: New file.
9620         PR libgomp/28482
9621         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
9623 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
9625         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
9627 2007-04-16  Matthias Klose  <doko@debian.org>
9629         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
9630         flags if not building with -m64.
9631         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
9632         flag for i?86-*-* targets, if current target matches -m64.
9634 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
9636         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
9637         * Makefile.in: Regenerate.
9639 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9641         PR testsuite/31369
9642         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
9643         ld_library_path.
9644         * testsuite/libgomp.fortran/fortran.exp: Likewise.
9646 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
9648         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
9649         decls.
9650         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
9651         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
9652         (parse_affinity): New function.
9653         (initialize_env): Call it and gomp_init_affinity.
9654         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
9655         create new pthread_attr_t and call gomp_init_thread_affinity
9656         on it for each thread before passing the attribute to pthread_create.
9657         * config/linux/affinity.c: New file.
9658         * config/posix/affinity.c: New file.
9659         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
9660         * configure: Rebuilt.
9661         * config.h.in: Rebuilt.
9662         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
9663         * Makefile.in: Rebuilt.
9665 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
9667         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
9668         *-*-darwin*.
9669         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
9670         and use it if found.
9672 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
9674         * testsuite/config/default.exp: New file.
9675         * testsuite/lib/libgomp.exp: New file.
9676         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
9677         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
9678         load_lib *, load_gcc_lib *): Move to libgomp.exp.
9679         (libgomp_load): Remove.
9680         * testsuite/lib/libgomp.exp (libgomp_init): Compute
9681         always_ld_library_path, not ld_library_path.  Set additional_flags
9682         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
9683         (target_compile): Do not call libgomp_init.  Append lang_library_path
9684         and lang_link_flags to options.
9685         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
9686         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
9687         here.
9688         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
9689         always_ld_library_path.  Set LD_LIBRARY_PATH here.
9690         * testsuite/libgomp.fortran/fortran.exp: Ditto.
9691         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
9692         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
9693         CX8 flag.
9694         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
9695         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
9696         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
9697         * testsuite/libgomp.c/pr29947-1.c: Ditto.
9698         * testsuite/libgomp.c/atomic-10.c: Ditto.
9700 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
9702         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
9703         dg-final cleanup-modules line.
9704         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
9705         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
9706         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
9707         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
9708         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
9709         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
9710         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
9712 2007-03-18  Andreas Schwab  <schwab@suse.de>
9714         * acinclude.m4: Adjust regular expression for ld version
9715         extraction.
9716         * configure: Regenerate.
9718 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
9720         * Makefile.am: Add install-pdf target as copied from
9721         automake v1.10 rules.
9722         * Makefile.in: Regenerate
9724 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
9726         PR libgomp/28486
9727         * configure: Regenerate.
9729         PR c++/30703
9730         * testsuite/libgomp.c++/pr30703.C: New test.
9732 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
9734         Revert:
9735         2006-07-05  Eric Christopher  <echristo@apple.com>
9736         * configure.ac: Depend addition of -pthread on host OS.
9737         * configure: Regenerate.
9739 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9741         * libgomp.texi: Fix spacing after abbreviations.
9743 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
9745         PR libgomp/30546
9746         * configure.ac: Add check for makeinfo
9747         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
9748         if an appropiate version of makeinfo is found.
9749         * aclocal.m4: Regenerated.
9750         * configure: Regenerated.
9751         * Makefile.in: Regenerated.
9752         * testsuite/Makefile.in: Regenerated.
9754 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
9756         PR libgomp/30540
9757         * libgomp.texi: More about implementation-dependent settings.
9759 2007-01-26  Tobias Burnus  <burnus@net-b.de>
9761         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
9763 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
9765         PR middle-end/30494
9766         * testsuite/libgomp.c/pr30494.c: New test.
9768 2007-01-15  Tom Tromey  <tromey@redhat.com>
9770         * configure: Rebuilt.
9771         * configure.ac: Fixed comment.
9773 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
9775         * libgomp.texi: Document implementation specific default values of
9776         environment variables.
9778 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
9780         PR libgomp/28209
9781         * libgomp.texi: New file.
9782         * configure.ac: Add --enable-generated-files-in-srcdir option.
9783         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
9784         files to srcdir.
9785         * Makefile.in: Regenerated.
9786         * config.h.in: Regenerated.
9787         * testsuite/Makefile.in: Regenerated.
9788         * NOTES: Removed.
9790 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
9792         PR libgomp/29949
9793         * env.c (omp_set_num_threads): Set illegal thread count to 1.
9795 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
9797         * configure: Regenerate.
9799 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
9801         PR libgomp/29947
9802         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
9803         start if there shouldn't be any loop iterations.
9804         (gomp_loop_ordered_static_start): Remove start == end test.
9805         * testsuite/libgomp.c/pr29947-1.c: New test.
9806         * testsuite/libgomp.c/pr29947-2.c: New test.
9808 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
9810         * configure.tgt: Force initial-exec TLS model on Linux only.
9812 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
9814         * configure: Regenerated.
9816 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
9818         * env.c (parse_schedule): Reject out of range values.
9819         (parse_unsigned_long): Reject out of range, negative or zero values.
9821 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
9823         PR fortran/29629
9824         * testsuite/libgomp.fortran/pr29629.f90: New test.
9826 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
9828         PR libgomp/29494
9829         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
9830         * config/posix95: New directory.
9831         * config/posix95/omp-lock.h: New file.
9832         * config/posix95/lock.c: Likewise.
9834 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
9836         * aclocal.m4: Regenerate.
9837         * configure: Regenerate.
9839 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
9841         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
9842         '<' to '<='.
9844 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
9846         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
9847         test.
9848         * configure: Regenerate.
9849         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
9851 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
9853         PR middle-end/25261
9854         PR middle-end/28790
9855         * testsuite/libgomp.c/nestedfn-4.c: New test.
9856         * testsuite/libgomp.c/nestedfn-5.c: New test.
9857         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
9859         PR fortran/29097
9860         * testsuite/libgomp.fortran/condinc1.f: New test.
9861         * testsuite/libgomp.fortran/condinc2.f: New test.
9862         * testsuite/libgomp.fortran/condinc3.f90: New test.
9863         * testsuite/libgomp.fortran/condinc4.f90: New test.
9864         * testsuite/libgomp.fortran/condinc1.inc: New file.
9866 2006-09-18  Tom Tromey  <tromey@redhat.com>
9868         * configure: Rebuilt.
9870 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
9872         PR c/28768
9873         PR preprocessor/14634
9874         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
9875         to AC_DEFINE.
9876         * configure: Regenerate.
9878 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
9880         * testsuite/libgomp.fortran/reduction3.f90: Change
9881         -2147483648 to -huge(i)-1 to avoid overflow.
9882         * testsuite/libgomp.fortran/reduction4.f90: Change
9883         Z'ffffffff' to not(0) to avoid overflow.
9885 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
9887         PR libgomp/25938
9888         * Makefile.am (libsubincludedir): New.
9889         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
9890         * Makefile.in: Regenerate.
9892 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
9894         PR libgomp/28725
9895         * env.c: Include ctype.h.
9896         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
9897         leading and/or trailing whitespace and compare strings case
9898         insensitively.
9900 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
9902         PR fortran/28390
9903         * testsuite/libgomp.fortran/pr28390.f: New test.
9905 2006-07-05  Eric Christopher  <echristo@apple.com>
9907         * configure.ac: Depend addition of -pthread on host OS.
9908         * configure: Regenerate.
9910 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
9912         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
9913         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
9914         defined.
9916 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
9918         PR libgomp/26175
9919         PR libgomp/26477
9920         * configure.ac: If neither --enable-linux-futex nor
9921         --disable-linux-futex is passed, determine the default by checking
9922         for compiling and/or running against NPTL.  With --enable-linux-futex,
9923         check if SYS_gettid and SYS_futex are defined.
9924         * configure: Rebuilt.
9926 2006-06-14  Richard Henderson  <rth@redhat.com>
9928         PR libgomp/28008
9929         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
9930         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
9932 2006-06-09  Richard Henderson  <rth@redhat.com>
9934         * env.c (gomp_nthreads_var): Change to unsigned long.
9935         (gomp_run_sched_chunk): Likewise.
9936         (parse_unsigned_long): Rename from parse_num_threads and generalize.
9937         (initialize_env): Initialize gomp_thread_attr.
9938         * libgomp.h (gomp_nthreads_var): Update decl.
9939         (gomp_run_sched_chunk): Likewise.
9940         (gomp_thread_attr): Declare.
9941         * team.c (gomp_thread_attr): Export.
9942         (initialize_team): Don't initialize it.
9944 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
9946         PR fortran/27916
9947         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
9948         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
9950 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
9952         * config/mingw32/time.c: New file.
9953         * configure.tgt: Use it.
9955 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
9957         * Makefile.am: Add install-html target. Add install-html to .PHONY
9958         * Makefile.in: Regenerate.
9960 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9962         PR libgomp/27612
9963         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
9964         * testsuite/libgomp.c/critical-1.c: Likewise.
9965         * testsuite/libgomp.c/loop-1.c: Likewise.
9966         * testsuite/libgomp.c/loop-2.c: Likewise.
9967         * testsuite/libgomp.c/single-1.c: Likewise.
9968         * testsuite/libgomp.c/ordered-1.c: Likewise.
9969         * testsuite/libgomp.c/ordered-2.c: Likewise.
9971 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
9973         PR middle-end/27416
9974         * libgomp.fortran/pr27416-1.f90: New test.
9976 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
9978         PR fortran/27395
9979         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
9980         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
9982 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
9984         PR c++/26943
9985         * testsuite/libgomp.c/pr26943-1.c: New test.
9986         * testsuite/libgomp.c/pr26943-2.c: New test.
9987         * testsuite/libgomp.c/pr26943-3.c: New test.
9988         * testsuite/libgomp.c/pr26943-4.c: New test.
9989         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
9990         * testsuite/libgomp.c++/pr26943.C: New test.
9992 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
9994         PR middle-end/27337
9995         * testsuite/libgomp.c++/pr27337.C: New test.
9997 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
9999         PR c/26171
10000         * testsuite/libgomp.c/pr26171.c: New test.
10002 2006-04-25  Richard Henderson  <rth@redhat.com>
10004         PR libgomp/25865
10005         * configure.ac: Use GCC_CHECK_TLS.
10006         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
10007         * Makefile.in, aclocal.m4, configure: Regenerate.
10009 2006-04-10  Matthias Klose  <doko@debian.org>
10011         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
10012         directory names containing underscores.
10014 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
10016         PR c++/26691
10017         * testsuite/libgomp.c++/pr26691.C: New test.
10019 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
10021         * testsuite/libgomp.fortran/retval2.f90: New test.
10023 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
10025         * testsuite/libgomp.c++: New directory.
10027 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
10029         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
10030         * config/posix/sem.c: Implement the above.
10032 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
10034         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
10035         define HAVE_BROKEN_POSIX_SEMAPHORES.
10036         * configure: Rebuilt.
10037         * config.h.in: Rebuilt.
10039 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
10041         PR bootstrap/26161
10042         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
10043         for the other pthread check.
10044         * configure: Regenerate.
10045         * config.h.in: Regenerate.
10047 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
10049         PR libgomp/25938
10050         PR libgomp/25984
10051         * Makefile.am (fincludedir): New variable.
10052         (nodist_include_HEADERS): Remove Fortran files.
10053         (nodist_finclude_HEADERS): New variable.
10054         * Makefile.in: Regenerated.
10056 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
10058         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
10059         Remove tests for returning assumed character length arrays.
10061 2006-02-12  Roger Sayle  <roger@eyesopen.com>
10062             John David Anglin  <dave@hiauly1.hia.nrc.ca>
10064         PR libgomp/25936
10065         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
10067 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
10069         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
10071 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
10073         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
10074         part of LD_LIBRARY_PATH manually.
10076 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
10078         PR libgomp/25852
10079         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
10080         libgomp_init.
10082 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
10084         PR libgomp/25884
10085         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
10086         * configure.ac (PERL): Don't set.
10087         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
10088         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
10089         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
10090         * omp.h.in: Wrap the new configure substitutions with @ characters.
10091         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
10092         * aclocal.m4, configure, Makefile.in: Regenerate.
10093         * mkomp_h.pl: Delete.
10095 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
10097         PR libgomp/25259
10098         * configure.ac: Use GCC_HEADER_STDINT.
10099         * libgomp.h: Include gstdint.h.
10100         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
10101         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
10103 2006-01-24  Richard Henderson  <rth@redhat.com>
10105         PR libgomp/25942
10106         * configure.ac: Add AM_MAINTAINER_MODE.
10107         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
10109 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
10111         * Makefile.in: Regenerate.
10112         * testsuite/Makefile.in: Regenerate.
10113         * aclocal.m4: Regenerate.
10115 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
10117         * config/posix/proc.c: Conditional include of sys/loadavg.h for
10118         Solaris.
10119         * configure.ac: Add check for loadavg.h.
10120         (link_gomp): Adjust comment.
10121         * configure: Regenerate.
10122         * config.h.in: Regenerate.
10124 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
10126         PR libgomp/25877
10127         * configure.ac: Remove check for alloca.h.
10128         * configure: Regenerate.
10129         * config.h.in: Regenerate.
10130         * libgomp.h: define gomp_alloca to be __builtin_alloca.
10131         * team.c: Remove use of alloca.h.
10132         Call gomp_alloca instead of alloca.
10134 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
10136         PR libgomp/25877
10137         * team.c: Add include of alloca.h.
10138         * configure.ac: Add check for alloca.h.
10139         * configure: Regenerate.
10140         * config.h.in: Regenerate.
10142 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
10144         PR fortran/25219
10145         * testsuite/libgomp.fortran/pr25219.f90: New test.
10147 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
10149         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
10150         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
10151         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
10152         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
10153         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
10154         testsuite/libgomp.fortran/threadprivate1.f90,
10155         testsuite/libgomp.fortran/threadprivate2.f90,
10156         testsuite/libgomp.fortran/threadprivate3.f90,
10157         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
10158         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
10159         testsuite/libgomp.fortran/omp_parse3.f90: Change required
10160         effective-target to TLS runtime.
10162         * testsuite/libgomp.fortran/pr25162.f: Require
10163         effective-target TLS runtime.
10165 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
10167         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
10168         * testsuite/libgomp.c/nestedfn-3.c: New test.
10170 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
10172         PR fortran/25162
10173         * testsuite/libgomp.fortran/pr25162.f: New test.
10175 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
10177         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
10178         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
10180 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
10182         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
10183         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
10184         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
10185         single.c, team.c, work.c, config/linux/alpha/futex.h,
10186         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
10187         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
10188         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
10189         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
10190         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
10191         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
10192         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
10193         FSF address.
10195 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
10197         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
10198         to nodist_noinst_HEADERS.
10199         * Makefile.in: Rebuilt.
10201         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
10202         add integer count field.
10203         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
10204         omp_nest_lock_t type change.
10205         (omp_init_nest_lock): Likewise.  Initialize count to 0.
10206         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
10207         Increment count.
10208         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
10209         Decrement count.
10210         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
10211         Increment count if successful and return the new nesting level.
10212         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
10213         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
10214         * testsuite/libgomp.c/lib-1.c: New test.
10215         * testsuite/libgomp.fortran/lib1.f90: New test.
10216         * testsuite/libgomp.fortran/lib2.f: New test.
10217         * testsuite/libgomp.fortran/lib3.f: New test.
10219 2005-11-17  Richard Henderson  <rth@redhat.com>
10221         PR 24845
10222         * Makefile.am (nodist_toolexeclib_HEADERS): New.
10223         * configure.ac (link_gomp): New.  Substitute it.
10224         (AC_CONFIG_FILES): Add libgomp.spec.
10225         * libgomp.spec.in: New file.
10226         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
10227         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
10229 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
10231         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
10232         reduction(-:var) behaving the same as reduction(+:var).
10233         * testsuite/libgomp.c/reduction-4.c: New test.
10235 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
10237         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
10238         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
10239         testsuite/libgomp.c/copyin-3.c,
10240         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
10241         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
10242         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
10243         testsuite/libgomp.c++/pr24455.C,
10244         testsuite/libgomp.fortran/threadprivate1.f90,
10245         testsuite/libgomp.fortran/threadprivate2.f90,
10246         testsuite/libgomp.fortran/threadprivate3.f90,
10247         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
10248         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
10249         testsuite/libgomp.fortran/omp_parse3.f90: Require
10250         effective-target TLS.
10252 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
10254         * HEADER: Remove.
10256 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
10258         PR libgomp/24797
10259         * team.c (initialize_team): Pass NULL rather than free as
10260         pthread_key_create destructor.  Initialize thread specific data
10261         pointer in initial thread to a static local variable rather than
10262         malloced memory.
10264 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
10266         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
10267         its location to ld_library_path.
10269 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
10271         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
10273 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
10275         * testsuite/libgomp.c: Rename from libgomp.dg.
10277 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
10279         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
10280         threadprivate variable 'i'.
10282 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
10284         * config/linux/s390/futex.h: New file.
10285         * configure.tgt: Use it.
10287         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
10288         before the parallel.
10290 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
10292         PR c++/24734
10293         * testsuite/libgomp.c++/master-1.C: New test.
10295 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
10297         * testsuite/libgomp.dg/copyin-3.c: New test.
10299 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
10301         * testsuite/libgomp.fortran/retval1.f90: New test.
10302         * testsuite/libgomp.fortran/vla7.f90: New test.
10304 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
10306         * testsuite/libgomp.fortran/vla2.f90: New test.
10307         * testsuite/libgomp.fortran/vla3.f90: New test.
10308         * testsuite/libgomp.fortran/vla4.f90: New test.
10309         * testsuite/libgomp.fortran/vla5.f90: New test.
10310         * testsuite/libgomp.fortran/vla6.f90: New test.
10312 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
10314         * config/linux/sparc/futex.h: New file.
10315         * configure.tgt: Use it.
10316         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
10318         * critical.c: Include stdlib.h.
10319         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
10320         ignoring return value.
10321         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
10322         LIBGOMP_CHECK_SYNC_BUILTINS check.
10323         * configure: Rebuilt.
10325 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
10327         * testsuite/libgomp.fortran/vla1.f90: New test.
10329 2005-10-31  Richard Henderson  <rth@redhat.com>
10331         * testsuite/libgomp.fortran/character2.f90: Fix race condition
10332         setting 's' in different threads.
10334 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
10336         * libgomp.h (attribute_hidden, ialias): Define.
10337         * config/posix/proc.c (omp_get_num_procs): Add ialias.
10338         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
10339         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
10340         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
10341         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
10342         omp_test_lock, omp_test_nest_lock): Likewise.
10343         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
10344         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
10345         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
10346         omp_test_lock, omp_test_nest_lock): Likewise.
10347         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
10348         omp_get_dynamic, omp_get_nested): Likewise.
10349         * parallel.c (omp_get_num_threads, omp_get_max_threads,
10350         omp_get_thread_num, omp_in_parallel): Likewise.
10351         * fortran.c (ialias_redirect): Define.
10352         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
10353         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
10354         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
10355         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
10356         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
10357         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
10358         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
10359         omp_get_wtime): Add ialias_redirect.
10361 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
10363         * fortran.c: Include stdlib.h.
10365 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
10367         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
10368         * Makefile.in: Regenerated.
10370 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
10372         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
10373         * libgomp_f.h.in (omp_check_defines): New function.
10374         * env.c: Include libgomp_f.h.
10375         (initialize_env): Call omp_check_defines.
10377         * testsuite/libgomp.dg/copyin-2.c: New test.
10378         * testsuite/libgomp.c++/copyin-2.C: New test.
10379         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
10381         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
10382         * testsuite/libgomp.fortran/sharing2.f90: New test.
10384         * testsuite/libgomp.dg/copyin-1.c: New test.
10385         * testsuite/libgomp.c++/copyin-1.C: New test.
10387 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
10389         * testsuite/libgomp.fortran/crayptr1.f90: New test.
10391         * testsuite/libgomp.fortran/workshare1.f90: New test.
10393         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
10394         only test.
10395         * libgomp.fortran/sharing1.f90: New test.
10397 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
10399         PR c++/24502
10400         * testsuite/libgomp.c++/loop-7.C: New test.
10402         * testsuite/libgomp.dg/nestedfn-2.c: New test.
10404         * testsuite/libgomp.dg/nestedfn-1.c: New test.
10405         * testsuite/libgomp.fortran/reduction6.f90: New test.
10406         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
10408 2005-10-23  Richard Henderson  <rth@redhat.com>
10410         * testsuite/libgomp.c++/ctor-1.C: New.
10411         * testsuite/libgomp.c++/ctor-2.C: New.
10412         * testsuite/libgomp.c++/ctor-3.C: New.
10413         * testsuite/libgomp.c++/ctor-4.C: New.
10414         * testsuite/libgomp.c++/ctor-5.C: New.
10415         * testsuite/libgomp.c++/ctor-6.C: New.
10416         * testsuite/libgomp.c++/ctor-7.C: New.
10417         * testsuite/libgomp.c++/ctor-8.C: New.
10418         * testsuite/libgomp.c++/ctor-9.C: New.
10420 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
10422         PR 24455
10423         * testsuite/libgomp.c++/pr24455-1.C: New test.
10424         * testsuite/libgomp.c++/pr24455.C: New test.
10425         * testsuite/libgomp.dg/pr24455-1.c: New test.
10426         * testsuite/libgomp.dg/pr24455.c: New test.
10428 2005-10-20  Richard Henderson  <rth@redhat.com>
10430         * testsuite/libgomp.c++/loop-6.C: New.
10431         * testsuite/libgomp.dg/loop-3.c: New.
10433 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
10435         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
10436         explicitly private.
10437         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
10438         explicitly shared.
10440 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
10442         * testsuite/libgomp.fortran/jacobi.f: New test.
10444 2005-10-19  Richard Henderson  <rth@redhat.com>
10446         * configure.tgt (i?86-linux): Default to with_arch instead of
10447         CFLAGS.  Add -mtune to match target_cpu.
10448         (x86_64-linux): Tune to i686.
10450         * fortran.c (omp_test_nest_lock_): Fix typo.
10452 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
10454         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
10455         gomp_ordered_sync): Do nothing if team->nthreads == 1.
10456         * testsuite/libgomp.dg/ordered-3.c: New test.
10458         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
10459         Remove volatile keyword.
10461         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
10462         in COMMON block to avoid warnings on 64-bit targets.
10464 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
10466         * testsuite/libgomp.dg/shared-3.c: New test.
10468 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
10470         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
10471         * testsuite/libgomp.fortran/reduction5.f90: New test.
10473 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
10475         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
10476         dg-options.
10477         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
10478         flush loop now that __sync_synchronize has proper memory barrier.
10479         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
10480         Add -ffixed-form to dg-options.
10482 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
10484         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
10485         from subdirectories.
10486         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
10487         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
10488         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
10489         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
10490         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
10491         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
10492         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
10493         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
10494         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
10495         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
10496         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
10497         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
10498         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
10499         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
10500         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
10501         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
10502         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
10503         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
10504         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
10505         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
10506         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
10507         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
10508         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
10509         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
10510         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
10512 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
10514         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
10515         lang_library_path exists.  Use find instead of glob to gather tests.
10516         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
10518 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
10520         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
10521         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
10522         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
10523         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
10524         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
10525         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
10526         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
10527         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
10528         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
10529         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
10530         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
10531         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
10532         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
10534 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
10536         * testsuite/libgomp.dg/vla-1.c: New test.
10538         * testsuite/libgomp.fortran/reference2.f90: New test.
10540         * testsuite/libgomp.fortran/character2.f90: Remove explicit
10541         declaration of omp_get_thread_num.
10542         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
10543         use omp_lib.
10545         * testsuite/libgomp.fortran/reduction1.f90: New test.
10546         * testsuite/libgomp.fortran/reduction2.f90: New test.
10547         * testsuite/libgomp.fortran/reduction3.f90: New test.
10548         * testsuite/libgomp.fortran/reduction4.f90: New test.
10550 2005-10-13  Richard Henderson  <rth@redhat.com>
10552         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
10553         * Makefile.in: Regenerate.
10554         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
10555         * libgomp.h: Include bar.h.
10556         (struct gomp_barrier): Remove.
10557         (struct gomp_team): Add barrier.  Replace master_barrier with
10558         master_release.  Replace threads with ordered_release.
10559         (struct gomp_thread): Replace barrier with release.
10560         * ordered.c (gomp_ordered_first): Update for ordered_release change.
10561         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
10562         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
10563         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
10564         (GOMP_single_copy_end): Likewise.
10565         * team.c (gomp_threads_dock): New.
10566         (gomp_barrier_init, gomp_barrier_destroy): Remove.
10567         (gomp_thread_start): Use gomp_barrier_wait.
10568         (new_team, free_team): Update for gomp_team changes.
10569         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
10570         (gomp_team_end): Use gomp_barrier_wait.
10571         (initialize_team): Update for gomp_thread changes.
10572         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
10573         (gomp_work_share_end_nowait): Use atomic ops when available.
10574         * config/linux/bar.c, config/linux/bar.h: New files.
10575         * config/posix/bar.c, config/posix/bar.h: New files.
10577 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
10579         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
10580         * testsuite/libgomp.dg/single-2.c: New test.
10582         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
10583         lang_link_flags): Unset, so that they aren't inherited from previously
10584         sourced *.exp.
10586         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
10588 2005-10-12  Richard Henderson  <rth@redhat.com>
10590         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
10591         (libgomp_init): Use lang_test_file, lang_library_path, and
10592         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
10594         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
10595         (lang_test_file, lang_link_flags): New.
10596         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
10598         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
10599         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
10600         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
10601         testsuite/libgomp.c++/parallel-1.C,
10602         testsuite/libgomp.c++/reduction-1.C,
10603         testsuite/libgomp.c++/reduction-2.C,
10604         testsuite/libgomp.c++/reduction-3.C,
10605         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
10606         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
10607         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
10608         New files, largely cribbed from the C testsuite.
10610 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
10612         * testsuite/libgomp.fortran/character1.f90: New test.
10613         * testsuite/libgomp.fortran/character2.f90: New test.
10615         * testsuite/libgomp.dg/nested-1.c: New test.
10616         * testsuite/libgomp.dg/nested-2.c: New test.
10617         * testsuite/libgomp.fortran/do1.f90: New test.
10618         * testsuite/libgomp.fortran/do2.f90: New test.
10620         * testsuite/libgomp.fortran/reference1.f90: New test.
10622 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
10624         * testsuite/libgomp.dg/reduction-1.c: New test.
10625         * testsuite/libgomp.dg/reduction-2.c: New test.
10626         * testsuite/libgomp.dg/reduction-3.c: New test.
10628 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
10630         * testsuite/libgomp.dg/atomic-1.c: New test.
10631         * testsuite/libgomp.dg/atomic-2.c: New test.
10633 2005-10-09  Richard Henderson  <rth@redhat.com>
10635         * critical.c (atomic_lock): New.
10636         (initialize_critical): Initialize it.
10637         (GOMP_atomic_start, GOMP_atomic_end): New.
10638         * libgomp.map: Export them.
10639         * libgomp_g.h: Declare them.
10641         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
10643 2005-10-02  Richard Henderson  <rth@redhat.com>
10645         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
10646         to XCFLAGS instead of CFLAGS.
10648 2005-09-30  Richard Henderson  <rth@redhat.com>
10650         * configure.ac: Determine whether -pthread or -lpthread is needed.
10651         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
10652         * Makefine.in, configure: Rebuild.
10654 2005-09-28  Richard Henderson  <rth@redhat.com>
10656         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
10657         * testsuite/libgomp.dg/omp-single-3.c: New test.
10659 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
10661         * testsuite/libgomp.dg/omp-single-2.c: New test.
10662         * testsuite/libgomp.dg/shared-2.c: Fix return code.
10664 2005-09-27  Richard Henderson  <rth@redhat.com>
10666         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
10667         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
10669 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
10671         * testsuite/libgomp.dg/omp-loop03.c: New test.
10673 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
10675         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
10677 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
10679         * testsuite/libgomp.dg/omp-single-1.c: New test.
10680         * testsuite/libgomp.dg/shared-1.c: Return 0.
10681         Add prototype for abort.
10682         * testsuite/libgomp.dg/shared-2.c: Likewise.
10684 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
10686         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
10687         constructs.
10689 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
10691         * testsuite/libgomp.dg/shared-1.c: New test.
10692         * testsuite/libgomp.dg/shared-2.c: New test.
10694 2005-09-24  Richard Henderson  <rth@redhat.com>
10696         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
10698 2005-09-24  Richard Henderson  <rth@redhat.com>
10700         * iter.c (gomp_iter_static_next): Round up when computing number
10701         of iterations.  Don't bother distributing a remainder equally.
10703         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
10704         Don't call srand.  Zero b before testing.
10705         (main): New.
10707 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
10709         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
10710         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
10712 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
10714         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
10715         without !$omp end do, followed immediately by subroutine end.
10717 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
10719         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
10721 2005-09-22  Richard Henderson  <rth@redhat.com>
10723         * critical.c (GOMP_critical_name_start): Change argument to void**.
10724         Reuse the pointer space if the mutex fits.
10725         (GOMP_critical_name_end): Likewise.
10726         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
10727         * libgomp_g.h (GOMP_critical_name_start): Update decl.
10728         (GOMP_critical_name_end): Likewise.
10729         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
10730         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
10732 2005-09-20  Richard Henderson  <rth@redhat.com>
10734         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
10735         (create_lock_lock): New.
10736         (initialize_critical): Initialize it.
10737         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
10738         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
10740 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
10742         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
10744 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
10746         * testsuite/libgomp.dg/omp-loop01.c: New test.
10747         * testsuite/libgomp.dg/omp-loop02.c: New test.
10749 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
10751         * configure.ac (AC_PROG_FC): Add.
10752         (USE_FORTRAN): New automake conditional.
10753         * configure: Rebuilt.
10754         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
10755         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
10756         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
10757         Add rules to build them.
10758         * Makefile.in: Rebuilt.
10759         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
10760         OMP_NEST_LOCK_KIND.
10761         * libgomp.map: Add Fortran wrappers.
10762         * libgomp_f.h.in: New file.
10763         * omp_lib.h.in: New file.
10764         * omp_lib.f90.in: New file.
10765         * fortran.c: New file.
10766         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
10767         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
10768         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
10769         libgfortran has been built.
10770         * testsuite/libgomp.fortran/fortran.exp: New file.
10771         * testsuite/libgomp.fortran/omp_cond1.f: New test.
10772         * testsuite/libgomp.fortran/omp_cond2.f: New test.
10773         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
10774         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
10775         * testsuite/libgomp.fortran/omp_hello.f: New test.
10776         * testsuite/libgomp.fortran/omp_orphan.f: New test.
10777         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
10778         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
10779         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
10780         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
10781         * testsuite/libgomp.fortran/omp_reduction.f: New test.
10782         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
10783         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
10785 2005-08-30  Richard Henderson  <rth@redhat.com>
10787         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
10788         function for when aliases are not usable.
10789         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
10790         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
10791         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
10792         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
10793         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
10794         GOMP_loop_ordered_guided_next): Likewise.
10795         * ordered.c (GOMP_ordered_start): Likewise.
10797 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
10799         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
10800         * testsuite/libgomp.dg/omp_hello.c: Fix return code
10801         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
10802         * testsuite/libgomp.dg/omp_orphan.c: Likewise
10803         * testsuite/libgomp.dg/omp_reduction.c: Likewise
10804         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
10805         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
10806         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
10807         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
10809 2005-07-07  Eric Christopher  <echristo@redhat.com>
10810             Diego Novillo  <dnovillo@redhat.com>
10812         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
10813         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
10814         up code.
10815         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
10816         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
10817         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
10818         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
10819         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
10820         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
10821         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
10823 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
10825         * TOPLEVEL.patch: Remove.
10827 2005-05-16  Richard Henderson  <rth@redhat.com>
10829         * configure.ac: Test for clock_gettime.
10830         * config.h.in, configure: Rebuild.
10831         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
10832         (omp_get_wtime): Use clock_gettime if available.
10833         (omp_get_wtick): Use clock_getres if available.
10835 2005-05-11  Richard Henderson  <rth@redhat.com>
10837         * config/linux/ia64/futex.h: New file.
10838         * configure.tgt: Use it.
10840         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
10842 2005-05-07  Richard Henderson  <rth@redhat.com>
10844         * config/linux/powerpc/futex.h: New file.
10845         * configure.tgt: Use it.
10847         * config/linux/i486/futex.h: Merge ...
10848         * config/linux/x86_64/futex.h: ... into ...
10849         * config/linux/x86/futex.h: ... here.
10850         * configure.tgt: Update to match.
10852 2005-05-06  Richard Henderson  <rth@redhat.com>
10854         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
10855         * config/linux/i486/futex.h: Likewise.
10856         * config/linux/x86_64/futex.h: Likewise.
10858         * config/linux/lock.c: New file.
10859         * config/linux/omp-lock.h: New file.
10861         * critical.c, env.h: Don't include omp.h
10862         * config/posix/lock.c: Include libgomp.h instead of omp.h.
10863         * config/posix/time.c: Likewise.
10864         * config/posix/omp-lock.h: New file.
10865         * libgomp.h: Include omp-lock.h and omp.h.
10866         * Makefile.am (nodist_include_HEADERS): New.
10867         (omp.h): New rule.
10868         * configure.ac (PERL): New.
10869         * mkomp_h.pl: New file.
10870         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
10871         with templates.
10872         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
10874         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
10875         build directory.  Re-add -march=i486 hack.
10877         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
10878         (libgomp_link_flags): Remove.
10879         (libgomp_initialized): Remove.
10880         (libgomp_init): Don't protect from reinitialization.  Copy code
10881         from libstdc++ for getting the multilib set correctly.
10883 2005-05-05  Richard Henderson  <rth@redhat.com>
10885         * config/linux/alpha/futex.h: New file.
10886         * configure.tgt (alpha*-*-linux*): Use it.
10888         * config/posix/mutex.c: New file.
10889         * config/posix/sem.c: Use libgomp.h.
10891         * configure.tgt (x86_64-linux): Also test CC for -m32.
10892         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
10894         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
10895         after $gccpath.
10897         * Makefile.am (SUBDIRS): New.
10898         (libgomp_la_LDFLAGS): Add -lpthread.
10899         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
10900         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
10902         * libgomp_g.h: New file.
10903         * libgomp.h: Split out all public declarations to libgomp_g.h.
10904         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
10905         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
10906         * config/linux/sem.h: Likewise.
10907         * config/posix/sem.h: Likewise.
10909         * Makefile.am (AM_LDFLAGS): New.
10910         (libgomp_version_script): Split out from ...
10911         (libgomp_la_LDFLAGS): ... here.
10912         (libgomp_version_info): New.
10913         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
10914         (LIBGOMP_ENABLE): New.
10915         (LIBGOMP_CHECK_LINKER_FEATURES): New.
10916         (LIBGOMP_ENABLE_SYMVERS): New.
10917         * configure.ac (AC_INIT): Version 1.0.
10918         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
10919         (enable-linux-futex): Likewise.  Rename from enable-futex.
10920         (libtool_VERSION): New.
10921         (LIBGOMP_ENABLE_SYMVERS): Use it.
10922         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
10923         * Makefile.in, aclocal.m4, configure: Rebuild.
10925         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
10926         (gomp_mutex_unlock_slow): Fix typo.
10927         * config/linux/sem.c: Similarly.
10928         (gomp_sem_post_slow): Fix typo.
10929         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
10930         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
10931         [__PIC__] (sys_futex0): Don't use tmp output in asm.
10933         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
10934         (libgomp_la_LDFLAGS): Add top_srcdir to path.
10935         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
10936         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
10937         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
10938         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
10939         LDFLAGS.  Pull enable_futex check to top-level.
10940         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
10941         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
10943         First attempt at real configury.
10944         * Makefile, config.h: Remove file.
10945         * Makefile.am, Makefile.in: New file.
10946         * acinclude.m4 aclocal.m4: New file.
10947         * configure.ac, configure.tgt, configure: New file.
10949         * config/posix/lock.c: Rename from sys-lock.c.
10950         * config/posix/mutex.h: Rename from sys-mutex.h.
10951         * config/posix/sem.c: Rename from sys-sem.c.
10952         * config/posix/sem.h: Rename from sys-sem.h.
10953         * config/posix/proc.c: Rename from sys-proc.c.
10954         * config/posix/time.c: Rename from sys-proc.c.
10956         * config/linux/mutex.c: New file.
10957         * config/linux/mutex.h: New file.
10958         * config/linux/sem.c: New file.
10959         * config/linux/sem.h: New file.
10960         * config/linux/i486/futex.h: New file.
10961         * config/linux/x86_64/futex.h: New file.
10963 2005-05-04  Richard Henderson  <rth@redhat.com>
10965         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
10966         * libgomp.h: Declare them.
10967         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
10968         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
10970 2005-05-04  Richard Henderson  <rth@redhat.com>
10972         * libgomp-1 code drop
10974 2005-05-04  Richard Henderson  <rth@redhat.com>
10976         * iter.c (gomp_iter_static_next): Return tri-state on 0.
10977         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
10978         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
10979         (gomp_iter_static_next): Update.
10980         (gomp_ordered_static_next): Update.
10981         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
10982         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
10983         totally empty range.
10984         (gomp_loop_ordered_static_next): Refine test for calling
10985         gomp_ordered_static_next.
10986         * testsuite/ordered-1.c: Add case for more threads than iterations.
10988         * iter.c (gomp_iter_runtime_next_locked): Remove.
10989         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
10990         gomp_loop_guided_start, gomp_loop_ordered_static_start,
10991         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
10992         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
10993         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
10994         gomp_loop_ordered_guided_next): Downcase name, make static, add
10995         an external alias with the old name.
10996         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
10997         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
10998         switch and call one of the above static functions.
10999         * libgomp.h: Update.
11001         * work.c (gomp_work_share_start): Lock the mutex for !first too.
11002         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
11003         GOMP_loop_guided_start, GOMP_loop_runtime_start,
11004         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
11005         GOMP_loop_ordered_guided_start): Update to match.
11006         * sections.c (GOMP_sections_start): Likewise.
11007         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
11009         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
11010         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
11011         Use bounds check instead of modulus.
11012         (gomp_ordered_sync): Split out of GOMP_ordered_start.
11013         (gomp_ordered_last): Don't sync with ordered_owner here.
11014         (gomp_ordered_next): Likewise.
11015         (gomp_ordered_static_loop_next): Likewise.
11016         * loop.c, libgomp.h: Update to match.
11018         * libgomp.h (GOMP_barrier): Declare.
11020         * testsuite/barrier-1.c: New file.
11021         * testsuite/critical-1.c: New file.
11022         * testsuite/ordered-2.c: New file.
11023         * testsuite/ordered-1.c: New file.
11024         * testsuite/sections-1.c: New file.
11025         * testsuite/single-1.c: New file.
11026         * testsuite/Makefile (TESTS): Add them.
11028 2005-05-04  Richard Henderson  <rth@redhat.com>
11030         * libgomp.h (struct gomp_work_share): Add ordered_owner.
11031         * loop.c (GOMP_loop_static_start): If not the startup thread,
11032         acquire the mutex to wait for initialization complete.
11033         (GOMP_loop_ordered_static_start): Likewise.
11034         (GOMP_loop_ordered_runtime_start): Likewise.
11035         (GOMP_loop_ordered_static_first): Remove.
11036         (GOMP_loop_ordered_dynamic_first): Remove.
11037         (GOMP_loop_ordered_guided_first): Remove.
11038         (GOMP_loop_ordered_runtime_first): Remove.
11039         * ordered.c (gomp_ordered_loop_first): Post to own release when
11040         we're the first thread.
11041         (gomp_ordered_loop_last): Wait on release if not owner.
11042         (gomp_ordered_loop_next): Likewise.
11043         (gomp_ordered_static_loop_init): New.
11044         (gomp_ordered_static_loop_next): Use ordered_owner.
11045         (GOMP_ordered_start): Likewise.
11046         * work.c (gomp_new_work_share): Initialize ordered_owner.
11048 2005-05-03  Richard Henderson  <rth@redhat.com>
11050         * Makefile (OPT): New.
11051         (CFLAGS): Use it.
11053         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
11054         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
11055         * libgomp.h, libgomp.map, NOTES: Update to match.
11057         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
11058         Add initialized and thr members.
11059         (gomp_thread_start): Pause when initially spawned to wait for
11060         the whole team to be created.
11061         (gomp_team_start): Release team members at the end.
11063         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
11064         (f_foo_1): Use GOMP_loop_end.
11065         (f_foo_2): Use GOMP_loop_end_nowait.
11067         * testsuite/loop-2.c: New file.
11068         * testsuite/Makefile (TESTS): Add it.
11070 2005-05-03  Richard Henderson  <rth@redhat.com>
11072         * iter.c (gomp_iter_static_next): Fix overflow check typo.
11073         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
11074         * team.c (new_team): Initialize oldest_live_gen to 1 if no
11075         initial work_share.
11077         * testsuite/Makefile: New file.
11078         * testsuite/loop-1.c: New file.
11080 2005-05-03  Richard Henderson  <rth@redhat.com>
11082         Initial implementation and checkin.
11084 Copyright (C) 2005-2019 Free Software Foundation, Inc.
11086 Copying and distribution of this file, with or without modification,
11087 are permitted in any medium without royalty provided the copyright
11088 notice and this notice are preserved.