Daily bump.
[official-gcc.git] / libgomp / ChangeLog
blobaceb6affc7acc04d9776ce4da99543eb491e08d3
1 2021-09-28  Tobias Burnus  <tobias@codesourcery.com>
3         PR libgomp/96661
4         * configure.ac: Only check for int-type = 2*size_t support when
5         building with Fortran support.
6         * configure: Regenerate.
8 2021-09-28  Thomas Schwinge  <thomas@codesourcery.com>
10         * testsuite/libgomp.oacc-fortran/if-1.f90: Adjust.
11         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
13 2021-09-27  Aldy Hernandez  <aldyh@redhat.com>
15         * team.c: Initialize start_data.
16         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
17         * testsuite/libgomp.graphite/force-parallel-8.c: Adjust.
19 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
21         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Change
22         dg-message back to dg-note.
24 2021-09-27  Tobias Burnus  <tobias@codesourcery.com>
26         PR fortran/94070
27         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Update
28         expected dg-note output.
30 2021-09-22  Tobias Burnus  <tobias@codesourcery.com>
32         PR fortran/55534
33         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Revert
34         r12-3722 by removing -Wno-missing-include-dirs.
35         * testsuite/libgomp.oacc-fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
37 2021-09-22  Jakub Jelinek  <jakub@redhat.com>
39         * testsuite/libgomp.c-c++-common/allocate-2.c: New test.
40         * testsuite/libgomp.c-c++-common/allocate-3.c: New test.
42 2021-09-21  Tobias Burnus  <tobias@codesourcery.com>
44         PR fortran/55534
45         * testsuite/libgomp.fortran/fortran.exp: Add -Wno-missing-include-dirs
46         to ALWAYS_CFLAGS.
47         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
49 2021-09-18  Jakub Jelinek  <jakub@redhat.com>
51         * testsuite/libgomp.c++/default-1.C: New test.
52         * testsuite/libgomp.c-c++-common/default-1.c: New test.
53         * libgomp.texi (OpenMP 5.1): Mark "private and firstprivate argument
54         to default clause in C and C++" as implemented.
56 2021-09-17  Julian Brown  <julian@codesourcery.com>
58         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: Update.
60 2021-09-17  Julian Brown  <julian@codesourcery.com>
62         * testsuite/libgomp.oacc-c-c++-common/broadcast-many.c: New test.
64 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
66         * libgomp.texi (OpenMP 5.1): Spelling fix,
67         declare variante -> declare variant.
69 2021-09-17  Jakub Jelinek  <jakub@redhat.com>
71         * testsuite/libgomp.c-c++-common/atomic-19.c: Drop c effective target.
72         Use /* */ comments instead of //.
73         * testsuite/libgomp.c-c++-common/atomic-20.c: Likewise.
74         * testsuite/libgomp.c-c++-common/atomic-21.c: Likewise.
75         * testsuite/libgomp.c++/atomic-16.C: New test.
76         * testsuite/libgomp.c++/atomic-17.C: New test.
78 2021-09-10  Jakub Jelinek  <jakub@redhat.com>
80         * testsuite/libgomp.c-c++-common/atomic-19.c: New test.
81         * testsuite/libgomp.c-c++-common/atomic-20.c: New test.
82         * testsuite/libgomp.c-c++-common/atomic-21.c: New test.
84 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
86         * libgomp.texi (OpenMP Implementation Status): Extend
87         OpenMP 5.0 section.
88         (OpenACC Profiling Interface): Fix typo.
90 2021-09-07  Tobias Burnus  <tobias@codesourcery.com>
92         * libgomp.texi (Enabling OpenMP): Refer to OMP spec in general
93         not to 4.5; link to new section.
94         (OpenMP Implementation Status): New.
96 2021-09-06  Thomas Schwinge  <thomas@codesourcery.com>
98         * testsuite/libgomp.c/target-43.c: '-latomic' for nvptx offloading.
100 2021-09-03  Tobias Burnus  <tobias@codesourcery.com>
102         * testsuite/libgomp.c-c++-common/error-1.c: Use \r\n not \n\r in
103         dg-output.
104         * testsuite/libgomp.fortran/error-1.f90: Likewise.
106 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
107             Jakub Jelinek  <jakub@redhat.com>
109         * testsuite/libgomp.c/address-space-1.c: New file.
111 2021-08-23  Thomas Schwinge  <thomas@codesourcery.com>
113         * testsuite/lib/libgomp.exp
114         (check_effective_target_offload_target_intelmic): Remove 'proc'.
115         (check_effective_target_offload_device_intel_mic): New 'proc'.
116         * testsuite/libgomp.c-c++-common/on_device_arch.h
117         (device_arch_intel_mic, on_device_arch_intel_mic): New.
118         * testsuite/libgomp.c-c++-common/target-45.c: Use that for
119         'dg-xfail-run-if'.
120         * testsuite/libgomp.fortran/target10.f90: Likewise.
122 2021-08-23  Tobias Burnus  <tobias@codesourcery.com>
124         * testsuite/libgomp.fortran/taskloop-4-a.f90: New test.
125         * testsuite/libgomp.fortran/taskloop-4.f90: New test.
126         * testsuite/libgomp.fortran/taskloop-5-a.f90: New test.
127         * testsuite/libgomp.fortran/taskloop-5.f90: New test.
129 2021-08-23  Jakub Jelinek  <jakub@redhat.com>
131         * taskloop.c (GOMP_taskloop): Handle GOMP_TASK_FLAG_STRICT.
132         * testsuite/libgomp.c-c++-common/taskloop-4.c (main): Fix up comment.
133         * testsuite/libgomp.c-c++-common/taskloop-5.c: New test.
135 2021-08-22  Thomas Schwinge  <thomas@codesourcery.com>
137         * config/nvptx/error.c (fwrite, exit): Override, too.
138         * testsuite/libgomp.c-c++-common/error-1.c: Add a minimum amount
139         of offloading testing.
140         * testsuite/libgomp.fortran/error-1.f90: Likewise.
142 2021-08-20  Tobias Burnus  <tobias@codesourcery.com>
144         * testsuite/libgomp.fortran/error-1.f90: New test.
146 2021-08-20  Jakub Jelinek  <jakub@redhat.com>
148         * libgomp.map (GOMP_5.1): Add GOMP_error and GOMP_warning.
149         * libgomp_g.h (GOMP_warning, GOMP_error): Declare.
150         * error.c (GOMP_warning, GOMP_error): New functions.
151         * testsuite/libgomp.c-c++-common/error-1.c: New test.
153 2021-08-18  Tobias Burnus  <tobias@codesourcery.com>
155         * omp_lib.f90.in (omp_alloc, omp_free, omp_target_alloc,
156         omp_target_free. omp_target_is_present, omp_target_memcpy,
157         omp_target_memcpy_rect, omp_target_associate_ptr,
158         omp_target_disassociate_ptr): Add interface.
159         * omp_lib.h.in (omp_alloc, omp_free, omp_target_alloc,
160         omp_target_free. omp_target_is_present, omp_target_memcpy,
161         omp_target_memcpy_rect, omp_target_associate_ptr,
162         omp_target_disassociate_ptr): Add interface.
163         * testsuite/libgomp.fortran/alloc-1.F90: Remove local
164         interface block for omp_alloc + omp_free.
165         * testsuite/libgomp.fortran/alloc-4.f90: Likewise.
166         * testsuite/libgomp.fortran/refcount-1.f90: New test.
167         * testsuite/libgomp.fortran/target-12.f90: New test.
169 2021-08-18  Jakub Jelinek  <jakub@redhat.com>
171         * testsuite/libgomp.c-c++-common/nothing-1.c: New test.
173 2021-08-17  Tobias Burnus  <tobias@codesourcery.com>
175         * testsuite/libgomp.fortran/scope-1.f90: New test.
176         * testsuite/libgomp.fortran/task-reduction-16.f90: New test.
178 2021-08-17  Jakub Jelinek  <jakub@redhat.com>
180         * Makefile.am (libgomp_la_SOURCES): Add scope.c
181         * Makefile.in: Regenerated.
182         * libgomp_g.h (GOMP_scope_start): Declare.
183         * libgomp.map: Add GOMP_scope_start@@GOMP_5.1.
184         * scope.c: New file.
185         * testsuite/libgomp.c-c++-common/scope-1.c: New test.
186         * testsuite/libgomp.c-c++-common/task-reduction-16.c: New test.
188 2021-08-16  Thomas Schwinge  <thomas@codesourcery.com>
190         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Address
191         '?:' issues.
193 2021-08-16  Tobias Burnus  <tobias@codesourcery.com>
195         * testsuite/libgomp.fortran/masked-1.f90: New test.
197 2021-08-13  Thomas Schwinge  <thomas@codesourcery.com>
199         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Adjust.
201 2021-08-12  Jakub Jelinek  <jakub@redhat.com>
203         * testsuite/libgomp.c-c++-common/masked-1.c: New test.
205 2021-08-12  Tobias Burnus  <tobias@codesourcery.com>
207         * env.c (parse_bind_var): Accept 'primary' as alias for
208         'master'.
209         (omp_display_env): Add TODO comment to
210         change 'master' to 'primary' in proc_bind for OpenMP 5.1.
211         * libgomp.texi: Change 'master thread' to 'primary thread'
212         in line with OpenMP 5.1.
213         (omp_get_proc_bind): Add omp_proc_bind_primary and note that
214         omp_proc_bind_master is an alias of it.
215         (OMP_PROC_BIND): Mention 'PRIMARY'.
216         * omp.h.in (__GOMP_DEPRECATED_5_1): Define.
217         (omp_proc_bind_primary): Add.
218         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
219         * omp_lib.f90.in (omp_proc_bind_primary): Add.
220         (omp_proc_bind_master): Deprecate for OpenMP 5.1.
221         * omp_lib.h.in (omp_proc_bind_primary): Add.
222         * testsuite/libgomp.c/affinity-1.c: Check that
223         'primary' works and is identical to 'master'.
225 2021-08-09  Julian Brown  <julian@codesourcery.com>
226             Kwok Cheung Yeung  <kcy@codesourcery.com>
227             Thomas Schwinge  <thomas@codesourcery.com>
229         * plugin/plugin-gcn.c (gcn_exec): Change default number of workers to
230         16.
231         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
232         [acc_device_radeon]: Update.
233         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c
234         [ACC_DEVICE_TYPE_radeon]: Likewise.
235         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
236         [acc_device_radeon]: Likewise.
237         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c
238         [ACC_DEVICE_TYPE_radeon]: Likewise.
239         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: XFAIL for
240         'openacc_radeon_accel_selected' and '-O0'.
241         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
243 2021-08-05  Chung-Lin Tang  <cltang@codesourcery.com>
245         * icv-device.c (omp_get_device_num): New API function, host side.
246         * fortran.c (omp_get_device_num_): New interface function.
247         * libgomp-plugin.h (GOMP_DEVICE_NUM_VAR): Define macro symbol.
248         * libgomp.map (OMP_5.0.2): New version space with omp_get_device_num,
249         omp_get_device_num_.
250         * libgomp.texi (omp_get_device_num): Add documentation for new API
251         function.
252         * omp.h.in (omp_get_device_num): Add declaration.
253         * omp_lib.f90.in (omp_get_device_num): Likewise.
254         * omp_lib.h.in (omp_get_device_num): Likewise.
255         * target.c (gomp_load_image_to_device): If additional entry for device
256         number exists at end of returned entries from 'load_image_func' hook,
257         copy the assigned device number over to the device variable.
258         * config/gcn/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
259         (omp_get_device_num): New API function, device side.
260         * plugin/plugin-gcn.c ("symcat.h"): Add include.
261         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
262         at end of returned 'target_table' entries.
263         * config/nvptx/icv-device.c (GOMP_DEVICE_NUM_VAR): Define static global.
264         (omp_get_device_num): New API function, device side.
265         * plugin/plugin-nvptx.c ("symcat.h"): Add include.
266         (GOMP_OFFLOAD_load_image): Add addresses of device GOMP_DEVICE_NUM_VAR
267         at end of returned 'target_table' entries.
268         * testsuite/lib/libgomp.exp
269         (check_effective_target_offload_target_intelmic): New function for
270         testing for intelmic offloading.
271         * testsuite/libgomp.c-c++-common/target-45.c: New test.
272         * testsuite/libgomp.fortran/target10.f90: New test.
274 2021-07-30  Thomas Schwinge  <thomas@codesourcery.com>
275             Ulrich Drepper  <drepper@redhat.com>
277         * fortran.c (omp_display_env_, omp_display_env_8_): Only
278         '#ifndef LIBGOMP_OFFLOADED_ONLY'.
280 2021-07-29  Thomas Schwinge  <thomas@codesourcery.com>
281             Julian Brown  <julian@codesourcery.com>
282             Kwok Cheung Yeung  <kcy@codesourcery.com>
284         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c:
285         's%oaccdevlow%oaccloops%g'.
286         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
287         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
288         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c:
289         Likewise.
290         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c:
291         Likewise.
292         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c:
293         Likewise.
294         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c:
295         Likewise.
296         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c:
297         Likewise.
298         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c:
299         Likewise.
300         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c:
301         Likewise.
302         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c:
303         Likewise.
304         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
306 2021-07-29  Aldy Hernandez  <aldyh@redhat.com>
308         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust for
309         threader.
310         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
312 2021-07-27  Ulrich Drepper  <drepper@gmail.com>
314         * env.c (wait_policy, stacksize): New static variables,
315         move out of handle_omp_display_env.
316         (omp_display_env): New function.  The meat of the old
317         handle_omp_display_env function.
318         (handle_omp_display_env): Change to not take parameters
319         and instead use the global variables.  Only perform
320         parsing, defer to omp_display_env for the implementation.
321         (initialize_env): Remove local variables wait_policy and
322         stacksize.  Don't pass parameters to handle_omp_display_env.
323         * fortran.c: Add ialias_redirect for omp_display_env.
324         (omp_display_env_, omp_display_env_8_): New functions.
325         * libgomp.map (OMP_5.1): New version.  Add omp_display_env,
326         omp_display_env_, and omp_display_env_8_.
327         * omp.h.in: Declare omp_display_env.
328         * omp_lib.f90.in: Likewise.
329         * omp_lib.h.in: Likewise.
331 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
332             Julian Brown  <julian@codesourcery.com>
334         * target.c (gomp_coalesce_buf_add): Update comment.
335         (gomp_copy_host2dev, gomp_map_vars_internal): Don't expect to see
336         'aq && cbuf'.
337         (gomp_map_vars_internal): Only 'if (!aq)', do
338         'gomp_coalesce_buf_add'.
339         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Remove
340         XFAIL.
342 2021-07-27  Julian Brown  <julian@codesourcery.com>
343             Thomas Schwinge  <thomas@codesourcery.com>
345         * libgomp.h (gomp_copy_host2dev): Update prototype.
346         * oacc-mem.c (memcpy_tofrom_device, update_dev_host): Add new
347         argument to gomp_copy_host2dev (false).
348         * plugin/plugin-gcn.c (struct copy_data): Remove free_src field.
349         (copy_data): Don't free src.
350         (queue_push_copy): Remove free_src handling.
351         (GOMP_OFFLOAD_dev2dev): Update call to queue_push_copy.
352         (GOMP_OFFLOAD_openacc_async_host2dev): Remove source-data
353         snapshotting.
354         (GOMP_OFFLOAD_openacc_async_dev2host): Update call to
355         queue_push_copy.
356         * target.c (goacc_device_copy_async): Add SRCADDR_ORIG parameter.
357         (gomp_copy_host2dev): Add EPHEMERAL parameter.  Snapshot source
358         data when true, and set up deferred freeing of temporary buffer.
359         (gomp_copy_dev2host): Update call to goacc_device_copy_async.
360         (gomp_map_vars_existing, gomp_map_pointer, gomp_attach_pointer)
361         (gomp_detach_pointer, gomp_map_vars_internal, gomp_update): Update
362         calls to gomp_copy_host2dev with appropriate ephemeral argument.
363         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: Remove
364         XFAIL.
366 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
367             Tom de Vries  <tom@codesourcery.com>
369         * testsuite/libgomp.oacc-c-c++-common/async-data-1-1.c: New file.
370         * testsuite/libgomp.oacc-c-c++-common/async-data-1-2.c: Likewise.
372 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
374         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Clarify
375         sequencing of 'async' data copying vs. profiling events.
376         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
377         Likewise.
379 2021-07-27  Thomas Schwinge  <thomas@codesourcery.com>
380             Julian Brown  <julian@codesourcery.com>
382         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: Fix OpenACC
383         'async'/'wait' issue.
384         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: Likewise.
385         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: Likewise.
386         * testsuite/libgomp.oacc-fortran/lib-16.f90: Likewise.
388 2021-07-21  Thomas Schwinge  <thomas@codesourcery.com>
389             Joseph Myers  <joseph@codesourcery.com>
390             Cesar Philippidis  <cesar@codesourcery.com>
392         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-1.c: New
393         file.
394         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2.c:
395         Likewise.
396         * testsuite/libgomp.oacc-c-c++-common/routine-nohost-2_2.c:
397         Likewise.
398         * testsuite/libgomp.oacc-fortran/routine-nohost-1.f90: Likewise.
400 2021-07-20  Thomas Schwinge  <thomas@codesourcery.com>
402         PR target/101484
403         * configure.tgt [amdgcn*-*-*] (XCFLAGS): Add
404         '-Wno-error=array-bounds'.
405         * config/gcn/team.c: Remove '-Werror=array-bounds' work-around.
406         * libgomp.h [__AMDGCN__]: Likewise.
408 2021-07-19  Thomas Schwinge  <thomas@codesourcery.com>
410         PR target/101484
411         * config/gcn/team.c: Apply '-Werror=array-bounds' work-around.
412         * libgomp.h [__AMDGCN__]: Likewise.
414 2021-07-13  Jakub Jelinek  <jakub@redhat.com>
415             Florian Weimer  <fweimer@redhat.com>
417         * config/linux/sem.h: Don't include limits.h.
418         (SEM_WAIT): Define to -__INT_MAX__ - 1 instead of INT_MIN.
419         * config/linux/affinity.c: Include limits.h.
421 2021-07-01  Jakub Jelinek  <jakub@redhat.com>
423         PR middle-end/94366
424         * testsuite/libgomp.c-c++-common/pr94366.c: New test.
426 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
428         PR other/67300
429         * testsuite/libgomp.c-c++-common/reduction-16.c: Replace
430         -foffload=nvptx-none= by -foffload-options=nvptx-none= to
431         avoid disabling other offload targets.
432         * testsuite/libgomp.c-c++-common/reduction-5.c: Likewise.
433         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
434         * testsuite/libgomp.c/target-44.c: Likewise.
436 2021-06-29  Tobias Burnus  <tobias@codesourcery.com>
438         * testsuite/libgomp.fortran/defaultmap-8.f90 (bar): Determine whether
439         target has shared memory and disable some scalar pointer/allocatable
440         checks if not as firstprivate does not work.
442 2021-06-25  Chung-Lin Tang  <cltang@codesourcery.com>
444         PR testsuite/101114
445         * testsuite/libgomp.c-c++-common/struct-elem-5.c:
446         Add "target offload_device_nonshared_as" condition for enabling test.
448 2021-06-24  Jakub Jelinek  <jakub@redhat.com>
450         * testsuite/libgomp.c-c++-common/target-in-reduction-1.c: New test.
451         * testsuite/libgomp.c-c++-common/target-in-reduction-2.c: New test.
452         * testsuite/libgomp.c++/target-in-reduction-1.C: New test.
453         * testsuite/libgomp.c++/target-in-reduction-2.C: New test.
455 2021-06-23  Jakub Jelinek  <jakub@redhat.com>
457         PR middle-end/101167
458         * testsuite/libgomp.c-c++-common/task-reduction-15.c: New test.
460 2021-06-17  Chung-Lin Tang  <cltang@codesourcery.com>
462         * hashtab.h (htab_clear): New function with initialization code
463         factored out from...
464         (htab_create): ...here, adjust to use htab_clear function.
465         * libgomp.h (REFCOUNT_SPECIAL): New symbol to denote range of
466         special refcount values, add comments.
467         (REFCOUNT_INFINITY): Adjust definition to use REFCOUNT_SPECIAL.
468         (REFCOUNT_LINK): Likewise.
469         (REFCOUNT_STRUCTELEM): New special refcount range for structure
470         element siblings.
471         (REFCOUNT_STRUCTELEM_P): Macro for testing for structure element
472         sibling maps.
473         (REFCOUNT_STRUCTELEM_FLAG_FIRST): Flag to indicate first sibling.
474         (REFCOUNT_STRUCTELEM_FLAG_LAST):  Flag to indicate last sibling.
475         (REFCOUNT_STRUCTELEM_FIRST_P): Macro to test _FIRST flag.
476         (REFCOUNT_STRUCTELEM_LAST_P): Macro to test _LAST flag.
477         (struct splay_tree_key_s): Add structelem_refcount and
478         structelem_refcount_ptr fields into a union with dynamic_refcount.
479         Add comments.
480         (gomp_map_vars): Delete declaration.
481         (gomp_map_vars_async): Likewise.
482         (gomp_unmap_vars): Likewise.
483         (gomp_unmap_vars_async): Likewise.
484         (goacc_map_vars): New declaration.
485         (goacc_unmap_vars): Likewise.
486         * oacc-mem.c (acc_map_data): Adjust to use goacc_map_vars.
487         (goacc_enter_datum): Likewise.
488         (goacc_enter_data_internal): Likewise.
489         * oacc-parallel.c (GOACC_parallel_keyed): Adjust to use goacc_map_vars
490         and goacc_unmap_vars.
491         (GOACC_data_start): Adjust to use goacc_map_vars.
492         (GOACC_data_end): Adjust to use goacc_unmap_vars.
493         * target.c (hash_entry_type): New typedef.
494         (htab_alloc): New function hook for hashtab.h.
495         (htab_free): Likewise.
496         (htab_hash): Likewise.
497         (htab_eq): Likewise.
498         (hashtab.h): Add file include.
499         (gomp_increment_refcount): New function.
500         (gomp_decrement_refcount): Likewise.
501         (gomp_map_vars_existing): Add refcount_set parameter, adjust to use
502         gomp_increment_refcount.
503         (gomp_map_fields_existing): Add refcount_set parameter, adjust calls
504         to gomp_map_vars_existing.
505         (gomp_map_vars_internal): Add refcount_set parameter, add local openmp_p
506         variable to guard OpenMP specific paths, adjust calls to
507         gomp_map_vars_existing, add structure element sibling splay_tree_key
508         sequence creation code, adjust Fortran map case to avoid increment
509         under OpenMP.
510         (gomp_map_vars): Adjust to static, add refcount_set parameter, manage
511         local refcount_set if caller passed in NULL, adjust call to
512         gomp_map_vars_internal.
513         (gomp_map_vars_async): Adjust and rename into...
514         (goacc_map_vars): ...this new function, adjust call to
515         gomp_map_vars_internal.
516         (gomp_remove_splay_tree_key): New function with code factored out from
517         gomp_remove_var_internal.
518         (gomp_remove_var_internal): Add code to handle removing multiple
519         splay_tree_key sequence for structure elements, adjust code to use
520         gomp_remove_splay_tree_key for splay-tree key removal.
521         (gomp_unmap_vars_internal): Add refcount_set parameter, adjust to use
522         gomp_decrement_refcount.
523         (gomp_unmap_vars): Adjust to static, add refcount_set parameter, manage
524         local refcount_set if caller passed in NULL, adjust call to
525         gomp_unmap_vars_internal.
526         (gomp_unmap_vars_async): Adjust and rename into...
527         (goacc_unmap_vars): ...this new function, adjust call to
528         gomp_unmap_vars_internal.
529         (GOMP_target): Manage refcount_set and adjust calls to gomp_map_vars and
530         gomp_unmap_vars.
531         (GOMP_target_ext): Likewise.
532         (gomp_target_data_fallback): Adjust call to gomp_map_vars.
533         (GOMP_target_data): Likewise.
534         (GOMP_target_data_ext): Likewise.
535         (GOMP_target_end_data): Adjust call to gomp_unmap_vars.
536         (gomp_exit_data): Add refcount_set parameter, adjust to use
537         gomp_decrement_refcount, adjust to queue splay-tree keys for removal
538         after main loop.
539         (GOMP_target_enter_exit_data): Manage refcount_set and adjust calls to
540         gomp_map_vars and gomp_exit_data.
541         (gomp_target_task_fn): Likewise.
542         * testsuite/libgomp.c-c++-common/refcount-1.c: New testcase.
543         * testsuite/libgomp.c-c++-common/struct-elem-1.c: New testcase.
544         * testsuite/libgomp.c-c++-common/struct-elem-2.c: New testcase.
545         * testsuite/libgomp.c-c++-common/struct-elem-3.c: New testcase.
546         * testsuite/libgomp.c-c++-common/struct-elem-4.c: New testcase.
547         * testsuite/libgomp.c-c++-common/struct-elem-5.c: New testcase.
549 2021-06-15  Tobias Burnus  <tobias@codesourcery.com>
551         PR fortran/92568
552         * testsuite/libgomp.fortran/defaultmap-8.f90: New test.
554 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
555             Thomas Schwinge  <thomas@codesourcery.com>
557         * libgomp.map (GOACC_2.0.2): New symbol version.
558         * libgomp_g.h (GOACC_enter_data, GOACC_exit_data) New prototypes.
559         * oacc-mem.c (GOACC_enter_data, GOACC_exit_data) New functions.
561 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
562             Andrew Stubbs  <ams@codesourcery.com>
564         * oacc-mem.c (goacc_enter_exit_data_internal): New function,
565         extracted from...
566         (GOACC_enter_exit_data): ... here.
567         (GOACC_declare): Use it.
569 2021-06-10  Thomas Schwinge  <thomas@codesourcery.com>
571         * oacc-parallel.c (GOACC_declare): Move...
572         * oacc-mem.c: ... here.
573         * libgomp_g.h: Adjust.
575 2021-06-10  Andrew Stubbs  <ams@codesourcery.com>
576             Thomas Schwinge  <thomas@codesourcery.com>
578         * oacc-parallel.c (GOACC_declare): Clean up 'GOMP_MAP_POINTER'
579         handling.
581 2021-06-10  Jakub Jelinek  <jakub@redhat.com>
583         PR tree-optimization/100981
584         * testsuite/libgomp.fortran/pr100981-2.f90 (cdcdot): Initialize
585         dsdotr and dsdoti to 0.
587 2021-06-09  H.J. Lu  <hjl.tools@gmail.com>
589         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -march=i486
590         if atomic compare-and-swap is supported on 'int'.
592 2021-06-09  Richard Biener  <rguenther@suse.de>
594         PR tree-optimization/100981
595         * testsuite/libgomp.fortran/pr100981-2.f90: New testcase.
597 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
599         * plugin/plugin-gcn.c (gcn_exec): Force 'num_workers (1)'
600         unconditionally.
601         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
602         Update.
603         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
604         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
606 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
608         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Enable for all but
609         '-DACC_MEM_SHARED=0'.
610         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
611         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
612         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
613         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
614         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
615         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
616         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
617         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
618         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
619         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
620         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
621         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
622         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
623         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
624         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Add
625         'acc_device_radeon' testing.
626         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
627         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
628         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
629         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Enable for all.
630         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
631         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
632         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
633         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
634         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
635         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
636         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Improve checking
637         for non-'openacc_nvidia_accel_selected'.
638         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
639         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Clarify that "Not
640         all implement this checking".
641         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
642         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
643         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
644         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
645         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
647 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
649         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Simplify.
650         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: Update.
652 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
654         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Fix
655         for 'acc_device_radeon'.
657 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
659         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Enhance
660         for non-'acc_device_nvidia'.
662 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
664         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Add
665         'acc_device_radeon' testing.
666         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
667         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
668         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
670 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
672         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Don't
673         require 'openacc_nvidia_accel_selected'.  Fix up for
674         'ACC_DEVICE_TYPE_radeon'.
676 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
678         * testsuite/libgomp.oacc-c++/declare-1.C: Don't require
679         'openacc_nvidia_accel_selected'.
680         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
682 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
684         * testsuite/lib/libgomp.exp
685         (check_effective_target_openacc_radeon_accel_selected):
686         Streamline.
688 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
690         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Revert
691         PR80547 workaround.
693 2021-06-08  Thomas Schwinge  <thomas@codesourcery.com>
695         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
696         <acc_device_nvidia>: Update comment.
698 2021-05-28  Tobias Burnus  <tobias@codesourcery.com>
700         * testsuite/libgomp.fortran/depend-iterator-2.f90: New test.
702 2021-05-27  Jakub Jelinek  <jakub@redhat.com>
704         * testsuite/lib/libgomp.exp (check_effective_target_openacc_cuda,
705         check_effective_target_openacc_cublas,
706         check_effective_target_openacc_cudart): New.
707         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Require effective
708         target openacc_cublas.
709         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
710         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
711         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Require effective
712         target openacc_cuda.
713         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
714         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
715         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
716         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
717         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
718         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
719         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
720         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
721         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Likewise.
722         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
723         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
724         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
725         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
726         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
727         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
728         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
729         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Require effective
730         targets openacc_cublas and openacc_cudart.
731         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
732         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
733         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
734         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
735         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c:
736         Require effective target openacc_cudart.
737         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Add -DUSE_CUDA_H
738         for effective target openacc_cuda and add && defined USE_CUDA_H to
739         preprocessor conditionals.  Guard -lcuda also on openacc_cuda
740         effective target.
742 2021-05-26  Jakub Jelinek  <jakub@redhat.com>
744         PR libgomp/100573
745         * config/nvptx/target.c (GOMP_target_ext, GOMP_target_data_ext,
746         GOMP_target_end_data, GOMP_target_update_ext,
747         GOMP_target_enter_exit_data): New dummy entrypoints.
748         * config/gcn/target.c (GOMP_target_ext, GOMP_target_data_ext,
749         GOMP_target_end_data, GOMP_target_update_ext,
750         GOMP_target_enter_exit_data): Likewise.
751         * testsuite/libgomp.c-c++-common/for-3.c (DO_PRAGMA, OMPTEAMS,
752         OMPFROM, OMPTO): Define.
753         (main): Remove #pragma omp target teams around all the tests.
754         * testsuite/libgomp.c-c++-common/target-41.c: New test.
755         * testsuite/libgomp.c-c++-common/target-42.c: New test.
757 2021-05-25  Jakub Jelinek  <jakub@redhat.com>
759         PR middle-end/99928
760         * testsuite/libgomp.c-c++-common/reduction-17.c: New test.
762 2021-05-24  Tobias Burnus  <tobias@codesourcery.com>
764         PR fortran/86470
765         * testsuite/libgomp.fortran/class-firstprivate-1.f90: New test.
766         * testsuite/libgomp.fortran/class-firstprivate-2.f90: New test.
767         * testsuite/libgomp.fortran/class-firstprivate-3.f90: New test.
769 2021-05-22  Thomas Schwinge  <thomas@codesourcery.com>
771         PR testsuite/90115
772         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Prune
773         uninteresting/varying diagnostics.
775 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
777         PR middle-end/90115
778         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: Update.
779         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
781 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
783         PR middle-end/90115
784         * testsuite/libgomp.oacc-fortran/private-atomic-1-vector.f90: New
785         file.
786         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
787         * testsuite/libgomp.oacc-c-c++-common/host_data-7.c: Likewise.
788         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
789         Likewise.
790         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
791         Likewise.
792         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
793         Likewise.
794         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
795         Likewise.
796         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
797         Likewise.
798         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
799         Likewise.
800         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
801         Likewise.
802         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
803         Likewise.
804         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
805         Likewise.
806         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
807         Likewise.
808         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
809         Likewise.
810         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
811         Likewise.
812         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
813         Likewise.
814         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
815         Likewise.
816         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
817         Likewise.
818         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
819         Likewise.
820         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
821         Likewise.
822         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
823         Likewise.
824         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
825         Likewise.
826         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
827         Likewise.
828         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
829         Likewise.
830         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
831         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
832         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
833         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: Likewise.
834         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
835         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
836         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
837         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
838         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
839         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
840         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
841         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
842         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
843         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
844         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
845         Likewise.
846         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c:
847         Likewise.
848         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c:
849         Likewise.
850         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
851         Likewise.
852         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
853         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
854         Likewise.
855         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
856         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
857         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
858         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
859         * testsuite/libgomp.oacc-fortran/host_data-5.F90: Likewise.
860         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
861         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
862         Likewise.
863         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
864         Likewise.
865         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
866         Likewise.
867         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
868         Likewise.
869         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
870         Likewise.
871         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
872         Likewise.
873         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
874         Likewise.
875         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
876         Likewise.
877         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
878         Likewise.
879         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
880         Likewise.
881         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
882         Likewise.
883         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
884         Likewise.
885         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
886         Likewise.
887         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
888         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
889         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
890         Likewise.
891         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
892         Likewise.
893         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
894         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Likewise.
895         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
897 2021-05-21  Julian Brown  <julian@codesourcery.com>
898             Chung-Lin Tang  <cltang@codesourcery.com>
899             Thomas Schwinge  <thomas@codesourcery.com>
901         PR middle-end/90115
902         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1-gang.c: New
903         test.
904         * testsuite/libgomp.oacc-fortran/private-atomic-1-gang.f90:
905         Likewise.
906         * testsuite/libgomp.oacc-fortran/private-atomic-1-worker.f90:
907         Likewise.
909 2021-05-21  Thomas Schwinge  <thomas@codesourcery.com>
911         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: Don't skip
912         for nvptx offloading.
914 2021-05-21  Tobias Burnus  <tobias@codesourcery.com>
916         * testsuite/libgomp.oacc-fortran/privatized-ref-2.f90: New.
918 2021-05-19  Thomas Schwinge  <thomas@codesourcery.com>
920         PR target/83812
921         * testsuite/libgomp.oacc-c-c++-common/private-atomic-1.c: New.
923 2021-05-19  Julian Brown  <julian@codesourcery.com>
925         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-2.c: New.
927 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
929         * testsuite/lib/libgomp.exp
930         (check_effective_target_offload_target_nvptx): Don't shadow global
931         'offload_targets' variable.
933 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
935         * testsuite/libgomp.c-c++-common/reduction-5.c: Restrict
936         '-latomic' to nvptx offloading compilation.
937         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
939 2021-05-18  Thomas Schwinge  <thomas@codesourcery.com>
941         * testsuite/libgomp.c/target-44.c: Restrict '-latomic' to nvptx
942         offloading compilation.
944 2021-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
946         * task.c (omp_fulfill_event): Call gomp_team_barrier_set_task_pending
947         if new tasks generated.
948         * testsuite/libgomp.c-c++-common/task-detach-13.c: New.
950 2021-05-14  Tobias Burnus  <tobias@codesourcery.com>
952         * testsuite/libgomp.fortran/parallel-master.f90: New test.
954 2021-05-13  Martin Liska  <mliska@suse.cz>
956         PR testsuite/100569
957         * testsuite/libgomp.c/omp-nested-3.c: Prune new LTO warning.
958         * testsuite/libgomp.c/pr46032-2.c: Likewise.
959         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c: Likewise.
960         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c: Likewise.
962 2021-05-12  Tobias Burnus  <tobias@codesourcery.com>
964         * testsuite/libgomp.c-c++-common/task-detach-12.c: New test.
965         * testsuite/libgomp.fortran/task-detach-12.f90: New test.
967 2021-05-11  Jakub Jelinek  <jakub@redhat.com>
969         PR middle-end/100471
970         * taskloop.c (GOMP_taskloop): If GOMP_TASK_FLAG_REDUCTION and not
971         GOMP_TASK_FLAG_NOGROUP, when doing early return clear the task
972         reduction pointer.
973         * testsuite/libgomp.c/task-reduction-4.c: New test.
975 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
976             Tom de Vries  <tdevries@suse.de>
978         * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
979         complex/floating-point || + && reduction with 'omp target'.
980         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
982 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
984         * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
985         * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
986         * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
987         * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
989 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
991         PR testsuite/100397
992         * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
993         declaration to scope of non-'depend'-guarded assignment to avoid races.
995 2021-05-03  Tom de Vries  <tdevries@suse.de>
997         PR target/100321
998         * testsuite/libgomp.c/target-44.c: New test.
1000 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
1002         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
1004 2021-04-29  Tom de Vries  <tdevries@suse.de>
1006         * testsuite/libgomp.c/pr81778.c: New test.
1008 2021-04-29  Tom de Vries  <tdevries@suse.de>
1010         PR target/100232
1011         * testsuite/libgomp.c/target-43.c: New file.
1013 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
1014             Tobias Burnus  <tobias@codesourcery.com>
1016         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
1017         * target.c (gomp_load_plugin_for_device): If set and if a plugin
1018         can't be dlopened, silently assume it has no devices.
1019         * Makefile.in: Regenerate.
1020         * config.h.in: Regenerate.
1021         * configure: Regenerate.
1023 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
1025         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
1026         Use [Ww]arning in dg-bogus as FE diagnostic and default
1027         diagnostic differ and the result depends on ENABLE_OFFLOAD.
1028         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1029         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1030         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1032 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
1034         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
1035         Correct spelling in dg-bogus to match -Wopenacc-parallelism.
1036         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1037         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1038         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1040 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
1041             Nathan Sidwell  <nathan@codesourcery.com>
1042             Tom de Vries  <vries@codesourcery.com>
1043             Julian Brown  <julian@codesourcery.com>
1044             Kwok Cheung Yeung  <kcy@codesourcery.com>
1046         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
1047         '-Wopenacc-parallelism', and match diagnostics, as appropriate.
1048         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
1049         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
1050         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
1051         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
1052         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
1053         Likewise.
1054         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
1055         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1056         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
1057         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1058         Likewise.
1059         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
1060         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
1061         Likewise.
1062         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1063         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
1064         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
1065         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
1066         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
1067         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
1068         Likewise.
1069         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
1070         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
1071         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
1072         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
1073         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1074         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
1075         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
1076         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1077         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1078         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1079         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
1081 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
1083         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
1084         compile with '-w'.
1085         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
1086         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
1087         Likewise.
1088         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
1089         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
1090         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
1091         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
1092         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
1093         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
1094         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
1096 2021-04-22  Richard Biener  <rguenther@suse.de>
1098         * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
1099         only on nvptx-none.
1101 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
1103         * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
1104         omp_depend_kind instead of defining it as 16.
1106 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
1108         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
1109         New, based on check_effective_target_offload_target_nvptx.
1110         (check_effective_target_offload_target_nvptx): Call it.
1111         (check_effective_target_offload_target_amdgcn): New.
1112         * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
1113         Require target offload_target_nvptx || offload_target_amdgcn.
1114         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
1115         * testsuite/libgomp.c/pr86416-1.c: Likewise.
1116         * testsuite/libgomp.c/pr86416-2.c: Likewise.
1118 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
1120         * testsuite/libgomp.fortran/depobj-1.f90: New test.
1122 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
1124         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1125         '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
1126         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1127         Likewise.
1128         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1129         Likewise.
1130         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1132 2021-04-15  Thomas Schwinge  <thomas@codesourcery.com>
1134         PR target/99555
1135         * testsuite/lib/libgomp.exp
1136         (check_effective_target_offload_device_nvptx): New.
1137         * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
1138         resolved, make sure that we exit quickly, with error status,
1139         XFAILed.
1140         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
1141         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
1143 2021-04-14  Jakub Jelinek  <jakub@redhat.com>
1145         PR testsuite/100071
1146         * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
1147         cp = omp_alloc with cp, p arguments instead of cq, q and call
1148         c_f_pointer after last cq = omp_alloc with cq, q.
1150 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
1152         PR middle-end/98088
1153         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
1154         for loop with GT/GE condition.
1155         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
1157 2021-04-09  Thomas Schwinge  <thomas@codesourcery.com>
1159         PR middle-end/84991
1160         PR middle-end/84992
1161         PR middle-end/90779
1162         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
1164 2021-04-09  Jakub Jelinek  <jakub@redhat.com>
1166         PR libgomp/99984
1167         * team.c (gomp_thread_start): Call pthread_setspecific for
1168         !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
1169         has been initialized to avoid false positive warning.
1171 2021-03-29  Tobias Burnus  <tobias@codesourcery.com>
1173         PR target/99555
1174         * testsuite/lib/on_device_arch.c: Move to ...
1175         * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
1176         * testsuite/libgomp.fortran/on_device_arch.c: New file;
1177         #include on_device_arch.h.
1178         * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
1179         on_device_arch.h instead of using dg-additional-source.
1180         * testsuite/libgomp.c/pr99555-1.c: Likewise.
1181         * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
1182         on_device_arch.c without relative paths.
1184 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
1186         * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
1187         the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
1188         * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
1189         * config.h.in: Regenerate.
1190         * configure: Likewise.
1192 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
1194         PR target/99555
1195         * testsuite/lib/on_device_arch.c: New file.
1196         * testsuite/libgomp.c/pr99555-1.c: Likewise.
1197         * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
1198         skip for nvptx offloading, with error status.
1199         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
1201 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
1203         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
1204         OpenACC 'serial' construct diagnostic for nvptx offloading.
1206 2021-03-15  Tobias Burnus  <tobias@codesourcery.com>
1208         PR c++/99509
1209         * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
1211 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
1213         PR fortran/98858
1214         * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
1216 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
1218         * configure.ac: Add AC_CHECK_SIZEOF([void *]).
1219         * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
1220         checking of -m32 or -mx32 options on the command line.
1221         * config.h.in: Regenerated.
1222         * configure: Regenerated.
1224 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
1226         * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
1227         support from the target.
1229 2021-02-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
1230             Jakub Jelinek  <jakub@redhat.com>
1232         PR libgomp/98738
1233         * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
1234         (struct gomp_task): Replace detach and completion_sem fields with
1235         union containing completion_sem and detach_team.  Add deferred_p
1236         field.
1237         (struct gomp_team): Remove task_detach_queue.
1238         * task.c: Include assert.h.
1239         (gomp_init_task): Initialize deferred_p and completion_sem fields.
1240         Rearrange initialization order of fields.
1241         (task_fulfilled_p): Delete.
1242         (GOMP_task): Use address of task as the event handle.  Remove
1243         initialization of detach field.  Initialize deferred_p field.
1244         Use automatic local for completion_sem.  Initialize detach_team field
1245         for deferred tasks.
1246         (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
1247         Set kind of suspended detach task to GOMP_TASK_DETACHED and
1248         decrement task_running_count.  Move finish_cancelled block out of
1249         else branch.  Relocate call to gomp_team_barrier_done.
1250         (GOMP_taskwait): Handle tasks with completion events that have not
1251         been fulfilled.
1252         (GOMP_taskgroup_end): Likewise.
1253         (omp_fulfill_event): Use address of task as event handle.  Post to
1254         completion_sem for undeferred tasks.  Clear detach_team if task
1255         has not finished.  For finished tasks, handle post-execution tasks,
1256         call gomp_team_barrier_wake if necessary, and free task.
1257         * team.c (gomp_new_team): Remove initialization of task_detach_queue.
1258         (free_team): Remove free of task_detach_queue.
1259         * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
1260         * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
1261         * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
1262         * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
1263         * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
1264         Change data-sharing of detach events on enclosing parallel to private.
1265         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.  Remove
1266         taskwait directive.
1267         * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
1268         * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
1269         * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
1270         * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
1271         * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
1272         * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
1273         * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
1274         * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
1275         * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
1276         * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
1277         Change data-sharing of detach events on enclosing parallel to private.
1278         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.  Remove
1279         taskwait directive.
1280         * testsuite/libgomp.fortran/task-detach-7.f90: New.
1281         * testsuite/libgomp.fortran/task-detach-8.f90: New.
1282         * testsuite/libgomp.fortran/task-detach-9.f90: New.
1283         * testsuite/libgomp.fortran/task-detach-10.f90: New.
1284         * testsuite/libgomp.fortran/task-detach-11.f90: New.
1286 2021-02-22  Tobias Burnus  <tobias@codesourcery.com>
1288         PR fortran/99171
1289         * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
1291 2021-02-17  Julian Brown  <julian@codesourcery.com>
1293         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
1294         expected errors.
1296 2021-02-17  Julian Brown  <julian@codesourcery.com>
1298         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
1299         * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
1301 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1303         * config/linux/x86/futex.h (__futex_wait):
1304         Revert output type back to long.
1305         (__futex_wake): Ditto.
1306         (futex_wait): Update for revert.
1307         (futex_wake): Ditto.
1309 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1311         * config/linux/x86/futex.h (__futex_wait): New static inline
1312         wrapper function.  Correct output type to int and
1313         timeout type to void *.
1314         (__futex_wake): New static inline wrapper function.
1315         Correct output type to int.
1316         (futex_wait): Use __futex_wait.
1317         (futex_wake): Use __futex_wake.
1319 2021-02-10  Julian Brown  <julian@codesourcery.com>
1321         PR fortran/98979
1322         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
1323         errors.
1325 2021-02-04  Julian Brown  <julian@codesourcery.com>
1327         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
1329 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
1331         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
1332         EF_AMDGPU_MACH_AMDGCN_GFX908.
1333         (gcn_gfx908_s): New constant string.
1334         (isa_hsa_name): Add gfx908.
1335         (isa_code): Add gfx908.
1337 2021-01-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
1339         * libgomp.texi (omp_fulfill_event): New entry.
1341 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
1343         * task.c (GOMP_task): Rename priority argument to priority_arg,
1344         add priority automatic variable and modify that variable.  Instead of
1345         clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
1346         check flags for that bit.
1348 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
1350         PR fortran/98476
1351         * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
1353 2021-01-18  Andreas Schwab  <schwab@suse.de>
1355         * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
1357 2021-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1359         * config/rtems/sem.h (gomp_sem_getcount): New function.
1361 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
1363         * config/linux/sem.h (gomp_sem_getcount): New function.
1364         * config/posix/sem.h (gomp_sem_getcount): New function.
1365         * config/posix/sem.c (gomp_sem_getcount): New function.
1366         * config/accel/sem.h (gomp_sem_getcount): New function.
1367         * task.c (task_fulfilled_p): Use gomp_sem_getcount.
1368         (omp_fulfill_event): Likewise.
1370 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
1372         * fortran.c (omp_fulfill_event_): New.
1373         * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
1374         (struct gomp_team): Add task_detach_queue and task_detach_count
1375         fields.
1376         * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
1377         * libgomp_g.h (GOMP_task): Add extra argument.
1378         * omp.h.in (enum omp_event_handle_t): New.
1379         (omp_fulfill_event): New.
1380         * omp_lib.f90.in (omp_event_handle_kind): New.
1381         (omp_fulfill_event): New.
1382         * omp_lib.h.in (omp_event_handle_kind): New.
1383         (omp_fulfill_event): Declare.
1384         * priority_queue.c (priority_tree_find): New.
1385         (priority_list_find): New.
1386         (priority_queue_find): New.
1387         * priority_queue.h (priority_queue_predicate): New.
1388         (priority_queue_find): New.
1389         * task.c (gomp_init_task): Initialize detach field.
1390         (task_fulfilled_p): New.
1391         (GOMP_task): Add detach argument.  Ignore detach argument if
1392         GOMP_TASK_FLAG_DETACH not set in flags.  Initialize completion_sem
1393         field.  Copy address of completion_sem into detach argument and
1394         into the start of the data record.  Wait for detach event if task
1395         not deferred.
1396         (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
1397         Remove completed tasks and requeue dependent tasks.
1398         (omp_fulfill_event): New.
1399         * team.c (gomp_new_team): Initialize task_detach_queue and
1400         task_detach_count fields.
1401         (free_team): Free task_detach_queue field.
1402         * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
1403         * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
1404         * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
1405         * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
1406         * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
1407         * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
1408         * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
1409         * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
1410         * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
1411         * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
1412         * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
1413         * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
1415 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
1417         PR target/70454
1418         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
1419         be added through preprocessor check on
1420         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
1422 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
1424         PR libgomp/65099
1425         * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
1426         configurations.
1427         * configure: Regenerate.
1428         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
1429         check.
1431 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1433         * configure: Re-generate.
1435 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1437         * configure: Re-generate.
1439 2021-01-05  Julian Brown  <julian@codesourcery.com>
1441         * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
1442         (struct ptx_device): Add omp_stacks struct.
1443         (nvptx_open_device): Initialise cached-stacks housekeeping info.
1444         (nvptx_close_device): Free cached stacks block and mutex.
1445         (nvptx_stacks_free): New function.
1446         (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
1447         (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
1448         (nvptx_stacks_alloc): Rename to...
1449         (nvptx_stacks_acquire): This.  Cache stacks block between runs if same
1450         size or smaller is required.
1451         (nvptx_stacks_free): Remove.
1452         (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
1453         during kernel execution.
1455 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
1457         * libgomp.texi: Bump @copying's copyright year.
1459 2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
1461         * libgomp.texi (Top): Avoid bad "up" link.
1463 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
1465         * testsuite/libgomp.c/task-6.c: New test.
1467 2020-12-09  Andrew Stubbs  <ams@codesourcery.com>
1469         * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
1470         (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
1472 2020-12-08  Tobias Burnus  <tobias@codesourcery.com>
1474         * testsuite/libgomp.fortran/scan-1.f90: New test.
1476 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
1478         PR target/97865
1479         * configure: Regenerate.
1481 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
1483         * configure: Regenerate.
1485 2020-11-25  Thomas Schwinge  <thomas@codesourcery.com>
1487         * testsuite/libgomp.oacc-c++/cache-1.C: New.
1488         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
1490 2020-11-25  Andrew Stubbs  <ams@codesourcery.com>
1492         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
1493         expected results.
1495 2020-11-24  Andrew Stubbs  <ams@codesourcery.com>
1497         * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
1498         (reserved): Delete unused define.
1500 2020-11-24  Thomas Schwinge  <thomas@codesourcery.com>
1502         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
1503         Tcl 8.5-specific behavior.
1504         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1506 2020-11-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
1508         * env.c (gomp_global_icv): Remove nest_var field.  Add
1509         max_active_levels_var field.
1510         (gomp_max_active_levels_var): Remove.
1511         (parse_boolean): Return true on success.
1512         (handle_omp_display_env): Express OMP_NESTED in terms of
1513         max_active_levels_var.  Change format specifier for
1514         max_active_levels_var.
1515         (initialize_env): Set max_active_levels_var from
1516         OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
1517         OMP_PROC_BIND.
1518         * icv.c (omp_set_nested): Express in terms of
1519         max_active_levels_var.
1520         (omp_get_nested): Likewise.
1521         (omp_set_max_active_levels): Use max_active_levels_var field instead
1522         of gomp_max_active_levels_var.
1523         (omp_get_max_active_levels): Likewise.
1524         * libgomp.h (struct gomp_task_icv): Remove nest_var field.  Add
1525         max_active_levels_var field.
1526         (gomp_supported_active_levels): Set to UCHAR_MAX.
1527         (gomp_max_active_levels_var): Delete.
1528         * libgomp.texi (omp_get_nested): Update documentation.
1529         (omp_set_nested): Likewise.
1530         (OMP_MAX_ACTIVE_LEVELS): Likewise.
1531         (OMP_NESTED): Likewise.
1532         (OMP_NUM_THREADS): Likewise.
1533         (OMP_PROC_BIND): Likewise.
1534         * parallel.c (gomp_resolve_num_threads): Replace reference
1535         to nest_var with max_active_levels_var.  Use max_active_levels_var
1536         field instead of gomp_max_active_levels_var.
1538 2020-11-18  Tobias Burnus  <tobias@codesourcery.com>
1540         * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
1541         nvptx_usleep; use also for device={arch(gcn)}.
1543 2020-11-14  Jakub Jelinek  <jakub@redhat.com>
1545         * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
1546         (foo): Add tests for non-VLA private and firstprivate clauses on
1547         omp task.
1548         (bar): Likewise.  Remove taking of address from private/firstprivate
1549         variables.
1550         * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
1551         (foo): Add p, q, px and s arguments.  Add tests for array reductions
1552         and for non-VLA private and firstprivate clauses on omp task.
1553         (bar): Removed.
1554         (main): Adjust foo caller.  Don't call bar.
1556 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
1557             Thomas Schwinge  <thomas@codesourcery.com>
1559         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
1560         New.
1561         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
1562         Likewise.
1563         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
1564         Likewise.
1565         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
1566         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
1568 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
1569             Thomas Schwinge  <thomas@codesourcery.com>
1571         PR fortran/94358
1572         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
1574 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
1576         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
1577         for array reductions.
1578         (main): Adjust foo callers.
1580 2020-11-12  Jakub Jelinek  <jakub@redhat.com>
1582         * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
1583         * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
1584         * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
1585         * allocator.c (omp_aligned_alloc): New for now static function,
1586         add alignment argument and handle it.
1587         (omp_alloc): Reimplement using omp_aligned_alloc.
1588         (GOMP_alloc, GOMP_free): New functions.
1589         (omp_free): Add ialias.
1590         * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
1591         * testsuite/libgomp.c++/allocate-1.C: New test.
1593 2020-11-12  Thomas Schwinge  <thomas@codesourcery.com>
1595         PR fortran/97782
1596         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
1598 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
1600         * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
1601         usable.
1602         * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
1603         'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
1604         (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
1605         (goacc_enter_data_internal): Likewise.
1606         * target.c (gomp_map_vars_internal):
1607         Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
1608         of gomp_attach_pointer for OpenMP cases.
1609         (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
1610         (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
1611         * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
1613 2020-11-05  Ulrich Drepper  <drepper@redhat.com>
1614             Kwok Cheung Yeung  <kcy@codesourcery.com>
1616         * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
1617         * Makefile.in: Regenerate.
1618         * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
1619         pragmas to ignore -Wdeprecated-declarations warnings.
1620         * icv.c: Likewise.
1621         * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
1622         Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
1623         and omp_get_nested with __GOMP_DEPRECATED_5_0.
1624         * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
1625         deprecated.
1626         * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
1627         to test options.
1628         * testsuite/libgomp.c/affinity-1.c: Likewise.
1629         * testsuite/libgomp.c/affinity-2.c: Likewise.
1630         * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
1631         * testsuite/libgomp.c/lib-1.c: Likewise.
1632         * testsuite/libgomp.c/nested-1.c: Likewise.
1633         * testsuite/libgomp.c/nested-2.c: Likewise.
1634         * testsuite/libgomp.c/nested-3.c: Likewise.
1635         * testsuite/libgomp.c/pr32362-1.c: Likewise.
1636         * testsuite/libgomp.c/pr32362-2.c: Likewise.
1637         * testsuite/libgomp.c/pr32362-3.c: Likewise.
1638         * testsuite/libgomp.c/pr35549.c: Likewise.
1639         * testsuite/libgomp.c/pr42942.c: Likewise.
1640         * testsuite/libgomp.c/pr61200.c: Likewise.
1641         * testsuite/libgomp.c/sort-1.c: Likewise.
1642         * testsuite/libgomp.c/target-5.c: Likewise.
1643         * testsuite/libgomp.c/target-6.c: Likewise.
1644         * testsuite/libgomp.c/teams-1.c: Likewise.
1645         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
1646         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
1647         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
1648         * testsuite/libgomp.fortran/affinity1.f90: Likewise.
1649         * testsuite/libgomp.fortran/lib1.f90: Likewise.
1650         * testsuite/libgomp.fortran/lib2.f: Likewise.
1651         * testsuite/libgomp.fortran/nested1.f90: Likewise.
1652         * testsuite/libgomp.fortran/teams1.f90: Likewise.
1654 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
1656         PR target/85486
1657         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
1658         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
1659         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
1661 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
1663         PR testsuite/80219
1664         PR testsuite/85303
1665         * testsuite/lib/libgomp.exp (libgomp_init): Set
1666         'gcc_warning_prefix', 'gcc_error_prefix'.
1668 2020-10-30  Jakub Jelinek  <jakub@redhat.com>
1670         * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
1671         even in field_tgt_clear initializer.
1673 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
1675         * testsuite/libgomp.c/target-42.c: New test.
1677 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
1678             Tom de Vries  <tdevries@suse.de>
1680         PR testsuite/81690
1681         * testsuite/libgomp.c/usleep.h: New file.
1682         * testsuite/libgomp.c/target-32.c: Include usleep.h.
1683         (main): Use tgt_usleep instead of usleep.
1684         * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
1685         (main): Use tgt_usleep instead of usleep.
1687 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
1689         PR lto/96680
1690         * testsuite/libgomp.c/declare-variant-1.c: New test.
1692 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
1694         * testsuite/libgomp.c/target-41.c: New test.
1696 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
1698         * icv.c (omp_get_initial_device): Remove including corresponding
1699         ialias.
1700         * icv-device.c (omp_get_initial_device): New function.  Return
1701         gomp_get_num_devices ().  Add ialias.
1702         * target.c (resolve_device): Don't fail with
1703         OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
1704         gomp_get_num_devices ().
1705         (omp_target_alloc, omp_target_free, omp_target_is_present,
1706         omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
1707         omp_target_disassociate_ptr, omp_pause_resource): Use
1708         gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
1709         first use in the functions, in uses dominated by the
1710         gomp_get_num_devices call use num_devices_openmp instead.
1711         * libgomp.texi (omp_get_initial_device): Document.
1712         * config/gcn/icv-device.c (omp_get_initial_device): New function.
1713         Add ialias.
1714         * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
1715         * testsuite/libgomp.c/target-40.c: New test.
1717 2020-10-21  Jakub Jelinek  <jakub@redhat.com>
1719         * env.c (parse_target_offload): Change new_offload var type to int,
1720         preinitialize to -1, remove found var and test new_offload != -1
1721         instead of found.
1723 2020-10-20  Jakub Jelinek  <jakub@redhat.com>
1725         * target.c (gomp_target_init): Inside of the function, use automatic
1726         variables corresponding to num_devices, num_devices_openmp and devices
1727         global variables and update the globals only at the end of the
1728         function.
1730 2020-10-20  Kwok Cheung Yeung  <kcy@codesourcery.com>
1732         * env.c (gomp_target_offload_var): New.
1733         (parse_target_offload): New.
1734         (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
1735         (initialize_env): Parse OMP_TARGET_OFFLOAD.
1736         * libgomp.h (gomp_target_offload_t): New.
1737         (gomp_target_offload_var): New.
1738         * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
1739         * target.c (resolve_device): Generate error if device not found and
1740         offloading is mandatory.
1741         (gomp_target_fallback): Generate error if offloading is mandatory.
1742         (GOMP_target): Add argument in call to gomp_target_fallback.
1743         (GOMP_target_ext): Likewise.
1744         (gomp_target_data_fallback): Generate error if offloading is mandatory.
1745         (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
1746         (GOMP_target_data_ext): Likewise.
1747         (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
1748         (gomp_target_init): Return early if offloading is disabled.
1750 2020-10-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
1752         * libgomp.texi (omp_get_max_active_levels): Modify description.
1753         (omp_get_supported_active_levels): Make descriptions consistent.
1755 2020-10-14  Jakub Jelinek  <jakub@redhat.com>
1757         * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
1759 2020-10-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
1761         * env.c (gomp_max_active_levels_var): Initialize to
1762         gomp_supported_active_levels.
1763         (initialize_env): Limit gomp_max_active_levels_var to be at most
1764         equal to gomp_supported_active_levels.
1765         * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
1766         (omp_get_supported_active_levels_): New.
1767         * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
1768         to at most equal to gomp_supported_active_levels.
1769         (omp_get_supported_active_levels): New.
1770         * libgomp.h (gomp_supported_active_levels): New.
1771         * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
1772         omp_get_supported_active_levels_.
1773         * libgomp.texi (omp_get_supported_active_levels): New.
1774         (omp_set_max_active_levels): Update.  Add reference to
1775         omp_get_supported_active_levels.
1776         * omp.h.in (omp_get_supported_active_levels): New.
1777         * omp_lib.f90.in (omp_get_supported_active_levels): New.
1778         * omp_lib.h.in (omp_get_supported_active_levels): New.
1779         * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
1780         against omp_get_supported_active_levels.
1781         * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
1783 2020-10-11  Clement Chigot  <clement.chigot@atos.net>
1785         * config/t-aix: Delete and recreate libgomp before creating
1786         FAT library.
1788 2020-10-08  Tom de Vries  <tdevries@suse.de>
1790         PR libgomp/81802
1791         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
1792         dimensions.
1794 2020-10-06  Tom de Vries  <tdevries@suse.de>
1796         * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
1798 2020-10-06  Tom de Vries  <tdevries@suse.de>
1800         PR middle-end/90861
1801         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
1803 2020-10-05  Tom de Vries  <tdevries@suse.de>
1805         PR fortran/95654
1806         * testsuite/libgomp.fortran/pr95654.f90: New test.
1808 2020-10-02  Tobias Burnus  <tobias@codesourcery.com>
1810         * Makefile.in: Regenerate with automake 1.15.1.
1811         * aclocal.m4: Likewise.
1812         * configure: Likewise.
1813         * testsuite/Makefile.in: Likewise.
1815 2020-09-30  Andrew Stubbs  <ams@codesourcery.com>
1817         * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
1818         and amdgcn targets.
1820 2020-09-30  Tobias Burnus  <tobias@codesourcery.com>
1822         * testsuite/libgomp.fortran/declare-target-3.f90: New test.
1824 2020-09-29  Andrew Stubbs  <ams@codesourcery.com>
1826         * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
1827         total number of threads is one.
1828         (gomp_team_barrier_wake): Likewise.
1829         (gomp_team_barrier_wait_end): Likewise.
1830         (gomp_team_barrier_wait_cancel_end): Likewise.
1831         * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
1832         (gomp_team_barrier_wake): Likewise.
1833         (gomp_team_barrier_wait_end): Likewise.
1834         (gomp_team_barrier_wait_cancel_end): Likewise.
1835         * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
1837 2020-09-28  Tobias Burnus  <tobias@codesourcery.com>
1839         PR middle-end/96390
1840         * testsuite/libgomp.c++/pr96390.C: New test.
1841         * testsuite/libgomp.c-c++-common/pr96390.c: New test.
1843 2020-09-27  Clement Chigot  <clement.chigot@atos.net>
1845         * config/t-aix: Use $(AR) without -X32_64.
1847 2020-09-25  Jakub Jelinek  <jakub@redhat.com>
1849         * testsuite/libgomp.c/loop-25.c: New test.
1851 2020-09-22  Tobias Burnus  <tobias@codesourcery.com>
1853         PR fortran/95654
1854         * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
1856 2020-09-22  Tom de Vries  <tdevries@suse.de>
1858         * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
1859         fails.
1861 2020-09-16  Nathan Sidwell  <nathan@acm.org>
1863         * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
1865 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
1867         PR fortran/96668
1868         * target.c (gomp_map_vars_internal): Initialize has_nullptr.
1870 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
1872         PR fortran/96668
1873         * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
1874         * target.c (gomp_map_vars_existing): Add always_to_flag flag.
1875         (gomp_map_vars_existing): Update call to it.
1876         (gomp_map_fields_existing): Likewise
1877         (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
1878         now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
1879         remapped.
1880         (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
1881         GOMP_MAP_POINTER.
1882         * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
1883         * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
1885 2020-09-14  Tom de Vries  <tdevries@suse.de>
1887         * config/nvptx/atomic.c: New file.  Add
1888         __sync_val_compare_and_swap_16.
1889         * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
1890         target offload_target_nvptx.
1892 2020-09-08  Julian Brown  <julian@codesourcery.com>
1894         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
1895         iteration-ordering assumptions.
1897 2020-09-08  Julian Brown  <julian@codesourcery.com>
1899         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
1900         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
1902 2020-08-20  Chung-Lin Tang  <cltang@codesourcery.com>
1904         * plugin/plugin-nvptx.c (nvptx_free):
1905         Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
1906         CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
1907         comments.
1909 2020-08-20  Tobias Burnus  <tobias@codesourcery.com>
1911         * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
1913 2020-08-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
1915         * testsuite/libgomp.c-c++-common/reduction-16.c: New.
1917 2020-08-13  Jakub Jelinek  <jakub@redhat.com>
1919         * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
1920         * testsuite/libgomp.c/loop-23.c (main): Likewise.
1921         * testsuite/libgomp.c/loop-24.c: New test.
1923 2020-08-08  Jakub Jelinek  <jakub@redhat.com>
1924             Tobias Burnus  <tobias@codesourcery.com>
1926         PR fortran/93553
1927         * testsuite/libgomp.fortran/pr93553.f90: New test.
1929 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
1931         * testsuite/libgomp.c/loop-22.c: New test.
1932         * testsuite/libgomp.c/loop-23.c: New test.
1934 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
1936         PR middle-end/96459
1937         * testsuite/libgomp.c/teams-3.c: New test.
1938         * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
1939         if not defined yet.
1940         (N(test)): Use it before all N(f*) calls.
1941         * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
1942         (main): Don't call all test_* functions from within
1943         #pragma omp teams reduction(|:err), call them directly.
1945 2020-08-04  Tom de Vries  <tdevries@suse.de>
1947         PR target/96428
1948         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
1949         * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
1951 2020-08-03  Julian Brown  <julian@codesourcery.com>
1952             Thomas Schwinge  <thomas@codesourcery.com>
1954         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
1955         shared-memory devices.  Extend with further checking.
1957 2020-08-03  Martin Jambor  <mjambor@suse.cz>
1959         * plugin/Makefrag.am: Remove configuration of HSA plugin.
1960         * aclocal.m4: Regenerated.
1961         * Makefile.in: Regenerated.
1962         * config.h.in: Regenerated.
1963         * configure: Regenerated.
1964         * plugin/configfrag.ac: Likewise.
1965         * plugin/hsa_ext_finalize.h: Removed.
1966         * plugin/plugin-hsa.c: Likewise.
1967         * testsuite/Makefile.in: Regenerated.
1968         * testsuite/lib/libgomp.exp
1969         (offload_target_to_openacc_device_type): Remove hsa case.
1970         (check_effective_target_hsa_offloading_selected_nocache): Removed
1971         (check_effective_target_hsa_offloading_selected): Likewise.
1972         (libgomp_init): Do not add -Wno-hsa to additional_flags.
1973         * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
1974         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
1975         * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
1976         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
1977         * testsuite/libgomp.hsa.c/c.exp: Likewise.
1978         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
1979         * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
1980         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
1981         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
1982         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
1983         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
1984         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
1985         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
1986         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
1987         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
1988         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
1989         * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
1990         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
1991         * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
1992         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
1993         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
1994         * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
1995         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
1996         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
1998 2020-07-27  Julian Brown  <julian@codesourcery.com>
1999             Thomas Schwinge  <thomas@codesourcery.com>
2001         * libgomp.h (struct target_var_desc): Rename do_detach field to
2002         is_attach.
2003         * oacc-mem.c (goacc_exit_datum_1): Add assert.  Don't set finalize for
2004         GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
2005         (goacc_enter_data_internal): Don't affect reference counts
2006         for attach mappings.
2007         (goacc_exit_data_internal): Don't affect reference counts for detach
2008         mappings.
2009         * target.c (gomp_map_vars_existing): Don't affect reference counts for
2010         attach mappings.
2011         (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
2012         mark attach mappings.
2013         (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
2014         reference count for attach mappings.
2015         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
2016         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
2017         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
2018         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
2019         test as shouldfail.
2020         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
2021         gracefully in no-finalize mode.
2022         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
2024 2020-07-24  Thomas Schwinge  <thomas@codesourcery.com>
2026         * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
2027         use.
2028         * testsuite/libgomp.oacc-c/c.exp: Likewise.
2029         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2031 2020-07-23  Julian Brown  <julian@codesourcery.com>
2032             Thomas Schwinge  <thomas@codesourcery.com>
2034         * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
2035         finalization for detach operation.
2036         * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
2037         New test.
2039 2020-07-23  Tobias Burnus  <tobias@codesourcery.com>
2041         * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
2042         * libgomp_f.h.in (omp_check_defines): Check whether
2043         sizeof of determined Fortran kind and C typedef match.
2044         * omp_lib.f90.in: Add omp_depened_kind.
2045         * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
2046         * configure: Regenerate.
2047         * Makefile.in: Regenerate.
2048         * testsuite/Makefile.in: Regenerate.
2050 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
2052         * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
2053         gcc/testsuite/c-c++-common/gomp/.
2054         * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
2055         * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
2056         from gcc/testsuite/gfortran.dg/gomp/.
2057         * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
2059 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
2061         * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
2062         * omp_lib.h.in: Likewise.
2064 2020-07-18  H.J. Lu  <hjl.tools@gmail.com>
2066         PR target/95620
2067         * testsuite/libgomp.c/pr95620.c: New test.
2069 2020-07-16  Julian Brown  <julian@codesourcery.com>
2070             Thomas Schwinge  <thomas@codesourcery.com>
2072         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
2073         * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
2075 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
2077         * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
2078         avoid conversion on 32bit systems from 32bit to 64bit due
2079         to -fdefault-integer-8.
2081 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
2083         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
2084         variables; add character(kind=4) tests; update TODO comment.
2086 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
2088         * allocator.c: Add ialias for omp_init_allocator and
2089         omp_destroy_allocator.
2090         * configure.ac: Set INTPTR_T_KIND.
2091         * configure: Regenerate.
2092         * Makefile.in: Regenerate.
2093         * testsuite/Makefile.in: Regenerate.
2094         * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
2095         omp_set_default_allocator_, omp_get_default_allocator_): New
2096         functions and ialias_redirect.
2097         * icv.c: Add ialias for omp_set_default_allocator and
2098         omp_get_default_allocator.
2099         * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
2100         omp_destroy_allocator_, omp_set_default_allocator_ and
2101         omp_get_default_allocator_.
2102         * omp_lib.f90.in: Add allocator traits parameters, declare
2103         allocator routines and add related kind parameters.
2104         * omp_lib.h.in: Likewise.
2105         * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
2106         * testsuite/libgomp.fortran/alloc-1.F90: New test.
2107         * testsuite/libgomp.fortran/alloc-2.F90: New test.
2108         * testsuite/libgomp.fortran/alloc-3.F: New test.
2109         * testsuite/libgomp.fortran/alloc-4.f90: New test.
2110         * testsuite/libgomp.fortran/alloc-5.f90: New test.
2112 2020-07-14  Tom de Vries  <tom@codesourcery.com>
2113             Cesar Philippidis  <cesar@codesourcery.com>
2114             Thomas Schwinge  <thomas@codesourcery.com>
2115             Kwok Cheung Yeung  <kcy@codesourcery.com>
2117         * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
2118         New variable.
2119         (acc_init_1): Set acc_init_thread to pthread_self ().  Set
2120         acc_init_state to initializing at the start, and to initialized at the
2121         end.
2122         (self_initializing_p): New function.
2123         (acc_get_device_type): Return acc_device_none if called by thread that
2124         is currently executing acc_init_1.
2125         * libgomp.texi (acc_get_device_type): Update documentation.
2126         (Implementation Status and Implementation-Defined Behavior): Likewise.
2127         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
2129 2020-07-14  David Edelsohn  <dje.gcc@gmail.com>
2131         * config/t-aix: Set BITS from compiler cpp macro.
2133 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
2135         * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
2137 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
2139         PR fortran/67311
2140         * testsuite/libgomp.fortran/target-map-1.f90: New test.
2142 2020-07-14  Jakub Jelinek  <jakub@redhat.com>
2144         * testsuite/libgomp.c/loop-21.c: New test.
2146 2020-07-13  Julian Brown  <julian@codesourcery.com>
2147             Thomas Schwinge  <thomas@codesourcery.com>
2149         * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
2151 2020-07-10  Julian Brown  <julian@codesourcery.com>
2152             Thomas Schwinge  <thomas@codesourcery.com>
2154         * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
2155         dynamic_refcount.
2156         (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
2157         * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
2158         dynamic_refcount.
2159         (acc_unmap_data): Update comment.
2160         (goacc_map_var_existing, goacc_enter_datum): Adjust for
2161         dynamic_refcount semantics.
2162         (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
2163         Adjust for dynamic_refcount semantics.
2164         (goacc_enter_data_internal): Implement "present" case of dynamic
2165         memory-map handling here.  Update "non-present" case for
2166         dynamic_refcount semantics.
2167         (goacc_exit_data_internal): Use goacc_exit_datum_1.
2168         * target.c (gomp_map_vars_internal): Remove
2169         GOMP_MAP_VARS_OPENACC_ENTER_DATA handling.  Update for dynamic_refcount
2170         handling.
2171         (gomp_unmap_vars_internal): Remove virtual_refcount handling.
2172         (gomp_load_image_to_device): Substitute dynamic_refcount for
2173         virtual_refcount.
2174         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
2175         * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
2176         * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
2177         * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
2178         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
2179         trace output.
2180         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
2181         trace output.
2182         * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
2183         test.
2184         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
2185         Remove stale comment.
2186         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
2187         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
2188         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2189         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2190         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2191         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
2193 2020-07-10  Julian Brown  <julian@codesourcery.com>
2194             Thomas Schwinge  <thomas@codesourcery.com>
2196         * oacc-mem.c (goacc_map_var_existing): New function.
2197         (goacc_enter_datum): Use above function.
2198         (goacc_exit_datum_1): New function.
2199         (goacc_exit_datum): Use above function.
2201 2020-07-09  Julian Brown  <julian@codesourcery.com>
2202             Thomas Schwinge  <thomas@codesourcery.com>
2204         PR middle-end/95270
2205         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
2206         * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
2208 2020-07-09  Julian Brown  <julian@codesourcery.com>
2210         * oacc-mem.c (find_group_last): Group data-movement clauses
2211         (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
2212         GOMP_MAP_ATTACH.  Allow standalone GOMP_MAP_ATTACH also.
2214 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
2216         * testsuite/libgomp.c/loop-19.c: New test.
2217         * testsuite/libgomp.c/loop-20.c: New test.
2219 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
2221         * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
2222         2 to -1.  Add omp_atv_serialized and define omp_atv_sequential using
2223         it.  Remove __omp_alloctrait_value_max__.
2224         * allocator.c (omp_init_allocator): Handle omp_atv_default for
2225         omp_atk_alignment and omp_atk_pool_size.
2227 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
2229         * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
2230         behavior for 'GOMP_MAP_FORCE_FROM'.
2231         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
2233 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
2235         * oacc-mem.c (goacc_exit_data_internal): Remove
2236         'GOMP_MAP_ALWAYS_FROM' handling.
2238 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
2240         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
2241         'scan-assembler' with 'scan-offload-rtl'.
2242         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
2243         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
2244         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
2245         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
2247 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
2249         * target.c (gomp_map_vars_existing): Assert 'kind !=
2250         GOMP_MAP_ATTACH'.
2251         (gomp_map_vars_internal): Clean up.
2253 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
2255         * testsuite/libgomp.c/loop-17.c: New test.
2256         * testsuite/libgomp.c/loop-18.c: New test.
2258 2020-06-26  Marek Polacek  <polacek@redhat.com>
2260         * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
2262 2020-06-23  Alexandre Oliva  <oliva@adacore.com>
2264         * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
2265         * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
2267 2020-06-22  David Edelsohn  <dje.gcc@gmail.com>
2269         * Makefile.am: Use -include.
2270         * Makefile.in: Regenerate.
2272 2020-06-21  David Edelsohn  <dje.gcc@gmail.com>
2274         * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
2275         * Makefile.in: Regenerate
2276         * configure.ac (tmake_file): Substitute.
2277         * configure: Regenerate.
2278         * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
2279         * config/t-aix: New file.
2281 2020-06-17  Thomas Schwinge  <thomas@codesourcery.com>
2283         PR lto/94848
2284         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
2285         'dg-do run'.
2287 2020-06-17  Andrew Stubbs  <ams@codesourcery.com>
2289         * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
2290         variant for HSA_RUNTIME_LIB name.
2291         (find_executable_symbol_1): Delete.
2292         (find_executable_symbol): Delete.
2293         (init_kernel_properties): Add ".kd" suffix to symbol names.
2294         (find_load_offset): Delete.
2295         (create_and_finalize_hsa_program): Remove relocation handling.
2297 2020-06-16  Tobias Burnus  <tobias@codesourcery.com>
2299         * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
2301 2020-06-08  Tobias Burnus  <tobias@codesourcery.com>
2303         PR lto/94848
2304         PR middle-end/95551
2305         * testsuite/libgomp.fortran/target-var.f90: New test.
2307 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
2308             Julian Brown  <julian@codesourcery.com>
2310         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
2311         special handling.
2313 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
2314             Julian Brown  <julian@codesourcery.com>
2316         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2317         Simplify.
2319 2020-06-05  Julian Brown  <julian@codesourcery.com>
2321         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
2322         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
2324 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2326         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2327         Evaluate 'copyfrom' individually for each entry.
2328         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
2330 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2332         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
2333         Evaluate 'finalize' individually for each entry.
2334         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
2335         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
2336         file.
2338 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2340         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
2341         usage.
2342         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
2344 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2345             Julian Brown  <julian@codesourcery.com>
2347         * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
2348         checking.
2349         (acc_unmap_data, goacc_exit_data_internal): Restore
2350         'is_tgt_unmapped' checking.
2351         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
2352         file.
2353         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
2354         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
2355         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2356         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2357         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2358         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
2360 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2361             Julian Brown  <julian@codesourcery.com>
2363         * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
2365 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2367         PR libgomp/92854
2368         * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
2370 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2372         PR libgomp/92854
2373         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
2374         more.
2376 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2377             Julian Brown  <julian@codesourcery.com>
2379         * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
2380         'gomp_map_vars'.
2381          (acc_map_data): Clean up accordingly.
2383 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2385         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
2386         of over-eager 'finalize' clause.
2387         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
2388         file.
2389         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
2390         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
2391         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
2392         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
2393         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
2394         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
2395         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
2396         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
2398 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2400         * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
2402 2020-06-04  Julian Brown  <julian@codesourcery.com>
2404         * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
2405         error path.
2406         (goacc_detach_internal): Likewise.
2408 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
2410         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
2411         the checkpoint.
2412         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
2413         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
2414         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
2415         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
2416         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
2418 2020-06-02  Jakub Jelinek  <jakub@redhat.com>
2420         * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
2421         defined.
2423 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
2425         * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
2427 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
2429         * allocator.c (omp_alloc): For size == 0, return NULL early.
2431 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
2433         PR bootstrap/95413
2434         * configure: Regenerated.
2436 2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
2438         PR libfortran/95191
2439         * testsuite/libgomp.fortran/async_io_9.f90: New test.
2441 2020-05-19  Jakub Jelinek  <jakub@redhat.com>
2443         * omp.h.in (omp_uintptr_t): New typedef.
2444         (__GOMP_UINTPTR_T_ENUM): Define.
2445         (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
2446         omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
2447         (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
2448         (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
2449         omp_get_default_allocator, omp_alloc, omp_free): Declare.
2450         * libgomp.h (struct gomp_team_state): Add def_allocator field.
2451         (gomp_def_allocator): Declare.
2452         * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
2453         omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
2454         omp_alloc and omp_free.
2455         * team.c (gomp_team_start): Copy over ts.def_allocator.
2456         * env.c (gomp_def_allocator): New variable.
2457         (parse_wait_policy): Adjust function comment.
2458         (parse_allocator): New function.
2459         (handle_omp_display_env): Print OMP_ALLOCATOR.
2460         (initialize_env): Call parse_allocator.
2461         * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
2462         * allocator.c: New file.
2463         * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
2464         functions.
2465         * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
2466         * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
2467         * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
2468         * Makefile.in: Regenerated.
2470 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2472         PR bootstrap/95147
2473         * configure: Regenerated.
2475 2020-05-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
2477         PR libfortran/95119
2478         * testsuite/libgomp.fortran/close_errors_1.f90: New test.
2480 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2482         * configure: Regenerated.
2484 2020-05-14  Jakub Jelinek  <jakub@redhat.com>
2486         * testsuite/libgomp.c-c++-common/target-40.c: New test.
2488 2020-05-13  Tobias Burnus  <tobias@codesourcery.com>
2490         PR fortran/94690
2491         * testsuite/libgomp.fortran/pr66199-3.f90: New.
2492         * testsuite/libgomp.fortran/pr66199-4.f90: New.
2493         * testsuite/libgomp.fortran/pr66199-5.f90: New.
2494         * testsuite/libgomp.fortran/pr66199-6.f90: New.
2495         * testsuite/libgomp.fortran/pr66199-7.f90: New.
2496         * testsuite/libgomp.fortran/pr66199-8.f90: New.
2497         * testsuite/libgomp.fortran/pr66199-9.f90: New.
2499 2020-05-12  Jakub Jelinek  <jakub@redhat.com>
2501         * testsuite/libgomp.c/target-39.c: New test.
2503 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
2505         * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
2506         * openacc.f90 (acc_device_current): Likewise.
2507         * openacc.h (acc_device_current): Likewise.
2508         * openacc_lib.h (acc_device_current): Likewise.
2510         PR target/94282
2511         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
2512         'dg-allow-blank-lines-in-output'.
2514         * oacc-init.c (get_openacc_name): Handle 'gcn'.
2515         * testsuite/lib/libgomp.exp
2516         (offload_target_to_openacc_device_type) [amdgcn*]: Return
2517         'radeon'.  Adjust all users.
2518         (check_effective_target_openacc_amdgcn_accel_present): Rename
2519         to...
2520         (check_effective_target_openacc_radeon_accel_present): ... this.
2521         Adjust all users.
2522         (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
2523         (check_effective_target_openacc_radeon_accel_selected): ... this.
2524         Adjust all users.
2526         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
2527         'dg-do run'.
2529 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
2531         PR other/94629
2533         * plugin/plugin-gcn.c (init_hsa_context): Check return value from
2534         hsa_iterate_agents.
2535         (GOMP_OFFLOAD_init_device): Check return values from both calls to
2536         hsa_agent_iterate_regions.
2538 2020-04-20  Thomas Schwinge  <thomas@codesourcery.com>
2540         PR middle-end/94635
2541         * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
2542         run'.
2544 2020-04-20  Tobias Burnus  <tobias@codesourcery.com>
2546         PR middle-end/94120
2547         * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
2548         test case.
2550 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
2552         PR middle-end/94635
2553         * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
2555 2020-04-13  Thomas Schwinge  <thomas@codesourcery.com>
2557         PR libgomp/92843
2558         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
2559         Rename to...
2560         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
2561         ... this.
2562         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
2563         Rename to...
2564         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
2565         ... this.
2566         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
2567         Rename to...
2568         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
2569         ... this.
2570         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
2571         Rename to...
2572         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
2573         ... this.
2574         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
2575         Rename to...
2576         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
2577         ... this.
2578         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
2579         Rename to...
2580         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
2581         ... this.
2582         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
2583         Rename to...
2584         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
2585         ... this.
2586         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
2587         Rename to...
2588         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
2589         ... this.
2590         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
2591         Rename to...
2592         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
2593         ... this.
2594         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
2595         Rename to...
2596         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
2597         ... this.
2598         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
2599         Rename to...
2600         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
2601         ... this.
2602         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
2603         Rename to...
2604         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
2605         ... this.
2606         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
2607         Rename to...
2608         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
2609         ... this.
2610         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
2611         Rename to...
2612         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
2613         ... this.
2614         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
2615         Rename to...
2616         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
2617         ... this.
2618         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
2619         Rename to...
2620         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
2621         ... this.
2623 2020-04-10  Julian Brown  <julian@codesourcery.com>
2624             Thomas Schwinge  <thomas@codesourcery.com>
2626         PR libgomp/92843
2627         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
2628         New file.
2629         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
2630         Likewise.
2631         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
2632         Likewise.
2633         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
2634         Likewise.
2635         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
2636         Likewise.
2637         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
2638         Likewise.
2639         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
2640         Likewise.
2641         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
2642         Likewise.
2643         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
2644         Likewise.
2645         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
2646         Likewise.
2647         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
2648         Likewise.
2649         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
2650         Likewise.
2651         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
2652         Likewise.
2653         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
2654         Likewise.
2655         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
2656         Likewise.
2657         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
2658         Likewise.
2660 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
2662         * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
2663         run'.
2665 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
2667         PR middle-end/94120
2668         * libgomp.oacc-c++/declare-pr94120.C: New.
2670 2020-04-06  Maciej W. Rozycki  <macro@wdc.com>
2672         * configure.ac: Add testsuite/libgomp-site-extra.exp to output
2673         files.
2674         * configure: Regenerate.
2675         * testsuite/libgomp-site-extra.exp.in: New file.
2676         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
2677         variable.
2678         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
2679         variable.
2680         * testsuite/Makefile.in: Regenerate.
2682 2020-04-03  Thomas Schwinge  <thomas@codesourcery.com>
2684         PR tree-optimization/89713
2685         PR c/94392
2686         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
2687         'bar.sync'.
2688         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
2690 2020-03-31  Tobias Burnus  <tobias@codesourcery.com>
2692         * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
2693         * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
2695 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
2697         PR libgomp/81689
2698         * testsuite/libgomp.c/target-link-1.c: Remove xfail.
2700 2020-03-20  Tobias Burnus  <tobias@codesourcery.com>
2702         PR libgomp/94251
2703         * target.c (gomp_load_image_to_device): Fix link
2704         variable handling.
2706 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
2708         PR c++/93931
2709         * testsuite/libgomp.c++/pr93931.C: New test.
2711 2020-03-19  Tobias Burnus  <tobias@codesourcery.com>
2713         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
2714         dg-allow-blank-lines-in-output.
2716 2020-03-18  Julian Brown <julian@codesourcery.com>
2717             Tobias Burnus  <tobias@codesourcery.com>
2719         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
2720         it work concurrently.
2722 2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
2724         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
2725         #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
2726         * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
2728 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
2730         PR middle-end/93566
2731         * testsuite/libgomp.c/pr93566.c: New test.
2733 2020-02-21  Frederik Harwath  <frederik@codesourcery.com>
2735         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
2736         changes from 2020-02-19, i.e. use integer(c_size_t) instead of
2737         integer(acc_device_property) for the type of the return value of
2738         acc_get_property.
2740 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
2742         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
2743         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
2744         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
2745         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
2746         (acc_set_device_num): Fix Fortran argument name, use same name for C.
2747         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
2748         corrections; add note about the previous interface and named constant.
2749         (OpenACC library and environment variables): Fix two typos.
2750         * openacc.f90: Use for all procedures the argument names from the spec
2751         as for â€¦_h they are user visible.
2752         (openacc_kinds): Rename acc_device_property to
2753         acc_device_property_kinds and change value to int32 ; and update users.
2754         Re-add acc_device_property for for backward compatibility.
2755         (acc_get_property_string_h): Clean up as acc_device_property_kind
2756         changed.
2757         (acc_get_property_h): Likewise and return c_size_t instead of
2758         acc_device_property.
2759         (openacc): Also export acc_device_property_kinds.
2760         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
2761         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
2762         handling; check against /= 0 instead of == 1 to match C.
2763         * openacc_lib.h: Use for all procedures the argument names from the spec
2764         as for â€¦_h they are user visible. Place !GCC$ into the first column to
2765         be active also for fixed-form souce form.
2766         (acc_device_current, acc_device_property_kind, acc_device_property,
2767         acc_property_memory, acc_property_free_memory, acc_property_name,
2768         acc_property_vendor, acc_property_driver): New named constants.
2769         (acc_get_property, acc_get_property_string): New generic interface.
2771 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
2773         PR libgomp/93481
2774         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
2775         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
2776         optional.
2777         (gomp_target_task_fn): Assert "devicep->async_run_func".
2778         (clear_unsupported_flags): New function to remove unsupported flags
2779         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
2780         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
2781         * testsuite/libgomp.c/target-33.c:
2782         Remove xfail for offload_target_nvptx.
2783         * testsuite/libgomp.c/target-34.c: Likewise.
2785 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
2787         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
2788         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
2789         * testsuite/libgomp.c/target-34.c: Likewise.
2790         * testsuite/libgomp.c/target-link-1.c: Add xfail for
2791         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
2793 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
2795         * testsuite/libgomp.c/target-38.c: New test.
2797 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
2799         PR libgomp/93515
2800         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
2802 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
2804         * testsuite/lib/libgomp.exp
2805         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
2806         and not as 'source' argument to libgomp_target_compile.
2808 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
2810         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
2811         (gcn_gfx801_s): Remove.
2812         (isa_hsa_name): Remove gfx801.
2813         (isa_gcc_name): Remove gfx801/carizzo.
2814         (isa_code): Remove gfx801.
2816 2020-02-03  Julian Brown  <julian@codesourcery.com>
2817             Tobias Burnus  <tobias@codesourcery.com>
2819         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
2820         and *_finalize variants; document acc_attach and acc_detach; update
2821         references from OpenACC 2.0 to 2.6.
2822         * openacc.f90 (openacc_version): Update to 201711.
2823         * openacc_lib.h (openacc_version): Update to 201711.
2824         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
2825         openacc_version to 201711.
2826         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
2828 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
2830         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
2831         and vgpr_count fields.
2832         (struct kernel_info): Add a field for a hsa_kernel_description.
2833         (run_kernel): Reduce the number of threads/workers if the requested
2834         number would require too many VGPRs.
2835         (init_basic_kernel_info): Initialize description field with
2836         the hsa_kernel_description entry for the kernel.
2838 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
2840         PR bootstrap/93409
2841         * plugin/configfrag.ac (enable_offload_targets): Skip
2842         HSA and GCN plugin besides -m32 also for -mx32.
2843         * configure: Regenerate.
2845 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
2847         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
2849 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
2851         * plugin-gcn.c (struct agent_info): Add fields "name" and
2852         "vendor_name" ...
2853         (GOMP_OFFLOAD_init_device): ... and init from here.
2854         (struct hsa_context_info): Add field "driver_version_s" ...
2855         (init_hsa_contest): ... and init from here.
2856         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
2857         implementation.
2858         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
2859         Enable test execution for amdgcn and host offloading targets.
2860         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
2861         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
2862         (expect_device_properties): Split function into ...
2863         (expect_device_string_properties): ... this new function ...
2864         (expect_device_memory): ... and this new function.
2865         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
2866         Add test.
2868 2020-01-28  Julian Brown  <julian@codesourcery.com>
2870         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
2871         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
2872         component/non-component variable refs in a single directive.
2873         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
2875 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
2877         * configure.ac: Handle `--with-toolexeclibdir='.
2878         * Makefile.in: Regenerate.
2879         * aclocal.m4: Regenerate.
2880         * configure: Regenerate.
2881         * testsuite/Makefile.in: Regenerate.
2883 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
2885         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
2886         (expect_device_properties): Remove "expected_free_mem" argument,
2887         change "expected_total_mem" argument type to size_t;
2888         change types of acc_get_property results to size_t,
2889         adapt format strings.
2890         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
2891         Use %zu instead of %zd to print size_t values.
2892         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
2893         rename to ...
2894         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
2895         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
2896         rename to ...
2897         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
2899 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
2901         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
2902         the device id.
2904 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
2906         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
2907         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
2908         Adjust test dimensions for amdgcn.
2909         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
2910         gang/worker/vector expectations dynamically.
2911         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
2912         (main): Likewise.
2913         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
2914         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
2915         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
2916         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
2917         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
2918         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
2919         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
2920         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
2921         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
2922         (acc_gang): Recognise acc_device_radeon.
2923         (acc_worker): Likewise.
2924         (acc_vector): Likewise.
2925         (main): Set expectations for amdgcn.
2926         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
2927         (main): Adjust gang/worker/vector expectations dynamically.
2928         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
2929         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
2930         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
2931         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
2932         for amdgcn.
2934 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
2936         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
2937         acc_device_radeon.
2938         (openacc): Likewise.
2939         * openacc.f90 (openacc_kinds): Likewise.
2940         (openacc): Likewise.
2941         * openacc.h (acc_device_t): Likewise.
2942         * openacc_lib.h: Likewise.
2943         * testsuite/lib/libgomp.exp
2944         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
2945         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
2946         (cb_compute_construct_end): Likewise.
2947         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
2948         (cb_enqueue_launch_start): Likewise.
2949         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
2950         (cb_enter_data_end): Likewise.
2951         (cb_exit_data_start): Likewise.
2952         (cb_exit_data_end): Likewise.
2953         (cb_compute_construct_end): Likewise.
2954         (cb_enqueue_launch_start): Likewise.
2955         (cb_enqueue_launch_end): Likewise.
2956         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
2957         (main): Likewise.
2959 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
2961         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
2962         to use this instead of 'enum gomp_device_property'.
2963         (GOMP_OFFLOAD_get_property): Rename to...
2964         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
2965         * libgomp.h (struct gomp_device_descr): Move
2966         'GOMP_OFFLOAD_openacc_get_property'...
2967         (struct acc_dispatch_t): ... here.  Adjust all users.
2968         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
2970         * target.c (gomp_map_vars_internal)
2971         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
2972         paths.
2974 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
2976         PR libgomp/93219
2977         * libgomp.h (gomp_print_string): Change return type from void to int.
2978         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
2979         not all characters have been written.
2981 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
2983         * libgomp.texi: Fix typos, use https.
2985 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
2987         * testsuite/libgomp.fortran/optional-map.f90: Add test for
2988         unallocated/disassociated actual arguments to nonallocatable/nonpointer
2989         dummy arguments; those are/shall be regarded as absent arguments.
2990         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
2991         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
2993 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
2995         Update copyright years.
2997         * libgomp.texi: Bump @copying's copyright year.
2999 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
3001         PR libgomp/93065
3002         * oacc-init.c (goacc_runtime_deinitialize): New function.
3004 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
3006         PR bootstrap/93074
3007         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
3008         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
3010 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
3011             Frederik Harwath  <frederik@codesourcery.com>
3012             Thomas Schwinge  <tschwinge@codesourcery.com>
3014         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
3015         * libgomp-plugin.h (gomp_device_property_value): New union.
3016         (gomp_device_property_value): New prototype.
3017         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
3018         constant.
3019         (acc_device_property_t): New enum.
3020         (acc_get_property, acc_get_property_string): New prototypes.
3021         * oacc-init.c (acc_get_device_type): Also assert that result
3022         is not `acc_device_current'.
3023         (get_property_any, acc_get_property, acc_get_property_string):
3024         New functions.
3025         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
3026         `acc_property_memory', `acc_property_free_memory',
3027         `acc_property_name', `acc_property_vendor' and
3028         `acc_property_driver' constants.  Add `acc_device_property' data
3029         type.
3030         (openacc_internal): Add `acc_get_property' and
3031         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
3032         `acc_get_property_string_h', `acc_get_property_l' and
3033         `acc_get_property_string_l'.
3034         * oacc-host.c (host_get_property): New function.
3035         (host_dispatch): Wire it.
3036         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
3037         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
3038         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
3039         * libgomp.texi (OpenACC Runtime Library Routines): Add
3040         `acc_get_property'.
3041         (acc_get_property): New node.
3042         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
3043         function (stub).
3044         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
3045         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
3046         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
3047         calls.
3048         (GOMP_OFFLOAD_get_property): New function.
3049         (struct ptx_device): Add new field "name".
3050         (cuda_driver_version_s): Add new static variable ...
3051         (nvptx_init): ... and init from here.
3053         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
3054         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
3055         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
3056         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
3057         with test helper functions.
3059         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
3061 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
3063         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
3064         variable.
3066 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
3068         * target.c (gomp_map_vars_internal): Restore 'omp declare target
3069         link' handling.
3071 2019-12-19  Julian Brown  <julian@codesourcery.com>
3073         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
3074         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
3075         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
3077 2019-12-19  Julian Brown  <julian@codesourcery.com>
3078             Cesar Philippidis  <cesar@codesourcery.com>
3080         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
3081         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
3082         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
3083         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
3084         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
3085         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
3086         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
3087         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
3088         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
3089         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
3090         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
3091         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
3092         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
3094 2019-12-19  Julian Brown  <julian@codesourcery.com>
3096         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
3097         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
3098         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
3099         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
3100         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
3101         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
3102         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
3103         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
3104         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
3105         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
3106         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
3107         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
3109 2019-12-19  Julian Brown  <julian@codesourcery.com>
3111         * libgomp.h (struct target_var_desc): Add do_detach flag.
3112         * oacc-init.c (acc_shutdown_1): Free aux block if present.
3113         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
3114         struct components.  Tidy up and add some new checks.
3115         (goacc_enter_data_internal): Update call to find_group_last.
3116         (goacc_exit_data_internal): Support detach operations and
3117         GOMP_MAP_STRUCT.
3118         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
3119         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
3120         attach/detach in enter/exit data detection code.
3121         * target.c (gomp_map_vars_existing): Initialise do_detach field of
3122         tgt_var_desc.
3123         (gomp_map_vars_internal): Support attach.
3124         (gomp_unmap_vars_internal): Support detach.
3126 2019-12-19  Julian Brown  <julian@codesourcery.com>
3127             Thomas Schwinge  <thomas@codesourcery.com>
3129         * libgomp.h (struct splay_tree_aux): Add attach_count field.
3130         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
3131         * libgomp.map (OACC_2.6): New section. Add acc_attach,
3132         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
3133         acc_detach_finalize_async.
3134         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
3135         acc_detach, acc_detach_async, acc_detach_finalize,
3136         acc_detach_finalize_async): New functions.
3137         * openacc.h (acc_attach, acc_attach_async, acc_detach,
3138         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
3139         prototypes.
3140         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
3141         (gomp_remove_var_internal): Free attachment counts if present.
3142         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
3143         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
3145 2019-12-19  Julian Brown  <julian@codesourcery.com>
3146             Cesar Philippidis  <cesar@codesourcery.com>
3148         * libgomp.h (gomp_map_val): Add prototype.
3149         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
3150         open-coding device-address calculation.
3151         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
3152         non-present case.
3154 2019-12-19  Julian Brown  <julian@codesourcery.com>
3156         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
3157         field for virtual_refcount.
3158         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
3159         (gomp_free_memmap): Remove prototype.
3160         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
3161         instead of calling gomp_free_memmap.
3162         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
3163         dynamic_refcount.
3164         (acc_unmap_data): Open code instead of forcing target_mem_desc's
3165         to_free field to NULL then calling gomp_unmap_vars.  Handle
3166         REFCOUNT_INFINITY on target blocks.
3167         (goacc_enter_data): Rename to...
3168         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
3169         handling for mapping groups.  Use virtual_refcount instead of
3170         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
3171         map_map_vars_async call.  Re-do lookup for target pointer return value.
3172         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
3173         renamed goacc_enter_datum function.
3174         (goacc_exit_data): Rename to...
3175         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
3176         (acc_delete, acc_delete_async, acc_delete_finalize,
3177         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
3178         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
3179         goacc_exit_datum function.
3180         (gomp_acc_remove_pointer, find_pointer): Remove functions.
3181         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
3182         New functions.
3183         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
3184         goacc_exit_data_internal helper functions.
3185         * target.c (gomp_map_vars_internal): Handle
3186         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
3187         semantics.
3188         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
3189         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
3190         virtual_refcount field instead of dynamic_refcount.
3191         (gomp_free_memmap): Remove function.
3192         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
3193         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
3194         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
3196 2019-12-19  Julian Brown  <julian@codesourcery.com>
3197             Thomas Schwinge  <thomas@codesourcery.com>
3199         * libgomp.h (struct splay_tree_aux): New.
3200         (struct splay_tree_key_s): Replace link_key field with aux pointer.
3201         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
3202         to aux struct.
3203         (gomp_remove_var_internal): Free aux block if present.
3204         (gomp_load_image_to_device): Zero-initialise aux field instead of
3205         link_key field.
3206         (omp_target_associate_pointer): Zero-initialise aux field.
3208 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
3210         PR middle-end/86416
3211         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
3212         q or none.
3213         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
3214         L or none.
3216 2019-12-19  Julian Brown  <julian@codesourcery.com>
3217             Maciej W. Rozycki  <macro@codesourcery.com>
3218             Tobias Burnus  <tobias@codesourcery.com>
3219             Thomas Schwinge  <thomas@codesourcery.com>
3221         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
3222         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
3223         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
3224         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
3225         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
3226         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
3227         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
3228         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
3229         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
3231 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
3233         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
3234         called...
3235         (goacc_insert_pointer): ... from here, "present" case.
3236         (goacc_insert_pointer): Inline function into...
3237         (GOACC_enter_exit_data): ... here, and simplify.
3239         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
3240         called...
3241         (goacc_insert_pointer): ... from here, "not present" case.
3243         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
3244         all users.
3246         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
3247         'goacc_enter_data', 'goacc_exit_data'.
3249         * oacc-mem.c (delete_copyout): Refactor into...
3250         (goacc_exit_data): ... this.  Adjust all users.
3252         * oacc-mem.c (present_create_copy): Refactor into...
3253         (goacc_enter_data): ... this.  Adjust all users.
3255         * target.c (gomp_unmap_vars_internal): Add a safeguard to
3256         'gomp_remove_var'.
3258         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
3259         like 'GOMP_MAP_FROM'.
3261         PR libgomp/92726
3262         PR libgomp/92970
3263         PR libgomp/92984
3264         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
3265         fails.
3266         (GOACC_enter_exit_data): Simplify accordingly.
3267         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
3268         subsuming...
3269         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
3270         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
3271         file.
3272         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
3273         subsuming...
3274         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
3275         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
3276         file.
3277         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
3278         subsuming...
3279         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
3281         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
3282         'finalize' handling.
3284         PR libgomp/92848
3285         * oacc-mem.c (acc_map_data, present_create_copy)
3286         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
3287         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
3288         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
3289         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
3290         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
3291         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
3292         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
3293         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
3294         Remove "XFAIL"s.
3296         * target.c (gomp_unmap_tgt): Make it 'static'.
3297         * libgomp.h (gomp_unmap_tgt): Remove.
3299 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
3301         PR middle-end/86416
3302         * testsuite/libgomp.c/pr86416-1.c: New.
3303         * testsuite/libgomp.c/pr86416-2.c: New.
3305 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
3307         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
3308         all symbols as public except for the 'use â€¦, only' imported symbol,
3309         which is private.
3310         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
3311         all symbols from module openacc_kinds as PUBLIC
3312         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
3313         fix comment typo.
3314         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
3316 2019-12-13  Julian Brown  <julian@codesourcery.com>
3318         PR libgomp/92881
3320         * libgomp.h (gomp_remove_var_async): Add prototype.
3321         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
3322         gomp_remove_var.
3323         * target.c (gomp_unref_tgt): Change return type to bool, indicating
3324         whether target_mem_desc was unmapped.
3325         (gomp_unref_tgt_void): New.
3326         (gomp_remove_var): Reimplement in terms of...
3327         (gomp_remove_var_internal): ...this new helper function.
3328         (gomp_remove_var_async): New, implemented using above helper function.
3329         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
3330         gomp_unref_tgt.
3332 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
3334         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
3335         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
3336         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
3337         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
3338         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
3339         Likewise.
3340         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
3341         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
3343 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
3345         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
3346         as public except for the 'use â€¦, only' imported symbol, which is
3347         private.
3348         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
3349         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
3350         attributes for acc_copyout_finalize and acc_delete_finalize.
3352 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
3354         PR fortran/92899
3355         * testsuite/libgomp.fortran/atomic1.f90: New test.
3357 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
3359         PR libgomp/92843
3360         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
3361         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
3362         assertions.
3363         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
3364         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
3365         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
3366         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
3367         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
3369         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
3370         * oacc-mem.c: ... here.
3371         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
3372         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
3373         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
3374         Remove.
3375         * libgomp_g.h: Update.
3377         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
3378         * oacc-async.c: ... here.
3379         * oacc-int.h (goacc_wait): Declare.
3380         * libgomp_g.h: Update
3382         PR libgomp/92854
3383         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
3384         New file.
3385         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
3386         Likewise.
3387         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
3388         Likewise.
3389         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
3390         Likewise.
3391         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
3392         Likewise.
3393         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
3394         Likewise.
3396 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
3397             Julian Brown  <julian@codesourcery.com>
3399         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
3400         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
3402 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
3404         * omp_lib.h.in: Fix spelling of function declaration
3405         omp_get_cancell(l)ation.
3406         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
3407         Fix typos.
3408         * env.c: Fix comment typos.
3409         * oacc-host.c: Likewise.
3410         * ordered.c: Likewise.
3411         * task.c: Likewise.
3412         * team.c: Likewise.
3413         * config/gcn/task.c: Likewise.
3414         * config/gcn/team.c: Likewise.
3415         * config/nvptx/task.c: Likewise.
3416         * config/nvptx/team.c: Likewise.
3417         * plugin/plugin-gcn.c: Likewise.
3418         * testsuite/libgomp.fortran/jacobi.f: Likewise.
3419         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
3420         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
3422 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
3424         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
3425         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
3426         unnecessary 'dg-additional-options "-w"'.
3428 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
3429             Julian Brown  <julian@codesourcery.com>
3431         PR libgomp/92116
3432         PR libgomp/92877
3434         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
3435         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
3436         Adjust all users.
3437         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
3438         Remove XFAIL.
3439         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
3440         Likewise.
3441         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
3443 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
3445         PR libgomp/92503
3446         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
3447         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
3448         file.
3449         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
3450         Likewise.
3451         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
3452         Likewise.
3453         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
3454         Likewise.
3455         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
3456         Likewise.
3457         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
3458         Likewise.
3459         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
3460         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
3461         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
3462         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
3463         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
3464         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
3465         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
3466         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
3467         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
3468         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
3470         PR libgomp/92840
3471         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
3472         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
3473         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
3474         New file.
3475         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
3476         Likewise.
3477         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
3478         Likewise.
3479         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
3480         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
3482         PR libgomp/92511
3483         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
3484         this file...
3485         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
3486         this file...
3487         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
3488         file...
3489         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
3490         file...
3491         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
3492         ... with their content moved into, and extended in this new file.
3493         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
3494         New file.
3495         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
3496         Likewise.
3497         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
3498         Likewise.
3499         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
3500         Likewise.
3502         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
3504         PR libgomp/92854
3505         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
3507         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
3509         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
3511 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
3513         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
3514         unique.
3515         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
3516         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
3517         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
3518         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
3519         Ditto.
3520         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
3521         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
3523 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
3525         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
3527 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
3528             Kwok Cheung Yeung <kcy@codesourcery.com>
3530         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
3531         if input it a NULL pointer.
3532         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
3533         diagnostic of NULL pointer.
3534         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
3535         * testsuite/libgomp.fortran/optional-map.f90: New.
3536         * testsuite/libgomp.fortran/use_device_addr-1.f90
3537         (test_dummy_opt_callee_1_absent): New.
3538         (test_dummy_opt_call_1): Call it.
3539         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
3540         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
3541         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
3542         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
3543         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
3544         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
3545         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
3546         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
3547         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
3548         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
3549         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
3550         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
3551         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
3552         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
3553         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
3554         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
3556 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
3558         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
3559         expect dg-output of 'Error termination.' for GCN.
3560         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3561         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3563 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
3565         PR fortran/92756
3566         * testsuite/libgomp.fortran/teams1.f90: New test.
3567         * testsuite/libgomp.fortran/teams2.f90: New test.
3569 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
3571         * oacc-init.c (acc_known_device_type): Add function.
3572         (unknown_device_type_error): Add function.
3573         (name_of_acc_device_t): Change to call unknown_device_type_error
3574         on unknown type.
3575         (resolve_device): Use acc_known_device_type.
3576         (acc_init): Fail if acc_device_t argument is not valid.
3577         (acc_shutdown): Likewise.
3578         (acc_get_num_devices): Likewise.
3579         (acc_set_device_type): Likewise.
3580         (acc_get_device_num): Likewise.
3581         (acc_set_device_num): Likewise.
3582         (acc_on_device): Add comment that argument validity is not checked.
3584 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
3586         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
3587         Recognize amdgcn.
3588         (check_effective_target_openacc_amdgcn_accel_present): New proc.
3589         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
3590         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
3591         * testsuite/libgomp.oacc-c/c.exp: Likewise.
3592         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3594 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
3596         PR libgomp/91938
3597         * configure.tgt: Avoid IE tls on *-*-musl*.
3599 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
3601         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
3602         adding a common-block test case.
3604 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
3606         PR c++/60228
3607         * testsuite/libgomp.c++/udr-20.C: New test.
3608         * testsuite/libgomp.c++/udr-21.C: New test.
3610 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
3612         * testsuite/lib/libgomp.exp
3613         (check_effective_target_offload_target_nvptx): New proc.
3614         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
3615         'dg-skip-if'.
3616         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
3617         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
3618         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
3620 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3622         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
3623         * testsuite/libgomp.c/pr39591-2.c: Likewise.
3624         * testsuite/libgomp.c/pr39591-3.c: Likewise.
3625         * testsuite/libgomp.c/private-1.c: Likewise.
3626         * testsuite/libgomp.c/task-1.c: Likewise.
3627         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
3629 2019-11-20  Julian Brown  <julian@codesourcery.com>
3631         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
3632         aq->mutex here.
3633         (queue_push_launch): Lock aq->mutex before calling
3634         wait_for_queue_nonfull.
3635         (queue_push_callback): Likewise.
3636         (queue_push_asyncwait): Likewise.
3637         (queue_push_placeholder): Likewise.
3639 2019-11-20  Julian Brown  <julian@codesourcery.com>
3641         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
3642         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
3643         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
3644         return code.
3646 2019-11-20  Julian Brown  <julian@codesourcery.com>
3648         PR libgomp/92511
3650         * oacc-mem.c (present_create_copy): Fix device pointer return value in
3651         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
3652         in non-present/create case.
3653         (delete_copyout): Change error condition to fail only on copies outside
3654         of mapped block.  Adjust error message accordingly.
3655         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
3656         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
3657         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
3658         message.
3659         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
3660         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
3661         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
3663 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
3665         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
3666         libatomic in build-tree testing.
3668 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
3670         * testsuite/Makefile.in: Regenerate.
3672 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
3674         * testsuite/libgomp.c/target-print-1.c: New file.
3675         * testsuite/libgomp.fortran/target-print-1.f90: New file.
3676         * testsuite/libgomp.oacc-c/print-1.c: New file.
3677         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
3679 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
3680             Kwok Cheung Yeung  <kcy@codesourcery.com>
3681             Julian Brown  <julian@codesourcery.com>
3682             Tom de Vries  <tom@codesourcery.com>
3684         * plugin/Makefrag.am: Add amdgcn plugin support.
3685         * plugin/configfrag.ac: Likewise.
3686         * plugin/plugin-gcn.c: New file.
3687         * configure: Regenerate.
3688         * Makefile.in: Regenerate.
3689         * testsuite/Makefile.in: Regenerate.
3691 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
3693         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
3694         and use team_malloc variants.
3695         (gomp_gcn_exit_kernel): Use team_free.
3696         * libgomp.h (TEAM_ARENA_SIZE): Define.
3697         (TEAM_ARENA_START): Define.
3698         (TEAM_ARENA_FREE): Define.
3699         (TEAM_ARENA_END): Define.
3700         (team_malloc): New function.
3701         (team_malloc_cleared): New function.
3702         (team_free): New function.
3703         * team.c (gomp_new_team): Initialize and use team_malloc.
3704         (free_team): Use team_free.
3705         (gomp_free_thread): Use team_free.
3706         (gomp_pause_host): Use team_free.
3707         * work.c (gomp_init_work_share): Use team_malloc.
3708         (gomp_fini_work_share): Use team_free.
3710 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
3711             Kwok Cheung Yeung  <kcy@codesourcery.com>
3712             Julian Brown  <julian@codesourcery.com>
3713             Tom de Vries  <tom@codesourcery.com>
3715         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
3716         * Makefile.in: Regenerate.
3717         * config.h.in (PLUGIN_GCN): Add new undef.
3718         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
3719         * config/gcn/affinity-fmt.c: New file.
3720         * config/gcn/bar.c: New file.
3721         * config/gcn/bar.h: New file.
3722         * config/gcn/doacross.h: New file.
3723         * config/gcn/icv-device.c: New file.
3724         * config/gcn/oacc-target.c: New file.
3725         * config/gcn/simple-bar.h: New file.
3726         * config/gcn/target.c: New file.
3727         * config/gcn/task.c: New file.
3728         * config/gcn/team.c: New file.
3729         * config/gcn/time.c: New file.
3730         * configure.ac: Add amdgcn*-*-*.
3731         * configure: Regenerate.
3732         * configure.tgt: Add amdgcn*-*-*.
3733         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
3734         * libgomp.h (gcn_thrs): Add amdgcn variant.
3735         (set_gcn_thrs): Likewise.
3736         (gomp_thread): Likewise.
3737         * oacc-int.h (goacc_thread): Likewise.
3738         * oacc-target.c: New file.
3739         * openacc.f90 (acc_device_gcn): New parameter.
3740         * openacc.h (acc_device_t): Add acc_device_gcn.
3741         * team.c (gomp_free_pool_helper): Add amdgcn support.
3743 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
3744             Julian Brown  <julian@codesourcery.com>
3746         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
3747         parameter.
3748         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
3749         queue constructor.
3750         * oacc-host.c (host_openacc_async_construct): Add device parameter.
3751         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
3752         device parameter.
3754 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
3756         * configure.tgt (nvptx*-*-*): Add "accel" directory.
3757         * config/nvptx/libgomp-plugin.c: Move ...
3758         * config/accel/libgomp-plugin.c: ... to here.
3759         * config/nvptx/lock.c: Move ...
3760         * config/accel/lock.c: ... to here.
3761         * config/nvptx/mutex.c: Move ...
3762         * config/accel/mutex.c: ... to here.
3763         * config/nvptx/mutex.h: Move ...
3764         * config/accel/mutex.h: ... to here.
3765         * config/nvptx/oacc-async.c: Move ...
3766         * config/accel/oacc-async.c: ... to here.
3767         * config/nvptx/oacc-cuda.c: Move ...
3768         * config/accel/oacc-cuda.c: ... to here.
3769         * config/nvptx/oacc-host.c: Move ...
3770         * config/accel/oacc-host.c: ... to here.
3771         * config/nvptx/oacc-init.c: Move ...
3772         * config/accel/oacc-init.c: ... to here.
3773         * config/nvptx/oacc-mem.c: Move ...
3774         * config/accel/oacc-mem.c: ... to here.
3775         * config/nvptx/oacc-plugin.c: Move ...
3776         * config/accel/oacc-plugin.c: ... to here.
3777         * config/nvptx/omp-lock.h: Move ...
3778         * config/accel/omp-lock.h: ... to here.
3779         * config/nvptx/openacc.f90: Move ...
3780         * config/accel/openacc.f90: ... to here.
3781         * config/nvptx/pool.h: Move ...
3782         * config/accel/pool.h: ... to here.
3783         * config/nvptx/proc.c: Move ...
3784         * config/accel/proc.c: ... to here.
3785         * config/nvptx/ptrlock.c: Move ...
3786         * config/accel/ptrlock.c: ... to here.
3787         * config/nvptx/ptrlock.h: Move ...
3788         * config/accel/ptrlock.h: ... to here.
3789         * config/nvptx/sem.c: Move ...
3790         * config/accel/sem.c: ... to here.
3791         * config/nvptx/sem.h: Move ...
3792         * config/accel/sem.h: ... to here.
3793         * config/nvptx/thread-stacksize.h: Move ...
3794         * config/accel/thread-stacksize.h: ... to here.
3796 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
3797             Tobias Burnus  <tobias@codesourcery.com>
3798             Frederik Harwath  <frederik@codesourcery.com>
3799             Thomas Schwinge  <thomas@codesourcery.com>
3801         libgomp/
3802         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
3803         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
3804         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
3806 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
3807             Kwok Cheung Yeung  <kcy@codesourcery.com>
3809         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
3810         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
3812 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
3814         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
3816         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
3817         run'.
3818         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
3819         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
3821 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
3823         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
3824         Add expected warnings about missing reduction clauses.
3825         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
3826         Likewise.
3827         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
3828         Likewise.
3829         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
3830         Likewise.
3832 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
3834         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
3835         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
3836         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
3837         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
3838         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
3839         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
3841 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
3843         PR fortran/92305
3844         * testsuite/libgomp.fortran/allocatable2.f90: Use
3845         unique numbers with 'stop'.
3846         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
3847         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
3848         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
3849         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
3850         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
3852 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
3854         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
3855         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
3856         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
3857         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
3858         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
3859         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
3861 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
3863         * testsuite/libgomp.fortran/target9.f90: New.
3865 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
3867         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
3868         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
3869         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
3870         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
3871         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
3872         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
3873         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
3874         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
3875         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
3876         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
3877         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
3878         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
3879         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
3880         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
3881         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
3882         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
3883         * testsuite/libgomp.fortran/associate1.f90: Ditto.
3884         * testsuite/libgomp.fortran/associate2.f90: Ditto.
3885         * testsuite/libgomp.fortran/associate3.f90: Ditto.
3886         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
3887         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
3888         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
3889         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
3890         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
3891         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
3892         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
3893         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
3894         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
3895         * testsuite/libgomp.fortran/character1.f90: Ditto.
3896         * testsuite/libgomp.fortran/character2.f90: Ditto.
3897         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
3898         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
3899         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
3900         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
3901         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
3902         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
3903         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
3904         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
3905         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
3906         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
3907         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
3908         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
3909         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
3910         * testsuite/libgomp.fortran/do1.f90: Ditto.
3911         * testsuite/libgomp.fortran/do2.f90: Ditto.
3912         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
3913         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
3914         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
3915         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
3916         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
3917         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
3918         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
3919         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
3920         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
3921         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
3922         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
3923         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
3924         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
3925         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
3926         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
3927         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
3928         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
3929         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
3930         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
3931         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
3932         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
3933         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
3934         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
3935         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
3936         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
3937         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
3938         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
3939         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
3940         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
3941         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
3942         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
3943         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
3944         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
3945         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
3946         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
3947         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
3948         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
3949         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
3950         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
3951         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
3952         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
3953         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
3954         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
3955         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
3956         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
3957         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
3958         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
3959         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
3960         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
3961         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
3962         * testsuite/libgomp.fortran/lib1.f90: Ditto.
3963         * testsuite/libgomp.fortran/lib4.f90: Ditto.
3964         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
3965         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
3966         * testsuite/libgomp.fortran/nested1.f90: Ditto.
3967         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
3968         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
3969         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
3970         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
3971         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
3972         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
3973         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
3974         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
3975         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
3976         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
3977         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
3978         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
3979         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
3980         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
3981         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
3982         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
3983         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
3984         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
3985         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
3986         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
3987         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
3988         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
3989         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
3990         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
3991         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
3992         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
3993         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
3994         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
3995         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
3996         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
3997         * testsuite/libgomp.fortran/pr28390.f: Ditto.
3998         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
3999         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
4000         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
4001         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
4002         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
4003         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
4004         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
4005         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
4006         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
4007         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
4008         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
4009         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
4010         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
4011         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
4012         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
4013         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
4014         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
4015         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
4016         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
4017         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
4018         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
4019         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
4020         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
4021         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
4022         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
4023         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
4024         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
4025         * testsuite/libgomp.fortran/reference1.f90: Ditto.
4026         * testsuite/libgomp.fortran/reference2.f90: Ditto.
4027         * testsuite/libgomp.fortran/retval1.f90: Ditto.
4028         * testsuite/libgomp.fortran/retval2.f90: Ditto.
4029         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
4030         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
4031         * testsuite/libgomp.fortran/simd1.f90: Ditto.
4032         * testsuite/libgomp.fortran/simd2.f90: Ditto.
4033         * testsuite/libgomp.fortran/simd3.f90: Ditto.
4034         * testsuite/libgomp.fortran/simd4.f90: Ditto.
4035         * testsuite/libgomp.fortran/simd5.f90: Ditto.
4036         * testsuite/libgomp.fortran/simd6.f90: Ditto.
4037         * testsuite/libgomp.fortran/simd7.f90: Ditto.
4038         * testsuite/libgomp.fortran/stack.f90: Ditto.
4039         * testsuite/libgomp.fortran/strassen.f90: Ditto.
4040         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
4041         * testsuite/libgomp.fortran/tabs2.f: Ditto.
4042         * testsuite/libgomp.fortran/target1.f90: Ditto.
4043         * testsuite/libgomp.fortran/target2.f90: Ditto.
4044         * testsuite/libgomp.fortran/target3.f90: Ditto.
4045         * testsuite/libgomp.fortran/target4.f90: Ditto.
4046         * testsuite/libgomp.fortran/target5.f90: Ditto.
4047         * testsuite/libgomp.fortran/target6.f90: Ditto.
4048         * testsuite/libgomp.fortran/target7.f90: Ditto.
4049         * testsuite/libgomp.fortran/target8.f90: Ditto.
4050         * testsuite/libgomp.fortran/task1.f90: Ditto.
4051         * testsuite/libgomp.fortran/task2.f90: Ditto.
4052         * testsuite/libgomp.fortran/task3.f90: Ditto.
4053         * testsuite/libgomp.fortran/task4.f90: Ditto.
4054         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
4055         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
4056         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
4057         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
4058         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
4059         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
4060         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
4061         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
4062         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
4063         * testsuite/libgomp.fortran/udr1.f90: Ditto.
4064         * testsuite/libgomp.fortran/udr10.f90: Ditto.
4065         * testsuite/libgomp.fortran/udr11.f90: Ditto.
4066         * testsuite/libgomp.fortran/udr12.f90: Ditto.
4067         * testsuite/libgomp.fortran/udr13.f90: Ditto.
4068         * testsuite/libgomp.fortran/udr14.f90: Ditto.
4069         * testsuite/libgomp.fortran/udr15.f90: Ditto.
4070         * testsuite/libgomp.fortran/udr2.f90: Ditto.
4071         * testsuite/libgomp.fortran/udr3.f90: Ditto.
4072         * testsuite/libgomp.fortran/udr4.f90: Ditto.
4073         * testsuite/libgomp.fortran/udr5.f90: Ditto.
4074         * testsuite/libgomp.fortran/udr6.f90: Ditto.
4075         * testsuite/libgomp.fortran/udr7.f90: Ditto.
4076         * testsuite/libgomp.fortran/udr8.f90: Ditto.
4077         * testsuite/libgomp.fortran/udr9.f90: Ditto.
4078         * testsuite/libgomp.fortran/vla1.f90: Ditto.
4079         * testsuite/libgomp.fortran/vla2.f90: Ditto.
4080         * testsuite/libgomp.fortran/vla3.f90: Ditto.
4081         * testsuite/libgomp.fortran/vla4.f90: Ditto.
4082         * testsuite/libgomp.fortran/vla5.f90: Ditto.
4083         * testsuite/libgomp.fortran/vla6.f90: Ditto.
4084         * testsuite/libgomp.fortran/vla7.f90: Ditto.
4085         * testsuite/libgomp.fortran/vla8.f90: Ditto.
4086         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
4087         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
4089 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
4091         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
4092         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
4093         Ditto; add 'dg-do run' for torture testing.
4094         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
4095         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
4096         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
4097         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
4098         * testsuite/libgomp.fortran/pr28390.f: Ditto.
4099         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
4100         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
4101         * testsuite/libgomp.fortran/task2.f90: Ditto.
4102         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
4103         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
4104         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
4105         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
4106         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
4107         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
4109 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
4111         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
4112         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
4113         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
4114         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
4115         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
4116         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
4117         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
4118         Use 'stop' not abort().
4119         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
4120         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
4121         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
4122         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
4123         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
4124         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
4125         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
4126         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
4127         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
4128         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
4129         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
4130         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
4131         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
4132         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
4133         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
4134         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
4135         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
4136         Ditto.
4137         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
4138         Ditto.
4139         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
4140         Ditto.
4141         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
4142         Ditto.
4143         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
4144         Ditto.
4145         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
4146         Ditto.
4147         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
4148         Ditto.
4149         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
4150         Ditto.
4151         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
4152         Ditto.
4153         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
4154         Ditto.
4155         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
4156         Ditto.
4157         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
4158         Ditto.
4159         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
4160         Ditto.
4161         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
4162         Ditto.
4163         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
4164         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
4165         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
4166         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
4167         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
4168         Likewise and also add 'dg-do run'.
4169         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
4170         Ditto.
4172 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
4173             Tobias Burnus  <tobias@codesourcery.com>
4175         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
4176         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
4177         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
4179 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
4181         PR libgomp/92081
4182         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
4183         than 0.
4185 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
4187         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
4188         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
4190 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
4192         PR middle-end/92036
4193         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
4194         file.
4196 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
4198         PR testsuite/91884
4199         * testsuite/libgomp.fortran/fortran.exp: Conditionally
4200         add -lquadmath.
4201         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
4203 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
4205         PR libgomp/92028
4206         * target.c (gomp_map_vars_internal): Readd the previous
4207         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
4208         though do that just in the !not_found_cnt case.
4210 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
4212         * gfortran.dg/gomp/target-simd.f90: New.
4214 2019-10-02  Julian Brown  <julian@codesourcery.com>
4215             Cesar Philippidis  <cesar@codesourcery.com>
4217         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
4218         * target.c (FIELD_TGT_EMPTY): Define.
4219         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
4220         as switch instead of list of ifs.
4221         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
4223 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
4225         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
4226         include. Replace alloca () with __builtin_alloca ().
4227         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
4229 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
4231         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
4232         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
4233         * oacc-parallel.c: Don't include "libgomp_g.h".
4234         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
4235         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
4236         * aclocal.m4: Regenerated.
4237         * config.h.in: Regenerated.
4238         * configure: Regenerated.
4239         * Makefile.in: Regenerated.
4241 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
4243         * libgomp_g.h: Include stdint.h instead of gstdint.h.
4245 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
4247         * configure: Regenerate.
4249 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
4251         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
4252         string is initialized.
4254 2019-09-06  Florian Weimer  <fweimer@redhat.com>
4256         * configure: Regenerate.
4258 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
4260         PR other/79543
4261         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
4262         scanning to conform to the GNU Coding Standards.
4263         * configure: Regenerate.
4265 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
4267         PR libgomp/91530
4268         * testsuite/libgomp.c/scan-21.c: New test.
4269         * testsuite/libgomp.c/scan-22.c: New test.
4271 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
4273         PR libgomp/91530
4274         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
4275         targets.
4276         * testsuite/libgomp.c/scan-12.c: Likewise.
4277         * testsuite/libgomp.c/scan-13.c: Likewise.
4278         * testsuite/libgomp.c/scan-14.c: Likewise.
4279         * testsuite/libgomp.c/scan-15.c: Likewise.
4280         * testsuite/libgomp.c/scan-16.c: Likewise.
4281         * testsuite/libgomp.c/scan-17.c: Likewise.
4282         * testsuite/libgomp.c/scan-18.c: Likewise.
4283         * testsuite/libgomp.c/scan-19.c: Likewise.
4284         * testsuite/libgomp.c/scan-20.c: Likewise.
4285         * testsuite/libgomp.c++/scan-9.C: Likewise.
4286         * testsuite/libgomp.c++/scan-10.C: Likewise.
4287         * testsuite/libgomp.c++/scan-11.C: Likewise.
4288         * testsuite/libgomp.c++/scan-12.C: Likewise.
4289         * testsuite/libgomp.c++/scan-14.C: Likewise.
4290         * testsuite/libgomp.c++/scan-15.C: Likewise.
4291         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
4292         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
4293         * testsuite/libgomp.c++/scan-16.C: Likewise.
4295 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
4297         PR fortran/91473
4298         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
4299         -std=legacy so invalid code in the test case is accepted.
4301 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
4303         PR fortran/91422
4304         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
4305         dimension.
4307 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
4309         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
4310         perform the lookup in the first loop only if !not_found_cnt, otherwise
4311         perform lookups for it in the second loop guarded with
4312         if (not_found_cnt || has_firstprivate).
4313         * testsuite/libgomp.c/target-37.c: New test.
4314         * testsuite/libgomp.c++/target-22.C: New test.
4316 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
4318         * testsuite/libgomp.c/target-18.c (struct S): New type.
4319         (foo): Use use_device_addr clause instead of use_device_ptr clause
4320         where required by OpenMP 5.0, add further tests for both use_device_ptr
4321         and use_device_addr clauses.
4322         * testsuite/libgomp.c++/target-9.C (struct S): New type.
4323         (foo): Use use_device_addr clause instead of use_device_ptr clause
4324         where required by OpenMP 5.0, add further tests for both use_device_ptr
4325         and use_device_addr clauses.  Add t and u arguments.
4326         (main): Adjust caller.
4328 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
4330         * testsuite/libgomp.c++/loop-13.C: New test.
4331         * testsuite/libgomp.c++/loop-14.C: New test.
4332         * testsuite/libgomp.c++/loop-15.C: New test.
4334 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
4336         PR middle-end/91301
4337         * testsuite/libgomp.c++/for-27.C: New test.
4339 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
4341         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
4342         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
4344 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
4346         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
4348 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
4350         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
4351         * testsuite/libgomp.c++/scan-16.C: Likewise.
4353 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
4355         * testsuite/libgomp.c/scan-19.c: New test.
4356         * testsuite/libgomp.c/scan-20.c: New test.
4358         * testsuite/libgomp.c/scan-11.c: New test.
4359         * testsuite/libgomp.c/scan-12.c: New test.
4360         * testsuite/libgomp.c/scan-13.c: New test.
4361         * testsuite/libgomp.c/scan-14.c: New test.
4362         * testsuite/libgomp.c/scan-15.c: New test.
4363         * testsuite/libgomp.c/scan-16.c: New test.
4364         * testsuite/libgomp.c/scan-17.c: New test.
4365         * testsuite/libgomp.c/scan-18.c: New test.
4366         * testsuite/libgomp.c++/scan-9.C: New test.
4367         * testsuite/libgomp.c++/scan-10.C: New test.
4368         * testsuite/libgomp.c++/scan-11.C: New test.
4369         * testsuite/libgomp.c++/scan-12.C: New test.
4370         * testsuite/libgomp.c++/scan-13.C: New test.
4371         * testsuite/libgomp.c++/scan-14.C: New test.
4372         * testsuite/libgomp.c++/scan-15.C: New test.
4373         * testsuite/libgomp.c++/scan-16.C: New test.
4375 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
4377         * testsuite/libgomp.c/scan-9.c: New test.
4378         * testsuite/libgomp.c/scan-10.c: New test.
4380 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
4382         * testsuite/libgomp.c++/scan-1.C: New test.
4383         * testsuite/libgomp.c++/scan-2.C: New test.
4384         * testsuite/libgomp.c++/scan-3.C: New test.
4385         * testsuite/libgomp.c++/scan-4.C: New test.
4386         * testsuite/libgomp.c++/scan-5.C: New test.
4387         * testsuite/libgomp.c++/scan-6.C: New test.
4388         * testsuite/libgomp.c++/scan-7.C: New test.
4389         * testsuite/libgomp.c++/scan-8.C: New test.
4390         * testsuite/libgomp.c/scan-1.c: New test.
4391         * testsuite/libgomp.c/scan-2.c: New test.
4392         * testsuite/libgomp.c/scan-3.c: New test.
4393         * testsuite/libgomp.c/scan-4.c: New test.
4394         * testsuite/libgomp.c/scan-5.c: New test.
4395         * testsuite/libgomp.c/scan-6.c: New test.
4396         * testsuite/libgomp.c/scan-7.c: New test.
4397         * testsuite/libgomp.c/scan-8.c: New test.
4399 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
4401         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
4402         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
4403         Likewise.
4405         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
4406         check.
4408 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
4410         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
4411         file.
4413 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
4415         PR fortran/90743
4416         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
4417         case.
4418         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
4419         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
4420         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
4421         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
4423         PR testsuite/90861
4424         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
4426         PR middle-end/90862
4427         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
4429 2019-06-16  Tom de Vries  <tdevries@suse.de>
4431         PR tree-optimization/89376
4432         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
4434 2019-06-15  Tom de Vries  <tdevries@suse.de>
4436         PR tree-optimization/89713
4437         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
4438         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
4440 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
4442         PR middle-end/90779
4443         * testsuite/libgomp.c/pr90779.c: New test.
4444         * testsuite/libgomp.fortran/pr90779.f90: New test.
4446 2019-06-15  Tom de Vries  <tdevries@suse.de>
4448         PR tree-optimization/90009
4449         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
4451 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
4453         PR tree-optimization/89713
4454         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
4456 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
4458         PR target/90811
4459         * testsuite/libgomp.c/pr90811.c: New test.
4461 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
4463         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
4464         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
4466 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
4468         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
4469         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
4470         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
4471         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
4473 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4475         * configure.ac: Call AX_COUNT_CPUS.
4476         Substitute CPU_COUNT.
4477         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
4478         count fallback.
4479         * aclocal.m4: Regenerate.
4480         * configure: Regenerate.
4481         * Makefile.in, testsuite/Makefile.in: Regenerate.
4483 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
4485         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
4486         to ...
4487         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
4488         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
4489         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
4491 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
4493         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
4495         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
4497         PR libgomp/90641
4498         * work.c (gomp_init_work_share): Instead of aligning final ordered
4499         value to multiples of long long alignment, align to that the
4500         first part (ordered team ids) and if inline_ordered_team_ids
4501         is not on a long long alignment boundary within the structure,
4502         use __alignof__ (long long) - 1 pad size always.
4503         * loop.c (GOMP_loop_start): Fix *mem computation if
4504         inline_ordered_team_ids is not aligned on long long alignment boundary
4505         within the structure.
4506         * loop-ull.c (GOMP_loop_ull_start): Likewise.
4507         * sections.c (GOMP_sections2_start): Likewise.
4509 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
4511         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
4512         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
4514         PR libgomp/90585
4515         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
4516         HAVE_INTTYPES_H is defined.
4517         (print_uint64_t): New typedef.
4518         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
4519         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
4520         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
4521         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
4522         before casting to void *.
4523         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
4524         * oacc-mem.c: Don't include config.h nor stdint.h.
4525         * target.c: Don't include config.h.
4526         * oacc-cuda.c: Likewise.
4527         * oacc-host.c: Don't include stdint.h.
4529 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
4531         PR libgomp/90527
4532         * alloc.c (_GNU_SOURCE): Define.
4534 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
4536         * acc_prof.h: New file.
4537         * oacc-profiling.c: Likewise.
4538         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
4539         Add these, respectively.
4540         * Makefile.in: Regenerate.
4541         * env.c (initialize_env): Call goacc_profiling_initialize.
4542         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
4543         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
4544         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
4545         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
4546         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
4547         acc_prof_register, acc_prof_unregister, and acc_register_library.
4548         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
4549         GOMP_PLUGIN_goacc_thread.
4550         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
4551         prof_callbacks_enabled members.
4552         (goacc_prof_enabled, goacc_profiling_initialize)
4553         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
4554         (goacc_profiling_dispatch): Declare.
4555         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
4556         (GOACC_PROFILING_SETUP_P): Define.
4557         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
4558         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
4559         OpenACC Profiling Interface.
4560         * oacc-cuda.c (acc_get_current_cuda_device)
4561         (acc_get_current_cuda_context, acc_get_cuda_stream)
4562         (acc_set_cuda_stream): Likewise.
4563         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
4564         (acc_init, acc_set_device_type, acc_get_device_type)
4565         (acc_get_device_num, goacc_lazy_initialize): Likewise.
4566         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
4567         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
4568         (acc_unmap_data, present_create_copy, delete_copyout)
4569         (update_dev_host): Likewise.
4570         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
4571         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
4572         Likewise.
4573         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
4574         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
4575         Likewise.
4576         * libgomp.texi: Update.
4577         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
4578         file.
4579         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
4580         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
4581         Likewise.
4582         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
4583         Likewise.
4584         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
4585         Likewise.
4586         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
4587         Likewise.
4589 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
4591         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
4592         (struct goacc_asyncqueue_list): Likewise.
4593         (goacc_aq): Likewise.
4594         (goacc_aq_list): Likewise.
4595         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
4596         (GOMP_OFFLOAD_openacc_async_test): Remove.
4597         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
4598         (GOMP_OFFLOAD_openacc_async_wait): Remove.
4599         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
4600         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
4601         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
4602         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
4603         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
4604         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
4605         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
4606         (GOMP_OFFLOAD_openacc_async_exec): Declare.
4607         (GOMP_OFFLOAD_openacc_async_construct): Declare.
4608         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
4609         (GOMP_OFFLOAD_openacc_async_test): Declare.
4610         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
4611         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
4612         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
4613         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
4614         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
4616         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
4617         (gomp_acc_insert_pointer): Adjust declaration.
4618         (gomp_copy_host2dev): New declaration.
4619         (gomp_copy_dev2host): Likewise.
4620         (gomp_map_vars_async): Likewise.
4621         (gomp_unmap_tgt): Likewise.
4622         (gomp_unmap_vars_async): Likewise.
4623         (gomp_fini_device): Likewise.
4625         * oacc-async.c (get_goacc_thread): New function.
4626         (get_goacc_thread_device): New function.
4627         (lookup_goacc_asyncqueue): New function.
4628         (get_goacc_asyncqueue): New function.
4629         (acc_async_test): Adjust code to use new async design.
4630         (acc_async_test_all): Likewise.
4631         (acc_wait): Likewise.
4632         (acc_wait_async): Likewise.
4633         (acc_wait_all): Likewise.
4634         (acc_wait_all_async): Likewise.
4635         (goacc_async_free): New function.
4636         (goacc_init_asyncqueues): Likewise.
4637         (goacc_fini_asyncqueues): Likewise.
4638         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
4639         design.
4640         (acc_set_cuda_stream): Likewise.
4641         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
4642         (host_openacc_register_async_cleanup): Remove.
4643         (host_openacc_async_exec): New function.
4644         (host_openacc_async_test): Adjust parameters.
4645         (host_openacc_async_test_all): Remove.
4646         (host_openacc_async_wait): Remove.
4647         (host_openacc_async_wait_async): Remove.
4648         (host_openacc_async_wait_all): Remove.
4649         (host_openacc_async_wait_all_async): Remove.
4650         (host_openacc_async_set_async): Remove.
4651         (host_openacc_async_synchronize): New function.
4652         (host_openacc_async_serialize): New function.
4653         (host_openacc_async_host2dev): New function.
4654         (host_openacc_async_dev2host): New function.
4655         (host_openacc_async_queue_callback): New function.
4656         (host_openacc_async_construct): New function.
4657         (host_openacc_async_destruct): New function.
4658         (struct gomp_device_descr host_dispatch): Remove initialization of old
4659         interface, add initialization of new async sub-struct.
4660         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
4661         (goacc_attach_host_thread_to_device): Remove old async code usage.
4662         * oacc-int.h (goacc_init_asyncqueues): New declaration.
4663         (goacc_fini_asyncqueues): Likewise.
4664         (goacc_async_copyout_unmap_vars): Likewise.
4665         (goacc_async_free): Likewise.
4666         (get_goacc_asyncqueue): Likewise.
4667         (lookup_goacc_asyncqueue): Likewise.
4668         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
4669         design.
4670         (present_create_copy): Adjust code to use new async design.
4671         (delete_copyout): Likewise.
4672         (update_dev_host): Likewise.
4673         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
4674         async design.
4675         (gomp_acc_remove_pointer): Adjust code to use new async design.
4676         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
4677         design.
4678         (GOACC_enter_exit_data): Likewise.
4679         (goacc_wait): Likewise.
4680         (GOACC_update): Likewise.
4681         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
4682         when called, warn as obsolete in comment.
4683         * target.c (goacc_device_copy_async): New function.
4684         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
4685         add goacc_device_copy_async case.
4686         (gomp_copy_dev2host): Likewise.
4687         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
4688         (gomp_map_pointer): Likewise.
4689         (gomp_map_fields_existing): Likewise.
4690         (gomp_map_vars_internal): New always_inline function, renamed from
4691         gomp_map_vars.
4692         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
4693         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
4694         passing goacc_asyncqueue argument.
4695         (gomp_unmap_tgt): Remove static, add attribute_hidden.
4696         (gomp_unref_tgt): New function.
4697         (gomp_unmap_vars_internal): New always_inline function, renamed from
4698         gomp_unmap_vars.
4699         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
4700         (gomp_unmap_vars_async): Implement by calling
4701         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
4702         (gomp_fini_device): New function.
4703         (gomp_exit_data): Adjust gomp_copy_dev2host call.
4704         (gomp_load_plugin_for_device): Remove old interface, adjust to load
4705         new async interface.
4706         (gomp_target_fini): Adjust code to call gomp_fini_device.
4708         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
4709         (struct ptx_stream): Remove.
4710         (struct nvptx_thread): Remove current_stream field.
4711         (cuda_map_create): Remove.
4712         (cuda_map_destroy): Remove.
4713         (map_init): Remove.
4714         (map_fini): Remove.
4715         (map_pop): Remove.
4716         (map_push): Remove.
4717         (struct goacc_asyncqueue): Define.
4718         (struct nvptx_callback): Define.
4719         (struct ptx_free_block): Define.
4720         (struct ptx_device): Remove null_stream, active_streams, async_streams,
4721         stream_lock, and next fields.
4722         (enum ptx_event_type): Remove.
4723         (struct ptx_event): Remove.
4724         (ptx_event_lock): Remove.
4725         (ptx_events): Remove.
4726         (init_streams_for_device): Remove.
4727         (fini_streams_for_device): Remove.
4728         (select_stream_for_async): Remove.
4729         (nvptx_init): Remove ptx_events and ptx_event_lock references.
4730         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
4731         case.
4732         (nvptx_open_device): Add free_blocks initialization, remove
4733         init_streams_for_device call.
4734         (nvptx_close_device): Remove fini_streams_for_device call, add
4735         free_blocks destruct code.
4736         (event_gc): Remove.
4737         (event_add): Remove.
4738         (nvptx_exec): Adjust parameters and code.
4739         (nvptx_free): Likewise.
4740         (nvptx_host2dev): Remove.
4741         (nvptx_dev2host): Remove.
4742         (nvptx_set_async): Remove.
4743         (nvptx_async_test): Remove.
4744         (nvptx_async_test_all): Remove.
4745         (nvptx_wait): Remove.
4746         (nvptx_wait_async): Remove.
4747         (nvptx_wait_all): Remove.
4748         (nvptx_wait_all_async): Remove.
4749         (nvptx_get_cuda_stream): Remove.
4750         (nvptx_set_cuda_stream): Remove.
4751         (GOMP_OFFLOAD_alloc): Adjust code.
4752         (GOMP_OFFLOAD_free): Likewise.
4753         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
4754         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
4755         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
4756         (GOMP_OFFLOAD_openacc_async_wait): Remove.
4757         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
4758         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
4759         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
4760         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
4761         (cuda_free_argmem): New function.
4762         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
4763         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
4764         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
4765         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
4766         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
4767         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
4768         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
4769         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
4770         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
4771         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
4772         (cuda_callback_wrapper): New function.
4773         (cuda_memcpy_sanity_check): New function.
4774         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
4775         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
4776         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
4777         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
4779 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
4781         PR target/87835
4782         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
4784 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
4786         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
4788 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
4790         * team.c (gomp_team_start): Initialize pool->threads[0].
4792 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
4794         * testsuite/libgomp.oacc-c++/c++.exp: Specify
4795         "-foffload=$offload_target".
4796         * testsuite/libgomp.oacc-c/c.exp: Likewise.
4797         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4798         * testsuite/lib/libgomp.exp
4799         (check_effective_target_openacc_nvidia_accel_configured): Remove,
4800         as (conceptually) merged into
4801         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
4802         users.
4804         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
4805         * testsuite/libgomp-test-support.exp.in: Adjust.
4806         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
4807         openacc_device_types_s.
4808         (offload_target_to_openacc_device_type): New proc.
4809         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
4810         * testsuite/libgomp.oacc-c/c.exp: Likewise.
4811         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4812         * Makefile.in: Regenerate.
4813         * configure: Likewise.
4814         * testsuite/Makefile.in: Likewise.
4816         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
4817         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
4818         instead of OFFLOAD_TARGETS.
4819         * target.c (gomp_target_init): Adjust.
4820         * testsuite/libgomp-test-support.exp.in: Likewise.
4821         * testsuite/lib/libgomp.exp: Likewise.  Populate
4822         openacc_device_types_s instead of offload_targets_s_openacc.
4823         (check_effective_target_openacc_nvidia_accel_selected)
4824         (check_effective_target_openacc_host_selected): Adjust.
4825         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
4826         * testsuite/libgomp.oacc-c/c.exp: Likewise.
4827         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4828         * Makefile.in: Regenerate.
4829         * config.h.in: Likewise.
4830         * configure: Likewise.
4831         * testsuite/Makefile.in: Likewise.
4833         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
4834         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
4835         "offloading: supported, but hardware not accessible".
4836         * testsuite/libgomp.oacc-c/c.exp: Likewise.
4837         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
4839 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
4841         PR c/87924
4842         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
4843         goacc_wait().
4844         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
4845         and related adjustment.
4847 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
4849         PR c++/88988
4850         * testsuite/libgomp.c++/pr88988.C: New test.
4852 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
4854         PR middle-end/89002
4855         * testsuite/libgomp.c/pr89002.c: New test.
4857 2019-01-28  Richard Biener  <rguenther@suse.de>
4859         PR testsuite/89064
4860         PR tree-optimization/86865
4861         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
4863 2019-01-24  Tom de Vries  <tdevries@suse.de>
4865         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
4866         once instantiated_devices drops to 0.
4868 2019-01-23  Tom de Vries  <tdevries@suse.de>
4870         PR target/PR88946
4871         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
4872         cuMemFree.
4873         (nvptx_exec): Don't call map_push if mapnum == 0.
4874         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
4876 2019-01-23  Tom de Vries  <tdevries@suse.de>
4878         PR target/88941
4879         PR target/88939
4880         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
4881         (map_fini): Remove "assert (!s->map->active)".
4882         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
4884 2019-01-23  Tom de Vries  <tdevries@suse.de>
4886         PR target/87835
4887         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
4888         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
4890 2019-01-15  Tom de Vries  <tdevries@suse.de>
4892         PR target/80547
4893         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
4894         New test.
4896 2019-01-12  Tom de Vries  <tdevries@suse.de>
4898         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
4899         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
4900         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
4901         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
4903 2019-01-12  Tom de Vries  <tdevries@suse.de>
4905         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
4907 2019-01-12  Tom de Vries  <tdevries@suse.de>
4909         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
4910         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
4911         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
4913 2019-01-12  Tom de Vries  <tdevries@suse.de>
4915         PR target/85486
4916         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
4917         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
4919 2019-01-12  Tom de Vries  <tdevries@suse.de>
4921         PR target/85381
4922         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
4923         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
4925 2019-01-12  Tom de Vries  <tdevries@suse.de>
4927         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
4928         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
4929         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
4931 2019-01-12  Tom de Vries  <tdevries@suse.de>
4933         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
4934         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
4935         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
4937 2019-01-12  Tom de Vries  <tdevries@suse.de>
4939         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
4940         resources diagnostic.
4942 2019-01-12  Tom de Vries  <tdevries@suse.de>
4944         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
4945         vector length to be 128.
4946         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
4947         length 2097152 to be reduced to 1024 instead of 32.
4949 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
4950             James Norris  <jnorris@codesourcery.com>
4952         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
4953         Library Routines", and "Environment Variables".
4955 2019-01-11  Tom de Vries  <tdevries@suse.de>
4957         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
4958         num_workers 16.
4960 2019-01-11  Tom de Vries  <tdevries@suse.de>
4962         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
4963         -foffload=-w.
4964         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
4965         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
4966         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
4967         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
4969 2019-01-11  Tom de Vries  <tdevries@suse.de>
4971         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
4972         test.
4974 2019-01-10  Nathan Sidwell  <nathan@acm.org>
4975             Julian Brown  <julian@codesourcery.com>
4977         PR lto/71959
4978         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
4979         * testsuite/libgomp.oacc-c++/pr71959.C: New.
4981 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4983         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
4984         and paste code.
4986 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4988         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
4989         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
4990         write.
4992 2019-01-09  Tom de Vries  <tdevries@suse.de>
4994         PR target/88756
4995         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
4996         #define instead of "const int".
4997         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
4998         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
4999         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
5000         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
5002 2019-01-09  Tom de Vries  <tdevries@suse.de>
5004         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
5005         one worker.
5007 2019-01-07  Tom de Vries  <tdevries@suse.de>
5009         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
5010         GOMP_OPENACC_DIM argument.
5012 2019-01-03  Tom de Vries  <tdevries@suse.de>
5014         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
5015         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
5017 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
5019         Update copyright years.
5021 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
5023         * libgomp.texi: Bump @copying's copyright year.
5025 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
5027         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
5028         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
5029         (GOACC_declare): Redefine the "device" argument to "flags".
5031 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
5032             Cesar Philippidis  <cesar@codesourcery.com>
5034         * target.c (struct gomp_coalesce_chunk): New structure.
5035         (struct gomp_coalesce_buf): Update the chunks member to use that
5036         type.  Adjust all users.
5038 2018-12-19  Tom de Vries  <tdevries@suse.de>
5040         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
5041         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
5042         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
5044 2018-12-19  Tom de Vries  <tdevries@suse.de>
5046         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
5047         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
5048         gcc/testsuite/gcc.dg/goacc.
5049         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
5051 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
5052             Chung-Lin Tang  <cltang@codesourcery.com>
5054         * oacc-mem.c (acc_present_or_create): Remove definition and change
5055         to alias of acc_create.
5056         (acc_present_or_copyin): Remove definition and change to alias of
5057         acc_copyin.
5058         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
5059         of acc_present_or_create.
5060         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
5061         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5062         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
5063         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
5064         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
5065         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
5066         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
5067         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5068         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
5069         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5070         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
5071         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
5072         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
5073         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
5074         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
5075         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5077 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
5079         PR libgomp/88495
5080         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
5081         "identical parameters".
5082         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
5083         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
5085         PR libgomp/88484
5086         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
5087         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
5089         PR libgomp/88407
5090         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
5091         (nvptx_wait_async): Unseen async-argument is a no-op.
5092         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
5093         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
5094         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5095         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
5096         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
5097         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
5098         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
5099         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
5100         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
5102         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
5103         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5105 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
5107         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
5108         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
5109         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5111 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
5113         PR libgomp/88370
5114         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
5115         (acc_set_cuda_stream): Clarify.
5116         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
5117         "async_valid_p".
5118         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
5119         acc_async_sync".
5120         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
5121         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
5122         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
5123         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
5125 2018-12-14  Tom de Vries  <tdevries@suse.de>
5127         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
5128         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
5129         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
5130         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
5131         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
5133 2018-12-13  Tom de Vries  <tdevries@suse.de>
5135         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
5136         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
5137         * fortran.c (omp_display_affinity_): ... here.
5138         * libgomp.h (gomp_print_string): Declare.
5139         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
5140         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
5141         write.
5143 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
5145         PR libgomp/88460
5146         * testsuite/libgomp.c++/for-24.C (results): Include it in
5147         omp declare target region.
5148         (main): Use map (always, tofrom: results) instead of
5149         map (tofrom: results).
5151 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
5153         PR fortran/88463
5154         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
5155         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
5157         * testsuite/libgomp.c-c++-common/for-16.c: New test.
5159 2018-12-12  Andreas Schwab  <schwab@suse.de>
5161         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
5162         clobbered.
5164 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
5166         PR fortran/88411
5167         * testsuite/libgomp.fortran/async_io_8.f90: New test.
5169 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
5170             Jakub Jelinek  <jakub@redhat.com>
5172         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
5173         devicep->host2dev_func.
5175 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
5177         PR libgomp/87995
5178         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
5179         tls_runtime effective target.
5180         (t): New threadprivate variable.
5181         (main): Set t in threads which execute iterations of the worksharing
5182         loop.  Propagate that to the task after the loop and don't abort
5183         if the current taskgroup hasn't been cancelled.
5185 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
5187         * testsuite/libgomp.c/task-reduction-3.c: New test.
5189         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
5191 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
5193         PR libgomp/88288
5194         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
5195         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
5197 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
5199         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
5201 2018-10-19  Richard Biener  <rguenther@suse.de>
5203         PR tree-optimization/88182
5204         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
5206 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
5208         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
5209         (RUNTEST): Don't define.
5210         (RUNTESTDEFAULTFLAGS): Add.
5211         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
5212         (distclean-am): Depend on distclean-DEJAGNU.
5213         (check-am): If -j% option is present in MFLAGS and if
5214         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
5215         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
5216         * testsuite/Makefile.in: Regenerated.
5218 2018-11-26  Richard Biener  <rguenther@suse.de>
5220         PR tree-optimization/88182
5221         * testsuite/libgomp.c++/pr88182.C: New testcase.
5223 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
5225         PR bootstrap/88106
5226         * config/mingw32/affinity-fmt.c: New file.
5228 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
5230         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
5231         (gomp_display_affinity): Use __builtin_choose_expr to handle
5232         properly handle argument having integral, or pointer or some other
5233         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
5234         with uint64_t type instead of %llx and unsigned long long.
5236         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
5237         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
5239 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5241         * affinity.c: Include <string.h>, <stdio.h>.
5242         (gomp_display_affinity_place): Remove cpusetp.
5243         * teams.c: Include <limits.h>.
5245 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
5247         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
5248         in_reduction clause for s[0].
5250         * affinity.c (gomp_display_affinity_place): New function.
5251         * affinity-fmt.c: New file.
5252         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
5253         * config/linux/affinity.c (gomp_display_affinity_place): New function.
5254         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
5255         Move these functions to ...
5256         * config/nvptx/teams.c: ... here.  New file.
5257         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
5258         New functions.
5259         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
5260         functions.
5261         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
5262         and _aligned_malloc.
5263         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
5264         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
5265         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
5266         gomp_affinity_format_len): New variables.
5267         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
5268         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
5269         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
5270         modifiers.  Display (non-default) chunk sizes.  Print
5271         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
5272         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
5273         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
5274         * fortran.c: Include stdio.h and string.h.
5275         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
5276         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
5277         (omp_set_affinity_format_, omp_get_affinity_format_,
5278         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
5279         omp_pause_resource_all_): New functions.
5280         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
5281         switch.
5282         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
5283         functions to ...
5284         * teams.c: ... here.  New file.
5285         * libgomp_g.h: Include gstdint.h.
5286         (GOMP_loop_nonmonotonic_runtime_start,
5287         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
5288         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
5289         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
5290         GOMP_parallel_loop_nonmonotonic_runtime,
5291         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5292         GOMP_loop_ull_nonmonotonic_runtime_start,
5293         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
5294         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
5295         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5296         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
5297         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
5298         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5299         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
5300         GOMP_teams_reg): Declare.
5301         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
5302         gomp_aligned_alloc uses fallback implementation.
5303         (gomp_aligned_alloc, gomp_aligned_free): Declare.
5304         (enum gomp_schedule_type): Add GFS_MONOTONIC.
5305         (struct gomp_doacross_work_share): Add extra field.
5306         (struct gomp_work_share): Add task_reductions field.
5307         (struct gomp_taskgroup): Add workshare and reductions fields.
5308         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
5309         (gomp_thread_handle): New typedef.
5310         (gomp_display_affinity_place, gomp_set_affinity_format,
5311         gomp_display_string, gomp_display_affinity,
5312         gomp_display_affinity_thread): Declare.
5313         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
5314         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
5315         gomp_workshare_task_reduction_register): Declare.
5316         (gomp_team_start): Add taskgroup argument.
5317         (gomp_pause_host): Declare.
5318         (gomp_init_work_share, gomp_work_share_start): Change bool argument
5319         to size_t.
5320         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
5321         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
5322         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
5323         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
5324         GOMP_loop_ull_doacross_start,
5325         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
5326         GOMP_loop_maybe_nonmonotonic_runtime_next,
5327         GOMP_loop_maybe_nonmonotonic_runtime_start,
5328         GOMP_loop_nonmonotonic_runtime_next,
5329         GOMP_loop_nonmonotonic_runtime_start,
5330         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5331         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
5332         GOMP_loop_ull_nonmonotonic_runtime_next,
5333         GOMP_loop_ull_nonmonotonic_runtime_start,
5334         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5335         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
5336         GOMP_taskgroup_reduction_register,
5337         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5338         GOMP_teams_reg and GOMP_taskwait_depend.
5339         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
5340         omp_{capture,display}_affinity{,_}, and
5341         omp_[gs]et_affinity_format{,_}.
5342         * loop.c: Include string.h.
5343         (GOMP_loop_runtime_next): Add ialias.
5344         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5345         (gomp_loop_static_start, gomp_loop_dynamic_start,
5346         gomp_loop_guided_start, gomp_loop_ordered_static_start,
5347         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
5348         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
5349         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
5350         or gomp_doacross_init callers.
5351         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
5352         GOMP_loop_doacross_start): New functions.
5353         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
5354         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
5355         Mask off GFS_MONOTONIC bit.
5356         (GOMP_loop_maybe_nonmonotonic_runtime_next,
5357         GOMP_loop_maybe_nonmonotonic_runtime_start,
5358         GOMP_loop_nonmonotonic_runtime_next,
5359         GOMP_loop_nonmonotonic_runtime_start,
5360         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
5361         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
5362         functions.
5363         (gomp_parallel_loop_start): Pass NULL as taskgroup to
5364         gomp_team_start.
5365         * loop_ull.c: Include string.h.
5366         (GOMP_loop_ull_runtime_next): Add ialias.
5367         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5368         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
5369         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
5370         gomp_loop_ull_ordered_dynamic_start,
5371         gomp_loop_ull_ordered_guided_start,
5372         gomp_loop_ull_doacross_static_start,
5373         gomp_loop_ull_doacross_dynamic_start,
5374         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
5375         and gomp_doacross_ull_init callers.
5376         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
5377         GOMP_loop_ull_doacross_start): New functions.
5378         (GOMP_loop_ull_runtime_start,
5379         GOMP_loop_ull_ordered_runtime_start,
5380         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
5381         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
5382         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
5383         GOMP_loop_ull_nonmonotonic_runtime_next,
5384         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
5385         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
5386         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
5387         (omp_pause_resource_t, omp_depend_t): New typedefs.
5388         (enum omp_lock_hint_t): Renamed to ...
5389         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
5390         enumerators using numbers and omp_lock_hint_* as their aliases.
5391         (omp_lock_hint_t): New typedef.  Rename to ...
5392         (omp_sync_hint_t): ... this.
5393         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
5394         omp_sync_hint_t instead of omp_lock_hint_t.
5395         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5396         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5397         Declare.
5398         (omp_target_is_present, omp_target_disassociate_ptr):
5399         Change first argument from void * to const void *.
5400         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
5401         from void * to const void *.
5402         (omp_target_associate_ptr): Change first and second arguments from
5403         void * to const void *.
5404         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
5405         omp_pause_hard): New parameters.
5406         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5407         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5408         New interfaces.
5409         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
5410         omp_pause_hard): New parameters.
5411         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
5412         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
5413         New externals.
5414         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
5415         EXTRA argument.  If not needed to prepare array, if extra is 0,
5416         clear ws->doacross, otherwise allocate just doacross structure and
5417         extra payload.  If array is needed, allocate also extra payload.
5418         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
5419         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
5420         doacross == NULL.
5421         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
5422         gomp_team_start.
5423         (GOMP_parallel): Likewise.  Formatting fix.
5424         (GOMP_parallel_reductions): New function.
5425         (GOMP_cancellation_point): If taskgroup has workshare
5426         flag set, check cancelled of prev taskgroup if any.
5427         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
5428         on prev taskgroup if any.
5429         * sections.c: Include string.h.
5430         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
5431         (GOMP_sections_start): Adjust gomp_work_share_start caller.
5432         (GOMP_sections2_start): New function.
5433         (GOMP_parallel_sections_start, GOMP_parallel_sections):
5434         Pass NULL as taskgroup to gomp_team_start.
5435         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
5436         gomp_work_share_start callers.
5437         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
5438         If taskgroup has workshare flag set, check cancelled on prev
5439         taskgroup if any.  Guard all cancellation tests with
5440         gomp_cancel_var test.
5441         (omp_target_is_present, omp_target_disassociate_ptr):
5442         Change ptr argument from void * to const void *.
5443         (omp_target_memcpy): Change src argument from void * to const void *.
5444         (omp_target_memcpy_rect): Likewise.
5445         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
5446         instead of char * where needed.
5447         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
5448         from void * to const void *.
5449         (omp_pause_resource, omp_pause_resource_all): New functions.
5450         * task.c (gomp_task_handle_depend): Handle new depend array format
5451         in addition to the old.  Handle mutexinoutset kinds the same as
5452         inout for now, handle unspecified kinds.
5453         (gomp_create_target_task): If taskgroup has workshare flag set, check
5454         cancelled on prev taskgroup if any.  Guard all cancellation tests with
5455         gomp_cancel_var test.  Handle new depend array format count in
5456         addition to the old.
5457         (GOMP_task): Likewise.  Adjust function comment.
5458         (gomp_task_run_pre): If taskgroup has workshare flag set, check
5459         cancelled on prev taskgroup if any.  Guard all cancellation tests with
5460         gomp_cancel_var test.
5461         (GOMP_taskwait_depend): New function.
5462         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
5463         format in addition to the old.  Handle mutexinoutset kinds the same as
5464         inout for now, handle unspecified kinds.  Fix a function comment typo.
5465         (gomp_taskgroup_init): New function.
5466         (GOMP_taskgroup_start): Use it.
5467         (gomp_reduction_register, gomp_create_artificial_team,
5468         GOMP_taskgroup_reduction_register,
5469         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
5470         gomp_parallel_reduction_register,
5471         gomp_workshare_task_reduction_register,
5472         gomp_workshare_taskgroup_start,
5473         GOMP_workshare_task_reduction_unregister): New functions.
5474         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
5475         check cancelled on prev taskgroup if any.  Guard all cancellation
5476         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
5477         by calling GOMP_taskgroup_reduction_register.
5478         * team.c (gomp_thread_attr): Remove comment.
5479         (struct gomp_thread_start_data): Add handle field.
5480         (gomp_thread_start): Call pthread_detach.
5481         (gomp_new_team): Adjust gomp_init_work_share caller.
5482         (gomp_free_pool_helper): Call pthread_detach.
5483         (gomp_team_start): Add taskgroup argument, initialize implicit
5484         tasks' taskgroup field to that.  Don't call
5485         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
5486         (gomp_team_end): Determine nesting by thr->ts.level != 0
5487         rather than thr->ts.team != NULL.
5488         (gomp_pause_pool_helper, gomp_pause_host): New functions.
5489         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
5490         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
5491         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
5492         if more than 1 allocate also extra payload at the end of array.  Never
5493         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
5494         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
5495         return true instead of ws.
5496         * Makefile.in: Regenerated.
5497         * configure: Regenerated.
5498         * config.h.in: Regenerated.
5499         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
5500         in some cases.
5501         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
5502         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
5503         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
5504         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
5505         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
5506         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
5507         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
5508         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
5509         * testsuite/libgomp.c-c++-common/for-10.c: New test.
5510         * testsuite/libgomp.c-c++-common/for-11.c: New test.
5511         * testsuite/libgomp.c-c++-common/for-12.c: New test.
5512         * testsuite/libgomp.c-c++-common/for-13.c: New test.
5513         * testsuite/libgomp.c-c++-common/for-14.c: New test.
5514         * testsuite/libgomp.c-c++-common/for-15.c: New test.
5515         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
5516         define a different N(test), don't define N(f0) to N(f14), but instead
5517         define N(f20) to N(f34) using != comparisons.
5518         * testsuite/libgomp.c-c++-common/for-7.c: New test.
5519         * testsuite/libgomp.c-c++-common/for-8.c: New test.
5520         * testsuite/libgomp.c-c++-common/for-9.c: New test.
5521         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
5522         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
5523         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
5524         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
5525         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
5526         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
5527         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
5528         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
5529         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
5530         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
5531         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
5532         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
5533         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
5534         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
5535         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
5536         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
5537         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
5538         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
5539         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
5540         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
5541         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
5542         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
5543         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
5544         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
5545         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
5546         * testsuite/libgomp.c++/depend-1.C: New test.
5547         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
5548         * testsuite/libgomp.c++/depobj-1.C: New test.
5549         * testsuite/libgomp.c++/for-16.C: New test.
5550         * testsuite/libgomp.c++/for-21.C: New test.
5551         * testsuite/libgomp.c++/for-22.C: New test.
5552         * testsuite/libgomp.c++/for-23.C: New test.
5553         * testsuite/libgomp.c++/for-24.C: New test.
5554         * testsuite/libgomp.c++/for-25.C: New test.
5555         * testsuite/libgomp.c++/for-26.C: New test.
5556         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
5557         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
5558         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
5559         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
5560         * testsuite/libgomp.c++/task-reduction-10.C: New test.
5561         * testsuite/libgomp.c++/task-reduction-11.C: New test.
5562         * testsuite/libgomp.c++/task-reduction-12.C: New test.
5563         * testsuite/libgomp.c++/task-reduction-13.C: New test.
5564         * testsuite/libgomp.c++/task-reduction-14.C: New test.
5565         * testsuite/libgomp.c++/task-reduction-15.C: New test.
5566         * testsuite/libgomp.c++/task-reduction-16.C: New test.
5567         * testsuite/libgomp.c++/task-reduction-17.C: New test.
5568         * testsuite/libgomp.c++/task-reduction-18.C: New test.
5569         * testsuite/libgomp.c++/task-reduction-19.C: New test.
5570         * testsuite/libgomp.c/task-reduction-1.c: New test.
5571         * testsuite/libgomp.c++/task-reduction-1.C: New test.
5572         * testsuite/libgomp.c/task-reduction-2.c: New test.
5573         * testsuite/libgomp.c++/task-reduction-2.C: New test.
5574         * testsuite/libgomp.c++/task-reduction-3.C: New test.
5575         * testsuite/libgomp.c++/task-reduction-4.C: New test.
5576         * testsuite/libgomp.c++/task-reduction-5.C: New test.
5577         * testsuite/libgomp.c++/task-reduction-6.C: New test.
5578         * testsuite/libgomp.c++/task-reduction-7.C: New test.
5579         * testsuite/libgomp.c++/task-reduction-8.C: New test.
5580         * testsuite/libgomp.c++/task-reduction-9.C: New test.
5581         * testsuite/libgomp.c/teams-1.c: New test.
5582         * testsuite/libgomp.c/teams-2.c: New test.
5583         * testsuite/libgomp.c/thread-limit-4.c: New test.
5584         * testsuite/libgomp.c/thread-limit-5.c: New test.
5585         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
5587 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
5589         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
5590         acc_memcpy_to/from_device functions, now with async parameter.
5591         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
5592         (acc_memcpy_from_device): Likewise.
5593         (acc_memcpy_to_device_async): New API function.
5594         (acc_memcpy_from_device_async): Likewise.
5595         (present_create_copy): Add async parameter and async setting/unsetting.
5596         (acc_create): Adjust present_create_copy call.
5597         (acc_copyin): Likewise.
5598         (acc_present_or_create): Likewise.
5599         (acc_present_or_copyin): Likewise.
5600         (acc_create_async): New API function.
5601         (acc_copyin_async): New API function.
5602         (delete_copyout): Add async parameter and async setting/unsetting.
5603         (acc_delete): Adjust delete_copyout call.
5604         (acc_copyout): Likewise.
5605         (acc_delete_async): New API function.
5606         (acc_copyout_async): Likewise.
5607         (update_dev_host): Add async parameter and async setting/unsetting.
5608         (acc_update_device): Adjust update_dev_host call.
5609         (acc_update_self): Likewise.
5610         (acc_update_device_async): New API function.
5611         (acc_update_self_async): Likewise.
5612         * openacc.h (acc_copyin_async): Declare new API function.
5613         (acc_create_async): Likewise.
5614         (acc_copyout_async): Likewise.
5615         (acc_delete_async): Likewise.
5616         (acc_update_device_async): Likewise.
5617         (acc_update_self_async): Likewise.
5618         (acc_memcpy_to_device_async): Likewise.
5619         (acc_memcpy_from_device_async): Likewise.
5620         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
5621         (acc_copyin_async_64_h): New subroutine.
5622         (acc_copyin_async_array_h): New subroutine.
5623         (acc_create_async_32_h): New subroutine.
5624         (acc_create_async_64_h): New subroutine.
5625         (acc_create_async_array_h): New subroutine.
5626         (acc_copyout_async_32_h): New subroutine.
5627         (acc_copyout_async_64_h): New subroutine.
5628         (acc_copyout_async_array_h): New subroutine.
5629         (acc_delete_async_32_h): New subroutine.
5630         (acc_delete_async_64_h): New subroutine.
5631         (acc_delete_async_array_h): New subroutine.
5632         (acc_update_device_async_32_h): New subroutine.
5633         (acc_update_device_async_64_h): New subroutine.
5634         (acc_update_device_async_array_h): New subroutine.
5635         (acc_update_self_async_32_h): New subroutine.
5636         (acc_update_self_async_64_h): New subroutine.
5637         (acc_update_self_async_array_h): New subroutine.
5638         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
5639         (acc_copyin_async_64_h): New subroutine.
5640         (acc_copyin_async_array_h): New subroutine.
5641         (acc_create_async_32_h): New subroutine.
5642         (acc_create_async_64_h): New subroutine.
5643         (acc_create_async_array_h): New subroutine.
5644         (acc_copyout_async_32_h): New subroutine.
5645         (acc_copyout_async_64_h): New subroutine.
5646         (acc_copyout_async_array_h): New subroutine.
5647         (acc_delete_async_32_h): New subroutine.
5648         (acc_delete_async_64_h): New subroutine.
5649         (acc_delete_async_array_h): New subroutine.
5650         (acc_update_device_async_32_h): New subroutine.
5651         (acc_update_device_async_64_h): New subroutine.
5652         (acc_update_device_async_array_h): New subroutine.
5653         (acc_update_self_async_32_h): New subroutine.
5654         (acc_update_self_async_64_h): New subroutine.
5655         (acc_update_self_async_array_h): New subroutine.
5656         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
5657         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
5658         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
5659         acc_memcpy_to_device_async*, acc_update_device_async*, and
5660         acc_update_self_async* entries.
5661         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
5662         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
5663         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
5665 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
5667         PR bootstrap/82856
5668         * Makefile.am: Include multilib.am
5669         (AUTOMAKE_OPTIONS): Add info-in-builddir.
5670         (CLEANFILES): Remove libgomp.info.
5671         * configure.ac: Remove AC_PREREQ.
5672         * testsuite/Makefile.am (RUNTEST): Remove quotes.
5673         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
5674         Regenerate.
5676 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
5677             Julian Brown  <julian@codesourcery.com>
5679         * testsuite/libgomp.oacc-c++/this.C: New.
5681 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
5683         * plugin/plugin-nvptx.c (struct cuda_map): New.
5684         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
5685         h_tail with (cuda_map *) map.
5686         (cuda_map_create): New function.
5687         (cuda_map_destroy): New function.
5688         (map_init): Update to use a linked list of cuda_map objects.
5689         (map_fini): Likewise.
5690         (map_pop): Likewise.
5691         (map_push): Likewise.  Return CUdeviceptr instead of void.
5692         (init_streams_for_device): Remove stales references to ptx_stream
5693         members.
5694         (select_stream_for_async): Likewise.
5695         (nvptx_exec): Update call to map_init.
5697 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
5698             Julian Brown  <julian@codesourcery.com>
5700         PR middle-end/86336
5701         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
5703 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
5704         Thomas Koenig <tkoenig@gcc.gnu.org>
5706         PR fortran/25829
5707         * testsuite/libgomp.fortran/async_io_1.f90: New test.
5708         * testsuite/libgomp.fortran/async_io_2.f90: New test.
5709         * testsuite/libgomp.fortran/async_io_3.f90: New test.
5710         * testsuite/libgomp.fortran/async_io_4.f90: New test.
5711         * testsuite/libgomp.fortran/async_io_5.f90: New test.
5712         * testsuite/libgomp.fortran/async_io_6.f90: New test.
5713         * testsuite/libgomp.fortran/async_io_7.f90: New test.
5715 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
5716             Tom de Vries  <tdevries@suse.de>
5718         PR target/85590
5719         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
5720         (cuOccupancyMaxPotentialBlockSize): Declare.
5721         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
5722         CUDA_ONE_CALL_MAYBE_NULL.
5723         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
5724         CUoccupancyB2DSize and declare
5725         cuOccupancyMaxPotentialBlockSize.
5726         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
5727         default num_gangs and num_workers when the driver supports it.
5729 2018-08-08  Tom de Vries  <tdevries@suse.de>
5731         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
5732         CUDA_ONE_CALL_MAYBE_NULL.
5733         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
5734         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
5735         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
5736         are not found.
5738 2018-08-08  Tom de Vries  <tdevries@suse.de>
5740         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
5741         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
5742         present.
5744 2018-08-08  Tom de Vries  <tdevries@suse.de>
5746         * plugin/plugin-nvptx.c
5747         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
5748         (nvptx_open_device): Use
5749         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
5751 2018-08-08  Tom de Vries  <tdevries@suse.de>
5753         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
5754         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
5756 2018-08-07  Tom de Vries  <tdevries@suse.de>
5758         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
5759         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
5760         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
5761         corresponding call in CUDA_ONE_CALL.  Add def/undef of
5762         CUDA_ONE_CALL_MAYBE_NULL.
5763         (CUDA_CALL_EXISTS): Define.
5765 2018-08-07  Tom de Vries  <tdevries@suse.de>
5767         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
5768         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
5769         corresponding undefs right after.
5771 2018-08-04  Tom de Vries  <tdevries@suse.de>
5773         * plugin/configfrag.ac: For --without-cuda-driver, set
5774         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
5775         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
5776         * configure: Regenerate.
5778 2018-08-02  Tom de Vries  <tdevries@suse.de>
5780         PR target/86660
5781         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
5782         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
5783         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
5784         Same.
5785         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
5786         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
5787         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
5789 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
5790             Thomas Schwinge <thomas@codesourcery.com>
5792         * config/nvptx/oacc-parallel.c: Truncate.
5794 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
5795             James Norris <jnorris@codesourcery.com>
5797         * plugin/plugin-nvptx.c (struct map): Removed.
5798         (map_init, map_pop): Remove use of struct map.
5799         (map_push): Likewise and change argument list.
5800         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
5802 2018-08-01  Tom de Vries  <tdevries@suse.de>
5804         * plugin/cuda-lib.def: New file.  Factor out of ...
5805         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
5806         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
5807         using CUDA_CALLS.
5809 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
5811         Revert 'AsyncI/O patch committed'.
5812         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
5813                 Thomas Koenig <tkoenig@gcc.gnu.org>
5815         PR fortran/25829
5816         * testsuite/libgomp.fortran/async_io_1.f90: New test.
5817         * testsuite/libgomp.fortran/async_io_2.f90: New test.
5818         * testsuite/libgomp.fortran/async_io_3.f90: New test.
5819         * testsuite/libgomp.fortran/async_io_4.f90: New test.
5820         * testsuite/libgomp.fortran/async_io_5.f90: New test.
5821         * testsuite/libgomp.fortran/async_io_6.f90: New test.
5822         * testsuite/libgomp.fortran/async_io_7.f90: New test.
5824 2018-07-30  Tom de Vries  <tdevries@suse.de>
5826         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
5827         (nvptx_exec): Ensure worker and vector default dims don't exceed
5828         targ_fn->max_threads_per_block.
5830 2018-07-30  Tom de Vries  <tdevries@suse.de>
5832         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
5833         (nvptx_open_device): Init default_dims for device.
5834         (nvptx_exec): Use default_dims from device.
5836 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
5838         PR testsuite/86660
5839         * testsuite/libgomp.c++/for-15.C (results): Include it in
5840         omp declare target region.
5841         (main): Use map (always, tofrom: results) instead of
5842         map (tofrom: results).
5844         PR middle-end/86660
5845         * testsuite/libgomp.c/pr86660.c: New test.
5847 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
5848             Tom de Vries  <tdevries@suse.de>
5850         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
5851         sufficient resources to launch a kernel, and give a hint on how to fix
5852         it.
5854 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
5855             Tom de Vries  <tdevries@suse.de>
5857         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
5858         max_threads_per_block and max_threads_per_multiprocessor fields.
5859         (nvptx_open_device): Initialize new fields.
5860         (nvptx_exec): Use num_sms, and new fields.
5862 2018-07-26  Tom de Vries  <tdevries@suse.de>
5864         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
5865         to correct locations.  Remove xfail.
5867 2018-07-26  Tom de Vries  <tdevries@suse.de>
5869         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
5870         acc_wait.  Move acc_async_test calls to correct locations.  Remove
5871         xfail.
5873 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
5874         Thomas Koenig <tkoenig@gcc.gnu.org>
5876         PR fortran/25829
5877         * testsuite/libgomp.fortran/async_io_1.f90: New test.
5878         * testsuite/libgomp.fortran/async_io_2.f90: New test.
5879         * testsuite/libgomp.fortran/async_io_3.f90: New test.
5880         * testsuite/libgomp.fortran/async_io_4.f90: New test.
5881         * testsuite/libgomp.fortran/async_io_5.f90: New test.
5882         * testsuite/libgomp.fortran/async_io_6.f90: New test.
5883         * testsuite/libgomp.fortran/async_io_7.f90: New test.
5885 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
5887         PR middle-end/86542
5888         * testsuite/libgomp.c++/pr86542.C: New test.
5890         PR middle-end/86539
5891         * testsuite/libgomp.c++/pr86539.C: New test.
5893 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
5895         PR c++/86443
5896         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
5897         (results): Make sure the variable is not inside declare target region.
5898         (qux): Remove unused function.
5900 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
5902         PR c++/86443
5903         * testsuite/libgomp.c++/for-15.C: New test.
5905 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
5907         PR c++/86291
5908         * testsuite/libgomp.c++/pr86291.C: New test.
5910 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
5912         * libgomp.texi (Top): Move www.openmp.org to https.
5913         (Enabling OpenMP): Ditto.
5914         (omp_get_active_level): Ditto.
5915         (omp_get_ancestor_thread_num): Ditto.
5916         (omp_get_cancellation): Ditto.
5917         (omp_get_default_device): Ditto.
5918         (omp_get_dynamic): Ditto.
5919         (omp_get_level): Ditto.
5920         (omp_get_max_active_levels): Ditto.
5921         (omp_get_max_task_priority): Ditto.
5922         (omp_get_max_threads): Ditto.
5923         (omp_get_nested): Ditto.
5924         (omp_get_num_devices): Ditto.
5925         (omp_get_num_procs): Ditto.
5926         (omp_get_num_teams): Ditto.
5927         (omp_get_num_threads): Ditto.
5928         (omp_get_proc_bind): Ditto.
5929         (omp_get_schedule): Ditto.
5930         (omp_get_team_num): Ditto.
5931         (omp_get_team_size): Ditto.
5932         (omp_get_thread_limit): Ditto.
5933         (omp_get_thread_num): Ditto.
5934         (omp_in_parallel): Ditto.
5935         (omp_in_final): Ditto.
5936         (omp_is_initial_device): Ditto.
5937         (omp_set_default_device): Ditto.
5938         (omp_set_dynamic): Ditto.
5939         (omp_set_max_active_levels): Ditto.
5940         (omp_set_nested): Ditto.
5941         (omp_set_num_threads): Ditto.
5942         (omp_set_schedule): Ditto.
5943         (omp_init_lock): Ditto.
5944         (omp_set_lock): Ditto.
5945         (omp_test_lock): Ditto.
5946         (omp_unset_lock): Ditto.
5947         (omp_destroy_lock): Ditto.
5948         (omp_init_nest_lock): Ditto.
5949         (omp_set_nest_lock): Ditto.
5950         (omp_test_nest_lock): Ditto.
5951         (omp_unset_nest_lock): Ditto.
5952         (omp_destroy_nest_lock): Ditto.
5953         (omp_get_wtick): Ditto.
5954         (omp_get_wtime): Ditto.
5955         (OMP_CANCELLATION): Ditto.
5956         (OMP_DISPLAY_ENV): Ditto.
5957         (OMP_DEFAULT_DEVICE): Ditto.
5958         (OMP_DYNAMIC): Ditto.
5959         (OMP_MAX_ACTIVE_LEVELS): Ditto.
5960         (OMP_MAX_TASK_PRIORITY): Ditto.
5961         (OMP_NESTED): Ditto.
5962         (OMP_NUM_THREADS): Ditto.
5963         (OMP_PROC_BIND): Ditto.
5964         (OMP_PLACES): Ditto.
5965         (OMP_STACKSIZE): Ditto.
5966         (OMP_SCHEDULE): Ditto.
5967         (OMP_THREAD_LIMIT): Ditto.
5968         (OMP_WAIT_POLICY): Ditto.
5970 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
5971             James Norris  <jnorris@codesourcery.com>
5972             Julian Brown  <julian@codesourcery.com>
5973             Thomas Schwinge  <thomas@codesourcery.com>
5974             Tom de Vries  <tom@codesourcery.com>
5976         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
5977         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
5978         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
5979         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
5980         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
5981         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
5982         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
5983         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5984         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
5985         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
5986         Likewise.
5987         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
5988         Likewise.
5989         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
5990         Likewise.
5991         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
5992         Likewise.
5993         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
5994         Likewise.
5995         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
5996         Likewise.
5997         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5998         Likewise.
5999         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
6000         Likewise.
6001         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
6002         Likewise.
6003         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
6004         Likewise.
6005         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
6006         Likewise.
6007         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
6008         Likewise.
6009         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
6010         Likewise.
6011         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
6012         Likewise.
6013         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
6014         Likewise.
6015         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
6016         Likewise.
6017         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
6018         Likewise.
6019         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
6020         Likewise.
6021         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
6022         Likewise.
6023         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
6024         Likewise.
6025         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
6026         Likewise.
6027         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
6028         Likewise.
6029         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
6030         Likewise.
6031         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
6032         Likewise.
6033         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
6034         Likewise.
6035         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
6036         Likewise.
6037         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
6038         Likewise.
6039         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
6040         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
6041         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
6042         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
6043         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
6044         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
6045         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
6046         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
6047         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
6048         Likewise.
6049         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
6050         Likewise.
6051         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
6052         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
6053         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
6054         Likewise.
6055         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
6056         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
6057         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
6058         Likewise.
6059         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
6060         Likewise.
6061         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
6062         Likewise.
6063         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
6064         Likewise.
6065         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
6066         Likewise.
6067         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
6068         Likewise.
6069         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
6070         Likewise.
6071         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
6072         Likewise.
6073         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
6074         Likewise.
6075         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
6076         Likewise.
6077         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
6078         Likewise.
6079         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
6080         Likewise.
6081         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
6082         Likewise.
6083         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
6084         Likewise.
6085         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
6086         Likewise.
6087         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
6088         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
6089         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
6090         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
6091         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
6092         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
6093         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
6095 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
6096             Thomas Schwinge <thomas@codesourcery.com>
6097             Cesar Philippidis  <cesar@codesourcery.com>
6099         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
6100         (gomp_acc_remove_pointer): Update declaration.
6101         (gomp_acc_declare_allocate): Declare.
6102         (gomp_remove_var): Declare.
6103         * libgomp.map (OACC_2.5): Define.
6104         * oacc-mem.c (acc_map_data): Update refcount.
6105         (acc_unmap_data): Likewise.
6106         (present_create_copy): Likewise.
6107         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
6108         (acc_copyin): Likewise.
6109         (FLAG_FINALIZE): Define.
6110         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
6111         (acc_delete_finalize): New function.
6112         (acc_delete_finalize_async): New function.
6113         (acc_copyout_finalize): New function.
6114         (acc_copyout_finalize_async): New function.
6115         (gomp_acc_insert_pointer): Update refcounts.
6116         (gomp_acc_remove_pointer): Return if data is not present on the
6117         accelerator.
6118         * oacc-parallel.c (find_pset): Rename to find_pointer.
6119         (find_pointer): Add support for GOMP_MAP_POINTER.
6120         (handle_ftn_pointers): New function.
6121         (GOACC_parallel_keyed): Update refcounts of variables.
6122         (GOACC_enter_exit_data): Add support for finalized data mappings.
6123         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
6124         of fortran arrays.
6125         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
6126         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
6127         for GOMP_MAP_FORCE_FROM.
6128         * openacc.f90 (module openacc_internal): Add
6129         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
6130         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
6131         acc_copyout_finalize and acc_delete_finalize.
6132         (acc_copyout_finalize_32_h): New subroutine.
6133         (acc_copyout_finalize_64_h): New subroutine.
6134         (acc_copyout_finalize_array_h): New subroutine.
6135         (acc_delete_finalize_32_h): New subroutine.
6136         (acc_delete_finalize_64_h): New subroutine.
6137         (acc_delete_finalize_array_h): New subroutine.
6138         * openacc.h (acc_copyout_finalize): Declare.
6139         (acc_copyout_finalize_async): Declare.
6140         (acc_delete_finalize): Declare.
6141         (acc_delete_finalize_async): Declare.
6142         * openacc_lib.h (acc_copyout_finalize): New interface.
6143         (acc_delete_finalize): New interface.
6144         * target.c (gomp_map_vars): Update dynamic_refcount.
6145         (gomp_remove_var): New function.
6146         (gomp_unmap_vars): Use it.
6147         (gomp_unload_image_from_device): Likewise.
6148         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
6149         case to utilize OpenACC 2.5 data clause semantics.
6150         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6151         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6152         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6153         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6154         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6155         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6156         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6157         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6158         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6159         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
6160         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
6161         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
6162         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
6163         utilize OpenACC 2.5 data clause semantics.
6164         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6165         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6166         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6167         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6168         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6169         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6170         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6171         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
6172         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
6174 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
6176         PR fortran/85841
6177         PR testsuite/85865
6178         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
6179         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
6180         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
6181         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
6182         * testsuite/libgomp.fortran/task2.f90: Ditto.
6183         * testsuite/libgomp.fortran/vla1.f90: Ditto.
6184         * testsuite/libgomp.fortran/vla2.f90: Ditto.
6185         * testsuite/libgomp.fortran/vla3.f90: Ditto.
6186         * testsuite/libgomp.fortran/vla4.f90: Ditto.
6187         * testsuite/libgomp.fortran/vla5.f90: Ditto.
6188         * testsuite/libgomp.fortran/vla6.f90: Ditto.
6189         * testsuite/libgomp.fortran/vla8.f90: Ditto.
6190         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
6191         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
6193 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
6195         PR c++/85782
6196         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
6198 2018-05-09  Tom de Vries  <tom@codesourcery.com>
6200         PR libgomp/82901
6201         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
6202         to GOACC_enter_exit_data.
6204 2018-05-09  Tom de Vries  <tom@codesourcery.com>
6206         PR libgomp/83792
6207         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
6208         (async_synchronous_p): New function.
6209         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
6210         async_valid_p.
6211         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
6212         async_valid_stream_id_p.
6213         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
6214         * oacc-parallel.c (GOACC_parallel_keyed): Same.
6216 2018-05-07  Tom de Vries  <tom@codesourcery.com>
6218         PR testsuite/85677
6219         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
6220         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
6222 2018-05-03  Tom de Vries  <tom@codesourcery.com>
6224         PR testsuite/85106
6225         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
6226         extra_tool_flags if it contains an -foffload=-fdump-* flag.
6227         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
6228         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
6230 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6232         PR libgomp/85411
6233         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
6234         GOMP_OPENACC_DIM ...
6235         * env.c (parse_gomp_openacc_dim): ... here.  New function.
6236         (initialize_env): Call parse_gomp_openacc_dim.
6237         (goacc_default_dims): Define.
6238         * libgomp.h (goacc_default_dims): Declare.
6239         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
6240         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
6241         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
6242         GOMP_PLUGIN_acc_default_dim.
6243         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
6244         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
6246 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6248         PR testsuite/83791
6249         * testsuite/libgomp.c++/udr-9.C: Update.
6250         * testsuite/libgomp.c++/atomic-16.C: Remove.
6251         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
6252         * testsuite/libgomp.c++/loop-13.C: Remove.
6253         * testsuite/libgomp.c++/loop-14.C: Remove.
6254         * testsuite/libgomp.c++/loop-15.C: Remove.
6255         * testsuite/libgomp.c++/monotonic-1.C: Remove.
6256         * testsuite/libgomp.c++/monotonic-2.C: Remove.
6257         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
6258         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
6259         * testsuite/libgomp.c++/ordered-1.C: Remove.
6260         * testsuite/libgomp.c++/pr45784.C: Remove.
6261         * testsuite/libgomp.c++/pr64824.C: Remove.
6262         * testsuite/libgomp.c++/pr64868.C: Remove.
6263         * testsuite/libgomp.c++/pr66199-1.C: Remove.
6264         * testsuite/libgomp.c++/pr66199-2.C: Remove.
6265         * testsuite/libgomp.c++/pr66199-3.C: Remove.
6266         * testsuite/libgomp.c++/pr66199-4.C: Remove.
6267         * testsuite/libgomp.c++/pr66199-5.C: Remove.
6268         * testsuite/libgomp.c++/pr66199-6.C: Remove.
6269         * testsuite/libgomp.c++/pr66199-7.C: Remove.
6270         * testsuite/libgomp.c++/pr66199-8.C: Remove.
6271         * testsuite/libgomp.c++/pr66199-9.C: Remove.
6272         * testsuite/libgomp.c++/pr69389.C: Remove.
6273         * testsuite/libgomp.c++/simd10.C: Remove.
6274         * testsuite/libgomp.c++/simd11.C: Remove.
6275         * testsuite/libgomp.c++/simd12.C: Remove.
6276         * testsuite/libgomp.c++/simd13.C: Remove.
6277         * testsuite/libgomp.c++/target-1.C: Remove.
6278         * testsuite/libgomp.c++/target-3.C: Remove.
6279         * testsuite/libgomp.c++/target-4.C: Remove.
6280         * testsuite/libgomp.c++/target-5.C: Remove.
6281         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
6282         * testsuite/libgomp.c++/taskloop-1.C: Remove.
6283         * testsuite/libgomp.c++/taskloop-2.C: Remove.
6284         * testsuite/libgomp.c++/taskloop-3.C: Remove.
6285         * testsuite/libgomp.c++/taskloop-4.C: Remove.
6286         * testsuite/libgomp.c++/udr-9.C: Remove.
6287         * testsuite/libgomp.c++/for-10.C: Remove.
6288         * testsuite/libgomp.c++/for-11.C: Remove.
6289         * testsuite/libgomp.c++/for-12.C: Remove.
6290         * testsuite/libgomp.c++/for-13.C: Remove.
6291         * testsuite/libgomp.c++/for-14.C: Remove.
6292         * testsuite/libgomp.c++/for-9.C: Remove.
6293         * testsuite/libgomp.c/atomic-18.c: Move ...
6294         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
6295         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
6296         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
6297         * testsuite/libgomp.c/loop-13.c: Move ...
6298         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
6299         * testsuite/libgomp.c/loop-14.c: Move ...
6300         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
6301         * testsuite/libgomp.c/loop-15.c: Remove.
6302         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
6303         * testsuite/libgomp.c/monotonic-1.c: Move ...
6304         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
6305         * testsuite/libgomp.c/monotonic-2.c: Move ...
6306         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
6307         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
6308         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
6309         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
6310         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
6311         * testsuite/libgomp.c/ordered-4.c: Move ...
6312         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
6313         * testsuite/libgomp.c/pr45784.c: Move ...
6314         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
6315         * testsuite/libgomp.c/pr64824.c: Move ...
6316         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
6317         * testsuite/libgomp.c/pr64868.c: Move ...
6318         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
6319         * testsuite/libgomp.c/pr66199-1.c: Move ...
6320         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
6321         * testsuite/libgomp.c/pr66199-2.c: Move ...
6322         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
6323         * testsuite/libgomp.c/pr66199-3.c: Move ...
6324         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
6325         * testsuite/libgomp.c/pr66199-4.c: Move ...
6326         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
6327         * testsuite/libgomp.c/pr66199-5.c: Move ...
6328         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
6329         * testsuite/libgomp.c/pr66199-6.c: Move ...
6330         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
6331         * testsuite/libgomp.c/pr66199-7.c: Move ...
6332         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
6333         * testsuite/libgomp.c/pr66199-8.c: Move ...
6334         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
6335         * testsuite/libgomp.c/pr66199-9.c: Move ...
6336         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
6337         * testsuite/libgomp.c/pr69389.c: Move ...
6338         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
6339         * testsuite/libgomp.c/simd-14.c: Move ...
6340         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
6341         * testsuite/libgomp.c/simd-15.c: Move ...
6342         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
6343         * testsuite/libgomp.c/simd-16.c: Move ...
6344         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
6345         * testsuite/libgomp.c/simd-17.c: Move ...
6346         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
6347         * testsuite/libgomp.c/target-1.c: Move ...
6348         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
6349         * testsuite/libgomp.c/target-10.c: Move ...
6350         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
6351         * testsuite/libgomp.c/target-13.c: Move ...
6352         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
6353         * testsuite/libgomp.c/target-2.c: Move ...
6354         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
6355         * testsuite/libgomp.c/taskgroup-1.c: Move ...
6356         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
6357         * testsuite/libgomp.c/taskloop-1.c: Move ...
6358         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
6359         * testsuite/libgomp.c/taskloop-2.c: Move ...
6360         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
6361         * testsuite/libgomp.c/taskloop-3.c: Move ...
6362         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
6363         * testsuite/libgomp.c/taskloop-4.c: Move ...
6364         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
6365         * testsuite/libgomp.c/udr-1.c: Move ...
6366         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
6367         * testsuite/libgomp.c/for-1.c: Move ...
6368         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
6369         * testsuite/libgomp.c/for-1.h: Move ...
6370         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
6371         * testsuite/libgomp.c/for-2.c: Move ...
6372         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
6373         * testsuite/libgomp.c/for-2.h: Move ...
6374         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
6375         * testsuite/libgomp.c/for-3.c: Move ...
6376         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
6377         * testsuite/libgomp.c/for-4.c: Move ...
6378         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
6379         * testsuite/libgomp.c/for-5.c: Move ...
6380         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
6381         * testsuite/libgomp.c/for-6.c: Move ...
6382         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
6384 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6386         PR libgomp/82428
6387         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
6388         __builtin_goacc_parlevel_{id,size}.
6389         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
6390         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
6391         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
6392         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
6393         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
6394         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
6395         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
6396         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
6397         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
6398         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
6399         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
6400         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
6401         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
6402         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
6403         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
6404         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
6405         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
6406         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
6407         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
6408         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
6409         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
6410         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
6411         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
6413 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6415         PR testsuite/85106
6416         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
6418 2018-05-02  Tom de Vries  <tom@codesourcery.com>
6420         PR testsuite/85106
6421         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
6423 2018-04-29  Julian Brown  <julian@codesourcery.com>
6424             Tom de Vries  <tom@codesourcery.com>
6426         PR testsuite/85527
6427         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
6428         arbitrary order for iterations of atomic subtract check.
6430 2018-04-28  Tom de Vries  <tom@codesourcery.com>
6432         PR testsuite/85527
6433         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
6434         atomic capture results obtained in parallel loop to an array, instead of
6435         to a scalar.
6437 2018-04-26  Tom de Vries  <tom@codesourcery.com>
6439         PR libgomp/84020
6440         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
6441         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
6442         (process_GOMP_NVPTX_JIT): New function.
6443         (link_ptx): Use process_GOMP_NVPTX_JIT.
6445 2018-04-26  Richard Biener <rguenther@suse.de>
6446             Tom de Vries  <tom@codesourcery.com>
6448         PR lto/85422
6449         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
6451 2018-04-26  Tom de Vries  <tom@codesourcery.com>
6453         PR target/85519
6454         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
6455         recursion depth from 25 to 23.
6456         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
6458 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
6460         * configure: Regenerated.
6462 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
6463             Tom de Vries  <tom@codesourcery.com>
6465         PR target/85445
6466         * testsuite/libgomp.oacc-c++/ref-1.C: New.
6468 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
6470         PR libgomp/85463
6471         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
6472         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
6473         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
6474         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
6475         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
6476         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
6478         PR libfortran/85166
6479         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
6480         abort".
6481         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
6483 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
6485         * configure: Regenerated.
6487 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
6489         PR jit/85384
6490         * configure: Regenerate.
6492 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
6493             Tom de Vries  <tom@codesourcery.com>
6495         PR middle-end/84955
6496         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
6497         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
6499 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
6501         PR fortran/83064
6502         PR testsuite/85346
6503         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
6504         test from gfortran.dg to here.
6506 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
6508         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
6509         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
6511 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
6513         PR middle-end/84955
6514         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
6515         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
6517 2018-04-05  Tom de Vries  <tom@codesourcery.com>
6519         PR target/85204
6520         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
6522 2018-03-26  Tom de Vries  <tom@codesourcery.com>
6524         PR tree-optimization/85063
6525         * testsuite/libgomp.c/switch-conversion-2.c: New test.
6526         * testsuite/libgomp.c/switch-conversion.c: New test.
6527         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
6528         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
6530 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
6532         PR fortran/84381
6533         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
6534         call abort by STOP n.
6535         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
6536         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
6537         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
6538         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
6539         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
6540         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
6541         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
6542         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
6543         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
6544         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
6545         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
6546         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
6547         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
6548         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
6549         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
6550         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
6551         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
6552         * testsuite/libgomp.fortran/associate1.f90: Likewise.
6553         * testsuite/libgomp.fortran/associate2.f90: Likewise.
6554         * testsuite/libgomp.fortran/associate3.f90: Likewise.
6555         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
6556         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
6557         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
6558         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
6559         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
6560         * testsuite/libgomp.fortran/character1.f90: Likewise.
6561         * testsuite/libgomp.fortran/character2.f90: Likewise.
6562         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
6563         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
6564         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
6565         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
6566         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
6567         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
6568         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
6569         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
6570         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
6571         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
6572         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
6573         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
6574         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
6575         * testsuite/libgomp.fortran/do1.f90: Likewise.
6576         * testsuite/libgomp.fortran/do2.f90: Likewise.
6577         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
6578         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
6579         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
6580         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
6581         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
6582         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
6583         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
6584         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
6585         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
6586         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
6587         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
6588         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
6589         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
6590         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
6591         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
6592         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
6593         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
6594         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
6595         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
6596         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
6597         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
6598         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
6599         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
6600         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
6601         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
6602         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
6603         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
6604         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
6605         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
6606         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
6607         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
6608         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
6609         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
6610         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
6611         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
6612         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
6613         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
6614         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
6615         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
6616         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
6617         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
6618         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
6619         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
6620         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
6621         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
6622         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
6623         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
6624         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
6625         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
6626         * testsuite/libgomp.fortran/lib1.f90: Likewise.
6627         * testsuite/libgomp.fortran/lib2.f: Likewise.
6628         * testsuite/libgomp.fortran/lib3.f: Likewise.
6629         * testsuite/libgomp.fortran/lib4.f90: Likewise.
6630         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
6631         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
6632         * testsuite/libgomp.fortran/nested1.f90: Likewise.
6633         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
6634         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
6635         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
6636         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
6637         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
6638         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
6639         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
6640         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
6641         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
6642         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
6643         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
6644         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
6645         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
6646         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
6647         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
6648         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
6649         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
6650         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
6651         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
6652         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
6653         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
6654         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
6655         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
6656         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
6657         * testsuite/libgomp.fortran/pr25162.f: Likewise.
6658         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
6659         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
6660         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
6661         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
6662         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
6663         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
6664         * testsuite/libgomp.fortran/pr28390.f: Likewise.
6665         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
6666         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
6667         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
6668         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
6669         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
6670         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
6671         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
6672         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
6673         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
6674         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
6675         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
6676         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
6677         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
6678         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
6679         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
6680         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
6681         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
6682         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
6683         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
6684         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
6685         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
6686         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
6687         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
6688         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
6689         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
6690         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
6691         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
6692         * testsuite/libgomp.fortran/reference1.f90: Likewise.
6693         * testsuite/libgomp.fortran/reference2.f90: Likewise.
6694         * testsuite/libgomp.fortran/retval1.f90: Likewise.
6695         * testsuite/libgomp.fortran/retval2.f90: Likewise.
6696         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
6697         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
6698         * testsuite/libgomp.fortran/simd1.f90: Likewise.
6699         * testsuite/libgomp.fortran/simd2.f90: Likewise.
6700         * testsuite/libgomp.fortran/simd3.f90: Likewise.
6701         * testsuite/libgomp.fortran/simd4.f90: Likewise.
6702         * testsuite/libgomp.fortran/simd5.f90: Likewise.
6703         * testsuite/libgomp.fortran/simd6.f90: Likewise.
6704         * testsuite/libgomp.fortran/simd7.f90: Likewise.
6705         * testsuite/libgomp.fortran/stack.f90: Likewise.
6706         * testsuite/libgomp.fortran/strassen.f90: Likewise.
6707         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
6708         * testsuite/libgomp.fortran/tabs2.f: Likewise.
6709         * testsuite/libgomp.fortran/target1.f90: Likewise.
6710         * testsuite/libgomp.fortran/target2.f90: Likewise.
6711         * testsuite/libgomp.fortran/target3.f90: Likewise.
6712         * testsuite/libgomp.fortran/target4.f90: Likewise.
6713         * testsuite/libgomp.fortran/target5.f90: Likewise.
6714         * testsuite/libgomp.fortran/target6.f90: Likewise.
6715         * testsuite/libgomp.fortran/target7.f90: Likewise.
6716         * testsuite/libgomp.fortran/target8.f90: Likewise.
6717         * testsuite/libgomp.fortran/task1.f90: Likewise.
6718         * testsuite/libgomp.fortran/task2.f90: Likewise.
6719         * testsuite/libgomp.fortran/task3.f90: Likewise.
6720         * testsuite/libgomp.fortran/task4.f90: Likewise.
6721         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
6722         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
6723         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
6724         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
6725         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
6726         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
6727         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
6728         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
6729         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
6730         * testsuite/libgomp.fortran/udr1.f90: Likewise.
6731         * testsuite/libgomp.fortran/udr10.f90: Likewise.
6732         * testsuite/libgomp.fortran/udr11.f90: Likewise.
6733         * testsuite/libgomp.fortran/udr12.f90: Likewise.
6734         * testsuite/libgomp.fortran/udr13.f90: Likewise.
6735         * testsuite/libgomp.fortran/udr14.f90: Likewise.
6736         * testsuite/libgomp.fortran/udr15.f90: Likewise.
6737         * testsuite/libgomp.fortran/udr2.f90: Likewise.
6738         * testsuite/libgomp.fortran/udr3.f90: Likewise.
6739         * testsuite/libgomp.fortran/udr4.f90: Likewise.
6740         * testsuite/libgomp.fortran/udr5.f90: Likewise.
6741         * testsuite/libgomp.fortran/udr6.f90: Likewise.
6742         * testsuite/libgomp.fortran/udr7.f90: Likewise.
6743         * testsuite/libgomp.fortran/udr8.f90: Likewise.
6744         * testsuite/libgomp.fortran/udr9.f90: Likewise.
6745         * testsuite/libgomp.fortran/vla1.f90: Likewise.
6746         * testsuite/libgomp.fortran/vla2.f90: Likewise.
6747         * testsuite/libgomp.fortran/vla3.f90: Likewise.
6748         * testsuite/libgomp.fortran/vla4.f90: Likewise.
6749         * testsuite/libgomp.fortran/vla5.f90: Likewise.
6750         * testsuite/libgomp.fortran/vla6.f90: Likewise.
6751         * testsuite/libgomp.fortran/vla7.f90: Likewise.
6752         * testsuite/libgomp.fortran/vla8.f90: Likewise.
6753         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
6754         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
6755         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
6756         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
6757         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6758         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6759         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6760         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
6761         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
6762         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
6763         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
6764         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
6765         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
6766         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
6767         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
6768         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
6769         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
6770         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
6771         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
6772         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
6773         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
6774         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
6775         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
6776         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
6777         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
6778         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
6779         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
6780         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
6781         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
6782         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
6783         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
6784         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
6785         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
6786         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
6787         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
6788         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
6789         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
6790         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
6791         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
6792         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
6793         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
6794         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
6795         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
6796         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
6797         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
6798         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
6799         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
6800         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
6801         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
6802         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
6803         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
6804         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
6805         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
6806         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
6807         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
6808         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
6809         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
6810         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
6811         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
6812         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
6813         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
6814         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
6815         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
6816         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
6817         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
6818         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
6819         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
6820         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6821         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
6822         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
6823         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
6824         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
6825         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
6826         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
6827         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
6828         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
6829         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
6830         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6831         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6832         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6833         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
6834         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6835         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
6836         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
6837         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
6838         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
6839         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
6840         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
6841         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
6842         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
6843         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
6844         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
6845         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
6846         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
6848 2018-03-20  Richard Biener  <rguenther@suse.de>
6850         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
6851         parallelizable loop.
6853 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
6855         PR target/84148
6856         * configure: Regenerate.
6858 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
6860         PR fortran/84418
6861         * libgomp.fortran/pr84418-1.f90: New test.
6862         * libgomp.fortran/pr84418-2.f90: New test.
6864 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
6866         PR fortran/84313
6867         * testsuite/libgomp.fortran/threadprivate4.f90: Add
6868         -std=f2003 -fall-intrinsics into dg-additional-options.
6870 2018-02-08  Martin Jambor  <mjambor@suse.cz>
6872         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
6873         clonable.
6875 2018-02-08  Martin Jambor  <mjambor@suse.cz>
6877         * testsuite/libgomp.hsa.c/staticvar.c: New test.
6879 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6881         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
6882         [__cplusplus]: Declare extern "C".
6884 2018-02-07  Tom de Vries  <tom@codesourcery.com>
6886         PR libgomp/84217
6887         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
6889 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
6890             Jakub Jelinek  <jakub@redhat.com>
6892         PR libgomp/84096
6893         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
6894         instead of omp_lock_t.
6896 2018-01-25  Tom de Vries  <tom@codesourcery.com>
6898         PR target/84028
6899         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
6901 2018-01-24  Tom de Vries  <tom@codesourcery.com>
6903         PR target/83589
6904         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
6906 2018-01-24  Tom de Vries  <tom@codesourcery.com>
6908         PR target/81352
6909         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
6911 2018-01-19  Tom de Vries  <tom@codesourcery.com>
6912             Cesar Philippidis  <cesar@codesourcery.com>
6914         PR target/83920
6915         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
6916         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
6918 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
6920         Update copyright years.
6922         * libgomp.texi: Bump @copying's copyright year.
6924 2017-12-30  Tom de Vries  <tom@codesourcery.com>
6926         PR libgomp/83046
6927         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
6928         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
6930 2017-12-27  Tom de Vries  <tom@codesourcery.com>
6932         PR c++/83046
6933         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
6934         (test_nonstatic): Fix return type to workaround PR83046.
6936 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
6938         PR testsuite/83281
6939         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
6940         j suffix instead of i.
6941         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
6942         Likewise.
6944 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
6946         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
6947         call to acc_wait (1).
6949 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
6951         PR fortran/81304
6952         * testsuite/libgomp.fortran/pr81304.f90: New test.
6954 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
6956         PR fortran/81841
6957         * libgomp.fortran/pr81841.f90: New test.
6959 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
6961         PR libgomp/83106
6962         * target.c (gomp_target_init): Compute lengths just once and
6963         use them in both malloc size and subsequent copying.
6965 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
6967         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
6968         * acinclude.m4: Add cet.m4.
6969         * configure: Regenerate.
6970         * Makefile.in: Likewise.
6971         * testsuite/Makefile.in: Likewise.
6973 2017-11-15  Tom de Vries  <tom@codesourcery.com>
6975         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
6976         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
6977         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
6978         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
6979         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
6980         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
6982 2017-11-14  Tom de Vries  <tom@codesourcery.com>
6984         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
6985         non-nvidia devices.
6987 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
6989         PR c++/82835
6990         * testsuite/libgomp.c++/pr82835.C: New test.
6992 2017-11-06  Martin Liska  <mliska@suse.cz>
6994         * testsuite/libgomp.c++/loop-2.C: Return a value
6995         for functions with non-void return type, or change type to void,
6996         or add -Wno-return-type for test.
6997         * testsuite/libgomp.c++/loop-4.C: Likewise.
6998         * testsuite/libgomp.c++/parallel-1.C: Likewise.
6999         * testsuite/libgomp.c++/shared-1.C: Likewise.
7000         * testsuite/libgomp.c++/single-1.C: Likewise.
7001         * testsuite/libgomp.c++/single-2.C: Likewise.
7003 2017-10-31  Tom de Vries  <tom@codesourcery.com>
7005         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
7006         "do {} while (false)".
7007         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
7008         after HSA_DEBUG call.
7010 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
7012         * target.c (struct gomp_coalesce_buf): New type.
7013         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
7014         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
7015         (gomp_copy_host2dev): Add CBUF argument, if copying into
7016         the cached ranges, memcpy into buffer instead of copying
7017         into device.
7018         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
7019         Add CBUF argument, pass it through to other calls.
7020         (gomp_map_vars): Aggregate copies from host to device if small enough
7021         and with small enough gaps in between into memcpy into a buffer and
7022         fewer host to device copies from the buffer.
7023         (gomp_update): Adjust gomp_copy_host2dev caller.
7025 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
7027         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
7028         run" directive.
7029         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7030         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7031         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7032         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7034 2017-10-16  Tom de Vries  <tom@codesourcery.com>
7036         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
7037         openacc_nvidia_accel_selected.
7038         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
7039         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
7040         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
7041         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
7042         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
7043         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
7044         openacc_nvidia_accel_selected. Skip for shared memory device.
7045         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
7046         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
7048 2017-10-09  Martin Jambor  <mjambor@suse.cz>
7050         PR hsa/82416
7051         * testsuite/libgomp.hsa.c/pr82416.c: New test.
7053 2017-10-07  Tom de Vries  <tom@codesourcery.com>
7055         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
7056         Remove acc_device_nvidia references.
7057         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
7058         Same.
7060 2017-10-05  Tom de Vries  <tom@codesourcery.com>
7062         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
7063         vector_length(32) clause from acc parallel directive.
7064         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
7066 2017-10-04  Tom de Vries  <tom@codesourcery.com>
7068         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
7069         (main): Reduce sum of arr elements.  Assert that hres is exactly
7070         representable in 32-bit floating point.
7071         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
7072         (main): Reduce sum of arr elements.  Assert that hres and hmres are
7073         exactly representable in 32-bit floating point.
7074         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
7076 2017-09-28  Tom de Vries  <tom@codesourcery.com>
7078         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
7079         setting.
7080         * testsuite/libgomp.c++/pr69393.C: Same.
7081         * testsuite/libgomp.c++/taskloop-1.C: Same.
7082         * testsuite/libgomp.c++/taskloop-3.C: Same.
7083         * testsuite/libgomp.c++/taskloop-4.C: Same.
7084         * testsuite/libgomp.c/for-4.c: Same.
7085         * testsuite/libgomp.c/pr66199-3.c: Same.
7086         * testsuite/libgomp.c/pr66199-4.c: Same.
7087         * testsuite/libgomp.c/pr66199-6.c: Same.
7088         * testsuite/libgomp.c/taskloop-1.c: Same.
7089         * testsuite/libgomp.c/taskloop-3.c: Same.
7090         * testsuite/libgomp.c/taskloop-4.c: Same.
7091         * testsuite/libgomp.fortran/aligned1.f03: Same.
7092         * testsuite/libgomp.fortran/condinc1.f: Same.
7093         * testsuite/libgomp.fortran/condinc3.f90: Same.
7094         * testsuite/libgomp.fortran/crayptr1.f90: Same.
7095         * testsuite/libgomp.fortran/crayptr2.f90: Same.
7096         * testsuite/libgomp.fortran/crayptr3.f90: Same.
7097         * testsuite/libgomp.fortran/omp_cond1.f: Same.
7098         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
7099         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
7100         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
7101         * testsuite/libgomp.fortran/recursion1.f90: Same.
7102         * testsuite/libgomp.fortran/target2.f90: Same.
7103         * testsuite/libgomp.fortran/target5.f90: Same.
7104         * testsuite/libgomp.fortran/task3.f90: Same.
7106 2017-09-28  Tom de Vries  <tom@codesourcery.com>
7108         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
7109         vector_length(32) clause from acc parallel directive.
7110         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
7112 2017-09-27  Tom de Vries  <tom@codesourcery.com>
7114         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
7115         Remove acc_device_nvidia references.
7117 2017-09-16  Tom de Vries  <tom@codesourcery.com>
7119         PR c/81875
7120         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
7122 2017-09-14  Tom de Vries  <tom@codesourcery.com>
7124         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
7125         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
7126         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
7127         * testsuite/libgomp.c/c.exp: Include test-cases from
7128         libgomp.c-c++-common.
7129         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
7130         files.
7132 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
7134         PR c++/81314
7135         * testsuite/libgomp.c++/pr81314.C: New test.
7137 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
7139         * libgomp.texi (Top): www.openacc.org now uses https.
7140         (Enabling OpenACC): Ditto.
7141         (acc_get_num_devices): Ditto.
7142         (acc_set_device_type): Ditto.
7143         (acc_get_device_type): Ditto.
7144         (acc_set_device_num): Ditto.
7145         (acc_get_device_num): Ditto.
7146         (acc_async_test): Ditto.
7147         (acc_async_test_all): Ditto.
7148         (acc_wait): Ditto.
7149         (acc_wait_all): Ditto.
7150         (acc_wait_all_async): Ditto.
7151         (acc_wait_async): Ditto.
7152         (acc_init): Ditto.
7153         (acc_shutdown): Ditto.
7154         (acc_on_device): Ditto.
7155         (acc_malloc): Ditto.
7156         (acc_free): Ditto.
7157         (acc_copyin): Ditto.
7158         (acc_present_or_copyin): Ditto.
7159         (acc_create): Ditto.
7160         (acc_present_or_create): Ditto.
7161         (acc_copyout): Ditto.
7162         (acc_delete): Ditto.
7163         (acc_update_device): Ditto.
7164         (acc_update_self): Ditto.
7165         (acc_map_data): Ditto.
7166         (acc_unmap_data): Ditto.
7167         (acc_deviceptr): Ditto.
7168         (acc_hostptr): Ditto.
7169         (acc_is_present): Ditto.
7170         (acc_memcpy_to_device): Ditto.
7171         (acc_memcpy_from_device): Ditto.
7172         (acc_get_current_cuda_device): Ditto.
7173         (acc_get_current_cuda_context): Ditto.
7174         (acc_get_cuda_stream): Ditto.
7175         (acc_set_cuda_stream): Ditto.
7176         (ACC_DEVICE_TYPE): Ditto.
7177         (ACC_DEVICE_NUM): Ditto.
7178         (OpenACC Library Interoperability): Ditto.
7180 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
7182         PR c/81687
7183         * testsuite/libgomp.c/pr81687-1.c: New test.
7184         * testsuite/libgomp.c/pr81687-2.c: New test.
7186 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
7188         PR c/69389
7189         * testsuite/libgomp.c/pr69389.c: New test.
7190         * testsuite/libgomp.c++/pr69389.C: New test.
7192 2017-08-07  Tom de Vries  <tom@codesourcery.com>
7194         PR middle-end/78266
7195         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
7196         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
7198 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
7200         PR c/45784
7201         * testsuite/libgomp.c/pr45784.c: New test.
7202         * testsuite/libgomp.c++/pr45784.C: New test.
7204 2017-07-19  Tom de Vries  <tom@codesourcery.com>
7206         * testsuite/libgomp.oacc-c/vec.c: New test.
7208 2017-07-03  Tom de Vries  <tom@codesourcery.com>
7210         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
7212 2017-06-27  Tom de Vries  <tom@codesourcery.com>
7214         * plugin/plugin-nvptx.c (notify_var): New function.
7215         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
7217 2017-06-27  Tom de Vries  <tom@codesourcery.com>
7219         * env.c (parse_unsigned_long_1): Factor out of ...
7220         (parse_unsigned_long): ... here.
7221         (parse_int_1): Factor out of ...
7222         (parse_int): ... here.
7223         (parse_int_secure): New function.
7224         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
7225         * secure_getenv.h: Factor out of ...
7226         * plugin/plugin-hsa.c: ... here.
7227         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
7229 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
7231         PR c++/81130
7232         * testsuite/libgomp.c++/pr81130.C: New test.
7234 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7236         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
7237         default args.
7238         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
7239         dg-xfail-run-if default args.
7241 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7243         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
7244         * testsuite/libgomp.c/pr39591-3.c: Likewise.
7246 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
7248         PR libgomp/80822
7249         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
7250         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
7251         sibling lists, depending on level just pick up what CPUs to put
7252         together into a place vs. whether add multiple ordered places.
7254 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
7256         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
7257         * libgomp.map (OACC_2.0.1): Add these.
7258         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
7259         for "acc_wait", and "acc_wait_all", respectively.
7260         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
7261         for "acc_wait", and "acc_wait_all", respectively.
7262         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
7263         * libgomp.texi (acc_wait, acc_wait_all): Update.
7264         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
7265         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
7266         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
7268         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
7269         acc_present_or_copyin and acc_present_or_create procedures,
7270         respectively.
7271         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
7272         generally different variants of OpenACC Runtime Library functions.
7273         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7275         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
7276         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
7278         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
7279         of preprocessor definitions.
7280         * libgomp.h (strong_alias): Guard by "#ifdef
7281         HAVE_ATTRIBUTE_ALIAS".
7282         * oacc-mem.c: Provide "acc_pcreate" as alias for
7283         "acc_present_or_create", and "acc_pcopyin" as alias for
7284         "acc_present_or_copyin".
7285         * libgomp.map: New version "OACC_2.0.1".
7286         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
7287         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
7288         its content into...
7289         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
7290         Extend testing.
7292         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
7293         when disabling nvptx offloading.
7295 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
7297         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
7298         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
7299         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
7301         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
7302         * testsuite/lib/libgomp.exp
7303         (check_effective_target_openacc_nvidia_accel_configured): New
7304         proc.
7305         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
7306         (check_effective_target_c++): New procs.
7307         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
7308         (check_effective_target_c++): Likewise.
7310 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
7312         PR middle-end/80809
7313         * testsuite/libgomp.c/pr80809-2.c: New test.
7314         * testsuite/libgomp.c/pr80809-3.c: New test.
7316         PR middle-end/80809
7317         * testsuite/libgomp.c/pr80809-1.c: New test.
7319         PR middle-end/80853
7320         * testsuite/libgomp.c/pr80853.c: New test.
7322 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
7324         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
7325         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
7326         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
7327         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
7328         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
7330         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
7331         Debug output for failure.
7333 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7335         * testsuite/lib/libgomp.exp: Load scanlang.exp.
7337 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
7339         PR bootstrap/80531
7340         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
7341         bootstrap compare failures.
7343 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
7345         * testsuite/libgomp.c/target-36.c: New testcase.
7347 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
7349         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
7350         instead of char.
7352 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
7354         PR libgomp/80394
7355         * testsuite/libgomp.c/pr80394.c: New test.
7357 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
7359         PR libgomp/79876
7360         * config/posix/thread-stacksize.h: New file.
7361         * config/darwin/thread-stacksize.h: New file.
7362         * config/nvptx/thread-stacksize.h: New file.
7363         * env.c: Include thread-stacksize.h.
7364         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
7365         instead of 0.  Call pthread_attr_setstacksize even if
7366         GOMP_DEFAULT_STACKSIZE is non-zero.
7368 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
7370         * env.c (initialize_env): Initialize stacksize to 0.
7372 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
7374         PR c++/80029
7375         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
7377 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
7379         PR c/79940
7380         * testsuite/libgomp.c/pr79940.c: New test.
7382 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7384         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
7385         targets.
7386         Add __float128 options.
7388 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
7390         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
7391         hppa*-*-* dg-skip-if directive.
7393 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
7395         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
7396         dg-skip-if directive into a comment.
7398 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
7399             Chung-Lin Tang  <cltang@codesourcery.com>
7401         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
7402         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
7403         add additional case.
7404         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
7405         "openacc_nvidia_accel_selected".
7406         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
7407         Add num_workers(8) clause.
7409 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
7411         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
7412         hppa*-*-*.
7413         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
7414         include complex.h on hppa*-*-hpux*.
7415         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
7417 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
7419         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
7421         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
7422         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
7423         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
7424         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
7425         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
7426         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
7427         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
7428         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
7429         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
7430         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
7432 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
7434         * libgomp-plugin.h: #include <stdbool.h>.
7435         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
7436         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
7437         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
7438         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
7439         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
7440         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
7441         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
7442         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
7443         (GOMP_OFFLOAD_openacc_register_async_cleanup)
7444         (GOMP_OFFLOAD_openacc_async_test)
7445         (GOMP_OFFLOAD_openacc_async_test_all)
7446         (GOMP_OFFLOAD_openacc_async_wait)
7447         (GOMP_OFFLOAD_openacc_async_wait_async)
7448         (GOMP_OFFLOAD_openacc_async_wait_all)
7449         (GOMP_OFFLOAD_openacc_async_wait_all_async)
7450         (GOMP_OFFLOAD_openacc_async_set_async)
7451         (GOMP_OFFLOAD_openacc_create_thread_data)
7452         (GOMP_OFFLOAD_openacc_destroy_thread_data)
7453         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
7454         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
7455         (GOMP_OFFLOAD_openacc_get_cuda_stream)
7456         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
7457         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
7458         these.
7459         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
7460         (GOMP_OFFLOAD_unload_image): Fix argument types.
7462 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
7464         * testsuite/lib/libgomp.exp
7465         (check_effective_target_hsa_offloading_selected_nocache): Fix up
7466         check_compile invocation.  Fix up removal of executable.  Drop
7467         bogus "2>&1" argument.
7469         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
7470         directive.
7472 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
7473             Martin Jambor  <mjambor@suse.cz>
7475         * plugin/hsa.h: Moved to top level include.
7476         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
7478 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
7480         PR other/79046
7481         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
7482         of cat to get version from BASE-VER file.
7483         * testsuite/Makefile.in: Regenerated.
7485 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
7487         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
7488         for _WIN64.
7490 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
7492         * plugin/hsa.h: Add GCC runtime library exception.
7493         * plugin/hsa_ext_finalize.h: Likewise.
7495         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
7496         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
7497         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
7498         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
7499         plugin/include/cuda as include dir and -ldl instead of -lcuda as
7500         library to link ptx plugin against.
7501         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
7502         (CUDA_CALLS): Define.
7503         (cuda_lib, cuda_lib_inited): New variables.
7504         (init_cuda_lib): New function.
7505         (CUDA_CALL_PREFIX): Define.
7506         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
7507         (CUDA_CALL): Use FN instead of (FN).
7508         (CUDA_CALL_NOCHECK): Define.
7509         (cuda_error, fini_streams_for_device, select_stream_for_async,
7510         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
7511         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
7512         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
7513         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
7514         CUDA_CALL_NOCHECK.
7515         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
7516         CUDA_CALL_NOCHECK.
7517         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
7518         Use CUDA_CALL_NOCHECK.
7519         * plugin/cuda/cuda.h: New file.
7520         * config.h.in: Regenerated.
7521         * configure: Regenerated.
7523         PR other/79046
7524         * configure.ac: Add GCC_BASE_VER.
7525         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
7526         get version from BASE-VER file.
7527         * testsuite/Makefile.in: Regenerated.
7528         * configure: Regenerated.
7529         * Makefile.in: Regenerated.
7531 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
7533         PR libgomp/60670
7534         * Makefile.am: Make fincludedir multilib-aware.
7535         * Makefile.in: Regenerate.
7537 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
7539         Update copyright years.
7541         * libgomp.texi: Bump @copying's copyright year.
7543 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7545         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
7546         pthread_spinlock_t instead of gomp_mutex_t lock.
7547         (gomp_get_thread_pool): Likewise.
7548         (gomp_release_thread_pool): Likewise.
7549         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
7550         Likewise.
7552 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7554         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
7555         thread pool in case nthreads == 1.
7557 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
7559         * config/nvptx/env.c: Delete.
7560         * icv.c: Move definitions of ICV variables back ...
7561         * env.c: ...here.  Do not compile environment-related functionality if
7562         LIBGOMP_OFFLOADED_ONLY is set.
7564 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
7566         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
7567         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
7568         * configure: Regenerate.
7569         * config.h.in: Likewise.
7571 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
7573         * Makefile.in: Regenerate with automake-1.11.6.
7574         * aclocal.m4: Likewise.
7575         * configure: Likewise.
7576         * testsuite/Makefile.in: Likewise.
7578 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
7580         * config/nvptx/critical.c: Delete to use generic implementation.
7582 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
7584         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
7585         ../../affinity.c as fallback.
7586         * config/nvptx/affinity.c: Delete to use fallback implementation.
7588 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
7589             Jakub Jelinek  <jakub@redhat.com>
7590             Dmitry Melnik  <dm@ispras.ru>
7592         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
7593         * Makefile.in. Regenerate.
7594         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
7595         (LIBGOMP_USE_PTHREADS): ...here; new define.
7596         * configure: Regenerate.
7597         * config.h.in: Likewise.
7598         * config/posix/affinity.c: Move to...
7599         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
7600         interface by LIBGOMP_USE_PTHREADS. 
7601         * critical.c: Split out GOMP_atomic_{start,end} into...
7602         * atomic.c: ...here (new file).
7603         * env.c: Split out ICV definitions into...
7604         * icv.c: ...here (new file) and...
7605         * icv-device.c: ...here. New file.
7606         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
7607         (gomp_destroy_lock_30): Ditto.
7608         (gomp_set_lock_30): Ditto.
7609         (gomp_unset_lock_30): Ditto.
7610         (gomp_test_lock_30): Ditto.
7611         (gomp_init_nest_lock_30): Ditto.
7612         (gomp_destroy_nest_lock_30): Ditto.
7613         (gomp_set_nest_lock_30): Ditto.
7614         (gomp_unset_nest_lock_30): Ditto.
7615         (gomp_test_nest_lock_30): Ditto.
7616         * lock.c: New.
7617         * config/nvptx/lock.c: New.
7618         * config/nvptx/bar.c: New.
7619         * config/nvptx/bar.h: New.
7620         * config/nvptx/doacross.h: New.
7621         * config/nvptx/error.c: New.
7622         * config/nvptx/icv-device.c: New.
7623         * config/nvptx/mutex.h: New.
7624         * config/nvptx/pool.h: New.
7625         * config/nvptx/proc.c: New.
7626         * config/nvptx/ptrlock.h: New.
7627         * config/nvptx/sem.h: New.
7628         * config/nvptx/simple-bar.h: New.
7629         * config/nvptx/target.c: New.
7630         * config/nvptx/task.c: New.
7631         * config/nvptx/team.c: New.
7632         * config/nvptx/time.c: New.
7633         * config/posix/simple-bar.h: New.
7634         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
7635         (gomp_num_teams_var): Declare.
7636         (struct gomp_thread_pool): Change threads_dock member to
7637         gomp_simple_barrier_t.
7638         [__nvptx__] (gomp_thread): New implementation.
7639         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
7640         (gomp_thread_destructor): Ditto.
7641         (gomp_init_thread_affinity): Ditto.
7642         * team.c: Guard uses of Pthreads-specific interfaces by
7643         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
7644         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
7645         * config/nvptx/alloc.c: Delete.
7646         * config/nvptx/barrier.c: Ditto.
7647         * config/nvptx/fortran.c: Ditto.
7648         * config/nvptx/iter.c: Ditto.
7649         * config/nvptx/iter_ull.c: Ditto.
7650         * config/nvptx/loop.c: Ditto.
7651         * config/nvptx/loop_ull.c: Ditto.
7652         * config/nvptx/ordered.c: Ditto.
7653         * config/nvptx/parallel.c: Ditto.
7654         * config/nvptx/priority_queue.c: Ditto.
7655         * config/nvptx/sections.c: Ditto.
7656         * config/nvptx/single.c: Ditto.
7657         * config/nvptx/splay-tree.c: Ditto.
7658         * config/nvptx/work.c: Ditto.
7659         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
7660         -foffload=-lgfortran in addition to -lgfortran.
7661         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
7662         * plugin/plugin-nvptx.c: Include <limits.h>.
7663         (struct targ_fn_descriptor): Add new fields.
7664         (struct ptx_device): Ditto.  Set them...
7665         (nvptx_open_device): ...here.
7666         (nvptx_adjust_launch_bounds): New.
7667         (nvptx_host2dev): Allow NULL 'nvthd'.
7668         (nvptx_dev2host): Ditto.
7669         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
7670         (link_ptx): Adjust log sizes.
7671         (nvptx_host2dev): Allow NULL 'nvthd'.
7672         (nvptx_dev2host): Ditto.
7673         (nvptx_set_clocktick): New.  Use it...
7674         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
7675         fields.
7676         (GOMP_OFFLOAD_dev2dev): New.
7677         (nvptx_adjust_launch_bounds): New.
7678         (nvptx_stacks_size): New.
7679         (nvptx_stacks_alloc): New.
7680         (nvptx_stacks_free): New.
7681         (GOMP_OFFLOAD_run): New.
7682         (GOMP_OFFLOAD_async_run): New (stub).
7684 2016-11-23  Martin Jambor  <mjambor@suse.cz>
7686         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
7687         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
7688         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
7690 2016-11-23  Martin Liska  <mliska@suse.cz>
7691             Martin Jambor  <mjambor@suse.cz>
7693         * plugin/hsa.h: New file.
7694         * plugin/hsa_ext_finalize.h: New file.
7695         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
7696         header file unistd.h, and functions secure_getenv, __secure_getenv,
7697         getuid, geteuid, getgid and getegid.
7698         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
7699         -D_GNU_SOURCE.
7700         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
7701         Handle various cases of secure_getenv presence, add an implementation
7702         when we can test effective UID and GID.
7703         (struct hsa_runtime_fn_info): New structure.
7704         (hsa_runtime_fn_info hsa_fns): New variable.
7705         (hsa_runtime_lib): Likewise.
7706         (support_cpu_devices): Likewise.
7707         (init_enviroment_variables): Load newly introduced ENV
7708         variables.
7709         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
7710         (hsa_fatal): Likewise.
7711         (DLSYM_FN): New macro.
7712         (init_hsa_runtime_functions): New function.
7713         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
7714         structure.  Depending on environment, also allow CPU devices.
7715         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
7716         (get_kernarg_memory_region): Likewise.
7717         (GOMP_OFFLOAD_init_device): Likewise.
7718         (destroy_hsa_program): Likewise.
7719         (init_basic_kernel_info): New function.
7720         (GOMP_OFFLOAD_load_image): Use it.
7721         (create_and_finalize_hsa_program): Call hsa run-time functions via
7722         hsa_fns structure.
7723         (create_single_kernel_dispatch): Likewise.
7724         (release_kernel_dispatch): Likewise.
7725         (init_single_kernel): Likewise.
7726         (parse_target_attributes): Allow up multiple HSA grid dimensions.
7727         (get_group_size): New function.
7728         (run_kernel): Likewise.
7729         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
7730         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
7731         structure.
7732         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
7733         * testsuite/libgomp-test-support.exp.in: Likewise.
7734         * Makefile.in: Regenerated.
7735         * aclocal.m4: Likewise.
7736         * config.h.in: Likewise.
7737         * configure: Likewise.
7738         * testsuite/Makefile.in: Likewise.
7740 2016-11-15  Martin Jambor  <mjambor@suse.cz>
7741             Alexander Monakov  <amonakov@ispras.ru>
7743         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
7744         mapping clauses to target constructs.
7745         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
7747 2016-11-15  Matthias Klose  <doko@ubuntu.com>
7749         * configure: Regenerate.
7751 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
7753         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
7754         * omp_lib.h.in (openmp_version): Likewise.
7755         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
7756         of 201307.
7757         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
7759         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
7760         (fib_wrapper): Add map(from: x) clause.
7761         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
7762         (e_53_2): Likewise.
7763         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
7764         (accum): Add map(tmp) clause.
7765         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
7766         (accum): Add map(tofrom: tmp) clause.
7767         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
7768         (gramSchmidt): Likewise.
7769         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
7770         map(tofrom: sum) clause.
7771         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
7772         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
7773         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
7774         only allowed on the loop iterator.
7775         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
7776         * testsuite/libgomp.fortran/taskloop2.f90: New test.
7777         * testsuite/libgomp.fortran/taskloop4.f90: New test.
7778         * testsuite/libgomp.fortran/doacross1.f90: New test.
7779         * testsuite/libgomp.fortran/doacross3.f90: New test.
7780         * testsuite/libgomp.fortran/taskloop1.f90: New test.
7781         * testsuite/libgomp.fortran/taskloop3.f90: New test.
7782         * testsuite/libgomp.fortran/doacross2.f90: New test.
7783         * testsuite/libgomp.c/doacross-1.c (main): Add missing
7784         #pragma omp atomic read.
7785         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
7786         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
7788 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
7789             Nathan Sidwell  <nathan@acm.org>
7791         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
7792         to determine default geometry.
7793         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
7794         dimension.
7796 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
7798         * hashtab.h: Use standard GPLv3 with runtime exception
7799         boilerplate.
7801 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
7803         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
7804         size when allocating new thread.
7806 2016-09-14  Marek Polacek  <polacek@redhat.com>
7808         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
7810 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
7812         PR fortran/71014
7813         * testsuite/libgomp.fortran/pr71014.f90: New test.
7815 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
7817         PR middle-end/70895
7818         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
7819         firstprivate clauses.
7820         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
7821         copy clauses.
7822         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
7823         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
7824         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
7825         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
7826         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
7827         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
7828         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
7829         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
7830         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
7831         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
7832         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
7833         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
7835 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
7837         PR fortran/70598
7838         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
7840 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
7842         PR c++/58706
7843         * testsuite/libgomp.c++/pr58706.C: New test.
7845 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
7847         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
7848         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
7849         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
7850         Likewise.
7851         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
7852         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
7853         Likewise.
7854         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
7856         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
7857         test, and don't hardcode -O0.
7859 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
7861         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
7863 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
7865         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
7866         test.
7868 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
7870         PR middle-end/71734
7871         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
7872         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
7874 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
7876         PR fortran/71717
7877         * testsuite/libgomp.fortran/associate3.f90: New test.
7879 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
7881         * testsuite/libgomp.c++/target-21.C: New test.
7883 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
7885         * testsuite/libgomp.c++/target-20.C: New test.
7887 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
7888             Cesar Philippidis  <cesar@codesourcery.com>
7890         PR middle-end/71373
7891         * libgomp.oacc-c/nested-function-1.c: New file.
7892         * libgomp.oacc-c/nested-function-2.c: Likewise.
7893         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
7894         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
7895         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
7897 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
7899         PR c/71381
7900         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
7901         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
7902         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
7904 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
7906         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
7907         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
7909 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
7911         PR c/70688
7912         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
7914 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
7916         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
7917         instead of invalid schedule(static, 0).
7918         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
7920 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
7922         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
7923         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
7924         parameter, use to set async stream around call to gomp_unmap_vars,
7925         call gomp_unmap_vars() with 'do_copyfrom' set to true.
7926         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
7927         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
7928         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
7929         (event_add): Add int parameter, initialize 'val' field when
7930         adding new ptx_event struct.
7931         (nvptx_evec): Adjust event_add() call arguments.
7932         (nvptx_host2dev): Likewise.
7933         (nvptx_dev2host): Likewise.
7934         (nvptx_wait_async): Likewise.
7935         (nvptx_wait_all_async): Likewise.
7936         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
7937         pass to event_add() call.
7938         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
7939         parameter.
7940         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
7941         call openacc.register_async_cleanup_func() hook.
7942         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
7943         * target.c (gomp_copy_from_async): Delete function.
7944         (gomp_map_vars): Remove async_refcount.
7945         (gomp_unmap_vars): Likewise.
7946         (gomp_load_image_to_device): Likewise.
7947         (omp_target_associate_ptr): Likewise.
7948         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
7949         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
7950         (gomp_copy_from_async): Remove.
7952 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
7954         * target.c (gomp_device_copy): New function.
7955         (gomp_copy_host2dev): Likewise.
7956         (gomp_copy_dev2host): Likewise.
7957         (gomp_free_device_memory): Likewise.
7958         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
7959         (gomp_map_pointer): Likewise.
7960         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
7961         NULL value from alloc_func plugin hook.
7962         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
7963         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
7964         (gomp_unmap_vars): Likewise.
7965         (gomp_update): Adjust to call gomp_copy_dev2host and
7966         gomp_copy_host2dev functions.
7967         (gomp_unload_image_from_device): Handle false value from
7968         unload_image_func plugin hook.
7969         (gomp_init_device): Handle false value from init_device_func
7970         plugin hook.
7971         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
7972         (omp_target_free): Adjust to call gomp_free_device_memory.
7973         (omp_target_memcpy): Handle return values from host2dev_func,
7974         dev2host_func, and dev2dev_func plugin hooks.
7975         (omp_target_memcpy_rect_worker): Likewise.
7976         (gomp_target_fini): Handle false value from fini_device_func
7977         plugin hook.
7978         * libgomp.h (struct gomp_device_descr): Adjust return type of
7979         init_device_func, fini_device_func, unload_image_func, free_func,
7980         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
7981         * oacc-init.c (acc_shutdown_1): Handle false value from
7982         fini_device_func plugin hook.
7983         * oacc-host.c (host_init_device): Change return type to bool.
7984         (host_fini_device): Likewise.
7985         (host_unload_image): Likewise.
7986         (host_free): Likewise.
7987         (host_dev2host): Likewise.
7988         (host_host2dev): Likewise.
7989         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
7990         (acc_memcpy_to_device): Likewise.
7991         (acc_memcpy_from_device): Likewise.
7992         (delete_copyout): Add libfnname parameter, handle free_func
7993         hook fatal error case.
7994         (acc_delete): Adjust delete_copyout call.
7995         (acc_copyout): Likewise.
7996         (update_dev_host): Move gomp_mutex_unlock to after
7997         host2dev/dev2host hook calls.
7999         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
8000         to 'hsa_error_msg', for clarity.
8001         (hsa_fatal): Likewise.
8002         (hsa_error): New function.
8003         (init_hsa_context): Change return type to bool, adjust to return
8004         false on error.
8005         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
8006         return value.
8007         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
8008         return false on error.
8009         (get_agent_info): Adjust to return NULL on error.
8010         (destroy_hsa_program): Change return type to bool, adjust to
8011         return false on error.
8012         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
8013         (destroy_module): Change return type to bool, adjust to
8014         return false on error.
8015         (GOMP_OFFLOAD_unload_image): Likewise.
8016         (GOMP_OFFLOAD_fini_device): Likewise.
8017         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
8018         (GOMP_OFFLOAD_free): Change to return false when called.
8019         (GOMP_OFFLOAD_dev2host): Likewise.
8020         (GOMP_OFFLOAD_host2dev): Likewise.
8021         (GOMP_OFFLOAD_dev2dev): Likewise.
8023         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
8024         (CUDA_CALL): Likewise.
8025         (CUDA_CALL_ASSERT): Likewise.
8026         (map_init): Change return type to bool, use CUDA_CALL* macros.
8027         (map_fini): Likewise.
8028         (init_streams_for_device): Change return type to bool, adjust
8029         call to map_init.
8030         (fini_streams_for_device): Change return type to bool, adjust
8031         call to map_fini.
8032         (select_stream_for_async): Release stream_lock before calls to
8033         GOMP_PLUGIN_fatal, adjust call to map_init.
8034         (nvptx_init): Use CUDA_CALL* macros.
8035         (nvptx_attach_host_thread_to_device): Change return type to bool,
8036         use CUDA_CALL* macros.
8037         (nvptx_open_device): Use CUDA_CALL* macros.
8038         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
8039         macros.
8040         (nvptx_get_num_devices): Use CUDA_CALL* macros.
8041         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
8042         (nvptx_exec): Use CUDA_CALL* macros.
8043         (nvptx_alloc): Use CUDA_CALL* macros.
8044         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
8045         (nvptx_host2dev): Likewise.
8046         (nvptx_dev2host): Likewise.
8047         (nvptx_wait): Use CUDA_CALL* macros.
8048         (nvptx_wait_async): Likewise.
8049         (nvptx_wait_all): Likewise.
8050         (nvptx_wait_all_async): Likewise.
8051         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
8052         use CUDA_CALL* macros, adjust call to map_fini.
8053         (GOMP_OFFLOAD_init_device): Change return type to bool,
8054         adjust code accordingly.
8055         (GOMP_OFFLOAD_fini_device): Likewise.
8056         (GOMP_OFFLOAD_load_image): Adjust calls to
8057         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
8058         use CUDA_CALL* macros.
8059         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
8060         return code.
8061         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
8062         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
8063         handle error return.
8064         (GOMP_OFFLOAD_dev2host): Likewise.
8065         (GOMP_OFFLOAD_host2dev): Likewise.
8066         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
8067         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
8069 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
8071         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
8072         (acc_free): Likewise.
8073         (acc_memcpy_to_device): Likewise.
8074         (acc_memcpy_from_device): Likewise.
8075         (acc_deviceptr): Likewise.
8076         (acc_hostptr): Likewise.
8077         (acc_is_present): Likewise.
8078         (acc_map_data): Likewise.
8079         (acc_unmap_data): Likewise.
8080         (present_create_copy): Likewise.
8081         (delete_copyout): Likewise.
8082         (update_dev_host): Likewise.
8083         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
8084         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
8085         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
8086         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8087         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
8088         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
8089         it only runs on nvptx targets.
8090         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8091         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8092         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8093         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8094         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8095         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8096         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8097         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8098         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8099         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8100         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8101         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8102         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8103         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8104         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8105         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8106         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8107         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8108         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8109         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8110         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8111         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8112         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8114 2016-05-23  Martin Jambor  <mjambor@suse.cz>
8116         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
8118 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
8120         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
8121         to gomp_init_targets_once.
8122         (acc_set_device_type): Remove !cached_base_dev condition on call to
8123         gomp_init_targets_once, move call to before acc_device_lock acquire,
8124         to avoid deadlock.
8125         (acc_get_device_num): Remove !cached_base_dev condition on call to
8126         gomp_init_targets_once.
8127         (acc_set_device_num): Likewise.
8129 2016-05-16  Martin Jambor  <mjambor@suse.cz>
8131         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
8133 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
8135         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
8136         expected partitioning.
8138 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
8140         PR middle-end/70626
8141         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
8142         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
8143         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
8145 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
8147         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
8148         non-fatal.
8150 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
8152         PR middle-end/70680
8153         * testsuite/libgomp.c/pr70680-1.c: New test.
8154         * testsuite/libgomp.c/pr70680-2.c: New test.
8156 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
8158         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
8159         pass parameter variables to subroutines.
8161 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
8163         PR middle-end/70643
8164         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
8166 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
8168         PR testsuite/68242
8169         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
8170         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8172 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
8174         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
8175         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
8176         GOACC_declare prototype.
8178         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
8179         Merge this file, and...
8180         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
8181         ... this file, and...
8182         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
8183         ... this file, and...
8184         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
8185         ... this file, and...
8186         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
8187         ... this file, and...
8188         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
8189         ... this file, and...
8190         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
8191         ... this file, and...
8192         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
8193         ... this file, and...
8194         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
8195         ... this file, and...
8196         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
8197         ... this file, and...
8198         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
8199         ... this file, and...
8200         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
8201         ... this file, and...
8202         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
8203         ... this file into...
8204         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
8205         file.
8207         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
8208         Make failure observable.
8210 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
8212         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
8213         field.
8214         * target.c (gomp_target_fallback_firstprivate,
8215         gomp_target_unshare_firstprivate): Removed.
8216         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
8217         before waiting for dependencies.
8218         (gomp_target_task_fn): Don't copy firstprivate vars here.
8219         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
8220         firstprivate_copies here.
8221         (gomp_create_target_task): Don't initialize firstprivate_copies field.
8222         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
8223         explicit/implicit firstprivate.
8225 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
8227         PR lto/70289
8228         PR ipa/70348
8229         PR tree-optimization/70373
8230         PR middle-end/70533
8231         PR middle-end/70534
8232         PR middle-end/70535
8233         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
8234         test.
8235         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
8236         test.
8237         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
8238         test.
8239         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
8240         test.
8241         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
8242         test.
8243         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
8244         test.
8245         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
8246         test.
8247         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
8248         test.
8249         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
8250         test.
8251         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
8252         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
8253         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
8254         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
8255         test.
8256         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
8257         test.
8258         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
8259         test.
8260         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
8261         test.
8262         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
8263         coverage.
8264         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
8265         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
8266         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
8267         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
8268         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
8269         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
8270         coverage.
8271         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8272         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8273         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8274         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8275         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
8276         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
8277         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
8278         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
8279         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
8280         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8281         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8282         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8283         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8284         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8285         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
8287 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
8288             James Norris  <jnorris@codesourcery.com>
8289             Nathan Sidwell  <nathan@codesourcery.com>
8290             Julian Brown  <julian@codesourcery.com>
8291             Cesar Philippidis  <cesar@codesourcery.com>
8292             Chung-Lin Tang  <cltang@codesourcery.com>
8293             Tom de Vries  <tom@codesourcery.com>
8295         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
8296         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8297         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8298         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
8299         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8300         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8301         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8302         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
8303         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8304         XFAIL.
8305         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
8306         Incorporate...
8307         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
8308         file.
8309         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
8310         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
8311         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
8312         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
8313         Likewise.
8314         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
8315         Likewise.
8316         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
8317         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
8318         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
8319         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
8320         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
8321         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
8322         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
8323         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
8324         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
8325         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
8326         Likewise.
8327         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
8328         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
8329         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
8330         file...
8331         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
8332         file into...
8333         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
8334         file.  Update.
8335         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
8336         file.
8337         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
8338         Likewise.
8339         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
8340         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
8341         ... this new file.  Update.
8342         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
8343         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
8344         ... this new file.  Update.
8345         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
8346         file.  Incorporate...
8347         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
8348         file, and...
8349         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
8350         file, and...
8351         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
8352         file.
8353         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
8355 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
8357         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
8358         set-torture-options.
8360 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
8362         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
8363         gcc-dg-runtest.
8364         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8365         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
8366         -fno-builtin-acc_on_device instead of -O0.
8367         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
8368         -O0.
8369         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
8370         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
8371         Likewise.
8372         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
8373         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
8374         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
8375         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
8376         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
8377         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
8378         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
8379         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
8380         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
8381         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
8382         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
8383         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
8384         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
8385         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
8386         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
8387         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
8388         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
8389         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
8390         Don't specify -O2.
8391         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
8392         Likewise.
8393         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
8394         Likewise.
8396 2016-03-24  Martin Liska  <mliska@suse.cz>
8398         * plugin/plugin-hsa.c (packet_store_release): New function
8399         that is taken from the HSA runtime manual.
8400         (GOMP_OFFLOAD_run): Use the function.
8402 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
8404         PR c++/70376
8405         * testsuite/libgomp.c++/pr70376.C: New test.
8407 2016-03-23  Tom de Vries  <tom@codesourcery.com>
8409         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
8410         initialization of lresult and lvresult.
8411         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
8413 2016-03-23  James Norris  <jnorris@codesourcery.com>
8414             Daichi Fukuoka <dc-fukuoka@sgi.com>
8416         PR libgomp/69414
8417         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
8418         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
8419         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8420         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
8422 2016-03-23  Martin Liska  <mliska@suse.cz>
8424         PR hsa/70337
8425         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
8426         argument just in case a dispatched kernel uses that argument.
8428 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
8430         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
8431         -ftree-parallelize-loops/-fopenacc changes.
8432         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
8433         Likewise.
8434         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
8435         Likewise.
8436         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
8437         Likewise.
8438         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
8439         Likewise.
8440         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
8441         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
8443 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
8445         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
8446         always_ld_library_path the path to libgcc_s.
8448 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
8450         PR testsuite/70009
8451         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
8453 2016-03-09  Tom de Vries  <tom@codesourcery.com>
8455         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
8456         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
8457         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
8458         Same.
8459         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
8460         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
8461         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
8462         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
8464 2016-03-07  Martin Jambor  <mjambor@suse.cz>
8466         * testsuite/lib/libgomp.exp
8467         (check_effective_target_hsa_offloading_selected_nocache): New.
8468         (check_effective_target_hsa_offloading_selected): Likewise.
8469         * testsuite/libgomp.hsa.c/c.exp: Likewise.
8470         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
8471         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
8472         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
8473         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
8474         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
8475         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
8476         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
8477         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
8478         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
8479         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
8480         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
8481         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
8482         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
8483         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
8484         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
8485         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
8487 2016-03-07  Martin Jambor  <mjambor@suse.cz>
8489         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
8490         non-shared memory accelerators.
8491         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
8492         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
8493         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
8494         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
8495         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
8496         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
8497         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
8498         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
8499         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
8501 2016-03-07  Martin Jambor  <mjambor@suse.cz>
8503         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
8504         ALWAYS_CFLAGS.
8506 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
8508         PR libgomp/69555
8509         * testsuite/libgomp.c++/pr69555-1.C: New test.
8510         * testsuite/libgomp.c++/pr69555-2.C: New test.
8512 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
8513             Martin Jambor  <mjambor@suse.cz>
8515         * testsuite/lib/libgomp.exp
8516         (check_effective_target_offload_device_shared_as): New proc.
8517         * testsuite/libgomp.c++/declare_target-1.C: New test.
8519 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
8521         PR driver/68463
8522         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
8524 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
8526         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
8527         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
8528         dims.
8529         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
8530         -ftree-parallelize-loops/-fopenacc changes.
8531         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
8532         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
8533         Likewise.
8534         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
8535         Likewise.
8536         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
8537         Likewise.
8538         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
8539         Likewise.
8540         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
8541         Likewise.
8542         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
8543         Likewise.
8544         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
8545         Likewise.
8546         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
8547         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
8548         Likewise.
8549         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
8550         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
8551         Likewise.
8552         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
8553         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
8554         Likewise.
8556 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
8558         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
8560 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
8562         PR driver/69805
8563         * testsuite/libgomp.c/pr69805.c: New test.
8565 2016-02-16  Tom de Vries  <tom@codesourcery.com>
8567         PR lto/67709
8568         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
8570 2016-02-09  Tom de Vries  <tom@codesourcery.com>
8572         PR tree-optimization/69599
8573         * testsuite/libgomp.c/omp-nested-3.c: New test.
8574         * testsuite/libgomp.c/pr46032-2.c: New test.
8575         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
8576         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
8578 2016-02-09  Tom de Vries  <tom@codesourcery.com>
8580         PR lto/69707
8581         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
8583 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
8585         * testsuite/libgomp.c/target-31.c: Fix testcase.
8587 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
8589         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
8590         clause.
8591         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
8592         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
8593         reduction and map clauses.
8594         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
8596 2016-02-02  James Norris  <jnorris@codesourcery.com>
8598         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
8600 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
8602         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
8603         * oacc-parallel.c (GOACC_host_data): Remove function definition.
8605         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
8606         cases.
8608         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
8609         variables.
8610         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
8611         (hsa_kmt_lib): Set variables.
8612         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
8613         always_ld_library_path.
8614         * Makefile.in: Regenerate.
8615         * configure: Likewise.
8616         * testsuite/Makefile.in: Likewise.
8618         * plugin/configfrag.ac (offload_additional_options)
8619         (offload_additional_lib_paths): Don't amend for hsa offloading.
8620         * configure: Regenerate.
8622         * plugin/configfrag.ac: Don't configure for offloading target if
8623         we don't build the corresponding plugin.
8624         * configure: Regenerate.
8626 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
8628         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
8629         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
8631 2016-01-26  Tom de Vries  <tom@codesourcery.com>
8633         PR tree-optimization/69110
8634         * testsuite/libgomp.c/pr69110.c: New test.
8636 2016-01-25  Richard Biener  <rguenther@suse.de>
8638         PR lto/69393
8639         * testsuite/libgomp.c++/pr69393.C: New testcase.
8641 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
8643         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
8644         function wasn't mapped to the device with non-shared memory.
8646 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
8648         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
8650 2016-01-19  Martin Jambor  <mjambor@suse.cz>
8651             Martin Liska  <mliska@suse.cz>
8653         * plugin/Makefrag.am: Add HSA plugin requirements.
8654         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
8655         (HSA_RUNTIME_LIB): Likewise.
8656         (HSA_RUNTIME_CPPFLAGS): Likewise.
8657         (HSA_RUNTIME_INCLUDE): New substitution.
8658         (HSA_RUNTIME_LIB): Likewise.
8659         (HSA_RUNTIME_LDFLAGS): Likewise.
8660         (hsa-runtime): New configure option.
8661         (hsa-runtime-include): Likewise.
8662         (hsa-runtime-lib): Likewise.
8663         (PLUGIN_HSA): New substitution variable.
8664         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
8665         configure options.
8666         (PLUGIN_HSA_CPPFLAGS): Likewise.
8667         (PLUGIN_HSA_LDFLAGS): Likewise.
8668         (PLUGIN_HSA_LIBS): Likewise.
8669         Check that we have access to HSA run-time.
8670         * libgomp-plugin.h (offload_target_type): New element
8671         OFFLOAD_TARGET_TYPE_HSA.
8672         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
8673         args.
8674         (bool gomp_create_target_task): Updated.
8675         (gomp_device_descr): Extra parameter of run_func and async_run_func,
8676         new field can_run_func.
8677         * libgomp_g.h (GOMP_target_ext): Update prototype.
8678         * oacc-host.c (host_run): Added a new parameter args.
8679         * target.c (calculate_firstprivate_requirements): New function.
8680         (copy_firstprivate_data): Likewise.
8681         (gomp_target_fallback_firstprivate): Use them.
8682         (gomp_target_unshare_firstprivate): New function.
8683         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
8684         devices.
8685         (GOMP_target): Do host fallback for all shared memory devices.  Do not
8686         pass any args to plugins.
8687         (GOMP_target_ext): Introduce device-specific argument parameter args.
8688         Allow host fallback if device shares memory.  Do not remap data if
8689         device has shared memory.
8690         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
8691         like host fallback for mappings.
8692         (GOMP_target_data): Treat shared memory devices like host fallback.
8693         (GOMP_target_data_ext): Likewise.
8694         (GOMP_target_update): Likewise.
8695         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
8696         gomp_create_target_task.
8697         (GOMP_target_enter_exit_data): Likewise.
8698         (omp_target_alloc): Treat shared memory devices like host fallback.
8699         (omp_target_free): Likewise.
8700         (omp_target_is_present): Likewise.
8701         (omp_target_memcpy): Likewise.
8702         (omp_target_memcpy_rect): Likewise.
8703         (omp_target_associate_ptr): Likewise.
8704         (gomp_load_plugin_for_device): Also load can_run.
8705         * task.c (GOMP_PLUGIN_target_task_completion): Free
8706         firstprivate_copies.
8707         (gomp_create_target_task): Accept new argument args and store it to
8708         ttask.
8709         * plugin/plugin-hsa.c: New file.
8711 2016-01-18  Tom de Vries  <tom@codesourcery.com>
8713         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
8714         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
8715         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
8716         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
8717         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
8718         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
8719         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
8720         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
8721         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
8722         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
8723         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
8724         Same.
8725         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
8726         Same.
8727         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
8728         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
8729         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
8730         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
8731         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
8732         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
8733         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
8734         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
8735         Same.
8736         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
8738 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
8740         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
8742 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
8744         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
8746 2016-01-12  James Norris  <jnorris@codesourcery.com>
8748         * libgomp.texi: Updates for OpenACC.
8750 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
8752         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
8754 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
8756         PR fortran/66680
8757         * testsuite/libgomp.fortran/pr66680.f90: New test.
8759 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
8761         PR middle-end/68960
8762         * testsuite/libgomp.c/pr68960.c: New test.
8764 2016-01-06  Nathan Sidwell  <nathan@acm.org>
8766         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
8767         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
8769 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
8771         Update copyright years.
8773         * libgomp.texi: Bump @copying's copyright year.
8775 2015-12-31  Nathan Sidwell  <nathan@acm.org>
8777         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
8778         dg-additional-options syntax.
8779         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
8780         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
8781         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
8782         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
8783         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
8784         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
8785         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
8786         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
8787         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
8788         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
8789         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
8790         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
8791         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
8792         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
8793         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
8794         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
8795         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
8796         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
8798 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
8800         * libgomp.h (REFCOUNT_LINK): Define.
8801         (struct splay_tree_key_s): Add link_key.
8802         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
8803         Replace target address of the pointer with target address of newly
8804         mapped object in the splay tree.  Set link pointer on target to the
8805         device address of the mapped object.
8806         (gomp_unmap_vars): Restore target address of the pointer in the splay
8807         tree for REFCOUNT_LINK objects after unmapping.
8808         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
8809         declare target link" objects.
8810         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
8811         "omp declare target link" objects, which were mapped for the image.
8812         (gomp_exit_data): Restore target address of the pointer in the splay
8813         tree for REFCOUNT_LINK objects after unmapping.
8814         * testsuite/libgomp.c/target-link-1.c: New file.
8816 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
8818         * libgomp.h (gomp_device_state): New enum.
8819         (struct gomp_device_descr): Replace is_initialized with state.
8820         (gomp_fini_device): Remove declaration.
8821         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
8822         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
8823         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
8824         (acc_set_device_type): Use state instead of is_initialized.
8825         (acc_set_device_num): Likewise.
8826         * target.c (resolve_device): Use state instead of is_initialized.
8827         Do not initialize finalized device.
8828         (gomp_map_vars): Do nothing if device is finalized.
8829         (gomp_unmap_vars): Likewise.
8830         (gomp_update): Likewise.
8831         (GOMP_offload_register_ver): Use state instead of is_initialized.
8832         (GOMP_offload_unregister_ver): Likewise.
8833         (gomp_init_device): Likewise.
8834         (gomp_unload_device): Likewise.
8835         (gomp_fini_device): Remove.
8836         (gomp_get_target_fn_addr): Do nothing if device is finalized.
8837         (GOMP_target): Go to host fallback if device is finalized.
8838         (GOMP_target_ext): Likewise.
8839         (gomp_exit_data): Do nothing if device is finalized.
8840         (gomp_target_task_fn): Go to host fallback if device is finalized.
8841         (gomp_target_fini): New static function.
8842         (gomp_target_init): Use state instead of is_initialized.
8843         Call gomp_target_fini at exit.
8845 2015-12-09  Tom de Vries  <tom@codesourcery.com>
8847         PR tree-optimization/68716
8848         * testsuite/libgomp.c/omp-nested-2.c: New test.
8850 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
8852         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
8853         target openacc_nvidia_accel_selected.
8854         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
8855         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
8856         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
8857         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
8859 2015-12-01  Julian Brown  <julian@codesourcery.com>
8860             James Norris  <James_Norris@mentor.com>
8862         * oacc-parallel.c (GOACC_host_data): New function.
8863         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
8864         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
8865         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
8866         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
8867         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
8868         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
8869         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
8871 2015-11-30  James Norris  <jnorris@codesourcery.com>
8872             Cesar Philippidis  <cesar@codesourcery.com>
8874         libgomp/
8875         * libgomp.oacc-fortran/routine-5.f90: New test.
8876         * libgomp.oacc-fortran/routine-7.f90: New test.
8877         * libgomp.oacc-fortran/routine-9.f90: New test.
8879 2015-11-30  Tom de Vries  <tom@codesourcery.com>
8881         PR tree-optimization/46032
8882         * testsuite/libgomp.c/pr46032.c: New test.
8884 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
8886         PR libgomp/68579
8887         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
8888         (gomp_create_target_task): Call it before freeing
8889         GOMP_TARGET_TASK_DATA tasks.
8891         PR c/63326
8892         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
8893         in between case label and OpenMP standalone directives.
8894         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
8896 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
8898         * configure: Regenerate.
8900 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
8902         * testsuite/libgomp.c/target-35.c: New test.
8904 2015-11-22  James Norris  <jnorris@codesourcery.com>
8905             Cesar Philippidis  <cesar@codesourcery.com>
8907         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
8908         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
8909         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
8910         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
8911         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
8913 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
8915         PR middle-end/68221
8916         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
8917         * testsuite/libgomp.c/reduction-12.c: Likewise.
8918         * testsuite/libgomp.c++/reduction-11.C: Likewise.
8919         * testsuite/libgomp.c++/reduction-12.C: Likewise.
8921 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
8923         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
8924         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
8925         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
8926         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
8927         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
8928         and fix.
8929         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8930         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8932 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
8934         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
8935         worker & gang cases.
8936         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
8938 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
8940         * config/nvptx/priority_queue.c: New file.
8942 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
8944         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
8945         sections.
8947 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
8948             Aldy Hernandez  <aldyh@redhat.com>
8949             Ilya Verbin  <ilya.verbin@intel.com>
8951         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
8952         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
8953         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
8954         iterators or IV by chunk size.
8955         * parallel.c (gomp_resolve_num_threads): Don't assume that
8956         if thr->ts.team is non-NULL, then pool must be non-NULL.
8957         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
8958         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
8959         GOMP_PLUGIN_target_task_completion.
8960         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
8961         * Makefile.in: Regenerate.
8962         * libgomp.h: Shuffle prototypes and forward definitions around so
8963         priority queues can be defined.
8964         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
8965         (enum gomp_target_task_state): New enum.
8966         (struct gomp_target_task): Add state, tgt, task and team fields.
8967         (gomp_create_target_task): Change return type to bool, add
8968         state argument.
8969         (gomp_target_task_fn): Change return type to bool.
8970         (struct gomp_device_descr): Add async_run_func.
8971         (struct gomp_task): Remove children, next_child, prev_child,
8972         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
8973         Add pnode field.
8974         (struct gomp_taskgroup): Remove children.
8975         Add taskgroup_queue.
8976         (struct gomp_team): Change task_queue type to a priority queue.
8977         (splay_compare): Define inline.
8978         (priority_queue_offset): New.
8979         (priority_node_to_task): New.
8980         (task_to_priority_node): New.
8981         * oacc-mem.c: Do not include splay-tree.h.
8982         * priority_queue.c: New file.
8983         * priority_queue.h: New file.
8984         * splay-tree.c: Do not include splay-tree.h.
8985         (splay_tree_foreach_internal): New.
8986         (splay_tree_foreach): New.
8987         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
8988         (splay_tree_callback): Define typedef.
8989         * target.c (splay_compare): Move to libgomp.h.
8990         (GOMP_target): Don't adjust *thr in any way around running offloaded
8991         task.
8992         (GOMP_target_ext): Likewise.  Handle target nowait.
8993         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
8994         return value from gomp_create_target_task, if false, fallthrough
8995         as if no dependencies exist.
8996         (gomp_target_task_fn): Change return type to bool, return true
8997         if the task should have another part scheduled later.  Handle
8998         target nowait.
8999         (gomp_load_plugin_for_device): Initialize async_run.
9000         * task.c (gomp_init_task): Initialize children_queue.
9001         (gomp_clear_parent_in_list): New.
9002         (gomp_clear_parent_in_tree): New.
9003         (gomp_clear_parent): Handle priorities.
9004         (GOMP_task): Likewise.
9005         (priority_queue_move_task_first,
9006         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
9007         New functions.
9008         (gomp_create_target_task): Use priority queues.  Change return type
9009         to bool, add state argument, return false if for async
9010         {{enter,exit} data,update} constructs no dependencies need to be
9011         waited for, handle target nowait.  Set task->fn to NULL instead of
9012         gomp_target_task_fn.
9013         (verify_children_queue): Remove.
9014         (priority_list_upgrade_task): New.
9015         (priority_queue_upgrade_task): New.
9016         (verify_task_queue): Remove.
9017         (priority_list_downgrade_task): New.
9018         (priority_queue_downgrade_task): New.
9019         (gomp_task_run_pre): Use priority queues.
9020         Abstract code out to priority_queue_downgrade_task.
9021         (gomp_task_run_post_handle_dependers): Use priority queues.
9022         (gomp_task_run_post_remove_parent): Likewise.
9023         (gomp_task_run_post_remove_taskgroup): Likewise.
9024         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
9025         tasks specially.
9026         (GOMP_taskwait): Likewise.
9027         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
9028         priority-queue_upgrade_task.
9029         (GOMP_taskgroup_start): Use priority queues.
9030         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
9031         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
9032         barrier.
9033         * taskloop.c (GOMP_taskloop): Handle priorities.
9034         * team.c (gomp_new_team): Call priority_queue_init.
9035         (free_team): Call priority_queue_free.
9036         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
9037         team created for target nowait in implicit parallel region.
9038         (gomp_team_start): For nested check, test thr->ts.level instead of
9039         thr->ts.team != NULL.
9040         * testsuite/libgomp.c/doacross-3.c: New test.
9041         * testsuite/libgomp.c/ordered-5.c: New test.
9042         * testsuite/libgomp.c/priority.c: New test.
9043         * testsuite/libgomp.c/target-31.c: New test.
9044         * testsuite/libgomp.c/target-32.c: New test.
9045         * testsuite/libgomp.c/target-33.c: New test.
9046         * testsuite/libgomp.c/target-34.c: New test.
9048 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
9050         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
9052         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
9053         loop is sequential.
9055 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
9057         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
9058         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
9060 2015-11-12  James Norris  <jnorris@codesourcery.com>
9061             Joseph Myers  <joseph@codesourcery.com>
9063         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
9064         * oacc-parallel.c (GOACC_declare): New function.
9065         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
9066         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
9067         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
9068         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
9069         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
9071 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
9073         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
9075 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
9077         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
9078         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
9080 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
9082         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
9083         inadvertent commit.
9085 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
9087         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
9088         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
9089         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
9090         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
9091         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
9093 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
9095         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
9096         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
9098 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
9099             Ilya Verbin  <ilya.verbin@intel.com>
9101         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
9102         GOMP_loop_nonmonotonic_dynamic_start,
9103         GOMP_loop_nonmonotonic_guided_next,
9104         GOMP_loop_nonmonotonic_guided_start,
9105         GOMP_loop_ull_nonmonotonic_dynamic_next,
9106         GOMP_loop_ull_nonmonotonic_dynamic_start,
9107         GOMP_loop_ull_nonmonotonic_guided_next,
9108         GOMP_loop_ull_nonmonotonic_guided_start,
9109         GOMP_parallel_loop_nonmonotonic_dynamic,
9110         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
9111         (GOMP_target_41): Renamed to ...
9112         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
9113         arguments.
9114         (GOMP_target_data_41): Renamed to ...
9115         (GOMP_target_data_ext): ... this.
9116         (GOMP_target_update_41): Renamed to ...
9117         (GOMP_target_update_ext): ... this.
9118         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
9119         GOMP_target_data_ext and GOMP_target_update_ext instead of
9120         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
9121         Export GOMP_loop_nonmonotonic_dynamic_next,
9122         GOMP_loop_nonmonotonic_dynamic_start,
9123         GOMP_loop_nonmonotonic_guided_next,
9124         GOMP_loop_nonmonotonic_guided_start,
9125         GOMP_loop_ull_nonmonotonic_dynamic_next,
9126         GOMP_loop_ull_nonmonotonic_dynamic_start,
9127         GOMP_loop_ull_nonmonotonic_guided_next,
9128         GOMP_loop_ull_nonmonotonic_guided_start,
9129         GOMP_parallel_loop_nonmonotonic_dynamic and
9130         GOMP_parallel_loop_nonmonotonic_guided.
9131         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
9132         GOMP_parallel_loop_nonmonotonic_guided,
9133         GOMP_loop_nonmonotonic_dynamic_start,
9134         GOMP_loop_nonmonotonic_guided_start,
9135         GOMP_loop_nonmonotonic_dynamic_next,
9136         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
9137         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
9138         GOMP_loop_ull_nonmonotonic_guided_start,
9139         GOMP_loop_ull_nonmonotonic_dynamic_next,
9140         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
9141         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
9142         functions.
9143         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
9144         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
9145         Use gomp_map_val function.
9146         (gomp_target_fallback_firstprivate): New static function.
9147         (GOMP_target_41): Renamed to ...
9148         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
9149         arguments.  Move firstprivate fallback handling into a new
9150         function.
9151         (GOMP_target_data_41): Renamed to ...
9152         (GOMP_target_data_ext): ... this.
9153         (GOMP_target_update_41): Renamed to ...
9154         (GOMP_target_update_ext): ... this.
9155         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
9156         gomp_map_0len_lookup instead of gomp_map_lookup.
9157         (omp_target_is_present): Use gomp_map_0len_lookup instead of
9158         gomp_map_lookup.
9159         * testsuite/libgomp.c/target-28.c: Likewise.
9160         * testsuite/libgomp.c/monotonic-1.c: New test.
9161         * testsuite/libgomp.c/monotonic-2.c: New test.
9162         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
9163         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
9164         * testsuite/libgomp.c/pr66199-5.c: New test.
9165         * testsuite/libgomp.c/pr66199-6.c: New test.
9166         * testsuite/libgomp.c/pr66199-7.c: New test.
9167         * testsuite/libgomp.c/pr66199-8.c: New test.
9168         * testsuite/libgomp.c/pr66199-9.c: New test.
9169         * testsuite/libgomp.c/reduction-11.c: New test.
9170         * testsuite/libgomp.c/reduction-12.c: New test.
9171         * testsuite/libgomp.c/reduction-13.c: New test.
9172         * testsuite/libgomp.c/reduction-14.c: New test.
9173         * testsuite/libgomp.c/reduction-15.c: New test.
9174         * testsuite/libgomp.c/target-12.c (main): Adjust for
9175         omp_target_is_present change for one-past-last element.
9176         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
9177         the same var is both mapped and privatized.
9178         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
9179         handling of zero-length array sections.
9180         * testsuite/libgomp.c/target-28.c: New test.
9181         * testsuite/libgomp.c/target-29.c: New test.
9182         * testsuite/libgomp.c/target-30.c: New test.
9183         * testsuite/libgomp.c/target-teams-1.c: New test.
9184         * testsuite/libgomp.c++/member-6.C: New test.
9185         * testsuite/libgomp.c++/member-7.C: New test.
9186         * testsuite/libgomp.c++/monotonic-1.C: New test.
9187         * testsuite/libgomp.c++/monotonic-2.C: New test.
9188         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
9189         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
9190         * testsuite/libgomp.c++/pr66199-3.C: New test.
9191         * testsuite/libgomp.c++/pr66199-4.C: New test.
9192         * testsuite/libgomp.c++/pr66199-5.C: New test.
9193         * testsuite/libgomp.c++/pr66199-6.C: New test.
9194         * testsuite/libgomp.c++/pr66199-7.C: New test.
9195         * testsuite/libgomp.c++/pr66199-8.C: New test.
9196         * testsuite/libgomp.c++/pr66199-9.C: New test.
9197         * testsuite/libgomp.c++/reduction-11.C: New test.
9198         * testsuite/libgomp.c++/reduction-12.C: New test.
9199         * testsuite/libgomp.c++/target-13.C: New test.
9200         * testsuite/libgomp.c++/target-14.C: New test.
9201         * testsuite/libgomp.c++/target-15.C: New test.
9202         * testsuite/libgomp.c++/target-16.C: New test.
9203         * testsuite/libgomp.c++/target-17.C: New test.
9204         * testsuite/libgomp.c++/target-18.C: New test.
9205         * testsuite/libgomp.c++/target-19.C: New test.
9207 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
9209         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
9210         and reduction copy.
9211         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
9212         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
9213         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
9214         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9215         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
9216         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
9217         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
9218         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
9219         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
9220         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
9221         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
9222         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
9223         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
9224         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
9226 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
9228         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
9229         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
9230         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
9231         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
9232         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
9233         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
9234         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
9235         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
9237 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
9239         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
9240         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
9241         (GOMP_OFFLOAD_openacc_parallel): Likewise.
9242         * oacc-host.c (host_openacc_exec): Likewise.
9243         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
9245 2015-11-03  Julian Brown  <julian@codesourcery.com>
9246             Thomas Schwinge  <thomas@codesourcery.com>
9248         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
9249         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
9250         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
9251         Likewise.
9252         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
9253         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
9255 2015-11-03  James Norris  <jnorris@codesourcery.com>
9257         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
9258         file.
9259         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
9260         Likewise.
9261         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
9262         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
9263         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
9264         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
9265         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
9267 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
9269         * openacc.h (enum acc_device_t): Reformat. Ensure layout
9270         compatibility.
9271         (enum acc_async_t): Reformat.
9272         (acc_on_device): Declare compatible with builtin and provide C++
9273         wrapper.
9274         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
9276 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
9277             Cesar Philippidis  <cesar@codesourcery.com>
9279         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
9280         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
9281         ... this.  Add a description of the test at the top of the file.
9282         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
9283         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
9284         ... this.  Add a description of the test at the top of the file.
9286 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
9288         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
9289         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
9290         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
9291         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
9292         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
9293         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
9295 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
9297         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
9298         dimensions.
9300 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
9302         PR testsuite/68063
9303         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
9305 2015-10-27  James Norris  <jnorris@codesourcery.com>
9307         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
9308         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
9310 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
9312         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
9313         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
9315         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
9316         acc_device_nvidia usage.
9317         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
9318         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
9319         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
9321         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
9322         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
9324         PR libgomp/66518
9325         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
9327         PR libgomp/65437
9328         PR libgomp/66518
9329         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
9330         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
9332 2015-10-23  Tom de Vries  <tom@codesourcery.com>
9334         PR testsuite/68063
9335         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
9337 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
9339         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
9340         vector_length.
9341         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
9343 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
9344             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
9346         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
9347         to 0 when mapnum is 0.
9349 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9351         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
9352         Cast to int from int32_t.
9354 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
9355             Aldy Hernandez  <aldyh@redhat.com>
9356             Ilya Verbin  <ilya.verbin@intel.com>
9358         * config/linux/affinity.c (omp_get_place_num_procs,
9359         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
9360         * config/linux/doacross.h: New file.
9361         * config/posix/affinity.c (omp_get_place_num_procs,
9362         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
9363         * config/posix/doacross.h: New file.
9364         * env.c: Include gomp-constants.h.
9365         (struct gomp_task_icv): Rename run_sched_modifier to
9366         run_sched_chunk_size.
9367         (gomp_max_task_priority_var): New variable.
9368         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
9369         (handle_omp_display_env): Change _OPENMP value from 201307 to
9370         201511.  Print OMP_MAX_TASK_PRIORITY.
9371         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
9372         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
9373         chunk_size and run_sched_modifier to run_sched_chunk_size.
9374         (omp_get_max_task_priority, omp_get_initial_device,
9375         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
9376         omp_get_partition_place_nums): New functions.
9377         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
9378         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
9379         to chunk_size.
9380         (omp_get_num_places_, omp_get_place_num_procs_,
9381         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
9382         omp_get_place_proc_ids_8_, omp_get_place_num_,
9383         omp_get_partition_num_places_, omp_get_partition_place_nums_,
9384         omp_get_partition_place_nums_8_, omp_get_initial_device_,
9385         omp_get_max_task_priority_): New functions.
9386         * libgomp_g.h (GOMP_loop_doacross_static_start,
9387         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
9388         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
9389         GOMP_loop_ull_doacross_dynamic_start,
9390         GOMP_loop_ull_doacross_guided_start,
9391         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
9392         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
9393         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
9394         GOMP_target_data_41, GOMP_target_update_41,
9395         GOMP_target_enter_exit_data): New prototypes.
9396         (GOMP_task): Add prototype argument.
9397         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
9398         (struct gomp_doacross_work_share): New type.
9399         (struct gomp_work_share): Add doacross field.
9400         (struct gomp_task_icv): Rename run_sched_modifier to
9401         run_sched_chunk_size.
9402         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
9403         GOMP_TASK_UNDEFERRED.  Add comments.
9404         (struct gomp_task_depend_entry): Add comments.
9405         (struct gomp_task): Likewise.
9406         (struct gomp_taskgroup): Likewise.
9407         (struct gomp_target_task): New type.
9408         (struct gomp_team): Add comment.
9409         (gomp_get_place_proc_ids_8, gomp_doacross_init,
9410         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
9411         gomp_create_target_task, gomp_target_task_fn): New prototypes.
9412         (struct target_var_desc): New type.
9413         (struct target_mem_desc): Adjust comment.  Use struct
9414         target_var_desc instead of splay_tree_key for list.
9415         (REFCOUNT_INFINITY): Define.
9416         (struct splay_tree_key_s): Remove copy_from field.
9417         (struct gomp_device_descr): Add dev2dev_func field.
9418         (enum gomp_map_vars_kind): New enum.
9419         (gomp_map_vars): Add one argument.
9420         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
9421         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
9422         omp_get_place_num_procs, omp_get_place_num_procs_,
9423         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
9424         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
9425         omp_get_place_num_, omp_get_partition_num_places,
9426         omp_get_partition_num_places_, omp_get_partition_place_nums,
9427         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
9428         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
9429         omp_target_free, omp_target_is_present, omp_target_memcpy,
9430         omp_target_memcpy_rect, omp_target_associate_ptr and
9431         omp_target_disassociate_ptr.
9432         (GOMP_4.0.2): Renamed to ...
9433         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
9434         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
9435         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
9436         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
9437         GOMP_loop_doacross_static_start, GOMP_doacross_post,
9438         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
9439         GOMP_loop_ull_doacross_guided_start,
9440         GOMP_loop_ull_doacross_runtime_start,
9441         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
9442         GOMP_doacross_ull_wait.
9443         * libgomp.texi: Document omp_get_max_task_priority.
9444         Rename modifier argument to chunk_size for omp_set_schedule and
9445         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
9446         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
9447         to run_sched_chunk_size renaming.
9448         (GOMP_loop_ordered_runtime_start): Likewise.
9449         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
9450         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
9451         GOMP_parallel_loop_runtime_start): New functions.
9452         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
9453         to run_sched_chunk_size renaming.
9454         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
9455         GOMP_loop_doacross_guided_start): New functions or aliases.
9456         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
9457         run_sched_modifier to run_sched_chunk_size renaming.
9458         (GOMP_loop_ull_ordered_runtime_start): Likewise.
9459         (gomp_loop_ull_doacross_static_start,
9460         gomp_loop_ull_doacross_dynamic_start,
9461         gomp_loop_ull_doacross_guided_start,
9462         GOMP_loop_ull_doacross_runtime_start): New functions.
9463         (GOMP_loop_ull_doacross_static_start,
9464         GOMP_loop_ull_doacross_dynamic_start,
9465         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
9466         * oacc-mem.c (acc_map_data, present_create_copy,
9467         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
9468         to gomp_map_vars.
9469         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
9470         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
9471         instead of false to gomp_map_vars.
9472         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
9473         * omp.h.in (omp_lock_hint_t): New type.
9474         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
9475         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
9476         omp_get_place_num, omp_get_partition_num_places,
9477         omp_get_partition_place_nums, omp_get_initial_device,
9478         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
9479         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
9480         omp_target_associate_ptr, omp_target_disassociate_ptr): New
9481         prototypes.
9482         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
9483         (omp_lock_hint_none, omp_lock_hint_uncontended,
9484         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
9485         omp_lock_hint_speculative): New parameters.
9486         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
9487         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
9488         omp_get_place_num, omp_get_partition_num_places,
9489         omp_get_partition_place_nums, omp_get_initial_device,
9490         omp_get_max_task_priority): New interfaces.
9491         (omp_set_schedule, omp_get_schedule): Rename modifier argument
9492         to chunk_size.
9493         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
9494         (omp_lock_hint_none, omp_lock_hint_uncontended,
9495         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
9496         omp_lock_hint_speculative): New parameters.
9497         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
9498         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
9499         omp_get_place_num, omp_get_partition_num_places,
9500         omp_get_partition_place_nums, omp_get_initial_device,
9501         omp_get_max_task_priority): New functions and subroutines.
9502         * ordered.c: Include stdarg.h and string.h.
9503         (MAX_COLLAPSED_BITS): Define.
9504         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
9505         gomp_doacross_ull_init, GOMP_doacross_ull_post,
9506         GOMP_doacross_ull_wait): New functions.
9507         * target.c: Include errno.h.
9508         (resolve_device): If device is not initialized, call
9509         gomp_init_device on it.
9510         (gomp_map_lookup): New function.
9511         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
9512         Don't bump refcount if REFCOUNT_INFINITY.  Handle
9513         GOMP_MAP_ALWAYS_TO_P.
9514         (get_kind): Rename is_openacc argument to short_mapkind.
9515         (gomp_map_pointer): Use gomp_map_lookup.
9516         (gomp_map_fields_existing): New function.
9517         (gomp_map_vars): Rename is_openacc argument to short_mapkind
9518         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
9519         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
9520         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
9521         Adjust for tgt->list changed type and copy_from living in there.
9522         (gomp_copy_from_async): Adjust for tgt->list changed type and
9523         copy_from living in there.
9524         (gomp_unmap_vars): Likewise.
9525         (gomp_update): Likewise.  Rename is_openacc argument to
9526         short_mapkind.  Don't fail if object is not mapped.
9527         (gomp_load_image_to_device): Initialize refcount to
9528         REFCOUNT_INFINITY.
9529         (gomp_target_fallback): New function.
9530         (gomp_get_target_fn_addr): Likewise.
9531         (GOMP_target): Adjust gomp_map_vars caller, use
9532         gomp_get_target_fn_addr and gomp_target_fallback.
9533         (GOMP_target_41): New function.
9534         (gomp_target_data_fallback): New function.
9535         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
9536         (GOMP_target_data_41): New function.
9537         (GOMP_target_update): Adjust gomp_update caller.
9538         (GOMP_target_update_41): New function.
9539         (gomp_exit_data, GOMP_target_enter_exit_data,
9540         gomp_target_task_fn, omp_target_alloc, omp_target_free,
9541         omp_target_is_present, omp_target_memcpy,
9542         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
9543         omp_target_associate_ptr, omp_target_disassociate_ptr,
9544         gomp_load_plugin_for_device): New functions.
9545         * task.c: Include gomp-constants.h.  Include taskloop.c
9546         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
9547         (gomp_task_handle_depend): New function.
9548         (GOMP_task): Use it.  Add priority argument.  Use
9549         gomp-constant.h constants instead of hardcoded numbers.
9550         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
9551         (gomp_create_target_task): New function.
9552         (verify_children_queue, verify_taskgroup_queue,
9553         verify_task_queue): New functions.
9554         (gomp_task_run_pre): Call verify_*_queue functions.
9555         If an upcoming tied task is about to leave the sibling or
9556         taskgroup queues in an invalid state, adjust appropriately.
9557         Remove taskgroup argument.  Add comments.
9558         (gomp_task_run_post_handle_dependers): Add comments.
9559         (gomp_task_run_post_remove_parent): Likewise.
9560         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
9561         (GOMP_taskwait): Likewise.  Add comments.
9562         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
9563         problem such that the first non parent_depends_on task does not
9564         end up at the end of the children queue.
9565         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
9566         GOMP_TASK_UNDEFERRED.
9567         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
9568         * taskloop.c: New file.
9569         * testsuite/lib/libgomp.exp
9570         (check_effective_target_offload_device_nonshared_as): New proc.
9571         * testsuite/libgomp.c/affinity-2.c: New test.
9572         * testsuite/libgomp.c/doacross-1.c: New test.
9573         * testsuite/libgomp.c/doacross-2.c: New test.
9574         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
9575         Add map clause to target.
9576         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
9577         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
9578         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
9579         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
9580         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
9581         Likewise.
9582         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
9583         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
9584         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
9585         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
9586         not defined.  Use those where needed.
9587         * testsuite/libgomp.c/for-4.c: New test.
9588         * testsuite/libgomp.c/for-5.c: New test.
9589         * testsuite/libgomp.c/for-6.c: New test.
9590         * testsuite/libgomp.c/linear-1.c: New test.
9591         * testsuite/libgomp.c/ordered-4.c: New test.
9592         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
9593         only allowed on the loop iterator.
9594         * testsuite/libgomp.c/pr66199-3.c: New test.
9595         * testsuite/libgomp.c/pr66199-4.c: New test.
9596         * testsuite/libgomp.c/reduction-7.c: New test.
9597         * testsuite/libgomp.c/reduction-8.c: New test.
9598         * testsuite/libgomp.c/reduction-9.c: New test.
9599         * testsuite/libgomp.c/reduction-10.c: New test.
9600         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
9601         map(tofrom:s).
9602         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
9603         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
9604         * testsuite/libgomp.c/target-11.c: New test.
9605         * testsuite/libgomp.c/target-12.c: New test.
9606         * testsuite/libgomp.c/target-13.c: New test.
9607         * testsuite/libgomp.c/target-14.c: New test.
9608         * testsuite/libgomp.c/target-15.c: New test.
9609         * testsuite/libgomp.c/target-16.c: New test.
9610         * testsuite/libgomp.c/target-17.c: New test.
9611         * testsuite/libgomp.c/target-18.c: New test.
9612         * testsuite/libgomp.c/target-19.c: New test.
9613         * testsuite/libgomp.c/target-20.c: New test.
9614         * testsuite/libgomp.c/target-21.c: New test.
9615         * testsuite/libgomp.c/target-22.c: New test.
9616         * testsuite/libgomp.c/target-23.c: New test.
9617         * testsuite/libgomp.c/target-24.c: New test.
9618         * testsuite/libgomp.c/target-25.c: New test.
9619         * testsuite/libgomp.c/target-26.c: New test.
9620         * testsuite/libgomp.c/target-27.c: New test.
9621         * testsuite/libgomp.c/taskloop-1.c: New test.
9622         * testsuite/libgomp.c/taskloop-2.c: New test.
9623         * testsuite/libgomp.c/taskloop-3.c: New test.
9624         * testsuite/libgomp.c/taskloop-4.c: New test.
9625         * testsuite/libgomp.c++/ctor-13.C: New test.
9626         * testsuite/libgomp.c++/doacross-1.C: New test.
9627         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
9628         Replace offload_device with offload_device_nonshared_as.
9629         * testsuite/libgomp.c++/for-12.C: New test.
9630         * testsuite/libgomp.c++/for-13.C: New test.
9631         * testsuite/libgomp.c++/for-14.C: New test.
9632         * testsuite/libgomp.c++/linear-1.C: New test.
9633         * testsuite/libgomp.c++/member-1.C: New test.
9634         * testsuite/libgomp.c++/member-2.C: New test.
9635         * testsuite/libgomp.c++/member-3.C: New test.
9636         * testsuite/libgomp.c++/member-4.C: New test.
9637         * testsuite/libgomp.c++/member-5.C: New test.
9638         * testsuite/libgomp.c++/ordered-1.C: New test.
9639         * testsuite/libgomp.c++/reduction-5.C: New test.
9640         * testsuite/libgomp.c++/reduction-6.C: New test.
9641         * testsuite/libgomp.c++/reduction-7.C: New test.
9642         * testsuite/libgomp.c++/reduction-8.C: New test.
9643         * testsuite/libgomp.c++/reduction-9.C: New test.
9644         * testsuite/libgomp.c++/reduction-10.C: New test.
9645         * testsuite/libgomp.c++/reference-1.C: New test.
9646         * testsuite/libgomp.c++/simd14.C: New test.
9647         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
9648         * testsuite/libgomp.c++/target-5.C: New test.
9649         * testsuite/libgomp.c++/target-6.C: New test.
9650         * testsuite/libgomp.c++/target-7.C: New test.
9651         * testsuite/libgomp.c++/target-8.C: New test.
9652         * testsuite/libgomp.c++/target-9.C: New test.
9653         * testsuite/libgomp.c++/target-10.C: New test.
9654         * testsuite/libgomp.c++/target-11.C: New test.
9655         * testsuite/libgomp.c++/target-12.C: New test.
9656         * testsuite/libgomp.c++/taskloop-1.C: New test.
9657         * testsuite/libgomp.c++/taskloop-2.C: New test.
9658         * testsuite/libgomp.c++/taskloop-3.C: New test.
9659         * testsuite/libgomp.c++/taskloop-4.C: New test.
9660         * testsuite/libgomp.c++/taskloop-5.C: New test.
9661         * testsuite/libgomp.c++/taskloop-6.C: New test.
9662         * testsuite/libgomp.c++/taskloop-7.C: New test.
9663         * testsuite/libgomp.c++/taskloop-8.C: New test.
9664         * testsuite/libgomp.c++/taskloop-9.C: New test.
9665         * testsuite/libgomp.fortran/affinity1.f90: New test.
9666         * testsuite/libgomp.fortran/affinity2.f90: New test.
9668 2015-10-13  Tom de Vries  <tom@codesourcery.com>
9670         PR tree-optimization/67476
9671         * testsuite/libgomp.c/autopar-3.c: New test.
9672         * testsuite/libgomp.c/autopar-4.c: New test.
9673         * testsuite/libgomp.c/autopar-5.c: New test.
9674         * testsuite/libgomp.c/autopar-6.c: New test.
9675         * testsuite/libgomp.c/autopar-7.c: New test.
9676         * testsuite/libgomp.c/autopar-8.c: New test.
9678 2015-10-12  James Norris  <jnorris@codesourcery.com>
9680         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
9681         initializer.
9683 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
9685         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
9686         using load_gcc_lib.
9688 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
9690         * oacc-ptx.h: Remove file, moving its content into...
9691         * config/nvptx/fortran.c: ... here...
9692         * config/nvptx/oacc-init.c: ..., here...
9693         * config/nvptx/oacc-parallel.c: ..., and here.
9694         * config/nvptx/openacc.f90: New file.
9695         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
9696         (link_ptx): Don't link in predefined bits of PTX code.
9698 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
9699             Bernd Schmidt <bernds@codesourcery.com>
9701         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
9702         (struct targ_ptx_obj): New.
9703         (nvptx_tdata): Move earlier, change data format.
9704         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
9705         objects.
9706         (GOMP_OFFLOAD_load_image): Adjust.
9708 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
9710         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
9711         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
9712         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
9713         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
9714         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9715         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
9716         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
9717         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
9718         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
9719         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
9720         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9721         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
9722         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
9723         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
9724         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
9725         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
9726         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
9727         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
9728         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
9729         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
9730         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
9731         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
9732         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
9733         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
9734         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
9735         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
9736         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
9737         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
9738         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
9739         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
9740         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
9741         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
9742         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
9743         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
9744         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
9745         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
9746         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
9747         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
9748         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
9749         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
9750         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
9751         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
9752         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
9753         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
9754         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
9755         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
9756         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
9757         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
9758         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
9759         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
9760         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
9761         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
9762         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
9763         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
9764         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
9765         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9766         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9767         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
9768         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
9769         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
9770         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
9771         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
9772         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9774 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
9776         * oacc-init.c (acc_on_device): Force optimization level.
9778 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
9780         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
9781         (cuda_errlist): Delete.
9782         (cuda_error): Reimplement.
9784 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
9786         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
9787         array.
9788         * libgomp.map (GOACC_parallel_keyed): New.
9789         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
9790         all callers.
9791         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
9792         and take keyed varargs list.  Adjust call to exec_func.
9793         (GOACC_parallel): Force host fallback.
9794         * libgomp_g.h (GOACC_parallel): Remove.
9795         (GOACC_parallel_keyed): Declare.
9796         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
9797         (struct targ_gn_descriptor): Replace name field with launch field.
9798         (nvptx_exec): Lose separate geometry args, take array.  Process
9799         dynamic dimensions and adjust.
9800         (struct nvptx_tdata): Replace fn_names field with fn_descs.
9801         (GOMP_OFFLOAD_load_image): Adjust for change in function table
9802         data.
9803         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
9804         passing.
9805         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
9806         passing.
9808 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
9810         PR libgomp/67141
9811         * oacc-int.h (goacc_host_init): Add declaration.
9812         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
9813         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
9815 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
9816             Sebastian Pop  <s.pop@samsung.com>
9818         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
9819         match o/p.
9820         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
9821         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
9822         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
9823         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
9824         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
9826 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
9828         * configure.tgt: Add missing ;; in between nvptx and rtems
9829         snippets.
9831 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9833         * config/posix/pool.h (gomp_adjust_thread_attr): New.
9834         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
9835         (gomp_thread_pool_reservoir): Add priority member.
9836         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
9837         priority.
9838         (parse_thread_pools): Likewise.
9839         * team.c (gomp_team_start): Call configuration provided
9840         gomp_adjust_thread_attr(). Destroy thread attributes if
9841         necessary.
9842         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
9844 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9846         * config/posix/pool.h: New.
9847         * config/rtems/pool.h: Likewise.
9848         * config/rtems/proc.c: Likewise.
9849         * libgomp.h (gomp_thread_destructor): Declare.
9850         * team.c: Include configuration provided "pool.h".
9851         (gomp_get_thread_pool): Define in configuration.
9852         (gomp_team_end): Call configuration defined
9853         gomp_release_thread_pool().
9855 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9857         * config/rtems/bar.c: New.
9858         * config/rtems/bar.h: Likewise.
9859         * config/rtems/mutex.c: Likewise.
9860         * config/rtems/mutex.h: Likewise.
9861         * config/rtems/sem.c: Likewise.
9862         * config/rtems/sem.h: Likewise.
9863         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
9864         <sys/lock.h> header file.
9865         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
9866         supported by Newlib.
9867         * configure: Regenerate.
9869 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9871         * team.c (gomp_new_thread_pool): Delete and move content to ...
9872         (gomp_get_thread_pool): ... new function.  Allocate and
9873         initialize thread pool on demand.
9874         (get_last_team): Use gomp_get_thread_pool().
9875         (gomp_team_start): Delete thread pool initialization.
9877 2015-09-03  Tom de Vries  <tom@codesourcery.com>
9879         PR tree-optimization/65637
9880         * testsuite/libgomp.c/autopar-2.c: New test.
9882 2015-08-29  Tom de Vries  <tom@codesourcery.com>
9884         PR tree-optimization/46193
9885         * testsuite/libgomp.c/pr46193.c: New test.
9887 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
9889         libgomp/
9890         * libgomp.map: Add 4.0.2 version.
9891         * target.c (offload_image_descr): Add version field.
9892         (gomp_load_image_to_device): Add version argument.  Adjust plugin
9893         call.  Improve load mismatch diagnostic.
9894         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
9895         call.
9896         (GOMP_offload_regster): Make stub function, move bulk to ...
9897         (GOMP_offload_register_ver): ... here.  Process version argument.
9898         (GOMP_offload_unregister): Make stub function, move bulk to ...
9899         (GOMP_offload_unregister_ver): ... here.  Process version argument.
9900         (gomp_init_device): Process version field.
9901         (gomp_unload_device): Process version field.
9902         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
9903         macros.  Check plugin version.
9904         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
9905         loader and unloader types.
9906         * oacc-host.c: Include gomp-constants.h.
9907         (host_version): New.
9908         (host_load_image, host_unload_image): Adjust.
9909         (host_dispatch): Add host_version.
9910         * plugin/plugin-nvptx.c: Include gomp-constants.h.
9911         (GOMP_OFFLOAD_version): New.
9912         (GOMP_OFFLOAD_load_image): Add version arg and check it.
9913         (GOMP_OFFLOAD_unload_image): Likewise.
9914         * plugin/plugin-host.c: Include gomp-constants.h.
9915         (GOMP_OFFLOAD_version): New.
9916         (GOMP_OFFLOAD_load_image): Add version arg.
9917         (GOMP_OFFLOAD_unload_image): Likewise.
9919 2015-08-24  Tom de Vries  <tom@codesourcery.com>
9921         PR tree-optimization/65468
9922         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
9924 2015-08-24  Tom de Vries  <tom@codesourcery.com>
9926         PR tree-optimization/65468
9927         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
9929 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
9931         PR libgomp/66761
9932         PR libgomp/67303
9933         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
9934         (gomp_iter_guided_next): Idem.
9935         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
9936         (gomp_iter_ull_guided_next): Idem.
9937         * config/linux/wait.h (do_spin): Idem.
9939 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
9941         * libgomp-plugin.h (enum offload_target_type): Remove
9942         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
9943         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
9944         * openacc.h (enum acc_device_t): Likewise.
9945         * openacc_lib.h: Likewise.
9946         * oacc-init.c (name_of_acc_device_t): Don't handle it.
9947         (acc_on_device): Just use __builtin_acc_on_device.
9948         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
9949         of acc_on_device builtin.
9950         * plugin/plugin-host.h: Remove file.
9951         * plugin/plugin-host.c: Likewise, but salvage some content into...
9952         * oacc-host.c: ... this file.
9953         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
9954         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
9955         * Makefile.in: Regenerate.
9956         * configure: Likewise.
9957         * testsuite/lib/libgomp.exp
9958         (check_effective_target_openacc_host_nonshm_selected): Remove.
9959         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
9960         ACC_DEVICE_TYPE=host_nonshm.
9961         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9962         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9963         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
9964         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
9965         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
9966         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
9968 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
9969             Jakub Jelinek  <jakub@redhat.com>
9971         * config/nvptx/affinity.c: New file.
9972         * config/nvptx/alloc.c: Likewise.
9973         * config/nvptx/bar.c: Likewise.
9974         * config/nvptx/barrier.c: Likewise.
9975         * config/nvptx/critical.c: Likewise.
9976         * config/nvptx/env.c: Likewise.
9977         * config/nvptx/error.c: Likewise.
9978         * config/nvptx/fortran.c: Likewise.
9979         * config/nvptx/iter.c: Likewise.
9980         * config/nvptx/iter_ull.c: Likewise.
9981         * config/nvptx/libgomp-plugin.c: Likewise.
9982         * config/nvptx/lock.c: Likewise.
9983         * config/nvptx/loop.c: Likewise.
9984         * config/nvptx/loop_ull.c: Likewise.
9985         * config/nvptx/mutex.c: Likewise.
9986         * config/nvptx/oacc-async.c: Likewise.
9987         * config/nvptx/oacc-cuda.c: Likewise.
9988         * config/nvptx/oacc-host.c: Likewise.
9989         * config/nvptx/oacc-init.c: Likewise.
9990         * config/nvptx/oacc-mem.c: Likewise.
9991         * config/nvptx/oacc-parallel.c: Likewise.
9992         * config/nvptx/oacc-plugin.c: Likewise.
9993         * config/nvptx/omp-lock.h: Likewise.
9994         * config/nvptx/ordered.c: Likewise.
9995         * config/nvptx/parallel.c: Likewise.
9996         * config/nvptx/proc.c: Likewise.
9997         * config/nvptx/ptrlock.c: Likewise.
9998         * config/nvptx/sections.c: Likewise.
9999         * config/nvptx/sem.c: Likewise.
10000         * config/nvptx/single.c: Likewise.
10001         * config/nvptx/splay-tree.c: Likewise.
10002         * config/nvptx/target.c: Likewise.
10003         * config/nvptx/task.c: Likewise.
10004         * config/nvptx/team.c: Likewise.
10005         * config/nvptx/time.c: Likewise.
10006         * config/nvptx/work.c: Likewise.
10007         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
10008         * configure: Regenerate.
10009         * configure.tgt (config_path): Set to "nvptx" for target
10010         nvptx*-*-*.
10012 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
10014         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
10016 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
10018         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
10019         (cuda_errlist): Constify.
10020         (errmsg):  Move into ...
10021         (cuda_error): ... here.  Make smaller.
10022         (_XSTR, _STR): Delete.
10023         (cuda_synames): Delete.
10024         (verify_device_library): Delete.
10025         (nvptx_init): Don't call it.
10027 2015-07-28  Tom de Vries  <tom@codesourcery.com>
10029         * testsuite/libgomp.c/uns-outer-4.c: New test.
10031 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
10033         * testsuite/libgomp.c/pr66714.c: New test.
10035 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10037         PR libgomp/66950
10038         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
10039         (fib_ref): New function.
10040         (fib): Correct corner cases in the recursion.
10041         (main): Replace the non-simd loop with fib_ref call.
10042         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
10043         subroutine.
10044         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
10045         for the last array element value.  Replace the non-simd loop with
10046         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
10047         of the last array element with according Fibonacci sequence element.
10048         (fib): Correct corner cases in the recursion.
10050 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
10052         * target.c (gomp_offload_image_to_device): Rename to ...
10053         (gomp_load_image_to_device): ... here.
10054         (GOMP_offload_register): Adjust call.
10055         (gomp_init_device): Likewise.
10056         (gomp_unload_image_from_device): New.  Broken out of ...
10057         (GOMP_offload_unregister): ... here.  Call it.
10058         (gomp_unload_device): New.
10059         * libgomp.h (gomp_unload_device): Declare.
10060         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
10061         mem maps.
10063 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
10065         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
10066         wait=-specific if.
10067         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
10068         !=0 condition.
10069         (goacc_waits): Move !num_waits handling to ...
10070         (GOACC_wait): ... here, the only caller that might have zero waits.
10072         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
10073         (struct ptx_image_data): Move earlier, add fns field.
10074         (struct ptx_device): Add images and image_lock fields.
10075         (ptx_images, ptx_image_lock): Delete.
10076         (nvptx_open_device): Initialize images and image_lock fields.
10077         (nvptx_close_device): Destroy image_lock.
10078         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
10079         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
10080         fields.
10082 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
10084         * target.c (GOMP_offload_register): Use int for device type arg.
10085         (GOMP_offload_unregister): Likewise.
10087         * target.c (struct_offload_image_descr): Constify host_table.
10088         (gomp_offload_image_to_device): Likewise.
10089         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
10091         * libgomp.h (gomp_device_descr): Constify target data arguments.
10092         * target.c (struct offload_image_descr): Constify target_data.
10093         (gomp_offload_image_to_device): Likewise.
10094         (GOMP_offload_register): Likewise.
10095         (GOMP_offload_unregister): Likewise.
10096         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
10097         GOMP_OFFLOAD_unload_image): Constify target data.
10098         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
10099         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
10101 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
10103         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
10104         Workaround driver library const error.
10105         (struct nvptx_tdata, nvptx_tdata_t): New.
10106         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
10107         type.
10109 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10111         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
10112         of EPS parameter from integer to real.
10113         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
10114         type of EPS parameter from integer to real.
10116 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10118         * team.c (get_last_team): New.
10119         (gomp_new_team): Recycle last non-nested team if possible.
10120         (gomp_team_end): Move team work share list free lock destruction
10121         to ...
10122         (free_team): ... here.
10124 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10126         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
10127         and ref from int to double.  Replaced their comparison with
10128         an inequality of their difference and EPS.
10129         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
10130         comparison of pri and a reference number with an inequality of their
10131         difference and EPS.
10132         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
10133         the comparison of sum and sum_ref with an inequality of their
10134         difference and EPS.
10135         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
10136         the comparison of pri and a reference number with an inequality of
10137         their difference and EPS.
10139 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
10141         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
10142         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
10143         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
10144         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
10145         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
10146         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
10147         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
10148         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
10149         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
10150         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
10151         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
10152         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
10153         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
10154         variables.
10155         (vec_mult): Likewise.  Add #pragma omp taskwait.
10156         (main): Adjust caller.
10157         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
10158         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
10159         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
10160         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
10161         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
10162         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
10163         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
10164         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
10165         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
10166         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
10167         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
10168         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
10169         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
10170         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
10171         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
10172         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
10173         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
10174         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
10175         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
10176         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
10177         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
10178         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
10179         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
10180         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
10181         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
10182         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
10183         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
10184         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
10185         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
10186         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
10187         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
10188         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
10189         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
10190         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
10191         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
10192         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
10193         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
10194         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
10195         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
10196         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
10197         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
10198         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
10199         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
10200         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
10201         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
10202         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
10203         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
10204         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
10205         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
10206         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
10207         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
10208         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
10209         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
10210         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
10211         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
10212         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
10213         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
10214         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
10215         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
10216         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
10217         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
10218         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
10219         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
10220         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
10221         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
10222         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
10223         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
10224         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
10225         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
10226         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
10227         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
10228         (vec_mult): Add !$omp taskwait.
10229         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
10230         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
10231         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
10232         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
10233         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
10234         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
10235         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
10236         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
10237         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
10238         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
10239         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
10240         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
10241         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
10242         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
10243         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
10244         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
10245         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
10246         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
10247         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
10248         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
10249         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
10250         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
10251         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
10252         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
10253         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
10254         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
10255         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
10256         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
10257         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
10258         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
10259         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
10260         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
10261         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
10262         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
10263         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
10264         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
10265         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
10266         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
10267         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
10268         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
10269         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
10270         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
10271         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
10272         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
10273         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
10274         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
10275         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
10276         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
10277         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
10278         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
10279         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
10280         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
10281         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
10282         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
10283         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
10284         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
10285         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
10286         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
10287         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
10288         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
10289         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
10290         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
10291         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
10292         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
10293         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
10294         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
10295         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
10297 2015-07-10  Tom de Vries  <tom@codesourcery.com>
10299         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
10300         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
10302 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
10304         PR libgomp/65099
10305         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
10306         in a 64-bit configuration.
10307         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
10308         offloading testing if no such device is available.
10309         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10310         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10312 2015-07-08  Tom de Vries  <tom@codesourcery.com>
10314         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
10315         second call to f.
10316         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10318 2015-07-07  Tom de Vries  <tom@codesourcery.com>
10320         PR tree-optimization/66642
10321         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
10322         iteration count case.
10323         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
10324         function, factor out of ...
10325         (main): ... here.  Test low iteration count case.
10327 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10329         * libgomp.h (gomp_thread_pool): Comment last_team field.
10331 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
10333         * testsuite/libgomp.c++/pr66702-1.C: Require
10334         vect_simd_clones effective target.
10335         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
10337 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10339         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
10340         already set.  Use DEFAULT_CFLAGS in dg-runtest.
10341         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
10342         "-O2".
10344 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10346         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
10347         already set.  Use DEFAULT_CFLAGS in dg-runtest.
10348         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
10349         * testsuite/libgomp.c++/pr64824.C: Same.
10350         * testsuite/libgomp.c++/pr64868.C: Same.
10351         * testsuite/libgomp.c++/pr66199-1.C: Same.
10352         * testsuite/libgomp.c++/pr66199-2.C: Same.
10353         * testsuite/libgomp.c++/target-2.C: Same.
10354         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
10355         -std=<standard> option.
10356         * testsuite/libgomp.c++/udr-11.C: Same.
10357         * testsuite/libgomp.c++/udr-12.C: Same.
10358         * testsuite/libgomp.c++/udr-13.C: Same.
10359         * testsuite/libgomp.c++/udr-14.C: Same.
10360         * testsuite/libgomp.c++/udr-15.C: Same.
10361         * testsuite/libgomp.c++/udr-16.C: Same.
10362         * testsuite/libgomp.c++/udr-17.C: Same.
10363         * testsuite/libgomp.c++/udr-18.C: Same.
10364         * testsuite/libgomp.c++/udr-19.C: Same.
10365         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
10366         * testsuite/libgomp.c++/simd-1.C: Same.
10367         * testsuite/libgomp.c++/simd-2.C: Same.
10368         * testsuite/libgomp.c++/simd-3.C: Same.
10369         * testsuite/libgomp.c++/simd-4.C: Same.
10370         * testsuite/libgomp.c++/simd-5.C: Same.
10371         * testsuite/libgomp.c++/simd-6.C: Same.
10372         * testsuite/libgomp.c++/simd-7.C: Same.
10373         * testsuite/libgomp.c++/simd-8.C: Same.
10374         * testsuite/libgomp.c++/simd-9.C: Same.
10375         * testsuite/libgomp.c++/simd10.C: Same.
10376         * testsuite/libgomp.c++/simd11.C: Same.
10377         * testsuite/libgomp.c++/simd12.C: Same.
10378         * testsuite/libgomp.c++/simd13.C: Same.
10380 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
10382         PR middle-end/66702
10383         * testsuite/libgomp.c++/pr66702-1.C: New test.
10384         * testsuite/libgomp.c++/pr66702-2.C: New test.
10386 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10388         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
10389         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
10390         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
10391         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
10393 2015-06-30  Tom de Vries  <tom@codesourcery.com>
10395         PR tree-optimization/66652
10396         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
10397         using restrict pointers.
10398         (main): Add arguments to calls to f.
10399         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10401 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
10403         * configure.ac: Fix check for header <sys/sysctl.h>.
10404         * configure: Regenerate.
10405         * config.h.in: Likewise.
10407 2015-06-23  Tom de Vries  <tom@codesourcery.com>
10409         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
10410         abort.
10411         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
10413 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
10415         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
10416         acc_device_nvidia.
10418         PR libgomp/66518
10419         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
10420         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10422 2015-06-15  Tom de Vries  <tom@codesourcery.com>
10424         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
10425         dg-additional-options for any remaining options.
10426         * testsuite/libgomp.c/atomic-2.c: Same.
10427         * testsuite/libgomp.c/atomic-4.c: Same.
10428         * testsuite/libgomp.c/atomic-5.c: Same.
10429         * testsuite/libgomp.c/atomic-6.c: Same.
10430         * testsuite/libgomp.c/autopar-1.c: Same.
10431         * testsuite/libgomp.c/copyin-1.c: Same.
10432         * testsuite/libgomp.c/copyin-2.c: Same.
10433         * testsuite/libgomp.c/copyin-3.c: Same.
10434         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
10435         * testsuite/libgomp.c/nestedfn-5.c: Same.
10436         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
10437         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
10438         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
10439         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10440         * testsuite/libgomp.c/pr32362-1.c: Same.
10441         * testsuite/libgomp.c/pr32362-2.c: Same.
10442         * testsuite/libgomp.c/pr32362-3.c: Same.
10443         * testsuite/libgomp.c/pr39591-1.c: Same.
10444         * testsuite/libgomp.c/pr39591-2.c: Same.
10445         * testsuite/libgomp.c/pr39591-3.c: Same.
10446         * testsuite/libgomp.c/pr58392.c: Same.
10447         * testsuite/libgomp.c/pr58756.c: Same.
10448         * testsuite/libgomp.c/simd-1.c: Same.
10449         * testsuite/libgomp.c/simd-10.c: Same.
10450         * testsuite/libgomp.c/simd-11.c: Same.
10451         * testsuite/libgomp.c/simd-12.c: Same.
10452         * testsuite/libgomp.c/simd-13.c: Same.
10453         * testsuite/libgomp.c/simd-14.c: Same.
10454         * testsuite/libgomp.c/simd-15.c: Same.
10455         * testsuite/libgomp.c/simd-2.c: Same.
10456         * testsuite/libgomp.c/simd-3.c: Same.
10457         * testsuite/libgomp.c/simd-4.c: Same.
10458         * testsuite/libgomp.c/simd-5.c: Same.
10459         * testsuite/libgomp.c/simd-6.c: Same.
10460         * testsuite/libgomp.c/simd-7.c: Same.
10461         * testsuite/libgomp.c/simd-8.c: Same.
10462         * testsuite/libgomp.c/simd-9.c: Same.
10464 2015-06-15  Tom de Vries  <tom@codesourcery.com>
10466         * testsuite/libgomp.c/pr35625.c: Fix typo.
10468 2015-06-15  Tom de Vries  <tom@codesourcery.com>
10470         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
10471         in dg-options.
10472         * testsuite/libgomp.c/atomic-3.c: Same.
10473         * testsuite/libgomp.c/debug-1.c: Same.
10474         * testsuite/libgomp.c/nqueens-1.c: Same.
10475         * testsuite/libgomp.c/pr26171.c: Same.
10476         * testsuite/libgomp.c/pr48591.c: Same.
10477         * testsuite/libgomp.c/pr64824.c: Same.
10478         * testsuite/libgomp.c/pr64868.c: Same.
10479         * testsuite/libgomp.c/pr66133.c: Same.
10480         * testsuite/libgomp.c/pr66199-1.c: Same.
10481         * testsuite/libgomp.c/pr66199-2.c: Same.
10482         * testsuite/libgomp.c/target-8.c: Same.
10484 2015-06-15  Tom de Vries  <tom@codesourcery.com>
10486         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
10487         -std={gnu99,c99}.
10488         * testsuite/libgomp.c/for-1.c: Same.
10489         * testsuite/libgomp.c/for-2.c: Same.
10490         * testsuite/libgomp.c/for-3.c: Same.
10491         * testsuite/libgomp.c/pr35625.c: Same.
10492         * testsuite/libgomp.c/pr39154.c: Same.
10493         * testsuite/libgomp.c/simd-16.c: Same.
10494         * testsuite/libgomp.c/simd-17.c: Same.
10496 2015-06-13  Tom de Vries  <tom@codesourcery.com>
10498         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
10500 2015-06-13  Tom de Vries  <tom@codesourcery.com>
10502         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
10503         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
10504         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
10505         (N): Define.
10506         (main): Use N instead of hardcoded constants.
10508 2015-06-05  Tom de Vries  <tom@codesourcery.com>
10510         merge from gomp4 branch:
10511         2015-05-28  Tom de Vries  <tom@codesourcery.com>
10513         PR tree-optimization/65443
10514         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
10515         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
10516         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
10518 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10520         * testsuite/libgomp.graphite/bounds.c: Adjust for
10521         cleanup-tree-dump removal.
10522         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
10523         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
10524         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
10525         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
10526         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
10527         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
10528         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
10529         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
10530         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
10531         * testsuite/libgomp.graphite/pr41118.c: Likewise.
10533 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
10535         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
10536         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
10537         (futex_wake) [!__x86_64__]: Ditto.
10539 2015-05-28  Julian Brown  <julian@codesourcery.com>
10541         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
10542         function comment. Only call gomp_fatal if new argument is true.
10543         (acc_dev_num_out_of_range): New function.
10544         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
10545         acc_dev_num_out_of_range as appropriate.
10546         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
10547         (acc_get_device_num, acc_set_device_num): Update calls to
10548         resolve_device.
10549         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
10550         output.
10552 2015-05-28  Julian Brown  <julian@codesourcery.com>
10554         PR libgomp/65742
10555         * oacc-init.c (plugin/plugin-host.h): Include.
10556         (acc_on_device): Check whether we're in an offloaded region for
10557         host_nonshm
10558         plugin. Don't use __builtin_acc_on_device.
10559         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
10560         nonshm_exec flag in thread-local data.
10561         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
10562         data for host_nonshm plugin.
10563         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
10564         for host_nonshm plugin.
10565         * plugin/plugin-host.h: New.
10567 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
10569         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
10571 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
10573         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
10574         Declare as int.
10575         (FUTEX_PRIVATE_FLAG): Remove L suffix.
10576         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
10577         Declare as int.
10579 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
10581         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
10583 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
10585         * target.c (gomp_map_pointer): New function abstracting out
10586         GOMP_MAP_POINTER handling.
10587         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
10588         gomp_map_pointer().
10590 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
10592         PR middle-end/66199
10593         * testsuite/libgomp.c/pr66199-1.c: New test.
10594         * testsuite/libgomp.c/pr66199-2.c: New test.
10595         * testsuite/libgomp.c++/pr66199-1.C: New test.
10596         * testsuite/libgomp.c++/pr66199-2.C: New test.
10597         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
10598         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
10600 2015-05-19  Julian Brown  <julian@codesourcery.com>
10602         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
10603         on cuInit failure.
10605 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
10607         PR middle-end/66133
10608         * testsuite/libgomp.c/pr66133.c: New test.
10610 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
10612         * Makefile.in: Regenerated with automake-1.11.6.
10613         * aclocal.m4: Likewise.
10614         * config.h.in: Likewise.
10615         * configure: Likewise.
10616         * testsuite/Makefile.in: Likewise.
10618 2015-05-08  Jason Merrill  <jason@redhat.com>
10620         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
10621         _Complex.
10623         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
10625 2015-05-06  Julian Brown  <julian@codesourcery.com>
10627         * oacc-init.c (acc_device_lock): Add explanatory comment.
10628         (resolve_device): Add comment about locking requirement.
10629         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
10630         gomp_init_device and gomp_fini_device calls.
10631         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
10632         (acc_get_device_num, acc_set_device_num): Add locking around
10633         resolve_device and gomp_init_device calls.
10635 2015-05-06  Julian Brown  <julian@codesourcery.com>
10637         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
10638         goacc_thread_lock on error paths.
10639         * oacc-mem.c (lookup_host): Remove locking from function. Note
10640         locking requirement for caller in function comment.
10641         (lookup_dev): Likewise.
10642         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
10643         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
10644         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
10645         Add locking.
10647 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
10649         PR testsuite/65205
10650         PR libgomp/65993
10651         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
10652         don't expect "0x" prefix for "%p" format specifier, don't expect
10653         "(nil)" for NULL pointer.
10654         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10655         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
10656         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
10657         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
10658         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
10659         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
10660         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
10661         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10662         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
10663         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
10664         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
10665         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
10666         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
10667         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
10668         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
10669         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
10670         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
10671         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
10672         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10673         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
10674         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
10675         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
10676         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
10677         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
10678         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
10679         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
10680         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
10681         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
10682         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
10683         accurately specify what we're looking for.
10684         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10685         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10686         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10687         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10688         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10690 2015-04-30  James Norris  <jnorris@codesourcery.com>
10692         PR testsuite/65205
10693         * testsuite/lib/libgomp.exp
10694         (check_effective_target_openacc_host_selected)
10695         (check_effective_target_openacc_host_nonshm_selected): New
10696         procedures.
10697         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
10698         dg-shouldfail.
10699         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
10700         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
10701         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10702         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
10703         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
10704         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
10705         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
10706         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
10707         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
10708         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
10709         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10710         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
10711         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
10712         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
10713         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
10714         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
10715         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
10716         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
10717         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
10718         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
10719         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
10720         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
10721         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
10722         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10723         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
10724         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
10725         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
10726         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
10727         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
10728         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
10729         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
10730         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
10731         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
10732         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
10733         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
10734         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
10735         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
10736         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
10737         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
10738         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
10739         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
10740         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
10741         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
10743 2015-04-08  Julian Brown  <julian@codesourcery.com>
10745         * libgomp.h (target_mem_desc: Remove mem_map field.
10746         (acc_dispatch_t): Remove open_device_func, close_device_func,
10747         get_device_num_func, set_device_num_func, target_data members.
10748         Change create_thread_data_func argument to device number instead of
10749         generic pointer.
10750         * oacc-async.c (assert.h): Include.
10751         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
10752         (acc_wait_all, acc_wait_all_async): Use current host thread's
10753         active device, not base_dev.
10754         * oacc-cuda.c (acc_get_current_cuda_device)
10755         (acc_get_current_cuda_context, acc_get_cuda_stream)
10756         (acc_set_cuda_stream): Likewise.
10757         * oacc-host.c (host_dispatch): Don't set open_device_func,
10758         close_device_func, get_device_num_func or set_device_num_func.
10759         * oacc-init.c (base_dev, init_key): Remove.
10760         (cached_base_dev): New.
10761         (name_of_acc_device_t): New.
10762         (acc_init_1): Initialise default-numbered device, not zeroth.
10763         (acc_shutdown_1): Close all devices of a given type.
10764         (goacc_destroy_thread): Don't use base_dev.
10765         (lazy_open, lazy_init, lazy_init_and_open): Remove.
10766         (goacc_attach_host_thread_to_device): New.
10767         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
10768         (acc_get_num_devices): Don't use base_dev.
10769         (acc_set_device_type): Reimplement.
10770         (acc_get_device_type): Don't use base_dev.
10771         (acc_get_device_num): Tweak logic.
10772         (acc_set_device_num): Likewise.
10773         (acc_on_device): Use acc_get_device_type.
10774         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
10775         (goacc_lazy_initialize): Reimplement with acc_init and
10776         goacc_attach_host_thread_to_device.
10777         * oacc-int.h (goacc_thread): Add base_dev field.
10778         (base_dev): Remove extern declaration.
10779         (goacc_attach_host_thread_to_device): Add prototype.
10780         * oacc-mem.c (acc_malloc): Use current thread's device instead of
10781         base_dev.
10782         (acc_free): Likewise.
10783         (acc_memcpy_to_device): Likewise.
10784         (acc_memcpy_from_device): Likewise.
10785         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
10786         goacc_lazy_initialize (throughout).
10787         (GOACC_parallel): Use tgt_offset to locate target functions.
10788         * target.c (gomp_map_vars): Don't set tgt->mem_map.
10789         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
10790         (gomp_load_plugin_for_device): Remove open_device, close_device,
10791         get_device_num, set_device_num openacc hook initialisation. Don't set
10792         openacc.target_data.
10793         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
10794         (GOMP_OFFLOAD_openacc_close_device)
10795         (GOMP_OFFLOAD_openacc_get_device_num)
10796         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
10797         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
10798         to int.
10799         * plugin/plugin-nvptx.c (ptx_inited): Remove.
10800         (instantiated_devices, ptx_dev_lock): New.
10801         (struct ptx_image_data): New.
10802         (ptx_devices, ptx_images, ptx_image_lock): New.
10803         (fini_streams_for_device): Reorder cuStreamDestroy call.
10804         (nvptx_get_num_devices): Remove forward declaration.
10805         (nvptx_init): Change return type to bool.
10806         (nvptx_fini): Remove.
10807         (nvptx_attach_host_thread_to_device): New.
10808         (nvptx_open_device): Return struct ptx_device* instead of void*.
10809         (nvptx_close_device): Change argument type to struct ptx_device*,
10810         return type to void.
10811         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
10812         (kernel_target_data, kernel_host_table): Remove static globals.
10813         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
10814         (GOMP_OFFLOAD_init_device): Reimplement.
10815         (GOMP_OFFLOAD_fini_device): Likewise.
10816         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
10817         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
10818         (GOMP_OFFLOAD_host2dev): Use ORD argument.
10819         (GOMP_OFFLOAD_openacc_open_device)
10820         (GOMP_OFFLOAD_openacc_close_device)
10821         (GOMP_OFFLOAD_openacc_set_device_num)
10822         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
10823         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
10824         (device number).
10826         testsuite/
10827         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
10829 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
10831         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
10832         * libgomp.h (struct gomp_memory_mapping): Remove.
10833         (struct target_mem_desc): Change type of mem_map from
10834         gomp_memory_mapping * to splay_tree_s *.
10835         (struct gomp_device_descr): Remove register_image_func, get_table_func.
10836         Add load_image_func, unload_image_func.
10837         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
10838         Remove offload_regions_registered.
10839         (gomp_init_tables): Remove.
10840         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
10841         to splay_tree_s *.
10842         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
10843         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
10844         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
10845         offload_regions_registered.
10846         Initialize load_image_func, unload_image_func, mem_map.root.
10847         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
10848         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
10849         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
10850         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
10851         gomp_memory_mapping *.  Use dev's lock and splay_tree.
10852         (lookup_dev): Use dev's lock.
10853         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
10854         (acc_is_present): Likewise.
10855         (acc_map_data): Likewise.
10856         (acc_unmap_data): Likewise.  Use dev's lock.
10857         (present_create_copy): Likewise.
10858         (delete_copyout): Pass dev to lookup_host instead of mem_map.
10859         (update_dev_host): Likewise.
10860         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
10861         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
10862         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
10863         (GOMP_OFFLOAD_get_table): Remove
10864         (GOMP_OFFLOAD_load_image): New function.
10865         (GOMP_OFFLOAD_unload_image): New function.
10866         * target.c (register_lock): New mutex for offload image registration.
10867         (num_devices): Do not guard with PLUGIN_SUPPORT.
10868         (gomp_realloc_unlock): New static function.
10869         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
10870         before gomp_fatal.
10871         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
10872         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
10873         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
10874         mem_map's.
10875         (gomp_unmap_vars): Likewise.
10876         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
10877         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
10878         (gomp_offload_image_to_device): New static function.
10879         (GOMP_offload_register): Add mutex lock.
10880         Call gomp_offload_image_to_device for all initialized devices.
10881         Replace gomp_realloc with gomp_realloc_unlock.
10882         (GOMP_offload_unregister): New function.
10883         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
10884         get_table_func from the plugin with calls to init_device_func and
10885         gomp_offload_image_to_device.
10886         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
10887         to splay_tree_s *.
10888         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
10889         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
10890         (GOMP_target_data): Do not call gomp_init_tables.
10891         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
10892         (gomp_load_plugin_for_device): Replace register_image and get_table
10893         with load_image and unload_image in DLSYM ().
10894         (gomp_register_images_for_device): Remove function.
10895         (gomp_target_init): Do not initialize current_device.mem_map.*,
10896         current_device.offload_regions_registered.
10897         Remove call to gomp_register_images_for_device.
10898         Do not free offload_images and num_offload_images.
10900 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
10902         PR fortran/65597
10903         * testsuite/libgomp.fortran/pr65597.f90: New test.
10905 2015-03-27  Tom de Vries  <tom@codesourcery.com>
10907         PR testsuite/65594
10908         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
10909         (init, check): New function.
10910         (foo): Change return type to void.
10911         (main): Call init and check.
10913 2015-03-27  Tom de Vries  <tom@codesourcery.com>
10915         PR testsuite/65594
10916         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
10917         (foo): Use M for non-inner loops to scale down test-case.
10919 2015-03-25  Kai Tietz  <ktietz@redhat.com>
10921         PR libgomp/64972
10922         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
10923         (GOACC_data_start): Likewise.
10924         * target.c (gomp_map_vars): Likewise.
10926 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
10928         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
10929         hppa*-*-hpux*.
10931 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
10933         * testsuite/libgomp.c/target-10.c: New test.
10934         * testsuite/libgomp.c++/target-4.C: New test.
10936 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
10938         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
10939         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
10941 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10943         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
10944         * configure.ac (*-*-rtems*): Assume Pthread is supported.
10945         (pthread.h): Check for this header file.
10946         * configure: Regenerate.
10948 2015-02-25  Tom de Vries  <tom@codesourcery.com>
10950         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
10951         (check_reduction_op, check_reduction_macro, max, min):
10952         Declare.
10953         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
10954         function.
10955         (main): Use new functions.
10957 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
10959         * target.c (gomp_load_plugin_for_device): Use const char * instead of
10960         char * for variables holding dlerror return values.
10961         (DLSYM_OPT): Ditto.
10963 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
10965         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
10967 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
10968             Cesar Philippidis  <cesar@codesourcery.com>
10970         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
10971         GOACC_ctaid, and GOACC_nctaid routines.
10973 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
10975         PR c/64824
10976         * testsuite/libgomp.c/atomic-18.c: New test.
10977         * testsuite/libgomp.c++/atomic-16.C: New test.
10979 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
10981         PR c/64824
10982         PR c/64868
10983         * testsuite/libgomp.c/pr64824.c: New test.
10984         * testsuite/libgomp.c/pr64868.c: New test.
10985         * testsuite/libgomp.c++/pr64824.C: New test.
10986         * testsuite/libgomp.c++/pr64868.C: New test.
10988 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
10990         PR libgomp/64635
10991         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
10992         Link with -lpthread.
10993         * config/aix/plugin-suffix.h: Delete.
10995 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
10997         PR libgomp/64635
10998         * configure.tgt (*-*-aix*): Use config_path "aix posix".
10999         (*-*-darwin*): Use config_path "bsd darwin posix".
11000         (*-*-hpux*): Use config_path "hpux posix".
11001         * target.c: Add include of plugin-suffix.h and use
11002         SONAME_SUFFIX macro.
11003         * config/aix/plugin-suffix.h: New file.
11004         * config/darwin/plugin-suffix.h: New file.
11005         * config/hpux/plugin-suffix.h: New file.
11006         * config/posix/plugin-suffix.h: New file.
11008 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
11010         PR middle-end/64734
11011         * libgomp.c/pr64734.c: New test.
11013 2015-01-23  Tom de Vries  <tom@codesourcery.com>
11015         PR libgomp/64672
11016         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
11018 2015-01-23  Tom de Vries  <tom@codesourcery.com>
11020         PR libgomp/64707
11021         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
11022         dg-options.
11024 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
11026         PR libgomp/64625
11027         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
11028         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
11029         formal parameter.  Update all users.
11030         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
11031         Document unused formal parameter.
11033 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
11035         * oacc-parallel.c: Don't include <alloca.h>.
11036         (GOACC_parallel): Use gomp_alloca instead of alloca.
11038 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
11040         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
11042 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
11043             James Norris  <jnorris@codesourcery.com>
11044             Tom de Vries  <tom@codesourcery.com>
11045             Julian Brown  <julian@codesourcery.com>
11046             Cesar Philippidis  <cesar@codesourcery.com>
11047             Nathan Sidwell  <nathan@codesourcery.com>
11048             Tobias Burnus  <burnus@net-b.de>
11050         * Makefile.am (search_path): Add $(top_srcdir)/../include.
11051         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
11052         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
11053         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
11054         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
11055         Include $(top_srcdir)/plugin/Makefrag.am.
11056         (nodist_libsubinclude_HEADERS): Add openacc.h.
11057         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
11058         openacc.f90, openacc.mod, openacc_kinds.mod.
11059         (omp_lib.mod): Generalize into...
11060         (%.mod): ... this new rule.
11061         (openacc_kinds.mod, openacc.mod): New rules.
11062         * plugin/configfrag.ac: New file.
11063         * configure.ac: Move plugin/offloading support into it.  Include
11064         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
11065         * plugin/Makefrag.am: New file.
11066         * testsuite/Makefile.am (OFFLOAD_TARGETS)
11067         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
11068         export.
11069         (libgomp-test-support.exp): New rule.
11070         (all-local): Depend on it.
11071         * Makefile.in: Regenerate.
11072         * testsuite/Makefile.in: Regenerate.
11073         * config.h.in: Likewise.
11074         * configure: Likewise.
11075         * configure.tgt: Harden shell syntax.
11076         * env.c: Include "oacc-int.h".
11077         (parse_acc_device_type): New function.
11078         (gomp_debug_var, goacc_device_type, goacc_device_num): New
11079         variables.
11080         (initialize_env): Initialize those.  Call
11081         goacc_runtime_initialize.
11082         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
11083         (gomp_fatal): Call gomp_vfatal.
11084         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
11085         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
11086         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
11087         (splay_tree_node, splay_tree, splay_tree_key)
11088         (struct target_mem_desc, struct splay_tree_key_s)
11089         (struct gomp_memory_mapping, struct acc_dispatch_t)
11090         (struct gomp_device_descr, gomp_acc_insert_pointer)
11091         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
11092         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
11093         (gomp_free_memmap, gomp_fini_device): New declarations.
11094         (gomp_vdebug, gomp_debug): New macros.
11095         Include "splay-tree.h".
11096         * libgomp.map (OACC_2.0): New symbol version.  Use for
11097         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
11098         acc_set_device_type_h_, acc_get_device_type,
11099         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
11100         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
11101         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
11102         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
11103         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
11104         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
11105         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
11106         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
11107         acc_copyin_array_h_, acc_present_or_copyin,
11108         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
11109         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
11110         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
11111         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
11112         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
11113         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
11114         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
11115         acc_update_device, acc_update_device_32_h_,
11116         acc_update_device_64_h_, acc_update_device_array_h_,
11117         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
11118         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
11119         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
11120         acc_is_present_64_h_, acc_is_present_array_h_,
11121         acc_memcpy_to_device, acc_memcpy_from_device,
11122         acc_get_current_cuda_device, acc_get_current_cuda_context,
11123         acc_get_cuda_stream, acc_set_cuda_stream.
11124         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
11125         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
11126         GOACC_update, GOACC_wait, GOACC_get_thread_num,
11127         GOACC_get_num_threads.
11128         (GOMP_PLUGIN_1.0): New symbol version.  Use for
11129         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
11130         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
11131         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
11132         GOMP_PLUGIN_acc_thread.
11133         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
11134         environment variable.
11135         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
11136         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
11137         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
11138         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
11139         (splay_tree_remove): New declarations.
11140         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
11141         (splay_tree_remove, splay_tree_lookup): Move into...
11142         * splay-tree.c: ... this new file.
11143         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
11144         (splay_tree_node, splay_tree, splay_tree_key)
11145         (struct target_mem_desc, struct splay_tree_key_s)
11146         (struct gomp_device_descr): Don't declare.
11147         (num_devices_openmp): New variable.
11148         (gomp_get_num_devices ): Use it.
11149         (gomp_init_targets_once): New function.
11150         (gomp_get_num_devices ): Use it.
11151         (get_kind, gomp_copy_from_async, gomp_free_memmap)
11152         (gomp_fini_device, gomp_register_image_for_device): New functions.
11153         (gomp_map_vars): Add devaddrs parameter.
11154         (gomp_update): Add mm parameter.
11155         (gomp_init_device): Move most of it into...
11156         (gomp_init_tables): ... this new function.
11157         (gomp_register_images_for_device): Remove function.
11158         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
11159         Make them hidden instead of static.
11160         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
11161         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
11162         (GOMP_target_end_data, GOMP_target_update)
11163         (gomp_load_plugin_for_device, gomp_target_init): Update for
11164         OpenACC changes.
11165         * oacc-async.c: New file.
11166         * oacc-cuda.c: Likewise.
11167         * oacc-host.c: Likewise.
11168         * oacc-init.c: Likewise.
11169         * oacc-int.h: Likewise.
11170         * oacc-mem.c: Likewise.
11171         * oacc-parallel.c: Likewise.
11172         * oacc-plugin.c: Likewise.
11173         * oacc-plugin.h: Likewise.
11174         * oacc-ptx.h: Likewise.
11175         * openacc.f90: Likewise.
11176         * openacc.h: Likewise.
11177         * openacc_lib.h: Likewise.
11178         * plugin/plugin-host.c: Likewise.
11179         * plugin/plugin-nvptx.c: Likewise.
11180         * libgomp-plugin.c: Likewise.
11181         * libgomp-plugin.h: Likewise.
11182         * libgomp_target.h: Remove file after merging content into the
11183         former file.  Update all users.
11184         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
11185         (offload_targets_s, offload_targets_s_openacc): New variables.
11186         (check_effective_target_openacc_nvidia_accel_present)
11187         (check_effective_target_openacc_nvidia_accel_selected): New
11188         procedures.
11189         (libgomp_init): Update for OpenACC changes.
11190         * testsuite/libgomp-test-support.exp.in: New file.
11191         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
11192         * testsuite/libgomp.oacc-c/c.exp: Likewise.
11193         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
11194         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
11195         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
11196         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
11197         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
11198         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
11199         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
11200         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
11201         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
11202         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
11203         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
11204         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
11205         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
11206         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
11207         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
11208         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
11209         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
11210         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
11211         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
11212         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
11213         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
11214         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
11215         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
11216         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
11217         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
11218         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
11219         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
11220         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
11221         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
11222         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
11223         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
11224         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
11225         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
11226         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
11227         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
11228         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
11229         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
11230         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
11231         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
11232         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
11233         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
11234         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
11235         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
11236         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
11237         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
11238         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
11239         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
11240         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
11241         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
11242         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
11243         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
11244         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
11245         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
11246         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
11247         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
11248         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
11249         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
11250         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
11251         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
11252         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
11253         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
11254         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
11255         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
11256         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
11257         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
11258         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
11259         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
11260         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
11261         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
11262         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
11263         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
11264         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
11265         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
11266         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
11267         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
11268         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
11269         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
11270         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
11271         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
11272         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
11273         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
11274         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
11275         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
11276         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
11277         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
11278         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
11279         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
11280         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
11281         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
11282         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
11283         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
11284         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
11285         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
11286         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
11287         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
11288         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
11289         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
11290         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
11291         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
11292         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
11293         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
11294         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
11295         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
11296         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
11297         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
11298         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
11299         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
11300         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
11301         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
11302         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
11303         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
11304         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
11305         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
11306         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
11307         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
11308         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
11309         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
11310         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
11311         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
11312         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
11313         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
11314         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
11315         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
11316         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
11317         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
11318         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
11319         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
11320         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
11321         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
11322         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
11323         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
11324         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
11325         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
11326         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
11327         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
11328         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
11329         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
11330         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
11331         Likewise.
11332         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
11333         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
11334         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
11335         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
11336         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
11337         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
11338         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
11339         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
11340         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
11341         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
11342         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
11343         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
11344         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
11345         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
11346         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
11347         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
11348         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
11349         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
11350         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
11351         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
11352         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
11353         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
11354         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
11355         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
11356         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
11357         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
11358         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
11359         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
11360         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
11361         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
11362         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
11363         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
11364         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
11365         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
11366         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
11367         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
11368         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
11369         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
11370         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
11371         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
11372         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
11373         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
11374         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
11375         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
11376         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
11377         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
11378         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
11379         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
11380         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
11381         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
11382         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
11383         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
11384         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
11385         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
11386         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
11387         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
11388         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
11389         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
11390         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
11391         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
11393 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
11394             Julian Brown  <julian@codesourcery.com>
11395             David Malcolm  <dmalcolm@redhat.com>
11397         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
11398         to "GNU Offloading and Multi Processing Runtime Library".  Change
11399         all users.
11400         * configure: Regenerate.
11401         * libgomp.texi: Update.
11403 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
11405         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
11406         "$tgt_dir/lib32".
11407         * configure: Regenerate.
11409         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
11410         "intelmic" in $offload_targets.
11412 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
11414         Update copyright years.
11416         * libgomp.texi: Bump @copying's copyright year.
11418 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11420         * testsuite/lib/libgomp.exp: Load target-utils.exp.
11421         Move load of target-supports.exp earlier.
11423 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
11425         * testsuite/libgomp.c/target-9.c: New test.
11427 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
11429         * config.h.in: Regenerate.
11430         * configure: Regenerate.
11431         * configure.ac: Add GCC_CHECK_EMUTLS.
11432         * libgomp.h: Add check for USE_EMUTLS: this case
11433         is equal to HAVE_TLS.
11434         * team.c: Likewise.
11436 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
11438         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
11440 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
11441             Ilya Verbin  <ilya.verbin@intel.com>
11443         * testsuite/libgomp.c/target-critical-1.c: New test.
11445 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
11447         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
11448         to dg-options unless expensive testing is on.
11449         (TESTITERS): Define to N if not defined.
11450         (main): Use TESTITERS instead of N.
11451         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
11452         dg-additional-options depending on whether expensive testing is on.
11453         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
11454         Decrease N to 100000 and CHUNKSZ to 10000.
11456 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
11458         PR fortran/63938
11459         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
11460         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
11462 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
11464         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
11466 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
11468         PR bootstrap/63784
11469         * configure: Regenerated.
11471 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
11473         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
11474         vect_simd_clones effective target.
11475         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
11477 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
11479         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
11480         of 32 as block_size.
11481         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
11482         instead of 32 as block_size.
11484 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
11485             Ilya Verbin  <ilya.verbin@intel.com>
11487         * Makefile.in: Regenerate.
11488         * configure: Regenerate.
11489         * configure.ac: Set up offload_additional_options,
11490         offload_additional_lib_paths and offload_targets.
11491         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
11492         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
11493         * testsuite/Makefile.in: Regenerate.
11494         * testsuite/lib/libgomp.exp (libgomp_init): Append
11495         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
11496         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
11497         build directory to LD_LIBRARY_PATH for intelmic offload targets.
11499 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
11500             Ilya Verbin  <ilya.verbin@intel.com>
11501             Kirill Yukhin  <kirill.yukhin@intel.com>
11502             Ilya Tocar  <ilya.tocar@intel.com>
11504         * testsuite/lib/libgomp.exp
11505         (check_effective_target_offload_device): New.
11506         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
11507         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
11508         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
11509         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
11510         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
11511         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
11512         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
11513         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
11514         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
11515         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
11516         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
11517         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
11518         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
11519         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
11520         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
11521         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
11522         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
11523         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
11524         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
11525         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
11526         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
11527         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
11528         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
11529         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
11530         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
11531         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
11532         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
11533         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
11534         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
11535         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
11536         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
11537         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
11538         * testsuite/libgomp.c/target-7.c: Fix test.
11539         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
11540         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
11541         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
11542         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
11543         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
11544         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
11545         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
11546         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
11547         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
11548         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
11549         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
11550         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
11551         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
11552         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
11553         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
11554         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
11555         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
11556         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
11557         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
11558         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
11559         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
11560         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
11561         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
11562         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
11563         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
11564         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
11565         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
11566         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
11567         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
11568         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
11569         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
11571 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
11572             Ilya Verbin  <ilya.verbin@intel.com>
11573             Thomas Schwinge  <thomas@codesourcery.com>
11574             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11576         * libgomp.map (GOMP_4.0.1): New symbol version.
11577         Add GOMP_offload_register.
11578         * libgomp_target.h: New file.
11579         * splay-tree.h: New file.
11580         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
11581         (gomp_target_init): New forward declaration.
11582         (gomp_is_initialized): New static variable.
11583         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
11584         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
11585         New structures.
11586         (offload_images, num_offload_images, devices, num_devices): New static
11587         variables.
11588         (splay_compare): New static function.
11589         (struct gomp_device_descr): New structure.
11590         (gomp_get_num_devices): Call gomp_target_init.
11591         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
11592         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
11593         (GOMP_offload_register): New function.
11594         (GOMP_target): Arrange for host callback to be performed in a separate
11595         initial thread and contention group, inheriting ICVs from
11596         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
11597         Add device initialization and lookup for target function in splay tree.
11598         (GOMP_target_data): Add device initialization and call gomp_map_vars.
11599         (GOMP_target_end_data): Call gomp_unmap_vars.
11600         (GOMP_target_update): Add device initialization and call gomp_update.
11601         (gomp_load_plugin_for_device, gomp_register_images_for_device)
11602         (gomp_target_init): New static functions.
11604 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
11605             Thomas Schwinge  <thomas@codesourcery.com>
11606             Ilya Verbin  <ilya.verbin@intel.com>
11607             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11609         * config.h.in: Regenerate.
11610         * configure: Regenerate.
11611         * configure.ac: Check for libdl, required for plugin support.
11612         (PLUGIN_SUPPORT): Define if plugins are supported.
11613         (enable_offload_targets): Support Intel MIC targets.
11614         (OFFLOAD_TARGETS): List of target names suitable for offloading.
11616 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11618         PR target/63610
11619         * configure: Regenerate.
11621 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11623         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
11625 2014-10-06  Marek Polacek  <polacek@redhat.com>
11627         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
11628         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
11629         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
11630         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
11632 2014-10-06  Marek Polacek  <polacek@redhat.com>
11634         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
11635         * testsuite/libgomp.c/nqueens-1.c: Likewise.
11636         * testsuite/libgomp.c/pr26943-3.c: Likewise.
11637         * testsuite/libgomp.c/pr26943-4.c: Likewise.
11638         * testsuite/libgomp.c/pr36802-2.c: Likewise.
11639         * testsuite/libgomp.c/pr36802-3.c: Likewise.
11640         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
11641         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
11642         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
11643         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
11644         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
11645         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
11646         * testsuite/libgomp.c/omp-single-1.c: Likewise.
11647         * testsuite/libgomp.c/omp-single-2.c: Likewise.
11648         * testsuite/libgomp.c/omp_matvec.c: Likewise.
11649         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
11650         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
11651         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
11652         declarations.
11654 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
11656         PR libgomp/61200
11657         * testsuite/libgomp.c/pr61200.c: New test.
11659 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
11661         PR c++/63248
11662         * testsuite/libgomp.c++/pr63248.C: New test.
11664 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
11666         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
11667         is not zero, but taskgroup->children is NULL and there are
11668         any task->children, schedule those instead of waiting.
11669         * testsuite/libgomp.c/depend-6.c: New test.
11670         * testsuite/libgomp.c/depend-7.c: New test.
11671         * testsuite/libgomp.c/depend-8.c: New test.
11672         * testsuite/libgomp.c/depend-9.c: New test.
11673         * testsuite/libgomp.c/depend-10.c: New test.
11675 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
11677         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
11678         (struct gomp_taskwait): New type.
11679         (struct gomp_task): Add taskwait and parent_depends_on, remove
11680         in_taskwait and taskwait_sem fields.
11681         (gomp_finish_task): Don't destroy taskwait_sem.
11682         * task.c (gomp_init_task): Don't init in_taskwait, instead init
11683         taskwait and parent_depends_on.
11684         (GOMP_task): For if (0) tasks with depend clause that depend on
11685         earlier tasks don't defer them, instead call
11686         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
11687         Initialize redundant_out field, for redundant out entries just
11688         move them at the end of linked list instead of removing them
11689         completely, and set redundant_out flag instead of redundant.
11690         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
11691         that task.
11692         (gomp_task_run_post_handle_dependers): If parent is in
11693         gomp_task_maybe_wait_for_dependencies and newly runnable task
11694         is not parent_depends_on, queue it in parent->children linked
11695         list after all runnable tasks with parent_depends_on set.
11696         Adjust for addition of taskwait indirection.
11697         (gomp_task_run_post_remove_parent): If parent is in
11698         gomp_task_maybe_wait_for_dependencies and task to be removed
11699         is parent_depends_on, decrement n_depend and if needed awake
11700         parent.  Adjust for addition of taskwait indirection.
11701         (GOMP_taskwait): Adjust for addition of taskwait indirection.
11702         (gomp_task_maybe_wait_for_dependencies): New function.
11703         * testsuite/libgomp.c/depend-5.c: New test.
11705 2014-07-13  Tobias Burnus  <burnus@net-b.de>
11707         * testsuite/libgomp.fortran/pr34020.f90: Make compile
11708         with TS 18508/Fortran 2015.
11710 2014-07-06  Marek Polacek  <polacek@redhat.com>
11712         PR c/6940
11713         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
11715 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
11717         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
11718         matches regex $lang_source_re, add $lang_include_flags to options.
11719         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
11720         * testsuite/libgomp.c++/c++.exp: Likewise.
11721         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
11722         and lang_include_flags instead of adding -fintrinsic-modules-path= to
11723         ALWAYS_CFLAGS.
11724         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
11726 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
11728         * testsuite/libgomp.fortran/fortran.exp: Explain
11729         gfortran-dg-runtest usage.
11731 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
11733         * testsuite/libgomp.fortran/simd5.f90: New test.
11734         * testsuite/libgomp.fortran/simd6.f90: New test.
11735         * testsuite/libgomp.fortran/simd7.f90: New test.
11737 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
11739         * testsuite/libgomp.c/for-2.c: Define SC to static for
11740         #pragma omp for simd testing.
11741         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
11742         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
11743         SC macro.
11744         * testsuite/libgomp.c/simd-14.c: New test.
11745         * testsuite/libgomp.c/simd-15.c: New test.
11746         * testsuite/libgomp.c/simd-16.c: New test.
11747         * testsuite/libgomp.c/simd-17.c: New test.
11748         * testsuite/libgomp.c++/for-10.C: Define SC to static for
11749         #pragma omp for simd testing.
11750         * testsuite/libgomp.c++/simd10.C: New test.
11751         * testsuite/libgomp.c++/simd11.C: New test.
11752         * testsuite/libgomp.c++/simd12.C: New test.
11753         * testsuite/libgomp.c++/simd13.C: New test.
11755         * testsuite/libgomp.fortran/aligned1.f03: New test.
11756         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
11757         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
11758         tasks with !$omp parallel !$omp single.
11759         * testsuite/libgomp.fortran/target8.f90: New test.
11760         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
11761         not to use trim in the combiner, instead call elemental function.
11762         (fn): New elemental function.
11763         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
11764         Make elemental.
11765         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
11766         omp_in): Likewise.
11767         * testsuite/libgomp.fortran/udr12.f90: New test.
11768         * testsuite/libgomp.fortran/udr13.f90: New test.
11769         * testsuite/libgomp.fortran/udr14.f90: New test.
11770         * testsuite/libgomp.fortran/udr15.f90: New test.
11772 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
11774         * omp_lib.f90.in (openmp_version): Set to 201307.
11775         * omp_lib.h.in (openmp_version): Likewise.
11776         * testsuite/libgomp.c/target-8.c: New test.
11777         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
11778         and inbranch clauses.
11779         * testsuite/libgomp.fortran/depend-3.f90: New test.
11780         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
11781         openmp_version.
11782         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11783         * testsuite/libgomp.fortran/target1.f90: New test.
11784         * testsuite/libgomp.fortran/target2.f90: New test.
11785         * testsuite/libgomp.fortran/target3.f90: New test.
11786         * testsuite/libgomp.fortran/target4.f90: New test.
11787         * testsuite/libgomp.fortran/target5.f90: New test.
11788         * testsuite/libgomp.fortran/target6.f90: New test.
11789         * testsuite/libgomp.fortran/target7.f90: New test.
11791 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
11793         PR fortran/60928
11794         * testsuite/libgomp.fortran/allocatable9.f90: New test.
11795         * testsuite/libgomp.fortran/allocatable10.f90: New test.
11796         * testsuite/libgomp.fortran/allocatable11.f90: New test.
11797         * testsuite/libgomp.fortran/allocatable12.f90: New test.
11798         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
11799         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
11800         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
11801         * testsuite/libgomp.fortran/associate1.f90: New test.
11802         * testsuite/libgomp.fortran/associate2.f90: New test.
11803         * testsuite/libgomp.fortran/procptr1.f90: New test.
11805 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
11807         * testsuite/libgomp.fortran/simd1.f90: New test.
11808         * testsuite/libgomp.fortran/udr1.f90: New test.
11809         * testsuite/libgomp.fortran/udr2.f90: New test.
11810         * testsuite/libgomp.fortran/udr3.f90: New test.
11811         * testsuite/libgomp.fortran/udr4.f90: New test.
11812         * testsuite/libgomp.fortran/udr5.f90: New test.
11813         * testsuite/libgomp.fortran/udr6.f90: New test.
11814         * testsuite/libgomp.fortran/udr7.f90: New test.
11815         * testsuite/libgomp.fortran/udr8.f90: New test.
11816         * testsuite/libgomp.fortran/udr9.f90: New test.
11817         * testsuite/libgomp.fortran/udr10.f90: New test.
11818         * testsuite/libgomp.fortran/udr11.f90: New test.
11820 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
11822         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
11823         vect_simd_clones effective target.
11824         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
11826 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
11828         PR middle-end/61252
11829         * testsuite/libgomp.c++/simd-9.C: New test.
11831 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
11833         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
11834         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
11835         texts according to their @menu entry positions.
11837 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
11839         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
11840         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
11841         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
11842         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
11843         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
11844         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
11845         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
11846         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
11847         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
11848         * testsuite/libgomp.fortran/depend-1.f90: New test.
11849         * testsuite/libgomp.fortran/depend-2.f90: New test.
11850         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
11851         * testsuite/libgomp.fortran/simd1.f90: New test.
11852         * testsuite/libgomp.fortran/simd2.f90: New test.
11853         * testsuite/libgomp.fortran/simd3.f90: New test.
11854         * testsuite/libgomp.fortran/simd4.f90: New test.
11855         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
11857 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
11859         * testsuite/libgomp.c/simd-10.c: New test.
11860         * testsuite/libgomp.c/simd-11.c: New test.
11861         * testsuite/libgomp.c/simd-12.c: New test.
11862         * testsuite/libgomp.c/simd-13.c: New test.
11864 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
11866         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
11867         atomic type clauses in any order and optional comma in between.
11868         * testsuite/libgomp.c++/atomic-15.C: Likewise.
11869         * testsuite/libgomp.c/atomic-17.c: Likewise.
11871         * testsuite/libgomp.c/simd-7.c: New test.
11872         * testsuite/libgomp.c/simd-8.c: New test.
11873         * testsuite/libgomp.c/simd-9.c: New test.
11874         * testsuite/libgomp.c/loop-16.c: New test.
11876 2014-04-02  Richard Henderson  <rth@redhat.com>
11878         * config/linux/futex.h (futex_wait): Get error value from errno.
11879         (futex_wake): Likewise.
11881 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
11883         PR c++/60331
11884         * testsuite/libgomp.c++/udr-11.C: New test.
11885         * testsuite/libgomp.c++/udr-12.C: New test.
11886         * testsuite/libgomp.c++/udr-13.C: New test.
11887         * testsuite/libgomp.c++/udr-14.C: New test.
11888         * testsuite/libgomp.c++/udr-15.C: New test.
11889         * testsuite/libgomp.c++/udr-16.C: New test.
11890         * testsuite/libgomp.c++/udr-17.C: New test.
11891         * testsuite/libgomp.c++/udr-18.C: New test.
11892         * testsuite/libgomp.c++/udr-19.C: New test.
11894 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
11896         Update copyright years
11898 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
11900         * hashtab.h: Use the standard form for the copyright notice.
11902 2014-01-02  Tobias Burnus  <burnus@net-b.de>
11904         * libgomp.texi: Bump @copying's copyright year.
11906 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
11908         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
11909         alloca () with __builtin_alloca ().
11910         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
11911         * testsuite/libgomp.c/lock-3.c: Likewise.
11912         * testsuite/libgomp.c/pr48591.c: Likewise.
11914 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
11916         PR testsuite/59534
11917         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
11918         comparisons.
11920 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
11922         PR libgomp/58756
11923         * testsuite/libgomp.c/pr58756.c: New test.
11925 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
11927         PR libgomp/59467
11928         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
11929         !$omp parallel.
11931 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
11933         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
11934         ALWAYS_CFLAGS.
11935         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
11936         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
11937         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
11938         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
11939         Likewise.
11941         * libgomp_g.h: Include <stddef.h> for size_t.
11943         * libgomp.spec.in: Update comment about libgomp's dependencies.
11944         * configure.ac: Likewise.
11945         * configure: Regenerate.
11947 2013-10-16  Tobias Burnus  <burnus@net-b.de>
11949         * libgomp.texi: (Runtime Library Routines): Update references for
11950         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
11951         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
11952         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
11953         (Environment Variables): Update references for OpenMP 4.0. Add
11954         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
11955         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
11956         order.
11958 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
11960         * env.c (parse_bind_var): Initialize value to avoid
11961         (false positive) warning.
11963 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
11965         PR libgomp/58691
11966         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
11967         to check variable.
11968         (gomp_init_num_threads): Move i variable declaration into
11969         #ifdef CPU_ALLOC_SIZE block.
11970         * config/linux/affinity.c (gomp_affinity_init_level): Test
11971         gomp_places_list_len == 0 rather than gomp_places_list == 0
11972         when checking for topology reading error.
11973         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
11974         * env.c (parse_affinity): Add ignore argument, if true, don't populate
11975         gomp_places_list, only parse env var and always return false.
11976         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
11977         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
11978         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
11979         and either of these variables were parsed correctly into a places
11980         list.
11982 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
11983             Jakub Jelinek  <jakub@redhat.com>
11985         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
11986         of 5 loopfn matches.
11987         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
11988         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
11989         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
11990         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
11991         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
11992         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
11993         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
11994         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
11996 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
11998         * Makefile.am (omp_lib.mod): Streamline rule.
11999         * Makefile.in: Regenerate.
12001         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
12002         exceptions.
12004         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
12005         * testsuite/libgomp.fortran/lib1.f90: Likewise.
12006         * testsuite/libgomp.fortran/lib2.f: Likewise.
12007         * testsuite/libgomp.fortran/lib3.f: Likewise.
12009         * configure.ac: Typo fix.
12010         * configure: Regenerate.
12012         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
12013         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
12015         * omp.h.in: Don't touch the user's namespace.
12017 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
12018             Tobias Burnus  <burnus@net-b.de>
12019             Richard Henderson  <rth@redhat.com>
12021         * target.c: New file.
12022         * Makefile.am (libgomp_la_SOURCES): Add target.c.
12023         * Makefile.in: Regenerated.
12024         * libgomp_g.h (GOMP_task): Add depend argument.
12025         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
12026         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
12027         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
12028         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
12029         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
12030         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
12031         GOMP_taskgroup_start, GOMP_taskgroup_end,
12032         GOMP_parallel_sections): New prototypes.
12033         * fortran.c (omp_is_initial_device): Add ialias_redirect.
12034         (omp_is_initial_device_): New function.
12035         (ULP, STR1, STR2, ialias_redirect): Removed.
12036         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
12037         omp_set_default_device_8_, omp_get_default_device_,
12038         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
12039         functions.
12040         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
12041         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
12042         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
12043         @@GOMP_4.0.
12044         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
12045         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
12046         omp_set_default_device, omp_set_default_device_,
12047         omp_set_default_device_8_, omp_get_default_device,
12048         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
12049         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
12050         omp_get_team_num_): Export @@OMP_4.0.
12051         * team.c (struct gomp_thread_start_data): Add place field.
12052         (gomp_thread_start): Clear thr->thread_pool and
12053         thr->task before returning.  Use gomp_team_barrier_wait_final
12054         instead of gomp_team_barrier_wait.  Initialize thr->place.
12055         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
12056         team_cancelled and task_queued_count fields.
12057         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
12058         before calling pthread_exit.
12059         (gomp_free_thread): No longer static.  Use
12060         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
12061         (gomp_team_start): Add flags argument.  Set
12062         thr->thread_pool->threads_busy to nthreads immediately after creating
12063         new pool.  Use gomp_managed_threads_lock instead of
12064         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
12065         (gomp_team_end): Use gomp_managed_threads_lock instead of
12066         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
12067         of gomp_team_barrier_wait.  If team->team_cancelled, call
12068         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
12069         rather than thr->ts.work_share.
12070         (initialize_team): Don't call gomp_sem_init here.
12071         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
12072         caller.
12073         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
12074         * env.c (gomp_global_icv): Add default_device_var, target_data and
12075         bind_var initializers.
12076         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
12077         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
12078         gomp_places_list_len): New variables.
12079         (parse_bind_var, parse_one_place, parse_places_var): New functions.
12080         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
12081         sized places.
12082         (gomp_cancel_var): New global variable.
12083         (parse_int): New function.
12084         (handle_omp_display_env): New function.
12085         (initialize_env): Use it.  Initialize default_device_var.
12086         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
12087         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
12088         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
12089         been successfully parsed (and call gomp_init_affinity in that case).
12090         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12091         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12092         omp_get_team_num, omp_is_initial_device): New functions.
12093         * libgomp.h: Include stdlib.h.
12094         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
12095         Define.
12096         (struct target_mem_desc): Forward declare.
12097         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
12098         and thread_limit_var fields.
12099         (gomp_get_num_devices): New prototype.
12100         (gomp_cancel_var): New extern decl.
12101         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
12102         team_cancelled and task_queued_count fields.  Add comments about
12103         task_{,queued_,running_}count.
12104         (gomp_cancel_kind): New enum.
12105         (gomp_work_share_end_cancel): New prototype.
12106         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
12107         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
12108         and depend fields.
12109         (struct gomp_taskgroup): New type.
12110         (struct gomp_task_depend_entry,
12111         struct gomp_dependers_vec): New types.
12112         (gomp_finish_task): Free depend_hash if non-NULL.
12113         (struct gomp_team_state): Add place_partition_off
12114         and place_partition_len fields.
12115         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
12116         gomp_places_list_len): New extern decls.
12117         (struct gomp_thread): Add place field.
12118         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
12119         (gomp_init_thread_affinity): Add place argument.
12120         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12121         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12122         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12123         gomp_affinity_init_level, gomp_affinity_print_place): New
12124         prototypes.
12125         (gomp_team_start): Add flags argument.
12126         (gomp_thread_limit_var, gomp_remaining_threads_count,
12127         gomp_remaining_threads_lock): Remove.
12128         (gomp_managed_threads_lock): New variable.
12129         (struct gomp_thread_pool): Add threads_busy field.
12130         (gomp_free_thread): New prototype.
12131         * task.c: Include hashtab.h.
12132         (hash_entry_type): New typedef.
12133         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
12134         (gomp_init_task): Clear dependers, depend_hash, depend_count,
12135         copy_ctors_done and taskgroup fields.
12136         (GOMP_task): Add depend argument, handle depend clauses.  If
12137         gomp_team_barrier_cancelled or if it's taskgroup has been
12138         cancelled, don't queue or start new tasks.  Set copy_ctors_done
12139         field if needed.  Initialize taskgroup field.  If copy_ctors_done
12140         and already cancelled, don't discard the task.  If taskgroup is
12141         non-NULL, enqueue the task into taskgroup queue.  Increment
12142         num_children field in taskgroup.  Increment task_queued_count.
12143         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
12144         gomp_task_run_post_remove_taskgroup): New inline functions.
12145         (gomp_task_run_post_handle_depend_hash,
12146         gomp_task_run_post_handle_dependers,
12147         gomp_task_run_post_handle_depend): New functions.
12148         (GOMP_taskwait): Use them.  If more than one new tasks
12149         have been queued, wake other threads if needed.
12150         (gomp_barrier_handle_tasks): Likewise.  If
12151         gomp_team_barrier_cancelled, don't start any new tasks, just free
12152         all tasks.
12153         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
12154         * omp_lib.f90.in
12155         (omp_proc_bind_kind, omp_proc_bind_false,
12156         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
12157         omp_proc_bind_spread): New params.
12158         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12159         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12160         omp_get_team_num, omp_is_initial_device): New interfaces.
12161         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
12162         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
12163         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
12164         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
12165         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
12166         useless use omp_lib_kinds.
12167         * omp.h.in (omp_proc_bind_t): New typedef.
12168         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12169         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12170         omp_get_team_num, omp_is_initial_device): New prototypes.
12171         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
12172         through to gomp_team_start.
12173         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
12174         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
12175         Adjust gomp_parallel_loop_start callers.
12176         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
12177         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
12178         GOMP_loop_end_cancel): New functions.
12179         (GOMP_parallel_end): Add ialias_redirect.
12180         * hashtab.h: New file.
12181         * libgomp.texi (Environment Variables): Minor cleanup,
12182         update section refs to OpenMP 4.0rc2.
12183         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
12184         environment variables.
12185         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
12186         team->work_shares_to_free to thr->ts.work_share before calling
12187         free_work_share.
12188         (gomp_work_share_end_cancel): New function.
12189         * config/linux/proc.c: Include errno.h.
12190         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
12191         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
12192         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
12193         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
12194         gomp_cpuset_size is sizeof (cpu_set_t).
12195         (gomp_init_num_threads): Initialize gomp_cpuset_size,
12196         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
12197         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
12198         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
12199         contain any logical CPUs.
12200         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
12201         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
12202         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
12203         pthread_getaffinity_np.  Check gomp_places_list instead of
12204         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
12205         * config/linux/bar.c (gomp_barrier_wait_end,
12206         gomp_barrier_wait_last): Use BAR_* defines.
12207         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
12208         from state where needed.  Set work_share_cancelled to 0 on last
12209         thread.
12210         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
12211         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
12212         functions.
12213         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
12214         Add cpusetsize argument.
12215         (gomp_cpuset_size, gomp_cpusetp): Declare.
12216         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
12217         (affinity_counter): Remove.
12218         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
12219         if CPU_ALLOC_SIZE isn't defined.
12220         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
12221         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
12222         bind current thread to the first place.
12223         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
12224         pthread_setaffinity_np to gomp_places_list[place].
12225         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12226         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12227         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12228         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
12229         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
12230         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
12231         (gomp_barrier_t): Add awaited_final field.
12232         (gomp_barrier_init): Initialize awaited_final field.
12233         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
12234         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
12235         prototypes.
12236         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
12237         defines.
12238         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
12239         gomp_team_barrier_cancelled): New inline functions.
12240         (gomp_barrier_last_thread,
12241         gomp_team_barrier_set_task_pending,
12242         gomp_team_barrier_clear_task_pending,
12243         gomp_team_barrier_set_waiting_for_tasks,
12244         gomp_team_barrier_waiting_for_tasks,
12245         gomp_team_barrier_done): Use BAR_* defines.
12246         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
12247         (gomp_barrier_wait_end): Use BAR_* defines.
12248         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
12249         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
12250         Use BAR_* defines.
12251         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
12252         gomp_team_barrier_cancel): New functions.
12253         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
12254         argument.
12255         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
12256         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
12257         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
12258         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
12259         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
12260         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
12261         (gomp_barrier_t): Add cancellable field.
12262         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
12263         gomp_team_barrier_cancel): New prototypes.
12264         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
12265         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
12266         gomp_team_barrier_cancelled): New inline functions.
12267         (gomp_barrier_wait_start, gomp_barrier_last_thread,
12268         gomp_team_barrier_set_task_pending,
12269         gomp_team_barrier_clear_task_pending,
12270         gomp_team_barrier_set_waiting_for_tasks,
12271         gomp_team_barrier_waiting_for_tasks,
12272         gomp_team_barrier_done): Use BAR_* defines.
12273         * barrier.c (GOMP_barrier_cancel): New function.
12274         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
12275         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
12276         omp_proc_bind_spread): New params.
12277         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
12278         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
12279         omp_get_team_num, omp_is_initial_device): New externals.
12280         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
12281         New functions.
12282         (gomp_resolve_num_threads): Adjust for thread_limit now being in
12283         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
12284         infinity.  If not nested, just return minimum of max_num_threads
12285         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
12286         to the returned value.  Otherwise, don't update atomically
12287         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
12288         (GOMP_parallel_end): Adjust for thread_limit now being in
12289         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
12290         infinity.  Adjust threads_busy in the pool rather than
12291         gomp_remaining_threads_count.  Remember team->nthreads and call
12292         gomp_team_end before adjusting threads_busy, if not nested
12293         afterwards, just set it to 1 non-atomically.  Add ialias.
12294         (GOMP_parallel_start): Adjust gomp_team_start caller.
12295         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
12296         * testsuite/libgomp.c/affinity-1.c: New test.
12297         * testsuite/libgomp.c/atomic-15.c: New test.
12298         * testsuite/libgomp.c/atomic-16.c: New test.
12299         * testsuite/libgomp.c/atomic-17.c: New test.
12300         * testsuite/libgomp.c/cancel-for-1.c: New test.
12301         * testsuite/libgomp.c/cancel-for-2.c: New test.
12302         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
12303         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
12304         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
12305         * testsuite/libgomp.c/cancel-sections-1.c: New test.
12306         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
12307         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
12308         * testsuite/libgomp.c/depend-1.c: New test.
12309         * testsuite/libgomp.c/depend-2.c: New test.
12310         * testsuite/libgomp.c/depend-3.c: New test.
12311         * testsuite/libgomp.c/depend-4.c: New test.
12312         * testsuite/libgomp.c/for-1.c: New test.
12313         * testsuite/libgomp.c/for-1.h: New file.
12314         * testsuite/libgomp.c/for-2.c: New test.
12315         * testsuite/libgomp.c/for-2.h: New file.
12316         * testsuite/libgomp.c/for-3.c: New test.
12317         * testsuite/libgomp.c/pr58392.c: New test.
12318         * testsuite/libgomp.c/simd-1.c: New test.
12319         * testsuite/libgomp.c/simd-2.c: New test.
12320         * testsuite/libgomp.c/simd-3.c: New test.
12321         * testsuite/libgomp.c/simd-4.c: New test.
12322         * testsuite/libgomp.c/simd-5.c: New test.
12323         * testsuite/libgomp.c/simd-6.c: New test.
12324         * testsuite/libgomp.c/target-1.c: New test.
12325         * testsuite/libgomp.c/target-2.c: New test.
12326         * testsuite/libgomp.c/target-3.c: New test.
12327         * testsuite/libgomp.c/target-4.c: New test.
12328         * testsuite/libgomp.c/target-5.c: New test.
12329         * testsuite/libgomp.c/target-6.c: New test.
12330         * testsuite/libgomp.c/target-7.c: New test.
12331         * testsuite/libgomp.c/taskgroup-1.c: New test.
12332         * testsuite/libgomp.c/thread-limit-1.c: New test.
12333         * testsuite/libgomp.c/thread-limit-2.c: New test.
12334         * testsuite/libgomp.c/thread-limit-3.c: New test.
12335         * testsuite/libgomp.c/udr-1.c: New test.
12336         * testsuite/libgomp.c/udr-2.c: New test.
12337         * testsuite/libgomp.c/udr-3.c: New test.
12338         * testsuite/libgomp.c++/affinity-1.C: New test.
12339         * testsuite/libgomp.c++/atomic-10.C: New test.
12340         * testsuite/libgomp.c++/atomic-11.C: New test.
12341         * testsuite/libgomp.c++/atomic-12.C: New test.
12342         * testsuite/libgomp.c++/atomic-13.C: New test.
12343         * testsuite/libgomp.c++/atomic-14.C: New test.
12344         * testsuite/libgomp.c++/atomic-15.C: New test.
12345         * testsuite/libgomp.c++/cancel-for-1.C: New test.
12346         * testsuite/libgomp.c++/cancel-for-2.C: New test.
12347         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
12348         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
12349         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
12350         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
12351         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
12352         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
12353         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
12354         * testsuite/libgomp.c++/cancel-test.h: New file.
12355         * testsuite/libgomp.c++/for-9.C: New test.
12356         * testsuite/libgomp.c++/for-10.C: New test.
12357         * testsuite/libgomp.c++/for-11.C: New test.
12358         * testsuite/libgomp.c++/simd-1.C: New test.
12359         * testsuite/libgomp.c++/simd-2.C: New test.
12360         * testsuite/libgomp.c++/simd-3.C: New test.
12361         * testsuite/libgomp.c++/simd-4.C: New test.
12362         * testsuite/libgomp.c++/simd-5.C: New test.
12363         * testsuite/libgomp.c++/simd-6.C: New test.
12364         * testsuite/libgomp.c++/simd-7.C: New test.
12365         * testsuite/libgomp.c++/simd-8.C: New test.
12366         * testsuite/libgomp.c++/target-1.C: New test.
12367         * testsuite/libgomp.c++/target-2.C: New test.
12368         * testsuite/libgomp.c++/target-2-aux.cc: New file.
12369         * testsuite/libgomp.c++/target-3.C: New test.
12370         * testsuite/libgomp.c++/taskgroup-1.C: New test.
12371         * testsuite/libgomp.c++/udr-1.C: New test.
12372         * testsuite/libgomp.c++/udr-2.C: New test.
12373         * testsuite/libgomp.c++/udr-3.C: New test.
12374         * testsuite/libgomp.c++/udr-4.C: New test.
12375         * testsuite/libgomp.c++/udr-5.C: New test.
12376         * testsuite/libgomp.c++/udr-6.C: New test.
12377         * testsuite/libgomp.c++/udr-7.C: New test.
12378         * testsuite/libgomp.c++/udr-8.C: New test.
12379         * testsuite/libgomp.c++/udr-9.C: New test.
12381 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
12383         PR testsuite/57605
12384         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
12385         ALWAYS_CFLAGS.
12387 2013-09-20  Alan Modra  <amodra@gmail.com>
12389         * configure: Regenerate.
12391 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
12393         * testsuite/libgomp.c/sections-2.c: New test.
12395 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12397         * testsuite/libgomp.fortran/strassen.f90:
12398         Add dg-skip-if aarch64_tiny.
12400 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
12401             Cesar Philippidis  <cesar@codesourcery.com>
12403         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
12404         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
12405         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
12406         * testsuite/libgomp.fortran/fortran.exp: Likewise.
12407         * testsuite/libgomp.graphite/graphite.exp: Likewise.
12408         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
12409         Use dg-runtest rather than gfortran-dg-runtest.
12411 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
12413         * testsuite/libgomp.c/icv-2.c: Extend current handling of
12414         Linux-based x86 systems to cover all GNU systems.
12415         * testsuite/libgomp.c/lock-3.c: Likewise.
12416         * testsuite/libgomp.c/pr48591.c: Likewise.
12418 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
12420         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
12421         GNU/Hurd, as done for Linux-based systems.
12423         * config/posix/ptrlock.h: Fix comment.
12425 2013-05-27  Tobias Burnus  <burnus@net-b.de>
12427         PR fortran/57423
12428         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
12429         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
12430         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
12431         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
12432         omp_destroy_nest_lock): Correct arguments to match the one in
12433         the OpenMP spec.
12434         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
12435         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
12436         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
12437         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
12439 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
12441         * testsuite/libgomp.c/loop-13.c: New test.
12442         * testsuite/libgomp.c/loop-14.c: New test.
12443         * testsuite/libgomp.c/loop-15.c: New test.
12444         * testsuite/libgomp.c++/loop-13.C: New test.
12445         * testsuite/libgomp.c++/loop-14.C: New test.
12446         * testsuite/libgomp.c++/loop-15.C: New test.
12448 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
12450         PR middle-end/56217
12451         * testsuite/libgomp.c++/pr56217.C: New test.
12453 2013-02-01  Alan Modra  <amodra@gmail.com>
12455         * task.c (GOMP_task, GOMP_taskwait): Comment.
12457 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
12458             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
12460         PR libgomp/55561
12461         * config/linux/wait.h (do_spin): Use atomic load for addr.
12462         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
12463         for intptr and ptrlock.
12464         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
12465         for ptrlock.
12467 2013-01-22  Alan Modra  <amodra@gmail.com>
12469         PR libgomp/51376
12470         PR libgomp/56073
12471         * task.c (GOMP_task): Revert 2011-12-09 change.
12472         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
12473         barrier to read task->children..
12474         (gomp_barrier_handle_tasks): ..and matching atomic store with
12475         release barrier here when setting parent->children to NULL.
12477 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
12478             Tobias Burnus  <burnus@net-b.de>
12480         PR driver/55884
12481         * testsuite/libgomp.fortran/fortran.exp: Use
12482         -fintrinsic-modules-path= instead of
12483         -fintrinsic-modules-path.
12485 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
12487         Update copyright years.
12489 2012-12-19  Tobias Burnus  <burnus@net-b.de>
12491         * testsuite/libgomp.fortran/fortran.exp: Set
12492         -fintrinsic-modules-path.
12494 2012-12-19  Tobias Burnus  <burnus@net-b.de>
12496         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
12497         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
12499 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
12501         PR libgomp/55411
12502         * team.c (gomp_free_thread): Decrease gomp_managed_threads
12503         if pool had any threads_used.
12505 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
12507         * testsuite/libgomp.c++/pr24455.C: Use
12508         -Wl,-undefined,dynamic_lookup on darwin.
12510 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
12512         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
12514 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
12516         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
12518 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
12519             Jim MacArthur  <jim.macarthur@arm.com>
12520             Marcus Shawcroft  <marcus.shawcroft@arm.com>
12521             Nigel Stephens  <nigel.stephens@arm.com>
12522             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12523             Richard Earnshaw  <rearnsha@arm.com>
12524             Sofiane Naci  <sofiane.naci@arm.com>
12525             Stephen Thomas  <stephen.thomas@arm.com>
12526             Tejas Belagod  <tejas.belagod@arm.com>
12527             Yufeng Zhang  <yufeng.zhang@arm.com>
12529         * configure.tgt: Add AArch64.
12531 2012-10-04  Jason Merrill  <jason@redhat.com>
12533         * testsuite/libgomp.c++/tls-init1.C: New.
12535 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
12537         * configure: Regenerated.
12539 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
12541         * config/linux/mips/futex.h (sys_futex0): Change to static
12542         function with noinline, nomips16 attributes under MIPS16. Adjust
12543         asm statement to place 'li v0,SYS_futex' immediately before
12544         syscall insn.
12546 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
12548         * libgomp.texi (Library Index): Renamed from "Index" to prevent
12549         conflict with index.html on case-insensitive file systems.
12551 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
12553         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
12554         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
12556 2012-07-02  Richard Guenther  <rguenther@suse.de>
12557             Michael Matz  <matz@suse.de>
12558             Tobias Grosser <tobias@grosser.es>
12559             Sebastian Pop <sebpop@gmail.com>
12561         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
12562         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
12563         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
12564         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
12566 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
12568         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
12570 2012-06-22  Richard Guenther  <rguenther@suse.de>
12572         Merge from graphite branch
12573         2012-01-13  Tobias Grosser  <tobias@grosser.es>
12575         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
12576         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
12578 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
12580         PR middle-end/53580
12581         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
12582         use GOMP_barrier () call instead.
12583         * testsuite/libgomp.c/pr26943-3.c: Likewise.
12584         * testsuite/libgomp.c/pr26943-4.c: Likewise.
12585         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
12586         call GOMP_barrier instead.
12587         * testsuite/libgomp.fortran/vla5.f90: Likewise.
12589 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
12591         PR libgomp/52993
12592         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
12593         argument to memset call.
12595 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12597         * configure: Regenerated.
12599 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12601         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
12603 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
12605         PR bootstrap/52812
12606         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
12608 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
12610         PR middle-end/52547
12611         * testsuite/libgomp.c/pr52547.c: New test.
12613 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
12615         * testsuite/lib/libgomp.exp: load fortran-modules.exp
12617 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12619         * configure.tgt (mips-sgi-irix6*): Remove.
12621 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12623         * configure.tgt (alpha*-dec-osf*): Remove.
12625         * config/osf/sem.h: Remove.
12626         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
12628 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
12630         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
12632 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12634         PR libstdc++/52188
12635         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
12636         Remove ENABLE_SYMVERS_SOL2.
12637         * configure: Regenerate.
12638         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
12639         (PREPROCESS): New variable.
12640         (libgomp.ver): New target.
12641         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
12642         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
12643         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
12644         Use libgomp.ver.
12645         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
12646         * Makefile.in: Regenerate.
12648 2012-02-14  Walter Lee  <walt@tilera.com>
12650         * configure.tgt: Handle tilegx and tilepro.
12651         * config/linux/tile/futex.h: New file.
12653 2012-02-08  Richard Guenther  <rguenther@suse.de>
12655         PR tree-optimization/46886
12656         * testsuite/libgomp.c/pr46886.c: New testcase.
12658 2012-01-25  Matthias Klose  <doko@ubuntu.com>
12660         * config/linux/arm: Remove empty directory.
12661         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
12663 2011-12-09  Alan Modra  <amodra@gmail.com>
12665         PR libgomp/51376
12666         * task.c (GOMP_taskwait): Don't access task->children outside of
12667         task_lock mutex region.
12668         (GOMP_task): Likewise.
12670 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
12672         PR libgomp/51132
12673         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
12674         to file scope.
12675         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
12676         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
12677         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
12678         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
12679         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
12681 2011-12-02  Alan Modra  <amodra@gmail.com>
12683         * config/linux/affinity.c: Use atomic rather than sync builtin.
12684         * config/linux/lock.c: Likewise.
12685         * config/linux/ptrlock.h: Likewise.
12686         * config/linux/ptrlock.c: Likewise.
12687         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
12688         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
12689         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
12690         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
12691         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
12692         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
12693         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
12694         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
12695         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
12696         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
12698 2011-11-30  Alan Modra  <amodra@gmail.com>
12700         PR libgomp/51298
12701         * config/linux/bar.h: Use atomic rather than sync builtins.
12702         * config/linux/bar.c: Likewise.  Add missing acquire
12703         synchronisation on generation field.
12704         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
12705         double unlock.
12707 2011-11-30  Alan Modra  <amodra@gmail.com>
12709         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
12710         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
12711         * config/linux/mutex.h: Use atomic rather than sync builtins.
12712         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
12713         * config/linux/omp-lock.h: Comment fix.
12714         * config/linux/arm/mutex.h: Delete.
12715         * config/linux/powerpc/mutex.h: Delete.
12716         * config/linux/ia64/mutex.h: Delete.
12717         * config/linux/mips/mutex.h: Delete.
12719 2011-11-30  Alan Modra  <amodra@gmail.com>
12721         PR libgomp/51249
12722         * config/linux/sem.h: Rewrite.
12723         * config/linux/sem.c: Rewrite.
12725 2011-11-28  Richard Henderson  <rth@redhat.com>
12727         * libgomp.h (enum memmodel): New.
12729 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
12731         * configure: Regenerate.
12733 2011-10-10  Matthias Klose  <doko@ubuntu.com>
12735         * config/posix95: Remove empty directory.
12737 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
12739         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
12741 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
12743         PR fortran/49792
12744         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
12745         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
12747 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12749         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
12751 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12753         PR libgomp/49965
12754         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
12756 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
12758         * config/linux/proc.h: New.
12759         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
12760         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
12761         (gomp_init_num_threads): Update call to cpuset_popcount.
12762         (get_num_procs): Ditto.
12763         * config/linux/affinity.c (gomp_init_affinity): Call
12764         gomp_cpuset_popcount.
12766 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
12768         PR fortran/42041
12769         PR fortran/46752
12770         * omp.h.in (omp_in_final): New prototype.
12771         * omp_lib.f90.in (omp_in_final): New interface.
12772         (omp_integer_kind, omp_logical_kind): Remove
12773         and replace all its uses in the module with 4.
12774         (openmp_version): Change to 201107.
12775         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
12776         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
12777         kind for the parameters.
12778         (omp_in_final): New external.
12779         (openmp_version): Change to 201107.
12780         * task.c (omp_in_final): New function.
12781         (gomp_init_task): Initialize final_task.
12782         (GOMP_task): Remove unused attribute from flags.  Handle final
12783         tasks.
12784         (GOMP_taskyield): New function.
12785         (omp_in_final): Return true if if (false) or final (true) task
12786         or descendant of final (true).
12787         * fortran.c (omp_in_final_): New function.
12788         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
12789         (GOMP_3.0): Export GOMP_taskyield.
12790         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
12791         variables.
12792         (parse_unsigned_long_list): New function.
12793         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
12794         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
12795         even if parse_affinity returned false.
12796         * config/linux/affinity.c (gomp_init_affinity): Handle
12797         gomp_cpu_affinity_len == 0.
12798         * libgomp_g.h (GOMP_taskyield): New prototype.
12799         * libgomp.h (struct gomp_task): Add final_task field.
12800         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
12801         * team.c (gomp_team_start): Override new task's nthreads_var icv
12802         if list form OMP_NUM_THREADS has been used and it has value for
12803         the new nesting level.
12805         * testsuite/libgomp.c/atomic-11.c: New test.
12806         * testsuite/libgomp.c/atomic-12.c: New test.
12807         * testsuite/libgomp.c/atomic-13.c: New test.
12808         * testsuite/libgomp.c/atomic-14.c: New test.
12809         * testsuite/libgomp.c/reduction-6.c: New test.
12810         * testsuite/libgomp.c/task-5.c: New test.
12811         * testsuite/libgomp.c++/atomic-2.C: New test.
12812         * testsuite/libgomp.c++/atomic-3.C: New test.
12813         * testsuite/libgomp.c++/atomic-4.C: New test.
12814         * testsuite/libgomp.c++/atomic-5.C: New test.
12815         * testsuite/libgomp.c++/atomic-6.C: New test.
12816         * testsuite/libgomp.c++/atomic-7.C: New test.
12817         * testsuite/libgomp.c++/atomic-8.C: New test.
12818         * testsuite/libgomp.c++/atomic-9.C: New test.
12819         * testsuite/libgomp.c++/task-8.C: New test.
12820         * testsuite/libgomp.c++/reduction-4.C: New test.
12821         * testsuite/libgomp.fortran/allocatable7.f90: New test.
12822         * testsuite/libgomp.fortran/allocatable8.f90: New test.
12823         * testsuite/libgomp.fortran/crayptr3.f90: New test.
12824         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
12825         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
12826         * testsuite/libgomp.fortran/pointer1.f90: New test.
12827         * testsuite/libgomp.fortran/pointer2.f90: New test.
12828         * testsuite/libgomp.fortran/task4.f90: New test.
12830 2011-08-02  Tobias Burnus  <burnus@net-b.de>
12832         * libgomp.texi: Update OpenMP spec references to 3.1.
12833         (omp_in_final,OMP_PROC_BIND): New sections.
12834         (OMP_NUM_THREADS): Document that the value can be now a list.
12835         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
12837 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
12839         * config/linux/x86/futex.h: Check __x86_64__ instead of
12840         __LP64__.
12842 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
12844         PR middle-end/49897
12845         PR middle-end/49898
12846         * testsuite/libgomp.c/pr49897-1.c: New test.
12847         * testsuite/libgomp.c/pr49897-2.c: New test.
12848         * testsuite/libgomp.c/pr49898-1.c: New test.
12849         * testsuite/libgomp.c/pr49898-2.c: New test.
12851 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
12853         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
12854         for ia32 instead of ilp32.
12856         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
12857         * testsuite/libgomp.c/atomic-6.c: Likewise.
12859 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
12861         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
12862         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
12864 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12866         PR libgomp/45351
12867         * config/osf/sem.h: New file.
12868         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
12870 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12872         PR target/49541
12873         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
12874         ldflags.
12876 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
12878         * config/linux/wait.h (do_spin): New inline, largely copied
12879         from do_wait, just don't do futex_wait here, instead return true if
12880         it should be done.
12881         (do_wait): Implement using do_spin.
12882         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
12883         to prototype.
12884         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
12885         __sync_bool_compare_and_swap, pass the oldval to
12886         gomp_mutex_lock_slow.
12887         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
12888         If all mutex contenders are just spinning and not sleeping, don't
12889         change state to 2 unnecessarily.  Optimize the loop when state has
12890         already become 2 to use just one atomic operation per loop instead
12891         of two.
12892         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
12893         to prototype.
12894         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
12895         __sync_bool_compare_and_swap, pass the oldval to
12896         gomp_mutex_lock_slow.
12898 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
12900         PR libgomp/49490
12901         * iter.c (gomp_iter_static_next): For chunk size 0
12902         only use n ceil/ nthreads size for the first
12903         n % nthreads threads in the team instead of
12904         all threads except for the last few ones which
12905         get less work or none at all.
12906         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
12907         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
12908         chunk argument, set run_sched_modifier to 0 for static
12909         resp. 1 for other kinds.  If chunk argument is 0
12910         and not static, set value to 1.
12912 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
12914         PR c++/49043
12915         * testsuite/libgomp.c++/pr49043.C: New test.
12917         PR c++/48869
12918         * testsuite/libgomp.c++/pr48869.C: New test.
12920 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
12922         PR fortran/48894
12923         * fortran.c: Include limits.h.
12924         (TO_INT): Define.
12925         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
12926         *set.
12927         (omp_set_num_threads_8_, omp_set_schedule_8_,
12928         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
12929         omp_get_team_size_8_): Use TO_INT macro.
12930         * testsuite/libgomp.fortran/pr48894.f90: New test.
12932 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
12934         PR middle-end/48591
12935         * testsuite/libgomp.c/pr48591.c: New test.
12937 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12939         PR bootstrap/48135
12940         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
12941         * configure: Regenerate.
12943 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
12945         PR fortran/47886
12946         * testsuite/libgomp.fortran/task3.f90: New test.
12948 2011-02-24  Tobias Burnus  <burnus@net-b.de>
12950         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
12952 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
12954         PR libgomp/47854
12955         * libgomp.texi (omp_get_wtime): Don't say time in the past
12956         must be Unix Epoch.
12958 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
12960         PR libgomp/47804
12961         * testsuite/libgomp.fortran/fortran.exp: Check for both
12962         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
12963         but $blddir != "", still append ${blddir}/${lang_library_path}
12964         to ld_library_path.
12966 2011-02-16  Tobias Burnus  <burnus@net-b.de>
12968         PR libgomp/47758
12969         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
12970         of libquadmath.a before adding its libpath to ldflags.
12972 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
12974         PR libgomp/47731
12975         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
12976         to FUTEX_WAIT futex syscall.
12977         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
12979 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12981         * configure: Regenerate.
12983 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
12985         PR libstdc++/36104
12986         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
12988 2011-01-16  Gerald Pfeifer
12990         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
12992 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
12994         PR fortran/46874
12995         * libgomp.fortran/allocatable6.f90: New test.
12997 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12999         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
13000         * configure: Regenerate.
13002 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
13004         PR target/40125
13005         PR lto/46695
13006         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
13007         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
13008         * aclocal.m4: Regenerate.
13009         * configure: Regenerate.
13010         * Makefile.in: Regenerate.
13011         * testsuite/Makefile.in: Regenerate.
13013 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
13015         PR fortran/46753
13016         * libgomp.fortran/pr46753.f90: New test.
13018         PR libgomp/43706
13019         * env.c (initialize_env): Default to spin count 300000
13020         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
13021         is specified.
13023         PR libgomp/45240
13024         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
13025         at the end if sync builtins aren't supported.
13027 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13029         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
13031 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13033         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
13035 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
13037         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
13039 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13040             Tobias Burnus  <burnus@net-b.de>
13042         PR fortran/32049
13043         * configure.ac:
13044         * configure: Regenerate.
13046 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
13048         * config/linux/futex.h: New.
13049         * config/linux/arm/mutex.h: New.
13050         * configure.tgt (arm*-*-linux*): Add config path.
13052 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
13054         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13056 2010-09-23  Tobias Burnus  <burnus@net-b.de>
13058         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
13059         Change Fortran datatype to LOGICAL.
13060         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
13061         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
13063 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13065         * configure: Regenerate.
13067 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
13069         * libgomp.texi: Add function keyword to a couple of Fortran
13070         interfaces, use integer instead of int for Fortran.
13072 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
13074         * libgomp.texi: Fix spelling and pasto problems throughout.
13075         Adjust prototypes to match code.
13077 2010-07-24  Tobias Burnus  <burnus@net-b.de>
13079         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
13080         silence -fwhole-file warning.
13082 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13084         * configure.tgt (*-*-solaris2.[56]*): Removed.
13086 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13088         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
13089         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
13090         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
13091         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
13092         targetting solaris2*.
13093         * configure: Regenerate.
13094         * config.h.in: Regenerate.
13096         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
13097         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
13098         Add libgomp_version_dep.
13099         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
13100         versioning.
13101         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
13102         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
13103         * Makefile.in: Regenerate.
13105         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
13106         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
13107         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
13108         to common block, protected by
13109         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
13111 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
13113         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
13115 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
13117         PR bootstrap/43170
13118         * configure: Regenerate.
13120 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13122         PR other/43620
13123         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
13124         * configure: Regenerate.
13125         * Makefile.in: Regenerate.
13126         * testsuite/Makefile.in: Regenerate.
13128 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
13130         PR c/43893
13131         * testsuite/libgomp.c/pr43893.c: New test.
13132         * testsuite/libgomp.c++/pr43893.C: New test.
13134 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
13136         PR middle-end/43570
13137         * testsuite/libgomp.fortran/vla8.f90: New test.
13139 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
13141         PR libgomp/43706
13142         * config/linux/affinity.c (gomp_init_affinity): Decrease
13143         gomp_available_cpus if affinity mask confines the process to fewer
13144         CPUs.
13145         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
13146         non-NULL, just return gomp_available_cpus.
13148         PR libgomp/43569
13149         * sections.c (gomp_sections_init): Initialize ws->mode.
13151 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13153         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
13154         not unused bar variable.
13155         * configure: Regenerate.
13157 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13159         * Makefile.in: Regenerate.
13160         * aclocal.m4: Regenerate.
13161         * testsuite/Makefile.in: Regenerate.
13163 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
13165         PR libgomp/42942
13166         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
13167         (initialize_env): Adjust callers.
13168         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
13169         when the argument is 0.
13171         * testsuite/libgomp.c/pr42942.c: New test.
13173 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
13175         PR middle-end/42644
13176         PR middle-end/42130
13177         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
13178         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
13180 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13182         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
13183         * testsuite/libgomp.c++/task-6.C: Likewise.
13185 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
13187         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
13189 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
13191         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
13192         * configure: Regenerate.
13194 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
13196         PR fortran/42866
13197         * testsuite/libgomp.fortran/allocatable5.f90: New test.
13199 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
13201         * configure.ac: Test for executability of GFORTRAN.
13202         * configure: Regenerate.
13204 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13206         * configure: Regenerate.
13208 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
13210         PR libgomp/42602
13211         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
13213 2010-01-03  Richard Guenther  <rguenther@suse.de>
13215         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
13217 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
13219         * testsuite/libgomp.graphite/pr4118.c: New.
13221 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
13223         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
13224         for darwin, protect the test with require-effective-target tls_runtime.
13225         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
13227 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
13229         PR target/41605
13230         * testsuite/lib/libgomp.exp: Provide -B options to allow for
13231         link spec %s substitutions for static libraries.
13233 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
13235         PR testsuite/42135
13236         * libgomp.graphite/force-parallel-2.c: Reduce array size.
13238 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13240         * Makefile.in: Regenerate.
13241         * configure: Regenerate.
13242         * testsuite/Makefile.in: Regenerate.
13244 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
13246         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
13247         settings for LC_ALL and LANG.
13249 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
13251         PR fortran/42162
13252         * testsuite/libgomp.fortran/pr42162.f90: New test.
13254 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
13256         PR middle-end/42029
13257         * testsuite/libgomp.c/pr42029.c: New test.
13259 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
13261         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
13262         *s.  Accept ld version without text in ()s.
13263         * configure: Regenerated.
13265 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
13267         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
13269 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13271         PR libgomp/41418
13272         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
13273         or a hyphen (happens with fortran language disabled).
13274         * configure: Regenerate.
13276 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13278         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
13279         use sed script portable to Solaris /bin/sed for extracting ld
13280         version.
13281         * configure: Regenerate.
13283 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
13285         * testsuite/libgomp.graphite/bounds.c: New test.
13287 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13289         * Makefile.am (libgomp_la_LINK): New.
13290         * Makefile.in: Regenerate.
13292 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13294         * configure.ac (AC_PREREQ): Bump to 2.64.
13296 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13298         * Makefile.am (install-html, install-pdf): Remove.
13299         * Makefile.in: Regenerate.
13301         * Makefile.in: Regenerate.
13302         * aclocal.m4: Regenerate.
13303         * config.h.in: Regenerate.
13304         * configure: Regenerate.
13305         * testsuite/Makefile.in: Regenerate.
13307 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13309         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
13310         * Makefile.in: Regenerate.
13312 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
13314         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
13315         * Makefile.in: Regenerate.
13317 2009-08-19  Tobias Burnus  <burnus@net-b.de>
13319         PR fortran/41102
13320         omp_lib.h.in: Fix -std=f95 errors.
13322 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
13324         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
13325         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
13326         * testsuite/libgomp.graphite/graphite.exp: New.
13328 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
13330         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
13331         only build.
13333 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
13335         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
13336         needed memory barrier semantics.
13337         * config/linux/mips/mutex.h: New file.
13339 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13341         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
13343 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
13345         * configure: Regenerate.
13347 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
13349         PR testsuite/40699
13350         PR testsuite/40707
13351         PR testsuite/40709
13352         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
13353         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
13354         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
13356 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
13358         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
13359         options when choosing a multilib.
13361 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
13363         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
13364         ld_library_path.  Use add_path.  Add just find_libgcc_s to
13365         ld_library_path, not every libgcc multilib directory.
13366         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
13367         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
13368         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
13369         Use add_path.
13370         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
13372 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
13374         * Makefile.am (LTLDFLAGS): Define.
13375         (LINK): Define.
13376         * Makefile.in: Regenerate.
13378 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
13380         PR fortran/39718
13381         * testsuite/libgomp.fortran/fortran.exp: Don't link with
13382         libgfortranbegin, check existence of libgfortran.a instead of
13383         libgfortranbegin.a.
13385 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
13387         PR libgomp/40174
13388         * team.c (gomp_thread_start): Destroy thr->release semaphore.
13389         (gomp_free_pool_helper): Likewise.
13391 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
13392             Jakub Jelinek  <jakub@redhat.com>
13394         PR fortran/35423
13395         * testsuite/libgomp.fortran/workshare2.f90: New test.
13397 2009-04-09  Nick Clifton  <nickc@redhat.com>
13399         * iter.c: Change copyright header to refer to version 3 of the
13400         GNU General Public License with version 3.1 of the GCC Runtime
13401         Library Exception and to point readers at the COPYING3 and
13402         COPYING3.RUNTIME files and the FSF's license web page.
13403         * alloc.c: Likewise.
13404         * barrier.c: Likewise.
13405         * config/bsd/proc.c: Likewise.
13406         * config/linux/affinity.c: Likewise.
13407         * config/linux/alpha/futex.h: Likewise.
13408         * config/linux/bar.c: Likewise.
13409         * config/linux/bar.h: Likewise.
13410         * config/linux/ia64/futex.h: Likewise.
13411         * config/linux/ia64/mutex.h: Likewise.
13412         * config/linux/lock.c: Likewise.
13413         * config/linux/mips/futex.h: Likewise.
13414         * config/linux/mutex.c: Likewise.
13415         * config/linux/mutex.h: Likewise.
13416         * config/linux/powerpc/futex.h: Likewise.
13417         * config/linux/proc.c: Likewise.
13418         * config/linux/ptrlock.c: Likewise.
13419         * config/linux/ptrlock.h: Likewise.
13420         * config/linux/s390/futex.h: Likewise.
13421         * config/linux/sem.c: Likewise.
13422         * config/linux/sem.h: Likewise.
13423         * config/linux/sparc/futex.h: Likewise.
13424         * config/linux/wait.h: Likewise.
13425         * config/linux/x86/futex.h: Likewise.
13426         * config/mingw32/proc.c: Likewise.
13427         * config/mingw32/time.c: Likewise.
13428         * config/posix/affinity.c: Likewise.
13429         * config/posix/bar.c: Likewise.
13430         * config/posix/bar.h: Likewise.
13431         * config/posix/lock.c: Likewise.
13432         * config/posix/mutex.h: Likewise.
13433         * config/posix/proc.c: Likewise.
13434         * config/posix/ptrlock.h: Likewise.
13435         * config/posix/sem.c: Likewise.
13436         * config/posix/sem.h: Likewise.
13437         * config/posix/time.c: Likewise.
13438         * config/posix95/lock.c: Likewise.
13439         * critical.c: Likewise.
13440         * env.c: Likewise.
13441         * error.c: Likewise.
13442         * fortran.c: Likewise.
13443         * iter_ull.c: Likewise.
13444         * libgomp.h: Likewise.
13445         * libgomp_f.h.in: Likewise.
13446         * libgomp_g.h: Likewise.
13447         * loop.c: Likewise.
13448         * loop_ull.c: Likewise.
13449         * omp.h.in: Likewise.
13450         * omp_lib.f90.in: Likewise.
13451         * omp_lib.h.in: Likewise.
13452         * ordered.c: Likewise.
13453         * parallel.c: Likewise.
13454         * sections.c: Likewise.
13455         * single.c: Likewise.
13456         * task.c: Likewise.
13457         * team.c: Likewise.
13458         * work.c: Likewise.
13460 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
13462         * testsuite/config/default.exp: Change copyright header to refer to
13463         version 3 of the GNU General Public License and to point readers
13464         at the COPYING3 file and the FSF's license web page.
13466 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
13468         PR middle-end/39573
13469         * libgomp.c++/pr39573.C: New test.
13471 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
13473         PR other/39591
13474         * testsuite/libgomp.c/pr39591-1.c: New test.
13475         * testsuite/libgomp.c/pr39591-2.c: New test.
13476         * testsuite/libgomp.c/pr39591-3.c: New test.
13478 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
13480         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
13481         * testsuite/libgomp.c/atomic-6.c: Ditto.
13483 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
13485         PR c/39495
13486         * testsuite/libgomp.c/loop-12.c: New test.
13487         * testsuite/libgomp.c/loop-11.c: New test.
13488         * testsuite/libgomp.c++/loop-11.C: New test.
13489         * testsuite/libgomp.c++/loop-12.C: New test.
13490         * testsuite/libgomp.c++/for-8.C: New test.
13492 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13494         * configure: Regenerate.
13496 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
13498         PR middle-end/39154
13499         * testsuite/libgomp.c/pr39154.c: New test.
13501 2009-01-30  Ian Lance Taylor  <iant@google.com>
13503         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
13504         libgomp_ld_is_gold.  Get gold version number.
13505         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
13506         * configure: Rebuild.
13508 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
13510         * testsuite/lib/libgomp.exp: Add -B option for targets that
13511         use libgfortran.a%s in their specs.
13513 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
13515         PR libgomp/38086
13516         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
13517         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
13518         HAVE_AS_SYMVER_DIRECTIVE is not defined.
13519         * configure: Regenerated.
13520         * config.h.in: Likewise.
13522 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
13524         PR c++/38650
13525         * testsuite/libgomp.c/pr38650.c: New test.
13526         * testsuite/libgomp.c++/pr38650.C: New test.
13528 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
13530         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
13532 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
13534         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
13536 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13538         * configure: Regenerate.
13540 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
13542         PR middle-end/36802
13543         * testsuite/libgomp.c/pr36802-1.c: New test.
13544         * testsuite/libgomp.c/pr36802-2.c: New test.
13545         * testsuite/libgomp.c/pr36802-3.c: New test.
13547 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
13549         PR libgomp/38270
13550         * config/linux/powerpc/mutex.h: New.
13552 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
13554         PR c++/38257
13555         * testsuite/libgomp.c++/for-7.C: New test.
13557         PR c++/38348
13558         * testsuite/libgomp.c++/for-6.C: New test.
13560 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
13562         PR testsuite/28870
13563         * testsuite/lib/libgomp.exp: Include new timeout library files.
13564         (libgomp_target_compile): Set timeout value from new proc.
13566 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
13568         PR libgomp/37938
13569         * config/linux/ia64/mutex.h: New.
13571 2008-11-04  Tobias Burnus  <burnus@net-b.de>
13573         PR libgomp/37935
13574         * libgomp.texi (Runtime library routines, environment variables):
13575         Update for OpenMP version 3.0.
13577 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
13578             Steve Ellcey  <sje@cup.hp.com>
13580         * configure: Regenerate for new libtool.
13581         * Makefile.in: Ditto.
13582         * testsuite/Makefile.in: Ditto.
13584 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
13585             Andreas Tobler  <a.tobler@schweiz.org>
13587         * config/bsd/proc.c: New file.
13588         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
13589         * configure.ac: Check for header <sys/sysctl.h>
13590         * configure: Regenerate.
13591         * config.h.in: Likewise.
13593 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
13595         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
13597 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
13599         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
13600         * Makefile.in: Regenerated.
13601         * testsuite/Makefile.in: Regenerated.
13603 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
13605         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
13606         depend on blddir if blddir exists.
13607         (libgomp_target_compile): Likewise.
13608         * testsuite/libgomp.c++/c++.exp: Likewise.
13609         * testsuite/libgomp.fortran/fortran.exp: Likewise.
13611 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13613         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
13614         Do not list GPL as Invariant Section.
13616 2008-07-28  Ilie Garbacea  <ilie@mips.com>
13617             Chao-ying Fu  <fu@mips.com>
13619         * configure.tgt: Enable futex for MIPS.
13620         * config/linux/mips/futex.h: New file.
13622 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
13624         * team.c (gomp_team_end): Free team immediately if it has
13625         just one thread.
13627 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
13629         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
13630         * testsuite/libgomp.fortran/fortran.exp: Same.
13631         * testsuite/libgomp.c/c.exp: Same.
13632         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
13633         directory to library path first.
13635 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
13637         * env.c (parse_stacksize): Add cast to avoid warning.
13638         (parse_spincount): Likewise.
13640 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
13642         * testsuite/libgomp.c/loop-10.c: New test.
13643         * libgomp.c/loop-3.c (main): Add lastprivate clause.
13644         * libgomp.c++/loop-6.C (main): Likewise.
13646         PR debug/36617
13647         * testsuite/libgomp.c/debug-1.c: New test.
13649 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
13651         * testsuite/libgomp.c/nqueens-1.c: New test.
13653         PR c++/36523
13654         * testsuite/libgomp.c++/task-7.C: New function.
13656 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13658         * configure: Regenerate.
13660 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13662         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
13663         mutex when HAVE_SYNC_BUILTINS isn't defined.
13665 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13667         * libgomp.texi (omp_test_lock): Fix typo.
13669 2008-06-12  Tobias Burnus  <burnus@net-b.de>
13671         * omp_lib.f90.in: Add "implicit none".
13673 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
13675         PR middle-end/36506
13676         * testsuite/libgomp.c/reduction-5.c: New test.
13678 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
13680         * libgomp.h (struct gomp_task): Add in_tied_task field.
13681         * task.c (gomp_init_task): Initialize it.
13682         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
13683         unconditionally.  Don't call gomp_team_barrier_wake if
13684         current task is implicit or if(0) from implicit and number of
13685         running tasks is equal to nthreads - 1.
13687         PR libgomp/36471
13688         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
13689         omp_get_team_size_8): Fix pastos.
13691         PR libgomp/36469
13692         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
13693         * configure: Regenerated.
13694         * config.h.in: Regenerated.
13695         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
13696         defined.
13698 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
13700         PR bootstrap/36452
13701         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
13702         (GOMP_loop_ull_dynamic_start): Likewise.
13703         (GOMP_loop_ull_guided_start): Likewise.
13704         (GOMP_loop_ull_ordered_static_start): Likewise.
13705         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
13706         (GOMP_loop_ull_ordered_guided_start): Likewise.
13708 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
13709             Richard Henderson  <rth@redhat.com>
13710             Ulrich Drepper  <drepper@redhat.com>
13711             Jakob Blomer  <jakob.blomer@ira.uka.de>
13713         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
13714         Substitute also OMP_*LOCK_25*.
13715         * configure: Regenerated.
13716         * config.h.in: Regenerated.
13717         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
13718         ptrlock.c and task.c.
13719         * Makefile.in: Regenerated.
13720         * testsuite/Makefile.in: Regenerated.
13721         * task.c: New file.
13722         * loop_ull.c: New file.
13723         * iter_ull.c: New file.
13724         * libgomp.h: Include ptrlock.h.
13725         (enum gomp_task_kind): New type.
13726         (struct gomp_team): Add task_lock, task_queue, task_count,
13727         task_running_count, single_count fields.  Add
13728         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
13729         Remove work_share_lock, generation_mask,
13730         oldest_live_gen, num_live_gen and init_work_shares fields, add
13731         work work_share_list_alloc, work_share_list_free and work_share_chunk
13732         fields.  Change work_shares from pointer to pointers into an array.
13733         Change ordered_release field into gomp_sem_t ** from flexible array
13734         member.  Add implicit_task and initial_work_shares fields.
13735         Move close to the end of the struct.
13736         (struct gomp_team_state): Add single_count, last_work_share,
13737         active_level and level fields, remove work_share_generation.
13738         (gomp_barrier_handle_tasks): New prototype.
13739         (gomp_finish_task): New inline function.
13740         (struct gomp_work_share): Move chunk_size, end, incr into
13741         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
13742         next_ll fields.  Reshuffle fields.  Add next_alloc,
13743         next_ws, next_free and inline_ordered_team_ids fields, change
13744         ordered_team_ids into pointer from flexible array member.
13745         Add mode field.  Put lock and next into a different cache line
13746         from most of the write-once fields.
13747         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
13748         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
13749         gomp_iter_ull_guided_next): New prototypes.
13750         (gomp_new_icv): New prototype.
13751         (struct gomp_thread): Add thread_pool and task fields.
13752         (struct gomp_thread_pool): New type.
13753         (gomp_new_team): New prototype.
13754         (gomp_team_start): Change type of last argument.
13755         (gomp_new_work_share): Removed.
13756         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
13757         (gomp_work_share_init_done): New static inline.
13758         (gomp_throttled_spin_count_var, gomp_available_cpus,
13759         gomp_managed_threads): New extern decls.
13760         (gomp_init_task): New prototype.
13761         (gomp_spin_count_var): New extern var decl.
13762         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
13763         or no alias support, or if not PIC.
13764         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
13765         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
13766         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
13767         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
13768         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
13769         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
13770         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
13771         gomp_test_nest_lock_25): New prototypes.
13772         (omp_lock_symver, strong_alias): Define.
13773         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
13774         decls.
13775         (gomp_end_task): New.
13776         (struct gomp_task_icv, gomp_global_icv): New.
13777         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
13778         (struct gomp_task): New.
13779         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
13780         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
13781         (gomp_icv): New.
13782         (gomp_schedule_type): Reorder enum to match
13783         omp_sched_t.
13784         * team.c (struct gomp_thread_start_data): Add thread_pool and task
13785         fields.
13786         (gomp_thread_start): Add gomp_team_barrier_wait call.
13787         For non-nested case remove clearing of docked thread thr fields.
13788         Use pool fields instead of global gomp_* variables.  Use
13789         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
13790         Create tasks for each member thread.
13791         (free_team): Only destroy team barrier, task_lock here and free it.
13792         (gomp_free_thread): Free last_team if non-NULL.
13793         (gomp_team_end): Call gomp_team_barrier_wait instead of
13794         gomp_barrier_wait.  For nested case call one extra
13795         gomp_barrier_wait.  Move here some destruction from free_team.
13796         Call free_team on pool->last_team if any, rather than freeing
13797         current team.  Destroy work_share_list_free_lock ifndef
13798         HAVE_SYNC_BUILTINS.
13799         (gomp_new_icv): New function.
13800         (gomp_threads, gomp_threads_size, gomp_threads_used,
13801         gomp_threads_dock): Removed.
13802         (gomp_thread_destructor): New variable.
13803         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
13804         functions.
13805         (gomp_team_start): Create new pool if current thread doesn't have
13806         one.  Use pool fields instead of global gomp_* variables.
13807         Initialize thread_pool field for new threads.  Clear single_count.
13808         Change last argument from ws to team, don't create
13809         new team, set ts.work_share to &team->work_shares[0] and clear
13810         ts.last_work_share.  Don't clear ts.work_share_generation.
13811         If number of threads changed, adjust atomically gomp_managed_threads.
13812         Use gomp_init_task instead of gomp_new_task,
13813         set thr->task to the corresponding implicit_task array entry.
13814         Create tasks for each member thread.  Initialize ts.level.
13815         (initialize_team): Call pthread_key_create on
13816         gomp_thread_destructor.
13817         (team_destructor): New function.
13818         (new_team): Removed.
13819         (gomp_new_team): New function.
13820         (free_team): Free gomp_work_share blocks chained through next_alloc,
13821         instead of freeing work_shares and destroying work_share_lock.
13822         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
13823         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
13824         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
13825         of gomp_barrier_wait.
13826         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
13827         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
13828         if gomp_work_share_start returned true.  Don't unlock ws->lock.
13829         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
13830         of gomp_barrier_wait.
13831         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
13832         gomp_work_share_init_done if gomp_work_share_start returned true.
13833         Don't unlock ws->lock.
13834         * work.c: Include stddef.h.
13835         (free_work_share): Use work_share_list_free_lock instead
13836         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
13837         Call gomp_fini_work_share and then either free ws if orphaned, or
13838         put it into work_share_list_free list of the current team.
13839         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
13840         functions.
13841         (gomp_work_share_start, gomp_work_share_end,
13842         gomp_work_share_end_nowait): Rewritten.
13843         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
13844         (openmp_version): Set to 200805.
13845         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
13846         omp_sched_guided, omp_sched_auto): New parameters.
13847         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
13848         omp_set_max_active_levels, omp_get_max_active_levels,
13849         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
13850         omp_get_active_level): New interfaces.
13851         * omp_lib.h.in (openmp_version): Set to 200805.
13852         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
13853         omp_sched_guided, omp_sched_auto): New parameters.
13854         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
13855         omp_set_max_active_levels, omp_get_max_active_levels,
13856         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
13857         omp_get_active_level): New externals.
13858         * loop.c: Include limits.h.
13859         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
13860         GFS_AUTO.
13861         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
13862         Likewise.  Use gomp_icv.
13863         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
13864         ts.static_trip here.
13865         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
13866         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
13867         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
13868         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
13869         don't unlock ws->lock, otherwise lock it.
13870         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
13871         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
13872         (gomp_parallel_loop_start): Call gomp_new_team instead of
13873         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
13874         Adjust gomp_team_start caller.  Pass 0 as second argument to
13875         gomp_resolve_num_threads.
13876         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
13877         If adding ws->chunk_size nthreads + 1 times after end won't
13878         overflow, set ws->mode to 1.
13879         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
13880         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
13881         GOMP_loop_ull_ordered_static_start,
13882         GOMP_loop_ull_ordered_dynamic_start,
13883         GOMP_loop_ull_ordered_guided_start,
13884         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
13885         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
13886         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
13887         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
13888         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
13889         prototypes.
13890         * libgomp.map: Export lock routines also @@OMP_2.0.
13891         (GOMP_loop_ordered_dynamic_first,
13892         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
13893         GOMP_loop_ordered_static_first): Remove.
13894         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
13895         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
13896         GOMP_loop_ull_ordered_dynamic_next,
13897         GOMP_loop_ull_ordered_dynamic_start,
13898         GOMP_loop_ull_ordered_guided_next,
13899         GOMP_loop_ull_ordered_guided_start,
13900         GOMP_loop_ull_ordered_runtime_next,
13901         GOMP_loop_ull_ordered_runtime_start,
13902         GOMP_loop_ull_ordered_static_next,
13903         GOMP_loop_ull_ordered_static_start,
13904         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
13905         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
13906         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
13907         (omp_set_schedule, omp_get_schedule,
13908         omp_get_thread_limit, omp_set_max_active_levels,
13909         omp_get_max_active_levels, omp_get_level,
13910         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
13911         omp_set_schedule_, omp_set_schedule_8_,
13912         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
13913         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
13914         omp_get_max_active_levels_, omp_get_level_,
13915         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
13916         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
13917         New exports @@OMP_3.0.
13918         * omp.h.in (omp_sched_t): New type.
13919         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
13920         omp_set_max_active_levels, omp_get_max_active_levels,
13921         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
13922         omp_get_active_level): New prototypes.
13923         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
13924         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
13925         gomp_thread_limit_var, gomp_remaining_threads_count,
13926         gomp_remaining_threads_lock): New variables.
13927         (parse_spincount): New function.
13928         (initialize_env): Call gomp_init_num_threads unconditionally.
13929         Initialize gomp_available_cpus.  Call parse_spincount,
13930         initialize gomp_{,throttled_}spin_count_var
13931         depending on presence and value of OMP_WAIT_POLICY and
13932         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
13933         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
13934         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
13935         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
13936         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
13937         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
13938         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
13939         (gomp_global_icv): New.
13940         (parse_schedule): Use it.  Parse "auto".
13941         (omp_set_num_threads): Use gomp_icv.
13942         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
13943         Likewise.
13944         (omp_get_max_threads): Move from parallel.c.
13945         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
13946         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
13947         add ialias.
13948         (parse_stacksize, parse_wait_policy): New functions.
13949         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
13950         both wrappers for compatibility and new locks.
13951         (omp_set_schedule, omp_get_schedule,
13952         omp_get_thread_limit, omp_set_max_active_levels,
13953         omp_get_max_active_levels, omp_get_level,
13954         omp_get_ancestor_thread_num, omp_get_team_size,
13955         omp_get_active_level): New ialias_redirect.
13956         (omp_set_schedule_, omp_set_schedule_8_,
13957         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
13958         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
13959         omp_get_max_active_levels_, omp_get_level_,
13960         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
13961         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
13962         New functions.
13963         * parallel.c: Include limits.h.
13964         (gomp_resolve_num_threads): Add count argument.  Rewritten.
13965         (GOMP_parallel_start): Call gomp_new_team and pass that as last
13966         argument to gomp_team_start.  Pass 0 as second argument to
13967         gomp_resolve_num_threads.
13968         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
13969         if gomp_thread_limit_var != ULONG_MAX.
13970         (omp_in_parallel): Implement using ts.active_level.
13971         (omp_get_max_threads): Move to env.c.
13972         (omp_get_level, omp_get_ancestor_thread_num,
13973         omp_get_team_size, omp_get_active_level): New functions,
13974         add ialias.
13975         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
13976         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
13977         gomp_iter_dynamic_next instead of the _locked variant and don't take
13978         lock around it, otherwise acquire it before calling
13979         gomp_iter_dynamic_next_locked.
13980         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
13981         gomp_iter_dynamic_next instead of the _locked variant and don't take
13982         lock around it.
13983         (GOMP_parallel_sections_start): Call gomp_new_team instead of
13984         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
13985         Adjust gomp_team_start caller.  Pass count as second argument to
13986         gomp_resolve_num_threads, don't adjust num_threads after the call.
13987         Use gomp_icv.
13988         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
13989         ws->chunk_size by incr.
13990         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
13991         code.
13992         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
13993         types.
13994         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
13995         (omp_check_defines): Check even the compat defines.
13996         * config/linux/ptrlock.c: New file.
13997         * config/linux/ptrlock.h: New file.
13998         * config/linux/wait.h: New file.
13999         * config/posix/ptrlock.c: New file.
14000         * config/posix/ptrlock.h: New file.
14001         * config/linux/bar.h (gomp_team_barrier_wait,
14002         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
14003         (gomp_team_barrier_set_task_pending,
14004         gomp_team_barrier_clear_task_pending,
14005         gomp_team_barrier_set_waiting_for_tasks,
14006         gomp_team_barrier_waiting_for_tasks,
14007         gomp_team_barrier_done): New inlines.
14008         (gomp_barrier_t): Rewritten.
14009         (gomp_barrier_state_t): New typedef.
14010         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
14011         gomp_barrier_wait_start): Rewritten.
14012         (gomp_barrier_wait_end): Change second argument to
14013         gomp_barrier_state_t.
14014         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
14015         inlines.
14016         * config/linux/bar.c: Include wait.h instead of libgomp.h and
14017         futex.h.
14018         (gomp_barrier_wait_end): Rewritten.
14019         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
14020         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
14021         * config/posix/bar.h (gomp_barrier_t): Add generation field.
14022         (gomp_barrier_state_t): New typedef.
14023         (gomp_team_barrier_wait,
14024         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
14025         (gomp_barrier_wait_start): Or all but low 2 bits from generation
14026         into the return value.  Return gomp_barrier_state_t.
14027         (gomp_team_barrier_set_task_pending,
14028         gomp_team_barrier_clear_task_pending,
14029         gomp_team_barrier_set_waiting_for_tasks,
14030         gomp_team_barrier_waiting_for_tasks,
14031         gomp_team_barrier_done): New inlines.
14032         (gomp_barrier_wait_end): Change second argument to
14033         gomp_barrier_state_t.
14034         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
14035         inlines.
14036         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
14037         (gomp_barrier_wait_end): Change second argument to
14038         gomp_barrier_state_t.
14039         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
14040         gomp_team_barrier_wake): New functions.
14041         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
14042         futex.h.
14043         (gomp_futex_wake, gomp_futex_wait): New variables.
14044         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
14045         * config/linux/lock.c: Rewrite to make locks task owned,
14046         for backwards compatibility provide the old entrypoints
14047         if symbol versioning.  Include wait.h instead of libgomp.h and
14048         futex.h.
14049         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
14050         * config/posix95/lock.c: Rewrite to make locks task owned,
14051         for backwards compatibility provide the old entrypoints
14052         if symbol versioning.
14053         * config/posix/lock.c: Rewrite to make locks task owned,
14054         for backwards compatibility provide the old entrypoints
14055         if symbol versioning.
14056         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
14057         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
14058         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
14059         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14060         (sys_futex0): Return error code.
14061         (futex_wake, futex_wait): If ENOSYS was returned, clear
14062         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14063         (cpu_relax, atomic_write_barrier): New static inlines.
14064         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14065         (futex_wake, futex_wait): If ENOSYS was returned, clear
14066         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14067         (cpu_relax, atomic_write_barrier): New static inlines.
14068         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14069         (sys_futex0): Return error code.
14070         (futex_wake, futex_wait): If ENOSYS was returned, clear
14071         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14072         (cpu_relax, atomic_write_barrier): New static inlines.
14073         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14074         (sys_futex0): Return error code.
14075         (futex_wake, futex_wait): If ENOSYS was returned, clear
14076         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14077         (cpu_relax, atomic_write_barrier): New static inlines.
14078         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14079         (sys_futex0): Return error code.
14080         (futex_wake, futex_wait): If ENOSYS was returned, clear
14081         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14082         (cpu_relax, atomic_write_barrier): New static inlines.
14083         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
14084         (sys_futex0): Return error code.
14085         (futex_wake, futex_wait): If ENOSYS was returned, clear
14086         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
14087         (cpu_relax, atomic_write_barrier): New static inlines.
14088         * config/linux/sem.c: Include wait.h instead of libgomp.h and
14089         futex.h.
14090         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
14091         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
14092         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
14093         types.
14094         (omp_nest_lock_t): Change owner into void *, add lock field.
14095         * config/posix95/omp-lock.h: Include semaphore.h.
14096         (omp_lock_25_t, omp_nest_lock_25_t): New types.
14097         (omp_lock_t): Use sem_t instead of mutex if semaphores
14098         aren't broken.
14099         (omp_nest_lock_t): Likewise.  Change owner to void *.
14100         * config/posix/omp-lock.h: Include semaphore.h.
14101         (omp_lock_25_t, omp_nest_lock_25_t): New types.
14102         (omp_lock_t): Use sem_t instead of mutex if semaphores
14103         aren't broken.
14104         (omp_nest_lock_t): Likewise.  Add owner field.
14106 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
14108         * testsuite/libgomp.c/collapse-1.c: New test.
14109         * testsuite/libgomp.c/collapse-2.c: New test.
14110         * testsuite/libgomp.c/collapse-3.c: New test.
14111         * testsuite/libgomp.c/icv-1.c: New test.
14112         * testsuite/libgomp.c/icv-2.c: New test.
14113         * testsuite/libgomp.c/lib-2.c: New test.
14114         * testsuite/libgomp.c/lock-1.c: New test.
14115         * testsuite/libgomp.c/lock-2.c: New test.
14116         * testsuite/libgomp.c/lock-3.c: New test.
14117         * testsuite/libgomp.c/loop-4.c: New test.
14118         * testsuite/libgomp.c/loop-5.c: New test.
14119         * testsuite/libgomp.c/loop-6.c: New test.
14120         * testsuite/libgomp.c/loop-7.c: New test.
14121         * testsuite/libgomp.c/loop-8.c: New test.
14122         * testsuite/libgomp.c/loop-9.c: New test.
14123         * testsuite/libgomp.c/nested-3.c: New test.
14124         * testsuite/libgomp.c/nestedfn-6.c: New test.
14125         * testsuite/libgomp.c/sort-1.c: New test.
14126         * testsuite/libgomp.c/task-1.c: New test.
14127         * testsuite/libgomp.c/task-2.c: New test.
14128         * testsuite/libgomp.c/task-3.c: New test.
14129         * testsuite/libgomp.c/task-4.c: New test.
14130         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
14131         to C++ testsuite default compiler options.
14132         * testsuite/libgomp.c++/collapse-1.C: New test.
14133         * testsuite/libgomp.c++/collapse-2.C: New test.
14134         * testsuite/libgomp.c++/ctor-10.C: New test.
14135         * testsuite/libgomp.c++/for-1.C: New test.
14136         * testsuite/libgomp.c++/for-2.C: New test.
14137         * testsuite/libgomp.c++/for-3.C: New test.
14138         * testsuite/libgomp.c++/for-4.C: New test.
14139         * testsuite/libgomp.c++/for-5.C: New test.
14140         * testsuite/libgomp.c++/loop-8.C: New test.
14141         * testsuite/libgomp.c++/loop-9.C: New test.
14142         * testsuite/libgomp.c++/loop-10.C: New test.
14143         * testsuite/libgomp.c++/task-1.C: New test.
14144         * testsuite/libgomp.c++/task-2.C: New test.
14145         * testsuite/libgomp.c++/task-3.C: New test.
14146         * testsuite/libgomp.c++/task-4.C: New test.
14147         * testsuite/libgomp.c++/task-5.C: New test.
14148         * testsuite/libgomp.c++/task-6.C: New test.
14149         * testsuite/libgomp.fortran/allocatable1.f90: New test.
14150         * testsuite/libgomp.fortran/allocatable2.f90: New test.
14151         * testsuite/libgomp.fortran/allocatable3.f90: New test.
14152         * testsuite/libgomp.fortran/allocatable4.f90: New test.
14153         * testsuite/libgomp.fortran/collapse1.f90: New test.
14154         * testsuite/libgomp.fortran/collapse2.f90: New test.
14155         * testsuite/libgomp.fortran/collapse3.f90: New test.
14156         * testsuite/libgomp.fortran/collapse4.f90: New test.
14157         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
14158         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
14159         * testsuite/libgomp.fortran/lib4.f90: New test.
14160         * testsuite/libgomp.fortran/lock-1.f90: New test.
14161         * testsuite/libgomp.fortran/lock-2.f90: New test.
14162         * testsuite/libgomp.fortran/nested1.f90: New test.
14163         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
14164         * testsuite/libgomp.fortran/strassen.f90: New test.
14165         * testsuite/libgomp.fortran/tabs1.f90: New test.
14166         * testsuite/libgomp.fortran/tabs2.f: New test.
14167         * testsuite/libgomp.fortran/task1.f90: New test.
14168         * testsuite/libgomp.fortran/task2.f90: New test.
14169         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
14170         * testsuite/libgomp.fortran/vla5.f90: Likewise.
14171         * testsuite/libgomp.c/pr26943-2.c: Likewise.
14172         * testsuite/libgomp.c/pr26943-3.c: Likewise.
14173         * testsuite/libgomp.c/pr26943-4.c: Likewise.
14175 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
14177         PR c++/36308
14178         * testsuite/libgomp.c++/ctor-11.C: New test.
14179         * testsuite/libgomp.c++/ctor-12.C: New test.
14181 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
14183         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
14185 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
14187         PR middle-end/36106
14188         * testsuite/libgomp.c/atomic-5.c: New test.
14189         * testsuite/libgomp.c/atomic-6.c: New test.
14190         * testsuite/libgomp.c/autopar-1.c: New test.
14192 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14194         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
14195         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
14196         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
14197         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
14198         * configure: Regenerate.
14199         * Makefile.in, testsuite/Makefile.in: Likewise.
14201 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
14203         PR bootstrap/35457
14204         * aclocal.m4: Regenerate.
14205         * configure: Regenerate.
14207 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
14209         PR middle-end/35611
14210         * testsuite/libgomp.c/atomic-4.c: New test.
14212         PR libgomp/35625
14213         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
14214         (gomp_iter_guided_next): Likewise.
14215         * testsuite/libgomp.c/pr35625.c: New test.
14217 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14219         * aclocal.m4: Regenerate.
14220         * configure: Likewise.
14221         * Makefile.in: Likewise.
14222         * testsuite/Makefile.in: Likewise.
14224 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
14226         PR middle-end/35185
14227         * testsuite/libgomp.c++/pr35185.C: New test.
14229 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
14231         PR middle-end/35549
14232         * testsuite/libgomp.c/pr35549.c: New test.
14234 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
14236         * testsuite/libgomp.c/atomic-3.c: New test.
14238 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14240         PR fortran/33197
14241         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
14242         .F08 file suffixes.
14244 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
14246         PR libgomp/33131
14247         * configure.ac: Add ACX_HEADER_STRING.
14248         * env.c: Include strings.h.
14249         * aclocal.m4: Regenerate.
14250         * config.h.in: Regenerate.
14251         * configure: Regenerate.
14252         * Makefile.in: Regenerate.
14253         * testsuite/Makefile.in: Regenerate.
14255 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
14257         PR middle-end/35196
14258         * testsuite/libgomp.c/pr35196.c: New test.
14260         PR middle-end/35130
14261         * testsuite/libgomp.fortran/pr35130.f90: New test.
14262         * testsuite/libgomp.c/pr35130.c: New test.
14264 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
14266         PR middle-end/33880
14267         * testsuite/libgomp.c/pr33880.c: New test.
14268         * testsuite/libgomp.fortran/pr33880.f90: New test.
14270 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
14272         * configure: Regenerate.
14274 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
14276         * configure.ac: Move futex checking into ../config/futex.m4.
14277         * configure: Rebuilt.
14278         * aclocal.m4: Rebuilt.
14279         * Makefile.in: Rebuilt.
14281         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
14282         2007-10-15 ../config/tls.m4 change.
14284 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
14286         PR c++/34513
14287         * testsuite/libgomp.c/pr34513.c: New test.
14288         * testsuite/libgomp.c++/pr34513.C: New test.
14290 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
14292         PR target/32765
14293         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
14295 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
14297         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
14299 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
14301         * testsuite/libgomp.c/private-1.c: New test.
14303 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
14304             Paolo Bonzini  <bonzini@gnu.org>
14306         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
14307         instead of 'VPATH ='.
14308         * Makefile.in: Regenerate.
14310 2007-11-23  Matthias Klose  <doko@ubuntu.com>
14312         * configure.ac: Adjust makeinfo version check.
14313         * configure: Regenerate.
14315 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
14317         PR fortran/34020
14318         * testsuite/libgomp.fortran/pr34020.f90: New test.
14320 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
14322         PR c++/33894
14323         * testsuite/libgomp.c++/atomic-1.C: New test.
14325 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
14327         PR libgomp/33275
14328         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
14329         Make x and y integers rather than (implicit) reals.  Add private (j)
14330         clause to the last omp parallel.
14332 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
14334         * configure: Regenerate following changes to ../config/tls.m4.
14336 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
14338         * testsuite/libgomp.fortran/stack.f90: New test.
14340 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
14342         * config/mingw32/proc.c: New file.
14344 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
14346         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
14347         (main): Use __get_cpuid to get i386 target fetaures.
14348         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
14349         (main): Use __get_cpuid to get x86_64 target fetaures.
14351 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
14353         PR target/32765
14354         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
14355         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
14357 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
14359         PR fortran/32550
14360         * testsuite/libgomp.fortran/pr32550.f90: New test.
14361         * testsuite/libgomp.fortran/crayptr2.f90: New test.
14363 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
14365         * aclocal.m4: Regenerated.
14367 2007-07-05  Tobias Burnus  <burnus@net-b.de>
14369         PR fortran/32359
14370         * testsuite/libgomp.fortran/pr32359.f90: New.
14372 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
14374         PR libgomp/32468
14375         * sections.c (GOMP_parallel_sections_start): Only decrease
14376         number of threads to COUNT if dyn_var is true.
14377         * testsuite/libgomp.c/pr32468.c: New test.
14379 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14381         PR libgomp/26308
14382         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
14384 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
14386         PR middle-end/32362
14387         * testsuite/libgomp.c/pr32362-1.c: New test.
14388         * testsuite/libgomp.c/pr32362-2.c: New test.
14389         * testsuite/libgomp.c/pr32362-3.c: New test.
14391 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
14393         * team.c (gomp_team_start): Fix setting up thread_attr
14394         stack size.
14396 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
14398         * configure: Regenerate.
14400 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
14402         * Makefile.in: Regenerate.
14403         * configure: Regenerate.
14404         * aclocal.m4: Regenerate.
14405         * testsuite/Makefile.in: Regenerate.
14407 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
14409         * config/linux/proc.c: New file.
14411         PR libgomp/28482
14412         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
14414 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
14416         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
14418 2007-04-16  Matthias Klose  <doko@debian.org>
14420         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
14421         flags if not building with -m64.
14422         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
14423         flag for i?86-*-* targets, if current target matches -m64.
14425 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
14427         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
14428         * Makefile.in: Regenerate.
14430 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14432         PR testsuite/31369
14433         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
14434         ld_library_path.
14435         * testsuite/libgomp.fortran/fortran.exp: Likewise.
14437 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
14439         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
14440         decls.
14441         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
14442         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
14443         (parse_affinity): New function.
14444         (initialize_env): Call it and gomp_init_affinity.
14445         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
14446         create new pthread_attr_t and call gomp_init_thread_affinity
14447         on it for each thread before passing the attribute to pthread_create.
14448         * config/linux/affinity.c: New file.
14449         * config/posix/affinity.c: New file.
14450         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
14451         * configure: Rebuilt.
14452         * config.h.in: Rebuilt.
14453         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
14454         * Makefile.in: Rebuilt.
14456 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
14458         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
14459         *-*-darwin*.
14460         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
14461         and use it if found.
14463 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
14465         * testsuite/config/default.exp: New file.
14466         * testsuite/lib/libgomp.exp: New file.
14467         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
14468         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
14469         load_lib *, load_gcc_lib *): Move to libgomp.exp.
14470         (libgomp_load): Remove.
14471         * testsuite/lib/libgomp.exp (libgomp_init): Compute
14472         always_ld_library_path, not ld_library_path.  Set additional_flags
14473         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
14474         (target_compile): Do not call libgomp_init.  Append lang_library_path
14475         and lang_link_flags to options.
14476         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
14477         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
14478         here.
14479         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
14480         always_ld_library_path.  Set LD_LIBRARY_PATH here.
14481         * testsuite/libgomp.fortran/fortran.exp: Ditto.
14482         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
14483         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
14484         CX8 flag.
14485         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
14486         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
14487         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
14488         * testsuite/libgomp.c/pr29947-1.c: Ditto.
14489         * testsuite/libgomp.c/atomic-10.c: Ditto.
14491 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
14493         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
14494         dg-final cleanup-modules line.
14495         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
14496         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
14497         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
14498         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
14499         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
14500         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
14501         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
14503 2007-03-18  Andreas Schwab  <schwab@suse.de>
14505         * acinclude.m4: Adjust regular expression for ld version
14506         extraction.
14507         * configure: Regenerate.
14509 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
14511         * Makefile.am: Add install-pdf target as copied from
14512         automake v1.10 rules.
14513         * Makefile.in: Regenerate
14515 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
14517         PR libgomp/28486
14518         * configure: Regenerate.
14520         PR c++/30703
14521         * testsuite/libgomp.c++/pr30703.C: New test.
14523 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
14525         Revert:
14526         2006-07-05  Eric Christopher  <echristo@apple.com>
14527         * configure.ac: Depend addition of -pthread on host OS.
14528         * configure: Regenerate.
14530 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14532         * libgomp.texi: Fix spacing after abbreviations.
14534 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
14536         PR libgomp/30546
14537         * configure.ac: Add check for makeinfo
14538         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
14539         if an appropriate version of makeinfo is found.
14540         * aclocal.m4: Regenerated.
14541         * configure: Regenerated.
14542         * Makefile.in: Regenerated.
14543         * testsuite/Makefile.in: Regenerated.
14545 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
14547         PR libgomp/30540
14548         * libgomp.texi: More about implementation-dependent settings.
14550 2007-01-26  Tobias Burnus  <burnus@net-b.de>
14552         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
14554 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
14556         PR middle-end/30494
14557         * testsuite/libgomp.c/pr30494.c: New test.
14559 2007-01-15  Tom Tromey  <tromey@redhat.com>
14561         * configure: Rebuilt.
14562         * configure.ac: Fixed comment.
14564 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
14566         * libgomp.texi: Document implementation specific default values of
14567         environment variables.
14569 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
14571         PR libgomp/28209
14572         * libgomp.texi: New file.
14573         * configure.ac: Add --enable-generated-files-in-srcdir option.
14574         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
14575         files to srcdir.
14576         * Makefile.in: Regenerated.
14577         * config.h.in: Regenerated.
14578         * testsuite/Makefile.in: Regenerated.
14579         * NOTES: Removed.
14581 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
14583         PR libgomp/29949
14584         * env.c (omp_set_num_threads): Set illegal thread count to 1.
14586 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
14588         * configure: Regenerate.
14590 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
14592         PR libgomp/29947
14593         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
14594         start if there shouldn't be any loop iterations.
14595         (gomp_loop_ordered_static_start): Remove start == end test.
14596         * testsuite/libgomp.c/pr29947-1.c: New test.
14597         * testsuite/libgomp.c/pr29947-2.c: New test.
14599 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
14601         * configure.tgt: Force initial-exec TLS model on Linux only.
14603 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
14605         * configure: Regenerated.
14607 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
14609         * env.c (parse_schedule): Reject out of range values.
14610         (parse_unsigned_long): Reject out of range, negative or zero values.
14612 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
14614         PR fortran/29629
14615         * testsuite/libgomp.fortran/pr29629.f90: New test.
14617 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
14619         PR libgomp/29494
14620         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
14621         * config/posix95: New directory.
14622         * config/posix95/omp-lock.h: New file.
14623         * config/posix95/lock.c: Likewise.
14625 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
14627         * aclocal.m4: Regenerate.
14628         * configure: Regenerate.
14630 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
14632         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
14633         '<' to '<='.
14635 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
14637         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
14638         test.
14639         * configure: Regenerate.
14640         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
14642 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
14644         PR middle-end/25261
14645         PR middle-end/28790
14646         * testsuite/libgomp.c/nestedfn-4.c: New test.
14647         * testsuite/libgomp.c/nestedfn-5.c: New test.
14648         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
14650         PR fortran/29097
14651         * testsuite/libgomp.fortran/condinc1.f: New test.
14652         * testsuite/libgomp.fortran/condinc2.f: New test.
14653         * testsuite/libgomp.fortran/condinc3.f90: New test.
14654         * testsuite/libgomp.fortran/condinc4.f90: New test.
14655         * testsuite/libgomp.fortran/condinc1.inc: New file.
14657 2006-09-18  Tom Tromey  <tromey@redhat.com>
14659         * configure: Rebuilt.
14661 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
14663         PR c/28768
14664         PR preprocessor/14634
14665         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
14666         to AC_DEFINE.
14667         * configure: Regenerate.
14669 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
14671         * testsuite/libgomp.fortran/reduction3.f90: Change
14672         -2147483648 to -huge(i)-1 to avoid overflow.
14673         * testsuite/libgomp.fortran/reduction4.f90: Change
14674         Z'ffffffff' to not(0) to avoid overflow.
14676 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
14678         PR libgomp/25938
14679         * Makefile.am (libsubincludedir): New.
14680         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
14681         * Makefile.in: Regenerate.
14683 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
14685         PR libgomp/28725
14686         * env.c: Include ctype.h.
14687         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
14688         leading and/or trailing whitespace and compare strings case
14689         insensitively.
14691 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
14693         PR fortran/28390
14694         * testsuite/libgomp.fortran/pr28390.f: New test.
14696 2006-07-05  Eric Christopher  <echristo@apple.com>
14698         * configure.ac: Depend addition of -pthread on host OS.
14699         * configure: Regenerate.
14701 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
14703         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
14704         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
14705         defined.
14707 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
14709         PR libgomp/26175
14710         PR libgomp/26477
14711         * configure.ac: If neither --enable-linux-futex nor
14712         --disable-linux-futex is passed, determine the default by checking
14713         for compiling and/or running against NPTL.  With --enable-linux-futex,
14714         check if SYS_gettid and SYS_futex are defined.
14715         * configure: Rebuilt.
14717 2006-06-14  Richard Henderson  <rth@redhat.com>
14719         PR libgomp/28008
14720         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
14721         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
14723 2006-06-09  Richard Henderson  <rth@redhat.com>
14725         * env.c (gomp_nthreads_var): Change to unsigned long.
14726         (gomp_run_sched_chunk): Likewise.
14727         (parse_unsigned_long): Rename from parse_num_threads and generalize.
14728         (initialize_env): Initialize gomp_thread_attr.
14729         * libgomp.h (gomp_nthreads_var): Update decl.
14730         (gomp_run_sched_chunk): Likewise.
14731         (gomp_thread_attr): Declare.
14732         * team.c (gomp_thread_attr): Export.
14733         (initialize_team): Don't initialize it.
14735 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
14737         PR fortran/27916
14738         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
14739         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
14741 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
14743         * config/mingw32/time.c: New file.
14744         * configure.tgt: Use it.
14746 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
14748         * Makefile.am: Add install-html target. Add install-html to .PHONY
14749         * Makefile.in: Regenerate.
14751 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14753         PR libgomp/27612
14754         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
14755         * testsuite/libgomp.c/critical-1.c: Likewise.
14756         * testsuite/libgomp.c/loop-1.c: Likewise.
14757         * testsuite/libgomp.c/loop-2.c: Likewise.
14758         * testsuite/libgomp.c/single-1.c: Likewise.
14759         * testsuite/libgomp.c/ordered-1.c: Likewise.
14760         * testsuite/libgomp.c/ordered-2.c: Likewise.
14762 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
14764         PR middle-end/27416
14765         * libgomp.fortran/pr27416-1.f90: New test.
14767 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
14769         PR fortran/27395
14770         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
14771         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
14773 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
14775         PR c++/26943
14776         * testsuite/libgomp.c/pr26943-1.c: New test.
14777         * testsuite/libgomp.c/pr26943-2.c: New test.
14778         * testsuite/libgomp.c/pr26943-3.c: New test.
14779         * testsuite/libgomp.c/pr26943-4.c: New test.
14780         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
14781         * testsuite/libgomp.c++/pr26943.C: New test.
14783 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
14785         PR middle-end/27337
14786         * testsuite/libgomp.c++/pr27337.C: New test.
14788 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
14790         PR c/26171
14791         * testsuite/libgomp.c/pr26171.c: New test.
14793 2006-04-25  Richard Henderson  <rth@redhat.com>
14795         PR libgomp/25865
14796         * configure.ac: Use GCC_CHECK_TLS.
14797         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
14798         * Makefile.in, aclocal.m4, configure: Regenerate.
14800 2006-04-10  Matthias Klose  <doko@debian.org>
14802         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
14803         directory names containing underscores.
14805 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
14807         PR c++/26691
14808         * testsuite/libgomp.c++/pr26691.C: New test.
14810 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
14812         * testsuite/libgomp.fortran/retval2.f90: New test.
14814 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
14816         * testsuite/libgomp.c++: New directory.
14818 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
14820         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
14821         * config/posix/sem.c: Implement the above.
14823 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
14825         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
14826         define HAVE_BROKEN_POSIX_SEMAPHORES.
14827         * configure: Rebuilt.
14828         * config.h.in: Rebuilt.
14830 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
14832         PR bootstrap/26161
14833         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
14834         for the other pthread check.
14835         * configure: Regenerate.
14836         * config.h.in: Regenerate.
14838 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
14840         PR libgomp/25938
14841         PR libgomp/25984
14842         * Makefile.am (fincludedir): New variable.
14843         (nodist_include_HEADERS): Remove Fortran files.
14844         (nodist_finclude_HEADERS): New variable.
14845         * Makefile.in: Regenerated.
14847 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
14849         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
14850         Remove tests for returning assumed character length arrays.
14852 2006-02-12  Roger Sayle  <roger@eyesopen.com>
14853             John David Anglin  <dave@hiauly1.hia.nrc.ca>
14855         PR libgomp/25936
14856         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
14858 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
14860         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
14862 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
14864         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
14865         part of LD_LIBRARY_PATH manually.
14867 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
14869         PR libgomp/25852
14870         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
14871         libgomp_init.
14873 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
14875         PR libgomp/25884
14876         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
14877         * configure.ac (PERL): Don't set.
14878         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
14879         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
14880         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
14881         * omp.h.in: Wrap the new configure substitutions with @ characters.
14882         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
14883         * aclocal.m4, configure, Makefile.in: Regenerate.
14884         * mkomp_h.pl: Delete.
14886 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
14888         PR libgomp/25259
14889         * configure.ac: Use GCC_HEADER_STDINT.
14890         * libgomp.h: Include gstdint.h.
14891         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
14892         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
14894 2006-01-24  Richard Henderson  <rth@redhat.com>
14896         PR libgomp/25942
14897         * configure.ac: Add AM_MAINTAINER_MODE.
14898         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
14900 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
14902         * Makefile.in: Regenerate.
14903         * testsuite/Makefile.in: Regenerate.
14904         * aclocal.m4: Regenerate.
14906 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
14908         * config/posix/proc.c: Conditional include of sys/loadavg.h for
14909         Solaris.
14910         * configure.ac: Add check for loadavg.h.
14911         (link_gomp): Adjust comment.
14912         * configure: Regenerate.
14913         * config.h.in: Regenerate.
14915 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
14917         PR libgomp/25877
14918         * configure.ac: Remove check for alloca.h.
14919         * configure: Regenerate.
14920         * config.h.in: Regenerate.
14921         * libgomp.h: define gomp_alloca to be __builtin_alloca.
14922         * team.c: Remove use of alloca.h.
14923         Call gomp_alloca instead of alloca.
14925 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
14927         PR libgomp/25877
14928         * team.c: Add include of alloca.h.
14929         * configure.ac: Add check for alloca.h.
14930         * configure: Regenerate.
14931         * config.h.in: Regenerate.
14933 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
14935         PR fortran/25219
14936         * testsuite/libgomp.fortran/pr25219.f90: New test.
14938 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
14940         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
14941         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
14942         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
14943         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
14944         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
14945         testsuite/libgomp.fortran/threadprivate1.f90,
14946         testsuite/libgomp.fortran/threadprivate2.f90,
14947         testsuite/libgomp.fortran/threadprivate3.f90,
14948         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
14949         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
14950         testsuite/libgomp.fortran/omp_parse3.f90: Change required
14951         effective-target to TLS runtime.
14953         * testsuite/libgomp.fortran/pr25162.f: Require
14954         effective-target TLS runtime.
14956 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
14958         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
14959         * testsuite/libgomp.c/nestedfn-3.c: New test.
14961 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
14963         PR fortran/25162
14964         * testsuite/libgomp.fortran/pr25162.f: New test.
14966 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
14968         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
14969         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
14971 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
14973         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
14974         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
14975         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
14976         single.c, team.c, work.c, config/linux/alpha/futex.h,
14977         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
14978         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
14979         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
14980         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
14981         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
14982         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
14983         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
14984         FSF address.
14986 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
14988         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
14989         to nodist_noinst_HEADERS.
14990         * Makefile.in: Rebuilt.
14992         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
14993         add integer count field.
14994         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
14995         omp_nest_lock_t type change.
14996         (omp_init_nest_lock): Likewise.  Initialize count to 0.
14997         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
14998         Increment count.
14999         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
15000         Decrement count.
15001         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
15002         Increment count if successful and return the new nesting level.
15003         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
15004         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
15005         * testsuite/libgomp.c/lib-1.c: New test.
15006         * testsuite/libgomp.fortran/lib1.f90: New test.
15007         * testsuite/libgomp.fortran/lib2.f: New test.
15008         * testsuite/libgomp.fortran/lib3.f: New test.
15010 2005-11-17  Richard Henderson  <rth@redhat.com>
15012         PR 24845
15013         * Makefile.am (nodist_toolexeclib_HEADERS): New.
15014         * configure.ac (link_gomp): New.  Substitute it.
15015         (AC_CONFIG_FILES): Add libgomp.spec.
15016         * libgomp.spec.in: New file.
15017         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
15018         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
15020 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
15022         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
15023         reduction(-:var) behaving the same as reduction(+:var).
15024         * testsuite/libgomp.c/reduction-4.c: New test.
15026 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
15028         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
15029         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
15030         testsuite/libgomp.c/copyin-3.c,
15031         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
15032         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
15033         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
15034         testsuite/libgomp.c++/pr24455.C,
15035         testsuite/libgomp.fortran/threadprivate1.f90,
15036         testsuite/libgomp.fortran/threadprivate2.f90,
15037         testsuite/libgomp.fortran/threadprivate3.f90,
15038         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
15039         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
15040         testsuite/libgomp.fortran/omp_parse3.f90: Require
15041         effective-target TLS.
15043 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
15045         * HEADER: Remove.
15047 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
15049         PR libgomp/24797
15050         * team.c (initialize_team): Pass NULL rather than free as
15051         pthread_key_create destructor.  Initialize thread specific data
15052         pointer in initial thread to a static local variable rather than
15053         malloced memory.
15055 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
15057         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
15058         its location to ld_library_path.
15060 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
15062         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
15064 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
15066         * testsuite/libgomp.c: Rename from libgomp.dg.
15068 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
15070         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
15071         threadprivate variable 'i'.
15073 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
15075         * config/linux/s390/futex.h: New file.
15076         * configure.tgt: Use it.
15078         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
15079         before the parallel.
15081 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
15083         PR c++/24734
15084         * testsuite/libgomp.c++/master-1.C: New test.
15086 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
15088         * testsuite/libgomp.dg/copyin-3.c: New test.
15090 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
15092         * testsuite/libgomp.fortran/retval1.f90: New test.
15093         * testsuite/libgomp.fortran/vla7.f90: New test.
15095 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
15097         * testsuite/libgomp.fortran/vla2.f90: New test.
15098         * testsuite/libgomp.fortran/vla3.f90: New test.
15099         * testsuite/libgomp.fortran/vla4.f90: New test.
15100         * testsuite/libgomp.fortran/vla5.f90: New test.
15101         * testsuite/libgomp.fortran/vla6.f90: New test.
15103 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
15105         * config/linux/sparc/futex.h: New file.
15106         * configure.tgt: Use it.
15107         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
15109         * critical.c: Include stdlib.h.
15110         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
15111         ignoring return value.
15112         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
15113         LIBGOMP_CHECK_SYNC_BUILTINS check.
15114         * configure: Rebuilt.
15116 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
15118         * testsuite/libgomp.fortran/vla1.f90: New test.
15120 2005-10-31  Richard Henderson  <rth@redhat.com>
15122         * testsuite/libgomp.fortran/character2.f90: Fix race condition
15123         setting 's' in different threads.
15125 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
15127         * libgomp.h (attribute_hidden, ialias): Define.
15128         * config/posix/proc.c (omp_get_num_procs): Add ialias.
15129         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
15130         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
15131         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
15132         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
15133         omp_test_lock, omp_test_nest_lock): Likewise.
15134         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
15135         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
15136         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
15137         omp_test_lock, omp_test_nest_lock): Likewise.
15138         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
15139         omp_get_dynamic, omp_get_nested): Likewise.
15140         * parallel.c (omp_get_num_threads, omp_get_max_threads,
15141         omp_get_thread_num, omp_in_parallel): Likewise.
15142         * fortran.c (ialias_redirect): Define.
15143         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
15144         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
15145         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
15146         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
15147         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
15148         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
15149         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
15150         omp_get_wtime): Add ialias_redirect.
15152 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
15154         * fortran.c: Include stdlib.h.
15156 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
15158         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
15159         * Makefile.in: Regenerated.
15161 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
15163         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
15164         * libgomp_f.h.in (omp_check_defines): New function.
15165         * env.c: Include libgomp_f.h.
15166         (initialize_env): Call omp_check_defines.
15168         * testsuite/libgomp.dg/copyin-2.c: New test.
15169         * testsuite/libgomp.c++/copyin-2.C: New test.
15170         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
15172         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
15173         * testsuite/libgomp.fortran/sharing2.f90: New test.
15175         * testsuite/libgomp.dg/copyin-1.c: New test.
15176         * testsuite/libgomp.c++/copyin-1.C: New test.
15178 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
15180         * testsuite/libgomp.fortran/crayptr1.f90: New test.
15182         * testsuite/libgomp.fortran/workshare1.f90: New test.
15184         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
15185         only test.
15186         * libgomp.fortran/sharing1.f90: New test.
15188 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
15190         PR c++/24502
15191         * testsuite/libgomp.c++/loop-7.C: New test.
15193         * testsuite/libgomp.dg/nestedfn-2.c: New test.
15195         * testsuite/libgomp.dg/nestedfn-1.c: New test.
15196         * testsuite/libgomp.fortran/reduction6.f90: New test.
15197         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
15199 2005-10-23  Richard Henderson  <rth@redhat.com>
15201         * testsuite/libgomp.c++/ctor-1.C: New.
15202         * testsuite/libgomp.c++/ctor-2.C: New.
15203         * testsuite/libgomp.c++/ctor-3.C: New.
15204         * testsuite/libgomp.c++/ctor-4.C: New.
15205         * testsuite/libgomp.c++/ctor-5.C: New.
15206         * testsuite/libgomp.c++/ctor-6.C: New.
15207         * testsuite/libgomp.c++/ctor-7.C: New.
15208         * testsuite/libgomp.c++/ctor-8.C: New.
15209         * testsuite/libgomp.c++/ctor-9.C: New.
15211 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
15213         PR 24455
15214         * testsuite/libgomp.c++/pr24455-1.C: New test.
15215         * testsuite/libgomp.c++/pr24455.C: New test.
15216         * testsuite/libgomp.dg/pr24455-1.c: New test.
15217         * testsuite/libgomp.dg/pr24455.c: New test.
15219 2005-10-20  Richard Henderson  <rth@redhat.com>
15221         * testsuite/libgomp.c++/loop-6.C: New.
15222         * testsuite/libgomp.dg/loop-3.c: New.
15224 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
15226         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
15227         explicitly private.
15228         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
15229         explicitly shared.
15231 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
15233         * testsuite/libgomp.fortran/jacobi.f: New test.
15235 2005-10-19  Richard Henderson  <rth@redhat.com>
15237         * configure.tgt (i?86-linux): Default to with_arch instead of
15238         CFLAGS.  Add -mtune to match target_cpu.
15239         (x86_64-linux): Tune to i686.
15241         * fortran.c (omp_test_nest_lock_): Fix typo.
15243 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
15245         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
15246         gomp_ordered_sync): Do nothing if team->nthreads == 1.
15247         * testsuite/libgomp.dg/ordered-3.c: New test.
15249         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
15250         Remove volatile keyword.
15252         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
15253         in COMMON block to avoid warnings on 64-bit targets.
15255 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
15257         * testsuite/libgomp.dg/shared-3.c: New test.
15259 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
15261         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
15262         * testsuite/libgomp.fortran/reduction5.f90: New test.
15264 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
15266         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
15267         dg-options.
15268         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
15269         flush loop now that __sync_synchronize has proper memory barrier.
15270         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
15271         Add -ffixed-form to dg-options.
15273 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
15275         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
15276         from subdirectories.
15277         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
15278         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
15279         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
15280         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
15281         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
15282         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
15283         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
15284         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
15285         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
15286         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
15287         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
15288         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
15289         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
15290         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
15291         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
15292         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
15293         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
15294         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
15295         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
15296         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
15297         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
15298         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
15299         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
15300         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
15301         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
15303 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
15305         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
15306         lang_library_path exists.  Use find instead of glob to gather tests.
15307         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
15309 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
15311         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
15312         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
15313         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
15314         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
15315         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
15316         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
15317         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
15318         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
15319         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
15320         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
15321         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
15322         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
15323         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
15325 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
15327         * testsuite/libgomp.dg/vla-1.c: New test.
15329         * testsuite/libgomp.fortran/reference2.f90: New test.
15331         * testsuite/libgomp.fortran/character2.f90: Remove explicit
15332         declaration of omp_get_thread_num.
15333         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
15334         use omp_lib.
15336         * testsuite/libgomp.fortran/reduction1.f90: New test.
15337         * testsuite/libgomp.fortran/reduction2.f90: New test.
15338         * testsuite/libgomp.fortran/reduction3.f90: New test.
15339         * testsuite/libgomp.fortran/reduction4.f90: New test.
15341 2005-10-13  Richard Henderson  <rth@redhat.com>
15343         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
15344         * Makefile.in: Regenerate.
15345         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
15346         * libgomp.h: Include bar.h.
15347         (struct gomp_barrier): Remove.
15348         (struct gomp_team): Add barrier.  Replace master_barrier with
15349         master_release.  Replace threads with ordered_release.
15350         (struct gomp_thread): Replace barrier with release.
15351         * ordered.c (gomp_ordered_first): Update for ordered_release change.
15352         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
15353         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
15354         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
15355         (GOMP_single_copy_end): Likewise.
15356         * team.c (gomp_threads_dock): New.
15357         (gomp_barrier_init, gomp_barrier_destroy): Remove.
15358         (gomp_thread_start): Use gomp_barrier_wait.
15359         (new_team, free_team): Update for gomp_team changes.
15360         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
15361         (gomp_team_end): Use gomp_barrier_wait.
15362         (initialize_team): Update for gomp_thread changes.
15363         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
15364         (gomp_work_share_end_nowait): Use atomic ops when available.
15365         * config/linux/bar.c, config/linux/bar.h: New files.
15366         * config/posix/bar.c, config/posix/bar.h: New files.
15368 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
15370         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
15371         * testsuite/libgomp.dg/single-2.c: New test.
15373         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
15374         lang_link_flags): Unset, so that they aren't inherited from previously
15375         sourced *.exp.
15377         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
15379 2005-10-12  Richard Henderson  <rth@redhat.com>
15381         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
15382         (libgomp_init): Use lang_test_file, lang_library_path, and
15383         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
15385         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
15386         (lang_test_file, lang_link_flags): New.
15387         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
15389         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
15390         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
15391         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
15392         testsuite/libgomp.c++/parallel-1.C,
15393         testsuite/libgomp.c++/reduction-1.C,
15394         testsuite/libgomp.c++/reduction-2.C,
15395         testsuite/libgomp.c++/reduction-3.C,
15396         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
15397         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
15398         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
15399         New files, largely cribbed from the C testsuite.
15401 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
15403         * testsuite/libgomp.fortran/character1.f90: New test.
15404         * testsuite/libgomp.fortran/character2.f90: New test.
15406         * testsuite/libgomp.dg/nested-1.c: New test.
15407         * testsuite/libgomp.dg/nested-2.c: New test.
15408         * testsuite/libgomp.fortran/do1.f90: New test.
15409         * testsuite/libgomp.fortran/do2.f90: New test.
15411         * testsuite/libgomp.fortran/reference1.f90: New test.
15413 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
15415         * testsuite/libgomp.dg/reduction-1.c: New test.
15416         * testsuite/libgomp.dg/reduction-2.c: New test.
15417         * testsuite/libgomp.dg/reduction-3.c: New test.
15419 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
15421         * testsuite/libgomp.dg/atomic-1.c: New test.
15422         * testsuite/libgomp.dg/atomic-2.c: New test.
15424 2005-10-09  Richard Henderson  <rth@redhat.com>
15426         * critical.c (atomic_lock): New.
15427         (initialize_critical): Initialize it.
15428         (GOMP_atomic_start, GOMP_atomic_end): New.
15429         * libgomp.map: Export them.
15430         * libgomp_g.h: Declare them.
15432         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
15434 2005-10-02  Richard Henderson  <rth@redhat.com>
15436         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
15437         to XCFLAGS instead of CFLAGS.
15439 2005-09-30  Richard Henderson  <rth@redhat.com>
15441         * configure.ac: Determine whether -pthread or -lpthread is needed.
15442         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
15443         * Makefile.in, configure: Rebuild.
15445 2005-09-28  Richard Henderson  <rth@redhat.com>
15447         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
15448         * testsuite/libgomp.dg/omp-single-3.c: New test.
15450 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
15452         * testsuite/libgomp.dg/omp-single-2.c: New test.
15453         * testsuite/libgomp.dg/shared-2.c: Fix return code.
15455 2005-09-27  Richard Henderson  <rth@redhat.com>
15457         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
15458         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
15460 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
15462         * testsuite/libgomp.dg/omp-loop03.c: New test.
15464 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
15466         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
15468 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
15470         * testsuite/libgomp.dg/omp-single-1.c: New test.
15471         * testsuite/libgomp.dg/shared-1.c: Return 0.
15472         Add prototype for abort.
15473         * testsuite/libgomp.dg/shared-2.c: Likewise.
15475 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
15477         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
15478         constructs.
15480 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
15482         * testsuite/libgomp.dg/shared-1.c: New test.
15483         * testsuite/libgomp.dg/shared-2.c: New test.
15485 2005-09-24  Richard Henderson  <rth@redhat.com>
15487         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
15489 2005-09-24  Richard Henderson  <rth@redhat.com>
15491         * iter.c (gomp_iter_static_next): Round up when computing number
15492         of iterations.  Don't bother distributing a remainder equally.
15494         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
15495         Don't call srand.  Zero b before testing.
15496         (main): New.
15498 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
15500         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
15501         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
15503 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
15505         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
15506         without !$omp end do, followed immediately by subroutine end.
15508 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
15510         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
15512 2005-09-22  Richard Henderson  <rth@redhat.com>
15514         * critical.c (GOMP_critical_name_start): Change argument to void**.
15515         Reuse the pointer space if the mutex fits.
15516         (GOMP_critical_name_end): Likewise.
15517         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
15518         * libgomp_g.h (GOMP_critical_name_start): Update decl.
15519         (GOMP_critical_name_end): Likewise.
15520         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
15521         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
15523 2005-09-20  Richard Henderson  <rth@redhat.com>
15525         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
15526         (create_lock_lock): New.
15527         (initialize_critical): Initialize it.
15528         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
15529         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
15531 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
15533         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
15535 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
15537         * testsuite/libgomp.dg/omp-loop01.c: New test.
15538         * testsuite/libgomp.dg/omp-loop02.c: New test.
15540 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
15542         * configure.ac (AC_PROG_FC): Add.
15543         (USE_FORTRAN): New automake conditional.
15544         * configure: Rebuilt.
15545         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
15546         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
15547         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
15548         Add rules to build them.
15549         * Makefile.in: Rebuilt.
15550         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
15551         OMP_NEST_LOCK_KIND.
15552         * libgomp.map: Add Fortran wrappers.
15553         * libgomp_f.h.in: New file.
15554         * omp_lib.h.in: New file.
15555         * omp_lib.f90.in: New file.
15556         * fortran.c: New file.
15557         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
15558         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
15559         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
15560         libgfortran has been built.
15561         * testsuite/libgomp.fortran/fortran.exp: New file.
15562         * testsuite/libgomp.fortran/omp_cond1.f: New test.
15563         * testsuite/libgomp.fortran/omp_cond2.f: New test.
15564         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
15565         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
15566         * testsuite/libgomp.fortran/omp_hello.f: New test.
15567         * testsuite/libgomp.fortran/omp_orphan.f: New test.
15568         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
15569         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
15570         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
15571         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
15572         * testsuite/libgomp.fortran/omp_reduction.f: New test.
15573         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
15574         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
15576 2005-08-30  Richard Henderson  <rth@redhat.com>
15578         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
15579         function for when aliases are not usable.
15580         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
15581         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
15582         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
15583         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
15584         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
15585         GOMP_loop_ordered_guided_next): Likewise.
15586         * ordered.c (GOMP_ordered_start): Likewise.
15588 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
15590         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
15591         * testsuite/libgomp.dg/omp_hello.c: Fix return code
15592         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
15593         * testsuite/libgomp.dg/omp_orphan.c: Likewise
15594         * testsuite/libgomp.dg/omp_reduction.c: Likewise
15595         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
15596         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
15597         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
15598         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
15600 2005-07-07  Eric Christopher  <echristo@redhat.com>
15601             Diego Novillo  <dnovillo@redhat.com>
15603         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
15604         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
15605         up code.
15606         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
15607         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
15608         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
15609         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
15610         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
15611         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
15612         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
15614 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
15616         * TOPLEVEL.patch: Remove.
15618 2005-05-16  Richard Henderson  <rth@redhat.com>
15620         * configure.ac: Test for clock_gettime.
15621         * config.h.in, configure: Rebuild.
15622         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
15623         (omp_get_wtime): Use clock_gettime if available.
15624         (omp_get_wtick): Use clock_getres if available.
15626 2005-05-11  Richard Henderson  <rth@redhat.com>
15628         * config/linux/ia64/futex.h: New file.
15629         * configure.tgt: Use it.
15631         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
15633 2005-05-07  Richard Henderson  <rth@redhat.com>
15635         * config/linux/powerpc/futex.h: New file.
15636         * configure.tgt: Use it.
15638         * config/linux/i486/futex.h: Merge ...
15639         * config/linux/x86_64/futex.h: ... into ...
15640         * config/linux/x86/futex.h: ... here.
15641         * configure.tgt: Update to match.
15643 2005-05-06  Richard Henderson  <rth@redhat.com>
15645         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
15646         * config/linux/i486/futex.h: Likewise.
15647         * config/linux/x86_64/futex.h: Likewise.
15649         * config/linux/lock.c: New file.
15650         * config/linux/omp-lock.h: New file.
15652         * critical.c, env.h: Don't include omp.h
15653         * config/posix/lock.c: Include libgomp.h instead of omp.h.
15654         * config/posix/time.c: Likewise.
15655         * config/posix/omp-lock.h: New file.
15656         * libgomp.h: Include omp-lock.h and omp.h.
15657         * Makefile.am (nodist_include_HEADERS): New.
15658         (omp.h): New rule.
15659         * configure.ac (PERL): New.
15660         * mkomp_h.pl: New file.
15661         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
15662         with templates.
15663         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
15665         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
15666         build directory.  Re-add -march=i486 hack.
15668         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
15669         (libgomp_link_flags): Remove.
15670         (libgomp_initialized): Remove.
15671         (libgomp_init): Don't protect from reinitialization.  Copy code
15672         from libstdc++ for getting the multilib set correctly.
15674 2005-05-05  Richard Henderson  <rth@redhat.com>
15676         * config/linux/alpha/futex.h: New file.
15677         * configure.tgt (alpha*-*-linux*): Use it.
15679         * config/posix/mutex.c: New file.
15680         * config/posix/sem.c: Use libgomp.h.
15682         * configure.tgt (x86_64-linux): Also test CC for -m32.
15683         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
15685         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
15686         after $gccpath.
15688         * Makefile.am (SUBDIRS): New.
15689         (libgomp_la_LDFLAGS): Add -lpthread.
15690         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
15691         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
15693         * libgomp_g.h: New file.
15694         * libgomp.h: Split out all public declarations to libgomp_g.h.
15695         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
15696         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
15697         * config/linux/sem.h: Likewise.
15698         * config/posix/sem.h: Likewise.
15700         * Makefile.am (AM_LDFLAGS): New.
15701         (libgomp_version_script): Split out from ...
15702         (libgomp_la_LDFLAGS): ... here.
15703         (libgomp_version_info): New.
15704         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
15705         (LIBGOMP_ENABLE): New.
15706         (LIBGOMP_CHECK_LINKER_FEATURES): New.
15707         (LIBGOMP_ENABLE_SYMVERS): New.
15708         * configure.ac (AC_INIT): Version 1.0.
15709         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
15710         (enable-linux-futex): Likewise.  Rename from enable-futex.
15711         (libtool_VERSION): New.
15712         (LIBGOMP_ENABLE_SYMVERS): Use it.
15713         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
15714         * Makefile.in, aclocal.m4, configure: Rebuild.
15716         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
15717         (gomp_mutex_unlock_slow): Fix typo.
15718         * config/linux/sem.c: Similarly.
15719         (gomp_sem_post_slow): Fix typo.
15720         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
15721         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
15722         [__PIC__] (sys_futex0): Don't use tmp output in asm.
15724         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
15725         (libgomp_la_LDFLAGS): Add top_srcdir to path.
15726         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
15727         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
15728         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
15729         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
15730         LDFLAGS.  Pull enable_futex check to top-level.
15731         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
15732         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
15734         First attempt at real configury.
15735         * Makefile, config.h: Remove file.
15736         * Makefile.am, Makefile.in: New file.
15737         * acinclude.m4 aclocal.m4: New file.
15738         * configure.ac, configure.tgt, configure: New file.
15740         * config/posix/lock.c: Rename from sys-lock.c.
15741         * config/posix/mutex.h: Rename from sys-mutex.h.
15742         * config/posix/sem.c: Rename from sys-sem.c.
15743         * config/posix/sem.h: Rename from sys-sem.h.
15744         * config/posix/proc.c: Rename from sys-proc.c.
15745         * config/posix/time.c: Rename from sys-proc.c.
15747         * config/linux/mutex.c: New file.
15748         * config/linux/mutex.h: New file.
15749         * config/linux/sem.c: New file.
15750         * config/linux/sem.h: New file.
15751         * config/linux/i486/futex.h: New file.
15752         * config/linux/x86_64/futex.h: New file.
15754 2005-05-04  Richard Henderson  <rth@redhat.com>
15756         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
15757         * libgomp.h: Declare them.
15758         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
15759         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
15761 2005-05-04  Richard Henderson  <rth@redhat.com>
15763         * libgomp-1 code drop
15765 2005-05-04  Richard Henderson  <rth@redhat.com>
15767         * iter.c (gomp_iter_static_next): Return tri-state on 0.
15768         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
15769         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
15770         (gomp_iter_static_next): Update.
15771         (gomp_ordered_static_next): Update.
15772         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
15773         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
15774         totally empty range.
15775         (gomp_loop_ordered_static_next): Refine test for calling
15776         gomp_ordered_static_next.
15777         * testsuite/ordered-1.c: Add case for more threads than iterations.
15779         * iter.c (gomp_iter_runtime_next_locked): Remove.
15780         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
15781         gomp_loop_guided_start, gomp_loop_ordered_static_start,
15782         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
15783         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
15784         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
15785         gomp_loop_ordered_guided_next): Downcase name, make static, add
15786         an external alias with the old name.
15787         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
15788         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
15789         switch and call one of the above static functions.
15790         * libgomp.h: Update.
15792         * work.c (gomp_work_share_start): Lock the mutex for !first too.
15793         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
15794         GOMP_loop_guided_start, GOMP_loop_runtime_start,
15795         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
15796         GOMP_loop_ordered_guided_start): Update to match.
15797         * sections.c (GOMP_sections_start): Likewise.
15798         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
15800         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
15801         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
15802         Use bounds check instead of modulus.
15803         (gomp_ordered_sync): Split out of GOMP_ordered_start.
15804         (gomp_ordered_last): Don't sync with ordered_owner here.
15805         (gomp_ordered_next): Likewise.
15806         (gomp_ordered_static_loop_next): Likewise.
15807         * loop.c, libgomp.h: Update to match.
15809         * libgomp.h (GOMP_barrier): Declare.
15811         * testsuite/barrier-1.c: New file.
15812         * testsuite/critical-1.c: New file.
15813         * testsuite/ordered-2.c: New file.
15814         * testsuite/ordered-1.c: New file.
15815         * testsuite/sections-1.c: New file.
15816         * testsuite/single-1.c: New file.
15817         * testsuite/Makefile (TESTS): Add them.
15819 2005-05-04  Richard Henderson  <rth@redhat.com>
15821         * libgomp.h (struct gomp_work_share): Add ordered_owner.
15822         * loop.c (GOMP_loop_static_start): If not the startup thread,
15823         acquire the mutex to wait for initialization complete.
15824         (GOMP_loop_ordered_static_start): Likewise.
15825         (GOMP_loop_ordered_runtime_start): Likewise.
15826         (GOMP_loop_ordered_static_first): Remove.
15827         (GOMP_loop_ordered_dynamic_first): Remove.
15828         (GOMP_loop_ordered_guided_first): Remove.
15829         (GOMP_loop_ordered_runtime_first): Remove.
15830         * ordered.c (gomp_ordered_loop_first): Post to own release when
15831         we're the first thread.
15832         (gomp_ordered_loop_last): Wait on release if not owner.
15833         (gomp_ordered_loop_next): Likewise.
15834         (gomp_ordered_static_loop_init): New.
15835         (gomp_ordered_static_loop_next): Use ordered_owner.
15836         (GOMP_ordered_start): Likewise.
15837         * work.c (gomp_new_work_share): Initialize ordered_owner.
15839 2005-05-03  Richard Henderson  <rth@redhat.com>
15841         * Makefile (OPT): New.
15842         (CFLAGS): Use it.
15844         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
15845         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
15846         * libgomp.h, libgomp.map, NOTES: Update to match.
15848         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
15849         Add initialized and thr members.
15850         (gomp_thread_start): Pause when initially spawned to wait for
15851         the whole team to be created.
15852         (gomp_team_start): Release team members at the end.
15854         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
15855         (f_foo_1): Use GOMP_loop_end.
15856         (f_foo_2): Use GOMP_loop_end_nowait.
15858         * testsuite/loop-2.c: New file.
15859         * testsuite/Makefile (TESTS): Add it.
15861 2005-05-03  Richard Henderson  <rth@redhat.com>
15863         * iter.c (gomp_iter_static_next): Fix overflow check typo.
15864         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
15865         * team.c (new_team): Initialize oldest_live_gen to 1 if no
15866         initial work_share.
15868         * testsuite/Makefile: New file.
15869         * testsuite/loop-1.c: New file.
15871 2005-05-03  Richard Henderson  <rth@redhat.com>
15873         Initial implementation and checkin.
15875 Copyright (C) 2005-2021 Free Software Foundation, Inc.
15877 Copying and distribution of this file, with or without modification,
15878 are permitted in any medium without royalty provided the copyright
15879 notice and this notice are preserved.