Reset prologue_location before calling code_end
[official-gcc.git] / libgomp / ChangeLog
blobd9d88ca6c7d6b72ddf20bde17ad130fa8e213dc3
1 2021-05-07  Tobias Burnus  <tobias@codesourcery.com>
2             Tom de Vries  <tdevries@suse.de>
4         * testsuite/libgomp.c-c++-common/reduction-5.c: New test, testing
5         complex/floating-point || + && reduction with 'omp target'.
6         * testsuite/libgomp.c-c++-common/reduction-6.c: Likewise.
8 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
10         * testsuite/libgomp.c-c++-common/reduction-1.c: New test.
11         * testsuite/libgomp.c-c++-common/reduction-2.c: New test.
12         * testsuite/libgomp.c-c++-common/reduction-3.c: New test.
13         * testsuite/libgomp.c-c++-common/reduction-4.c: New file.
15 2021-05-04  Tobias Burnus  <tobias@codesourcery.com>
17         PR testsuite/100397
18         * testsuite/libgomp.fortran/depobj-1.f90 (dep2, dep3): Move var
19         declaration to scope of non-'depend'-guarded assignment to avoid races.
21 2021-05-03  Tom de Vries  <tdevries@suse.de>
23         PR target/100321
24         * testsuite/libgomp.c/target-44.c: New test.
26 2021-04-30  Roman Zhuykov  <zhroma@ispras.ru>
28         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-3.c: New test.
30 2021-04-29  Tom de Vries  <tdevries@suse.de>
32         * testsuite/libgomp.c/pr81778.c: New test.
34 2021-04-29  Tom de Vries  <tdevries@suse.de>
36         PR target/100232
37         * testsuite/libgomp.c/target-43.c: New file.
39 2021-04-28  Jakub Jelinek  <jakub@redhat.com>
40             Tobias Burnus  <tobias@codesourcery.com>
42         * configure.ac (OFFLOAD_DEFAULTED): AC_DEFINE if offload-defaulted.
43         * target.c (gomp_load_plugin_for_device): If set and if a plugin
44         can't be dlopened, silently assume it has no devices.
45         * Makefile.in: Regenerate.
46         * config.h.in: Regenerate.
47         * configure: Regenerate.
49 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
51         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
52         Use [Ww]arning in dg-bogus as FE diagnostic and default
53         diagnostic differ and the result depends on ENABLE_OFFLOAD.
54         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
55         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
56         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
58 2021-04-26  Tobias Burnus  <tobias@codesourcery.com>
60         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f:
61         Correct spelling in dg-bogus to match -Wopenacc-parallelism.
62         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
63         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
64         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
66 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
67             Nathan Sidwell  <nathan@codesourcery.com>
68             Tom de Vries  <vries@codesourcery.com>
69             Julian Brown  <julian@codesourcery.com>
70             Kwok Cheung Yeung  <kcy@codesourcery.com>
72         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Specify
73         '-Wopenacc-parallelism', and match diagnostics, as appropriate.
74         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
75         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
76         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
77         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
78         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c:
79         Likewise.
80         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
81         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
82         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
83         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
84         Likewise.
85         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
86         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
87         Likewise.
88         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
89         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
90         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
91         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
92         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
93         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c:
94         Likewise.
95         * testsuite/libgomp.oacc-fortran/optional-private.f90: Likewise.
96         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
97         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
98         * testsuite/libgomp.oacc-fortran/parallel-dims.f90: Likewise.
99         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
100         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
101         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
102         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
103         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
104         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
105         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
107 2021-04-26  Thomas Schwinge  <thomas@codesourcery.com>
109         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Don't
110         compile with '-w'.
111         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
112         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c:
113         Likewise.
114         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
115         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: Likewise.
116         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
117         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
118         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
119         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
120         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
122 2021-04-22  Richard Biener  <rguenther@suse.de>
124         * testsuite/libgomp.c-c++-common/reduction-16.c: Use -latomic
125         only on nvptx-none.
127 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
129         * testsuite/libgomp.fortran/depobj-1.f90: Use omp_lib's
130         omp_depend_kind instead of defining it as 16.
132 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
134         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
135         New, based on check_effective_target_offload_target_nvptx.
136         (check_effective_target_offload_target_nvptx): Call it.
137         (check_effective_target_offload_target_amdgcn): New.
138         * testsuite/libgomp.c-c++-common/function-not-offloaded.c:
139         Require target offload_target_nvptx || offload_target_amdgcn.
140         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: Likewise.
141         * testsuite/libgomp.c/pr86416-1.c: Likewise.
142         * testsuite/libgomp.c/pr86416-2.c: Likewise.
144 2021-04-21  Tobias Burnus  <tobias@codesourcery.com>
146         * testsuite/libgomp.fortran/depobj-1.f90: New test.
148 2021-04-19  Thomas Schwinge  <thomas@codesourcery.com>
150         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
151         '-fopenacc-kernels=[...]' -> '--param=openacc-kernels=[...]'.
152         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
153         Likewise.
154         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
155         Likewise.
156         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
158 2021-04-15  Thomas Schwinge  <thomas@codesourcery.com>
160         PR target/99555
161         * testsuite/lib/libgomp.exp
162         (check_effective_target_offload_device_nvptx): New.
163         * testsuite/libgomp.c/pr99555-1.c <nvptx offload device>: Until
164         resolved, make sure that we exit quickly, with error status,
165         XFAILed.
166         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.
167         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
169 2021-04-14  Jakub Jelinek  <jakub@redhat.com>
171         PR testsuite/100071
172         * testsuite/libgomp.fortran/alloc-1.F90: Call c_f_pointer after last
173         cp = omp_alloc with cp, p arguments instead of cq, q and call
174         c_f_pointer after last cq = omp_alloc with cq, q.
176 2021-04-11  Hafiz Abid Qadeer  <abidh@codesourcery.com>
178         PR middle-end/98088
179         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Add check
180         for loop with GT/GE condition.
181         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
183 2021-04-09  Thomas Schwinge  <thomas@codesourcery.com>
185         PR middle-end/84991
186         PR middle-end/84992
187         PR middle-end/90779
188         * testsuite/libgomp.oacc-c-c++-common/static-variable-1.c: New.
190 2021-04-09  Jakub Jelinek  <jakub@redhat.com>
192         PR libgomp/99984
193         * team.c (gomp_thread_start): Call pthread_setspecific for
194         !(defined HAVE_TLS || defined USE_EMUTLS) only after local_thr
195         has been initialized to avoid false positive warning.
197 2021-03-29  Tobias Burnus  <tobias@codesourcery.com>
199         PR target/99555
200         * testsuite/lib/on_device_arch.c: Move to ...
201         * testsuite/libgomp.c-c++-common/on_device_arch.h: ... here.
202         * testsuite/libgomp.fortran/on_device_arch.c: New file;
203         #include on_device_arch.h.
204         * testsuite/libgomp.c-c++-common/task-detach-6.c: #include
205         on_device_arch.h instead of using dg-additional-source.
206         * testsuite/libgomp.c/pr99555-1.c: Likewise.
207         * testsuite/libgomp.fortran/task-detach-6.f90: Update to use
208         on_device_arch.c without relative paths.
210 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
212         * plugin/plugin-gcn.c (init_environment_variables): Don't prepend
213         the 'HSA_RUNTIME_LIB' path to 'libhsa-runtime64.so'.
214         * plugin/configfrag.ac (HSA_RUNTIME_LIB): Clean up.
215         * config.h.in: Regenerate.
216         * configure: Likewise.
218 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
220         PR target/99555
221         * testsuite/lib/on_device_arch.c: New file.
222         * testsuite/libgomp.c/pr99555-1.c: Likewise.
223         * testsuite/libgomp.c-c++-common/task-detach-6.c: Until resolved,
224         skip for nvptx offloading, with error status.
225         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.
227 2021-03-25  Thomas Schwinge  <thomas@codesourcery.com>
229         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90:
230         OpenACC 'serial' construct diagnostic for nvptx offloading.
232 2021-03-15  Tobias Burnus  <tobias@codesourcery.com>
234         PR c++/99509
235         * testsuite/libgomp.c-c++-common/declare_target-1.c: New test.
237 2021-03-12  Tobias Burnus  <tobias@codesourcery.com>
239         PR fortran/98858
240         * testsuite/libgomp.fortran/use_device_ptr-3.f90: New test.
242 2021-03-04  Jakub Jelinek  <jakub@redhat.com>
244         * configure.ac: Add AC_CHECK_SIZEOF([void *]).
245         * plugin/configfrag.ac: Check $ac_cv_sizeof_void_p value instead of
246         checking of -m32 or -mx32 options on the command line.
247         * config.h.in: Regenerated.
248         * configure: Regenerated.
250 2021-02-27  Iain Sandoe  <iain@sandoe.co.uk>
252         * testsuite/libgomp.c-c++-common/pr96390.c: Require alias
253         support from the target.
255 2021-02-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
256             Jakub Jelinek  <jakub@redhat.com>
258         PR libgomp/98738
259         * libgomp.h (enum gomp_task_kind): Add GOMP_TASK_DETACHED.
260         (struct gomp_task): Replace detach and completion_sem fields with
261         union containing completion_sem and detach_team.  Add deferred_p
262         field.
263         (struct gomp_team): Remove task_detach_queue.
264         * task.c: Include assert.h.
265         (gomp_init_task): Initialize deferred_p and completion_sem fields.
266         Rearrange initialization order of fields.
267         (task_fulfilled_p): Delete.
268         (GOMP_task): Use address of task as the event handle.  Remove
269         initialization of detach field.  Initialize deferred_p field.
270         Use automatic local for completion_sem.  Initialize detach_team field
271         for deferred tasks.
272         (gomp_barrier_handle_tasks): Remove handling of task_detach_queue.
273         Set kind of suspended detach task to GOMP_TASK_DETACHED and
274         decrement task_running_count.  Move finish_cancelled block out of
275         else branch.  Relocate call to gomp_team_barrier_done.
276         (GOMP_taskwait): Handle tasks with completion events that have not
277         been fulfilled.
278         (GOMP_taskgroup_end): Likewise.
279         (omp_fulfill_event): Use address of task as event handle.  Post to
280         completion_sem for undeferred tasks.  Clear detach_team if task
281         has not finished.  For finished tasks, handle post-execution tasks,
282         call gomp_team_barrier_wake if necessary, and free task.
283         * team.c (gomp_new_team): Remove initialization of task_detach_queue.
284         (free_team): Remove free of task_detach_queue.
285         * testsuite/libgomp.c-c++-common/task-detach-1.c: Fix formatting.
286         * testsuite/libgomp.c-c++-common/task-detach-2.c: Fix formatting.
287         * testsuite/libgomp.c-c++-common/task-detach-3.c: Fix formatting.
288         * testsuite/libgomp.c-c++-common/task-detach-4.c: Fix formatting.
289         * testsuite/libgomp.c-c++-common/task-detach-5.c: Fix formatting.
290         Change data-sharing of detach events on enclosing parallel to private.
291         * testsuite/libgomp.c-c++-common/task-detach-6.c: Likewise.  Remove
292         taskwait directive.
293         * testsuite/libgomp.c-c++-common/task-detach-7.c: New.
294         * testsuite/libgomp.c-c++-common/task-detach-8.c: New.
295         * testsuite/libgomp.c-c++-common/task-detach-9.c: New.
296         * testsuite/libgomp.c-c++-common/task-detach-10.c: New.
297         * testsuite/libgomp.c-c++-common/task-detach-11.c: New.
298         * testsuite/libgomp.fortran/task-detach-1.f90: Fix formatting.
299         * testsuite/libgomp.fortran/task-detach-2.f90: Fix formatting.
300         * testsuite/libgomp.fortran/task-detach-3.f90: Fix formatting.
301         * testsuite/libgomp.fortran/task-detach-4.f90: Fix formatting.
302         * testsuite/libgomp.fortran/task-detach-5.f90: Fix formatting.
303         Change data-sharing of detach events on enclosing parallel to private.
304         * testsuite/libgomp.fortran/task-detach-6.f90: Likewise.  Remove
305         taskwait directive.
306         * testsuite/libgomp.fortran/task-detach-7.f90: New.
307         * testsuite/libgomp.fortran/task-detach-8.f90: New.
308         * testsuite/libgomp.fortran/task-detach-9.f90: New.
309         * testsuite/libgomp.fortran/task-detach-10.f90: New.
310         * testsuite/libgomp.fortran/task-detach-11.f90: New.
312 2021-02-22  Tobias Burnus  <tobias@codesourcery.com>
314         PR fortran/99171
315         * testsuite/libgomp.fortran/dummy-procs-1.f90: New test.
317 2021-02-17  Julian Brown  <julian@codesourcery.com>
319         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Remove
320         expected errors.
322 2021-02-17  Julian Brown  <julian@codesourcery.com>
324         * testsuite/libgomp.oacc-fortran/derivedtypes-arrays-1.f90: New test.
325         * testsuite/libgomp.oacc-fortran/update-dt-array.f90: Likewise.
327 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
329         * config/linux/x86/futex.h (__futex_wait):
330         Revert output type back to long.
331         (__futex_wake): Ditto.
332         (futex_wait): Update for revert.
333         (futex_wake): Ditto.
335 2021-02-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
337         * config/linux/x86/futex.h (__futex_wait): New static inline
338         wrapper function.  Correct output type to int and
339         timeout type to void *.
340         (__futex_wake): New static inline wrapper function.
341         Correct output type to int.
342         (futex_wait): Use __futex_wait.
343         (futex_wake): Use __futex_wake.
345 2021-02-10  Julian Brown  <julian@codesourcery.com>
347         PR fortran/98979
348         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: Add expected
349         errors.
351 2021-02-04  Julian Brown  <julian@codesourcery.com>
353         * testsuite/libgomp.oacc-fortran/array-stride-dt-1.f90: New test.
355 2021-02-03  Andrew Stubbs  <ams@codesourcery.com>
357         * plugin/plugin-gcn.c (EF_AMDGPU_MACH): Add
358         EF_AMDGPU_MACH_AMDGCN_GFX908.
359         (gcn_gfx908_s): New constant string.
360         (isa_hsa_name): Add gfx908.
361         (isa_code): Add gfx908.
363 2021-01-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
365         * libgomp.texi (omp_fulfill_event): New entry.
367 2021-01-20  Jakub Jelinek  <jakub@redhat.com>
369         * task.c (GOMP_task): Rename priority argument to priority_arg,
370         add priority automatic variable and modify that variable.  Instead of
371         clearing detach argument when GOMP_TASK_FLAG_DETACH bit is not set,
372         check flags for that bit.
374 2021-01-19  Tobias Burnus  <tobias@codesourcery.com>
376         PR fortran/98476
377         * testsuite/libgomp.fortran/is_device_ptr-1.f90: New test.
379 2021-01-18  Andreas Schwab  <schwab@suse.de>
381         * configure.tgt (riscv64*-*-linux*): Add linux to config_path.
383 2021-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
385         * config/rtems/sem.h (gomp_sem_getcount): New function.
387 2021-01-18  Jakub Jelinek  <jakub@redhat.com>
389         * config/linux/sem.h (gomp_sem_getcount): New function.
390         * config/posix/sem.h (gomp_sem_getcount): New function.
391         * config/posix/sem.c (gomp_sem_getcount): New function.
392         * config/accel/sem.h (gomp_sem_getcount): New function.
393         * task.c (task_fulfilled_p): Use gomp_sem_getcount.
394         (omp_fulfill_event): Likewise.
396 2021-01-16  Kwok Cheung Yeung  <kcy@codesourcery.com>
398         * fortran.c (omp_fulfill_event_): New.
399         * libgomp.h (struct gomp_task): Add detach and completion_sem fields.
400         (struct gomp_team): Add task_detach_queue and task_detach_count
401         fields.
402         * libgomp.map (OMP_5.0.1): Add omp_fulfill_event and omp_fulfill_event_.
403         * libgomp_g.h (GOMP_task): Add extra argument.
404         * omp.h.in (enum omp_event_handle_t): New.
405         (omp_fulfill_event): New.
406         * omp_lib.f90.in (omp_event_handle_kind): New.
407         (omp_fulfill_event): New.
408         * omp_lib.h.in (omp_event_handle_kind): New.
409         (omp_fulfill_event): Declare.
410         * priority_queue.c (priority_tree_find): New.
411         (priority_list_find): New.
412         (priority_queue_find): New.
413         * priority_queue.h (priority_queue_predicate): New.
414         (priority_queue_find): New.
415         * task.c (gomp_init_task): Initialize detach field.
416         (task_fulfilled_p): New.
417         (GOMP_task): Add detach argument.  Ignore detach argument if
418         GOMP_TASK_FLAG_DETACH not set in flags.  Initialize completion_sem
419         field.  Copy address of completion_sem into detach argument and
420         into the start of the data record.  Wait for detach event if task
421         not deferred.
422         (gomp_barrier_handle_tasks): Queue tasks with unfulfilled events.
423         Remove completed tasks and requeue dependent tasks.
424         (omp_fulfill_event): New.
425         * team.c (gomp_new_team): Initialize task_detach_queue and
426         task_detach_count fields.
427         (free_team): Free task_detach_queue field.
428         * testsuite/libgomp.c-c++-common/task-detach-1.c: New testcase.
429         * testsuite/libgomp.c-c++-common/task-detach-2.c: New testcase.
430         * testsuite/libgomp.c-c++-common/task-detach-3.c: New testcase.
431         * testsuite/libgomp.c-c++-common/task-detach-4.c: New testcase.
432         * testsuite/libgomp.c-c++-common/task-detach-5.c: New testcase.
433         * testsuite/libgomp.c-c++-common/task-detach-6.c: New testcase.
434         * testsuite/libgomp.fortran/task-detach-1.f90: New testcase.
435         * testsuite/libgomp.fortran/task-detach-2.f90: New testcase.
436         * testsuite/libgomp.fortran/task-detach-3.f90: New testcase.
437         * testsuite/libgomp.fortran/task-detach-4.f90: New testcase.
438         * testsuite/libgomp.fortran/task-detach-5.f90: New testcase.
439         * testsuite/libgomp.fortran/task-detach-6.f90: New testcase.
441 2021-01-15  Jakub Jelinek  <jakub@redhat.com>
443         PR target/70454
444         * configure.tgt: For i?86 and x86_64 determine if -march=i486 needs to
445         be added through preprocessor check on
446         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
448 2021-01-14  Thomas Schwinge  <thomas@codesourcery.com>
450         PR libgomp/65099
451         * plugin/configfrag.ac (PLUGIN_NVPTX): Restrict to supported
452         configurations.
453         * configure: Regenerate.
454         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Remove 64-bit
455         check.
457 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
459         * configure: Re-generate.
461 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
463         * configure: Re-generate.
465 2021-01-05  Julian Brown  <julian@codesourcery.com>
467         * plugin/plugin-nvptx.c (SOFTSTACK_CACHE_LIMIT): New define.
468         (struct ptx_device): Add omp_stacks struct.
469         (nvptx_open_device): Initialise cached-stacks housekeeping info.
470         (nvptx_close_device): Free cached stacks block and mutex.
471         (nvptx_stacks_free): New function.
472         (nvptx_alloc): Add SUPPRESS_ERRORS parameter.
473         (GOMP_OFFLOAD_alloc): Add strategies for freeing soft-stacks block.
474         (nvptx_stacks_alloc): Rename to...
475         (nvptx_stacks_acquire): This.  Cache stacks block between runs if same
476         size or smaller is required.
477         (nvptx_stacks_free): Remove.
478         (GOMP_OFFLOAD_run): Call nvptx_stacks_acquire and lock stacks block
479         during kernel execution.
481 2021-01-01  Jakub Jelinek  <jakub@redhat.com>
483         * libgomp.texi: Bump @copying's copyright year.
485 2020-12-28  Gerald Pfeifer  <gerald@pfeifer.com>
487         * libgomp.texi (Top): Avoid bad "up" link.
489 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
491         * testsuite/libgomp.c/task-6.c: New test.
493 2020-12-09  Andrew Stubbs  <ams@codesourcery.com>
495         * plugin/plugin-gcn.c: Include hsa_ext_amd.h.
496         (HSA_AMD_AGENT_INFO_COMPUTE_UNIT_COUNT): Delete redundant definition.
498 2020-12-08  Tobias Burnus  <tobias@codesourcery.com>
500         * testsuite/libgomp.fortran/scan-1.f90: New test.
502 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
504         PR target/97865
505         * configure: Regenerate.
507 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
509         * configure: Regenerate.
511 2020-11-25  Thomas Schwinge  <thomas@codesourcery.com>
513         * testsuite/libgomp.oacc-c++/cache-1.C: New.
514         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Update.
516 2020-11-25  Andrew Stubbs  <ams@codesourcery.com>
518         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Adjust
519         expected results.
521 2020-11-24  Andrew Stubbs  <ams@codesourcery.com>
523         * plugin/plugin-gcn.c: Don't redefine relocations if elf.h has them.
524         (reserved): Delete unused define.
526 2020-11-24  Thomas Schwinge  <thomas@codesourcery.com>
528         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c: Avoid
529         Tcl 8.5-specific behavior.
530         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
532 2020-11-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
534         * env.c (gomp_global_icv): Remove nest_var field.  Add
535         max_active_levels_var field.
536         (gomp_max_active_levels_var): Remove.
537         (parse_boolean): Return true on success.
538         (handle_omp_display_env): Express OMP_NESTED in terms of
539         max_active_levels_var.  Change format specifier for
540         max_active_levels_var.
541         (initialize_env): Set max_active_levels_var from
542         OMP_MAX_ACTIVE_LEVELS, OMP_NESTED, OMP_NUM_THREADS and
543         OMP_PROC_BIND.
544         * icv.c (omp_set_nested): Express in terms of
545         max_active_levels_var.
546         (omp_get_nested): Likewise.
547         (omp_set_max_active_levels): Use max_active_levels_var field instead
548         of gomp_max_active_levels_var.
549         (omp_get_max_active_levels): Likewise.
550         * libgomp.h (struct gomp_task_icv): Remove nest_var field.  Add
551         max_active_levels_var field.
552         (gomp_supported_active_levels): Set to UCHAR_MAX.
553         (gomp_max_active_levels_var): Delete.
554         * libgomp.texi (omp_get_nested): Update documentation.
555         (omp_set_nested): Likewise.
556         (OMP_MAX_ACTIVE_LEVELS): Likewise.
557         (OMP_NESTED): Likewise.
558         (OMP_NUM_THREADS): Likewise.
559         (OMP_PROC_BIND): Likewise.
560         * parallel.c (gomp_resolve_num_threads): Replace reference
561         to nest_var with max_active_levels_var.  Use max_active_levels_var
562         field instead of gomp_max_active_levels_var.
564 2020-11-18  Tobias Burnus  <tobias@codesourcery.com>
566         * testsuite/libgomp.c/usleep.h (fallback_usleep): Renamed from
567         nvptx_usleep; use also for device={arch(gcn)}.
569 2020-11-14  Jakub Jelinek  <jakub@redhat.com>
571         * testsuite/libgomp.c-c++-common/allocate-1.c (struct S): New type.
572         (foo): Add tests for non-VLA private and firstprivate clauses on
573         omp task.
574         (bar): Likewise.  Remove taking of address from private/firstprivate
575         variables.
576         * testsuite/libgomp.c++/allocate-1.C (struct S): New type.
577         (foo): Add p, q, px and s arguments.  Add tests for array reductions
578         and for non-VLA private and firstprivate clauses on omp task.
579         (bar): Removed.
580         (main): Adjust foo caller.  Don't call bar.
582 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
583             Thomas Schwinge  <thomas@codesourcery.com>
585         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose-ice-1.c:
586         New.
587         * testsuite/libgomp.oacc-c-c++-common/declare-vla-kernels-decompose.c:
588         Likewise.
589         * testsuite/libgomp.oacc-c-c++-common/kernels-decompose-1.c:
590         Likewise.
591         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Adjust.
592         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: Likewise.
594 2020-11-13  Gergö Barany  <gergo@codesourcery.com>
595             Thomas Schwinge  <thomas@codesourcery.com>
597         PR fortran/94358
598         * testsuite/libgomp.oacc-fortran/pr94358-1.f90: New.
600 2020-11-13  Jakub Jelinek  <jakub@redhat.com>
602         * testsuite/libgomp.c-c++-common/allocate-1.c (foo): Add tests
603         for array reductions.
604         (main): Adjust foo callers.
606 2020-11-12  Jakub Jelinek  <jakub@redhat.com>
608         * libgomp.map (GOMP_alloc, GOMP_free): Export at GOMP_5.0.1.
609         * omp.h.in (omp_alloc): Add malloc and alloc_size attributes.
610         * libgomp_g.h (GOMP_alloc, GOMP_free): Declare.
611         * allocator.c (omp_aligned_alloc): New for now static function,
612         add alignment argument and handle it.
613         (omp_alloc): Reimplement using omp_aligned_alloc.
614         (GOMP_alloc, GOMP_free): New functions.
615         (omp_free): Add ialias.
616         * testsuite/libgomp.c-c++-common/allocate-1.c: New test.
617         * testsuite/libgomp.c++/allocate-1.C: New test.
619 2020-11-12  Thomas Schwinge  <thomas@codesourcery.com>
621         PR fortran/97782
622         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Adjust.
624 2020-11-10  Chung-Lin Tang  <cltang@codesourcery.com>
626         * libgomp.h (enum gomp_map_vars_kind): Adjust enum values to be bit-flag
627         usable.
628         * oacc-mem.c (acc_map_data): Adjust gomp_map_vars argument flags to
629         'GOMP_MAP_VARS_OPENACC | GOMP_MAP_VARS_ENTER_DATA'.
630         (goacc_enter_datum): Likewise for call to gomp_map_vars_async.
631         (goacc_enter_data_internal): Likewise.
632         * target.c (gomp_map_vars_internal):
633         Change checks of GOMP_MAP_VARS_ENTER_DATA to use bit-and (&). Adjust use
634         of gomp_attach_pointer for OpenMP cases.
635         (gomp_exit_data): Add handling of GOMP_MAP_DETACH.
636         (GOMP_target_enter_exit_data): Add handling of GOMP_MAP_ATTACH.
637         * testsuite/libgomp.c-c++-common/ptr-attach-1.c: New testcase.
639 2020-11-05  Ulrich Drepper  <drepper@redhat.com>
640             Kwok Cheung Yeung  <kcy@codesourcery.com>
642         * Makefile.am (%.mod): Add -cpp and -fopenmp to compile flags.
643         * Makefile.in: Regenerate.
644         * fortran.c: Wrap uses of omp_set_nested and omp_get_nested with
645         pragmas to ignore -Wdeprecated-declarations warnings.
646         * icv.c: Likewise.
647         * omp.h.in (__GOMP_DEPRECATED_5_0): Define.
648         Mark omp_lock_hint_* enum values, omp_lock_hint_t, omp_set_nested,
649         and omp_get_nested with __GOMP_DEPRECATED_5_0.
650         * omp_lib.f90.in: Mark omp_get_nested and omp_set_nested as
651         deprecated.
652         * testsuite/libgomp.c++/affinity-1.C: Add -Wno-deprecated-declarations
653         to test options.
654         * testsuite/libgomp.c/affinity-1.c: Likewise.
655         * testsuite/libgomp.c/affinity-2.c: Likewise.
656         * testsuite/libgomp.c/appendix-a/a.15.1.c: Likewise.
657         * testsuite/libgomp.c/lib-1.c: Likewise.
658         * testsuite/libgomp.c/nested-1.c: Likewise.
659         * testsuite/libgomp.c/nested-2.c: Likewise.
660         * testsuite/libgomp.c/nested-3.c: Likewise.
661         * testsuite/libgomp.c/pr32362-1.c: Likewise.
662         * testsuite/libgomp.c/pr32362-2.c: Likewise.
663         * testsuite/libgomp.c/pr32362-3.c: Likewise.
664         * testsuite/libgomp.c/pr35549.c: Likewise.
665         * testsuite/libgomp.c/pr42942.c: Likewise.
666         * testsuite/libgomp.c/pr61200.c: Likewise.
667         * testsuite/libgomp.c/sort-1.c: Likewise.
668         * testsuite/libgomp.c/target-5.c: Likewise.
669         * testsuite/libgomp.c/target-6.c: Likewise.
670         * testsuite/libgomp.c/teams-1.c: Likewise.
671         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
672         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
673         * testsuite/libgomp.c/thread-limit-4.c: Likewise.
674         * testsuite/libgomp.fortran/affinity1.f90: Likewise.
675         * testsuite/libgomp.fortran/lib1.f90: Likewise.
676         * testsuite/libgomp.fortran/lib2.f: Likewise.
677         * testsuite/libgomp.fortran/nested1.f90: Likewise.
678         * testsuite/libgomp.fortran/teams1.f90: Likewise.
680 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
682         PR target/85486
683         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: Simplify and enhance.
684         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: Likewise.
685         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: Likewise.
687 2020-11-02  Thomas Schwinge  <thomas@codesourcery.com>
689         PR testsuite/80219
690         PR testsuite/85303
691         * testsuite/lib/libgomp.exp (libgomp_init): Set
692         'gcc_warning_prefix', 'gcc_error_prefix'.
694 2020-10-30  Jakub Jelinek  <jakub@redhat.com>
696         * target.c (gomp_map_vars_internal): Use FIELD_TGT_EMPTY macro
697         even in field_tgt_clear initializer.
699 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
701         * testsuite/libgomp.c/target-42.c: New test.
703 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
704             Tom de Vries  <tdevries@suse.de>
706         PR testsuite/81690
707         * testsuite/libgomp.c/usleep.h: New file.
708         * testsuite/libgomp.c/target-32.c: Include usleep.h.
709         (main): Use tgt_usleep instead of usleep.
710         * testsuite/libgomp.c/thread-limit-2.c: Include usleep.h.
711         (main): Use tgt_usleep instead of usleep.
713 2020-10-28  Jakub Jelinek  <jakub@redhat.com>
715         PR lto/96680
716         * testsuite/libgomp.c/declare-variant-1.c: New test.
718 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
720         * testsuite/libgomp.c/target-41.c: New test.
722 2020-10-22  Jakub Jelinek  <jakub@redhat.com>
724         * icv.c (omp_get_initial_device): Remove including corresponding
725         ialias.
726         * icv-device.c (omp_get_initial_device): New function.  Return
727         gomp_get_num_devices ().  Add ialias.
728         * target.c (resolve_device): Don't fail with
729         OMP_TARGET_OFFLOAD=mandatory if device_id is equal to
730         gomp_get_num_devices ().
731         (omp_target_alloc, omp_target_free, omp_target_is_present,
732         omp_target_memcpy, omp_target_memcpy_rect, omp_target_associate_ptr,
733         omp_target_disassociate_ptr, omp_pause_resource): Use
734         gomp_get_num_devices () instead of GOMP_DEVICE_HOST_FALLBACK on the
735         first use in the functions, in uses dominated by the
736         gomp_get_num_devices call use num_devices_openmp instead.
737         * libgomp.texi (omp_get_initial_device): Document.
738         * config/gcn/icv-device.c (omp_get_initial_device): New function.
739         Add ialias.
740         * config/nvptx/icv-device.c (omp_get_initial_device): Likewise.
741         * testsuite/libgomp.c/target-40.c: New test.
743 2020-10-21  Jakub Jelinek  <jakub@redhat.com>
745         * env.c (parse_target_offload): Change new_offload var type to int,
746         preinitialize to -1, remove found var and test new_offload != -1
747         instead of found.
749 2020-10-20  Jakub Jelinek  <jakub@redhat.com>
751         * target.c (gomp_target_init): Inside of the function, use automatic
752         variables corresponding to num_devices, num_devices_openmp and devices
753         global variables and update the globals only at the end of the
754         function.
756 2020-10-20  Kwok Cheung Yeung  <kcy@codesourcery.com>
758         * env.c (gomp_target_offload_var): New.
759         (parse_target_offload): New.
760         (handle_omp_display_env): Print value of OMP_TARGET_OFFLOAD.
761         (initialize_env): Parse OMP_TARGET_OFFLOAD.
762         * libgomp.h (gomp_target_offload_t): New.
763         (gomp_target_offload_var): New.
764         * libgomp.texi (OMP_TARGET_OFFLOAD): New section.
765         * target.c (resolve_device): Generate error if device not found and
766         offloading is mandatory.
767         (gomp_target_fallback): Generate error if offloading is mandatory.
768         (GOMP_target): Add argument in call to gomp_target_fallback.
769         (GOMP_target_ext): Likewise.
770         (gomp_target_data_fallback): Generate error if offloading is mandatory.
771         (GOMP_target_data): Add argument in call to gomp_target_data_fallback.
772         (GOMP_target_data_ext): Likewise.
773         (gomp_target_task_fn): Add argument in call to gomp_target_fallback.
774         (gomp_target_init): Return early if offloading is disabled.
776 2020-10-15  Kwok Cheung Yeung  <kcy@codesourcery.com>
778         * libgomp.texi (omp_get_max_active_levels): Modify description.
779         (omp_get_supported_active_levels): Make descriptions consistent.
781 2020-10-14  Jakub Jelinek  <jakub@redhat.com>
783         * libgomp.texi (omp_get_supported_active_levels): Fix a typo.
785 2020-10-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
787         * env.c (gomp_max_active_levels_var): Initialize to
788         gomp_supported_active_levels.
789         (initialize_env): Limit gomp_max_active_levels_var to be at most
790         equal to gomp_supported_active_levels.
791         * fortran.c (omp_get_supported_active_levels): Add ialias_redirect.
792         (omp_get_supported_active_levels_): New.
793         * icv.c (omp_set_max_active_levels): Limit gomp_max_active_levels_var
794         to at most equal to gomp_supported_active_levels.
795         (omp_get_supported_active_levels): New.
796         * libgomp.h (gomp_supported_active_levels): New.
797         * libgomp.map (OMP_5.0.1): Add omp_get_supported_active_levels and
798         omp_get_supported_active_levels_.
799         * libgomp.texi (omp_get_supported_active_levels): New.
800         (omp_set_max_active_levels): Update.  Add reference to
801         omp_get_supported_active_levels.
802         * omp.h.in (omp_get_supported_active_levels): New.
803         * omp_lib.f90.in (omp_get_supported_active_levels): New.
804         * omp_lib.h.in (omp_get_supported_active_levels): New.
805         * testsuite/libgomp.c/lib-2.c (main): Check omp_get_max_active_levels
806         against omp_get_supported_active_levels.
807         * testsuite/libgomp.fortran/lib4.f90 (lib4): Likewise.
809 2020-10-11  Clement Chigot  <clement.chigot@atos.net>
811         * config/t-aix: Delete and recreate libgomp before creating
812         FAT library.
814 2020-10-08  Tom de Vries  <tdevries@suse.de>
816         PR libgomp/81802
817         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_run): Report launch
818         dimensions.
820 2020-10-06  Tom de Vries  <tdevries@suse.de>
822         * testsuite/libgomp.oacc-fortran/declare-5.f90: Add xfail for PR92790.
824 2020-10-06  Tom de Vries  <tdevries@suse.de>
826         PR middle-end/90861
827         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Remove xfail.
829 2020-10-05  Tom de Vries  <tdevries@suse.de>
831         PR fortran/95654
832         * testsuite/libgomp.fortran/pr95654.f90: New test.
834 2020-10-02  Tobias Burnus  <tobias@codesourcery.com>
836         * Makefile.in: Regenerate with automake 1.15.1.
837         * aclocal.m4: Likewise.
838         * configure: Likewise.
839         * testsuite/Makefile.in: Likewise.
841 2020-09-30  Andrew Stubbs  <ams@codesourcery.com>
843         * parallel.c (gomp_resolve_num_threads): Ignore nest_var on nvptx
844         and amdgcn targets.
846 2020-09-30  Tobias Burnus  <tobias@codesourcery.com>
848         * testsuite/libgomp.fortran/declare-target-3.f90: New test.
850 2020-09-29  Andrew Stubbs  <ams@codesourcery.com>
852         * config/gcn/bar.c (gomp_barrier_wait_end): Skip the barrier if the
853         total number of threads is one.
854         (gomp_team_barrier_wake): Likewise.
855         (gomp_team_barrier_wait_end): Likewise.
856         (gomp_team_barrier_wait_cancel_end): Likewise.
857         * config/nvptx/bar.c (gomp_barrier_wait_end): Likewise.
858         (gomp_team_barrier_wake): Likewise.
859         (gomp_team_barrier_wait_end): Likewise.
860         (gomp_team_barrier_wait_cancel_end): Likewise.
861         * testsuite/libgomp.c-c++-common/nested-parallel-unbalanced.c: New test.
863 2020-09-28  Tobias Burnus  <tobias@codesourcery.com>
865         PR middle-end/96390
866         * testsuite/libgomp.c++/pr96390.C: New test.
867         * testsuite/libgomp.c-c++-common/pr96390.c: New test.
869 2020-09-27  Clement Chigot  <clement.chigot@atos.net>
871         * config/t-aix: Use $(AR) without -X32_64.
873 2020-09-25  Jakub Jelinek  <jakub@redhat.com>
875         * testsuite/libgomp.c/loop-25.c: New test.
877 2020-09-22  Tobias Burnus  <tobias@codesourcery.com>
879         PR fortran/95654
880         * testsuite/libgomp.fortran/pr66199-5.f90: Make stop codes unique.
882 2020-09-22  Tom de Vries  <tdevries@suse.de>
884         * plugin/plugin-nvptx.c (link_ptx): Print elog if cuLinkComplete call
885         fails.
887 2020-09-16  Nathan Sidwell  <nathan@acm.org>
889         * testsuite/libgomp.c++/udr-3.C: Add missing ctor.
891 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
893         PR fortran/96668
894         * target.c (gomp_map_vars_internal): Initialize has_nullptr.
896 2020-09-15  Tobias Burnus  <tobias@codesourcery.com>
898         PR fortran/96668
899         * libgomp.h (struct target_var_desc): Add has_null_ptr_assoc member.
900         * target.c (gomp_map_vars_existing): Add always_to_flag flag.
901         (gomp_map_vars_existing): Update call to it.
902         (gomp_map_fields_existing): Likewise
903         (gomp_map_vars_internal): Update PSET handling such that if a nullptr is
904         now allocated or if GOMP_MAP_POINTER is used PSET is updated and pointer
905         remapped.
906         (GOMP_target_enter_exit_data): Hanlde GOMP_MAP_ALWAYS_POINTER like
907         GOMP_MAP_POINTER.
908         * testsuite/libgomp.fortran/map-alloc-ptr-1.f90: New test.
909         * testsuite/libgomp.fortran/map-alloc-ptr-2.f90: New test.
911 2020-09-14  Tom de Vries  <tdevries@suse.de>
913         * config/nvptx/atomic.c: New file.  Add
914         __sync_val_compare_and_swap_16.
915         * testsuite/libgomp.c-c++-common/reduction-16.c: Add -latomic for
916         target offload_target_nvptx.
918 2020-09-08  Julian Brown  <julian@codesourcery.com>
920         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c: Remove
921         iteration-ordering assumptions.
923 2020-09-08  Julian Brown  <julian@codesourcery.com>
925         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
926         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
928 2020-08-20  Chung-Lin Tang  <cltang@codesourcery.com>
930         * plugin/plugin-nvptx.c (nvptx_free):
931         Change "GOMP_PLUGIN_acc_thread () == NULL" test into check of
932         CUDA_ERROR_NOT_PERMITTED status for cuMemGetAddressRange. Adjust
933         comments.
935 2020-08-20  Tobias Burnus  <tobias@codesourcery.com>
937         * testsuite/libgomp.fortran/lastprivate-conditional-10.f90: New test.
939 2020-08-13  Kwok Cheung Yeung  <kcy@codesourcery.com>
941         * testsuite/libgomp.c-c++-common/reduction-16.c: New.
943 2020-08-13  Jakub Jelinek  <jakub@redhat.com>
945         * testsuite/libgomp.c/loop-22.c (main): Add some further tests.
946         * testsuite/libgomp.c/loop-23.c (main): Likewise.
947         * testsuite/libgomp.c/loop-24.c: New test.
949 2020-08-08  Jakub Jelinek  <jakub@redhat.com>
950             Tobias Burnus  <tobias@codesourcery.com>
952         PR fortran/93553
953         * testsuite/libgomp.fortran/pr93553.f90: New test.
955 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
957         * testsuite/libgomp.c/loop-22.c: New test.
958         * testsuite/libgomp.c/loop-23.c: New test.
960 2020-08-05  Jakub Jelinek  <jakub@redhat.com>
962         PR middle-end/96459
963         * testsuite/libgomp.c/teams-3.c: New test.
964         * testsuite/libgomp.c-c++-common/for-2.h (OMPTEAMS): Define to nothing
965         if not defined yet.
966         (N(test)): Use it before all N(f*) calls.
967         * testsuite/libgomp.c-c++-common/for-14.c (DO_PRAGMA, OMPTEAMS): Define.
968         (main): Don't call all test_* functions from within
969         #pragma omp teams reduction(|:err), call them directly.
971 2020-08-04  Tom de Vries  <tdevries@suse.de>
973         PR target/96428
974         * testsuite/libgomp.oacc-fortran/pr96628-part1.f90: New test.
975         * testsuite/libgomp.oacc-fortran/pr96628-part2.f90: New test.
977 2020-08-03  Julian Brown  <julian@codesourcery.com>
978             Thomas Schwinge  <thomas@codesourcery.com>
980         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: Don't run for
981         shared-memory devices.  Extend with further checking.
983 2020-08-03  Martin Jambor  <mjambor@suse.cz>
985         * plugin/Makefrag.am: Remove configuration of HSA plugin.
986         * aclocal.m4: Regenerated.
987         * Makefile.in: Regenerated.
988         * config.h.in: Regenerated.
989         * configure: Regenerated.
990         * plugin/configfrag.ac: Likewise.
991         * plugin/hsa_ext_finalize.h: Removed.
992         * plugin/plugin-hsa.c: Likewise.
993         * testsuite/Makefile.in: Regenerated.
994         * testsuite/lib/libgomp.exp
995         (offload_target_to_openacc_device_type): Remove hsa case.
996         (check_effective_target_hsa_offloading_selected_nocache): Removed
997         (check_effective_target_hsa_offloading_selected): Likewise.
998         (libgomp_init): Do not add -Wno-hsa to additional_flags.
999         * testsuite/libgomp.hsa.c/alloca-1.c: Removed test.
1000         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
1001         * testsuite/libgomp.hsa.c/bits-insns.c: Likewise.
1002         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
1003         * testsuite/libgomp.hsa.c/c.exp: Likewise.
1004         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
1005         * testsuite/libgomp.hsa.c/complex-align-2.c: Likewise.
1006         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
1007         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
1008         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
1009         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
1010         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
1011         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
1012         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
1013         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
1014         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
1015         * testsuite/libgomp.hsa.c/pr82416.c: Likewise.
1016         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
1017         * testsuite/libgomp.hsa.c/staticvar.c: Likewise.
1018         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
1019         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
1020         * testsuite/libgomp.hsa.c/switch-sbr-2.c: Likewise.
1021         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
1022         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
1024 2020-07-27  Julian Brown  <julian@codesourcery.com>
1025             Thomas Schwinge  <thomas@codesourcery.com>
1027         * libgomp.h (struct target_var_desc): Rename do_detach field to
1028         is_attach.
1029         * oacc-mem.c (goacc_exit_datum_1): Add assert.  Don't set finalize for
1030         GOMP_MAP_FORCE_DETACH. Update checking to use is_attach field.
1031         (goacc_enter_data_internal): Don't affect reference counts
1032         for attach mappings.
1033         (goacc_exit_data_internal): Don't affect reference counts for detach
1034         mappings.
1035         * target.c (gomp_map_vars_existing): Don't affect reference counts for
1036         attach mappings.
1037         (gomp_map_vars_internal): Set renamed is_attach flag unconditionally to
1038         mark attach mappings.
1039         (gomp_unmap_vars_internal): Use is_attach flag to prevent affecting
1040         reference count for attach mappings.
1041         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-1.c: New test.
1042         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
1043         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-2.c: New test.
1044         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Mark
1045         test as shouldfail.
1046         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust to fail
1047         gracefully in no-finalize mode.
1048         * testsuite/libgomp.oacc-c-c++-common/mdc-refcount-3.c: New file.
1050 2020-07-24  Thomas Schwinge  <thomas@codesourcery.com>
1052         * testsuite/libgomp.oacc-c++/c++.exp: Unset 'offload_target' after
1053         use.
1054         * testsuite/libgomp.oacc-c/c.exp: Likewise.
1055         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1057 2020-07-23  Julian Brown  <julian@codesourcery.com>
1058             Thomas Schwinge  <thomas@codesourcery.com>
1060         * target.c (gomp_unmap_vars_internal): Remove unnecessary forcing of
1061         finalization for detach operation.
1062         * testsuite/libgomp.oacc-c-c++-common/structured-detach-underflow.c:
1063         New test.
1065 2020-07-23  Tobias Burnus  <tobias@codesourcery.com>
1067         * configure.ac: Add OMP_DEPEND_KIND and OMP_INT128_SIZE.
1068         * libgomp_f.h.in (omp_check_defines): Check whether
1069         sizeof of determined Fortran kind and C typedef match.
1070         * omp_lib.f90.in: Add omp_depened_kind.
1071         * omp_lib.h.in: Likewise; fix omp_alloctrait_key_kind.
1072         * configure: Regenerate.
1073         * Makefile.in: Regenerate.
1074         * testsuite/Makefile.in: Regenerate.
1076 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
1078         * testsuite/libgomp.c-c++-common/critical-hint-1.c: New; moved from
1079         gcc/testsuite/c-c++-common/gomp/.
1080         * testsuite/libgomp.c-c++-common/critical-hint-2.c: Likewise.
1081         * testsuite/libgomp.fortran/critical-hint-1.f90: New; moved
1082         from gcc/testsuite/gfortran.dg/gomp/.
1083         * testsuite/libgomp.fortran/critical-hint-2.f90: Likewise.
1085 2020-07-22  Tobias Burnus  <tobias@codesourcery.com>
1087         * omp_lib.f90.in: Add omp_sync_hint_* and omp_sync_hint_kind.
1088         * omp_lib.h.in: Likewise.
1090 2020-07-18  H.J. Lu  <hjl.tools@gmail.com>
1092         PR target/95620
1093         * testsuite/libgomp.c/pr95620.c: New test.
1095 2020-07-16  Julian Brown  <julian@codesourcery.com>
1096             Thomas Schwinge  <thomas@codesourcery.com>
1098         * testsuite/libgomp.oacc-fortran/attach-descriptor-1.f90: New test.
1099         * testsuite/libgomp.oacc-fortran/attach-descriptor-2.f90: New test.
1101 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
1103         * testsuite/libgomp.fortran/alloc-1.F90: Use c_size_t to
1104         avoid conversion on 32bit systems from 32bit to 64bit due
1105         to -fdefault-integer-8.
1107 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
1109         * testsuite/libgomp.fortran/struct-elem-map-1.f90: Remove unused
1110         variables; add character(kind=4) tests; update TODO comment.
1112 2020-07-15  Tobias Burnus  <tobias@codesourcery.com>
1114         * allocator.c: Add ialias for omp_init_allocator and
1115         omp_destroy_allocator.
1116         * configure.ac: Set INTPTR_T_KIND.
1117         * configure: Regenerate.
1118         * Makefile.in: Regenerate.
1119         * testsuite/Makefile.in: Regenerate.
1120         * fortran.c (omp_init_allocator_, omp_destroy_allocator_,
1121         omp_set_default_allocator_, omp_get_default_allocator_): New
1122         functions and ialias_redirect.
1123         * icv.c: Add ialias for omp_set_default_allocator and
1124         omp_get_default_allocator.
1125         * libgomp.map (OMP_5.0.1): Add omp_init_allocator_,
1126         omp_destroy_allocator_, omp_set_default_allocator_ and
1127         omp_get_default_allocator_.
1128         * omp_lib.f90.in: Add allocator traits parameters, declare
1129         allocator routines and add related kind parameters.
1130         * omp_lib.h.in: Likewise.
1131         * testsuite/libgomp.c-c++-common/alloc-2.c: Fix sizeof.
1132         * testsuite/libgomp.fortran/alloc-1.F90: New test.
1133         * testsuite/libgomp.fortran/alloc-2.F90: New test.
1134         * testsuite/libgomp.fortran/alloc-3.F: New test.
1135         * testsuite/libgomp.fortran/alloc-4.f90: New test.
1136         * testsuite/libgomp.fortran/alloc-5.f90: New test.
1138 2020-07-14  Tom de Vries  <tom@codesourcery.com>
1139             Cesar Philippidis  <cesar@codesourcery.com>
1140             Thomas Schwinge  <thomas@codesourcery.com>
1141             Kwok Cheung Yeung  <kcy@codesourcery.com>
1143         * oacc-init.c (acc_init_state_lock, acc_init_state, acc_init_thread):
1144         New variable.
1145         (acc_init_1): Set acc_init_thread to pthread_self ().  Set
1146         acc_init_state to initializing at the start, and to initialized at the
1147         end.
1148         (self_initializing_p): New function.
1149         (acc_get_device_type): Return acc_device_none if called by thread that
1150         is currently executing acc_init_1.
1151         * libgomp.texi (acc_get_device_type): Update documentation.
1152         (Implementation Status and Implementation-Defined Behavior): Likewise.
1153         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-2.c: New.
1155 2020-07-14  David Edelsohn  <dje.gcc@gmail.com>
1157         * config/t-aix: Set BITS from compiler cpp macro.
1159 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
1161         * testsuite/libgomp.fortran/struct-elem-map-1.f90: New test.
1163 2020-07-14  Tobias Burnus  <tobias@codesourcery.com>
1165         PR fortran/67311
1166         * testsuite/libgomp.fortran/target-map-1.f90: New test.
1168 2020-07-14  Jakub Jelinek  <jakub@redhat.com>
1170         * testsuite/libgomp.c/loop-21.c: New test.
1172 2020-07-13  Julian Brown  <julian@codesourcery.com>
1173             Thomas Schwinge  <thomas@codesourcery.com>
1175         * testsuite/libgomp.oacc-fortran/dynamic-pointer-1.f90: New test.
1177 2020-07-10  Julian Brown  <julian@codesourcery.com>
1178             Thomas Schwinge  <thomas@codesourcery.com>
1180         * libgomp.h (struct splay_tree_key_s): Change virtual_refcount to
1181         dynamic_refcount.
1182         (struct gomp_device_descr): Remove GOMP_MAP_VARS_OPENACC_ENTER_DATA.
1183         * oacc-mem.c (acc_map_data): Substitute virtual_refcount for
1184         dynamic_refcount.
1185         (acc_unmap_data): Update comment.
1186         (goacc_map_var_existing, goacc_enter_datum): Adjust for
1187         dynamic_refcount semantics.
1188         (goacc_exit_datum_1, goacc_exit_datum): Re-add some error checking.
1189         Adjust for dynamic_refcount semantics.
1190         (goacc_enter_data_internal): Implement "present" case of dynamic
1191         memory-map handling here.  Update "non-present" case for
1192         dynamic_refcount semantics.
1193         (goacc_exit_data_internal): Use goacc_exit_datum_1.
1194         * target.c (gomp_map_vars_internal): Remove
1195         GOMP_MAP_VARS_OPENACC_ENTER_DATA handling.  Update for dynamic_refcount
1196         handling.
1197         (gomp_unmap_vars_internal): Remove virtual_refcount handling.
1198         (gomp_load_image_to_device): Substitute dynamic_refcount for
1199         virtual_refcount.
1200         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Remove XFAILs.
1201         * testsuite/libgomp.oacc-c-c++-common/refcounting-1.c: New test.
1202         * testsuite/libgomp.oacc-c-c++-common/refcounting-2.c: New test.
1203         * testsuite/libgomp.oacc-c-c++-common/struct-3-1-1.c: New test.
1204         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Remove XFAILs and
1205         trace output.
1206         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: Remove
1207         trace output.
1208         * testsuite/libgomp.oacc-fortran/dynamic-incr-structural-1.f90: New
1209         test.
1210         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
1211         Remove stale comment.
1212         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Remove XFAILs.
1213         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
1214         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
1215         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
1216         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
1217         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Adjust XFAIL.
1219 2020-07-10  Julian Brown  <julian@codesourcery.com>
1220             Thomas Schwinge  <thomas@codesourcery.com>
1222         * oacc-mem.c (goacc_map_var_existing): New function.
1223         (goacc_enter_datum): Use above function.
1224         (goacc_exit_datum_1): New function.
1225         (goacc_exit_datum): Use above function.
1227 2020-07-09  Julian Brown  <julian@codesourcery.com>
1228             Thomas Schwinge  <thomas@codesourcery.com>
1230         PR middle-end/95270
1231         * testsuite/libgomp.oacc-c-c++-common/pr95270-1.c: New test.
1232         * testsuite/libgomp.oacc-c-c++-common/pr95270-2.c: New test.
1234 2020-07-09  Julian Brown  <julian@codesourcery.com>
1236         * oacc-mem.c (find_group_last): Group data-movement clauses
1237         (GOMP_MAP_TO_PSET, GOMP_MAP_TO, etc.) together with a subsequent
1238         GOMP_MAP_ATTACH.  Allow standalone GOMP_MAP_ATTACH also.
1240 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
1242         * testsuite/libgomp.c/loop-19.c: New test.
1243         * testsuite/libgomp.c/loop-20.c: New test.
1245 2020-07-09  Jakub Jelinek  <jakub@redhat.com>
1247         * omp.h.in (omp_alloctrait_value_t): Change omp_atv_default from
1248         2 to -1.  Add omp_atv_serialized and define omp_atv_sequential using
1249         it.  Remove __omp_alloctrait_value_max__.
1250         * allocator.c (omp_init_allocator): Handle omp_atv_default for
1251         omp_atk_alignment and omp_atk_pool_size.
1253 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
1255         * oacc-mem.c (goacc_exit_data_internal): Revert always-copyfrom
1256         behavior for 'GOMP_MAP_FORCE_FROM'.
1257         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Adjust XFAIL.
1259 2020-07-03  Thomas Schwinge  <thomas@codesourcery.com>
1261         * oacc-mem.c (goacc_exit_data_internal): Remove
1262         'GOMP_MAP_ALWAYS_FROM' handling.
1264 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
1266         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Replace fragile
1267         'scan-assembler' with 'scan-offload-rtl'.
1268         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: Likewise.
1269         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
1270         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: Likewise.
1271         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: Likewise.
1273 2020-06-30  Thomas Schwinge  <thomas@codesourcery.com>
1275         * target.c (gomp_map_vars_existing): Assert 'kind !=
1276         GOMP_MAP_ATTACH'.
1277         (gomp_map_vars_internal): Clean up.
1279 2020-06-27  Jakub Jelinek  <jakub@redhat.com>
1281         * testsuite/libgomp.c/loop-17.c: New test.
1282         * testsuite/libgomp.c/loop-18.c: New test.
1284 2020-06-26  Marek Polacek  <polacek@redhat.com>
1286         * testsuite/libgomp.c++/atomic-3.C: Use -std=gnu++14.
1288 2020-06-23  Alexandre Oliva  <oliva@adacore.com>
1290         * testsuite/lib/libgomp.exp: Load gcc lib scanoffload.exp.
1291         * testsuite/lib/libgomp-dg.exp: Drop now-obsolete -save-temps.
1293 2020-06-22  David Edelsohn  <dje.gcc@gmail.com>
1295         * Makefile.am: Use -include.
1296         * Makefile.in: Regenerate.
1298 2020-06-21  David Edelsohn  <dje.gcc@gmail.com>
1300         * Makefile.am (tmake_file): Build and install AIX-style FAT libraries.
1301         * Makefile.in: Regenerate
1302         * configure.ac (tmake_file): Substitute.
1303         * configure: Regenerate.
1304         * configure.tgt (powerpc-ibm-aix*): Define tmake_file.
1305         * config/t-aix: New file.
1307 2020-06-17  Thomas Schwinge  <thomas@codesourcery.com>
1309         PR lto/94848
1310         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: Add
1311         'dg-do run'.
1313 2020-06-17  Andrew Stubbs  <ams@codesourcery.com>
1315         * plugin/plugin-gcn.c (init_environment_variables): Use ".so.1"
1316         variant for HSA_RUNTIME_LIB name.
1317         (find_executable_symbol_1): Delete.
1318         (find_executable_symbol): Delete.
1319         (init_kernel_properties): Add ".kd" suffix to symbol names.
1320         (find_load_offset): Delete.
1321         (create_and_finalize_hsa_program): Remove relocation handling.
1323 2020-06-16  Tobias Burnus  <tobias@codesourcery.com>
1325         * testsuite/libgomp.oacc-fortran/routine-10.f90: New test.
1327 2020-06-08  Tobias Burnus  <tobias@codesourcery.com>
1329         PR lto/94848
1330         PR middle-end/95551
1331         * testsuite/libgomp.fortran/target-var.f90: New test.
1333 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
1334             Julian Brown  <julian@codesourcery.com>
1336         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>: Explain
1337         special handling.
1339 2020-06-05  Thomas Schwinge  <thomas@codesourcery.com>
1340             Julian Brown  <julian@codesourcery.com>
1342         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
1343         Simplify.
1345 2020-06-05  Julian Brown  <julian@codesourcery.com>
1347         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-1.c: New test.
1348         * testsuite/libgomp.oacc-c-c++-common/struct-copyout-2.c: New test.
1350 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
1352         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
1353         Evaluate 'copyfrom' individually for each entry.
1354         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: Update.
1356 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
1358         * oacc-mem.c (goacc_exit_data_internal) <GOMP_MAP_STRUCT>:
1359         Evaluate 'finalize' individually for each entry.
1360         * testsuite/libgomp.oacc-c-c++-common/struct-1.c: New file.
1361         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: Remove
1362         file.
1364 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
1366         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: Fix 'sizeof'
1367         usage.
1368         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: Likewise.
1370 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
1371             Julian Brown  <julian@codesourcery.com>
1373         * oacc-mem.c (goacc_exit_datum): Repair 'is_tgt_unmapped'
1374         checking.
1375         (acc_unmap_data, goacc_exit_data_internal): Restore
1376         'is_tgt_unmapped' checking.
1377         * testsuite/libgomp.oacc-c-c++-common/struct-refcount-1.c: New
1378         file.
1379         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: Adjust.
1380         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
1381         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
1382         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
1383         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
1384         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
1386 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
1387             Julian Brown  <julian@codesourcery.com>
1389         * oacc-mem.c (acc_unmap_data): Don't open-code 'gomp_remove_var'.
1391 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
1393         PR libgomp/92854
1394         * oacc-mem.c (acc_unmap_data): Remove 'tgt' reference counting.
1396 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
1398         PR libgomp/92854
1399         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: Extend some
1400         more.
1402 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
1403             Julian Brown  <julian@codesourcery.com>
1405         * oacc-mem.c (goacc_enter_datum): Use 'tgt' returned from
1406         'gomp_map_vars'.
1407          (acc_map_data): Clean up accordingly.
1409 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
1411         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: XFAIL behavior
1412         of over-eager 'finalize' clause.
1413         * testsuite/libgomp.oacc-fortran/deep-copy-6-no_finalize.F90: New
1414         file.
1415         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-1.f90: Likewise.
1416         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-1-2.F90: Likewise.
1417         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-1.f90: Likewise.
1418         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-2-2.f90: Likewise.
1419         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-1.f90: Likewise.
1420         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-3-2.f90: Likewise.
1421         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-1.f90: Likewise.
1422         * testsuite/libgomp.oacc-fortran/mdc-refcount-1-4-2.f90: Likewise.
1424 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
1426         * oacc-mem.c (goacc_exit_data_internal): Unlock on error path.
1428 2020-06-04  Julian Brown  <julian@codesourcery.com>
1430         * oacc-mem.c (acc_attach_async): Add missing gomp_mutex_unlock on
1431         error path.
1432         (goacc_detach_internal): Likewise.
1434 2020-06-04  Thomas Schwinge  <thomas@codesourcery.com>
1436         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Initialize before
1437         the checkpoint.
1438         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
1439         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
1440         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
1441         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
1442         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
1444 2020-06-02  Jakub Jelinek  <jakub@redhat.com>
1446         * allocator.c (omp_free): Fix up build if HAVE_SYNC_BUILTINS is not
1447         defined.
1449 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
1451         * testsuite/libgomp.c-c++-common/alloc-4.c: New test.
1453 2020-05-30  Jakub Jelinek  <jakub@redhat.com>
1455         * allocator.c (omp_alloc): For size == 0, return NULL early.
1457 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
1459         PR bootstrap/95413
1460         * configure: Regenerated.
1462 2020-05-23  Thomas Koenig  <tkoenig@gcc.gnu.org>
1464         PR libfortran/95191
1465         * testsuite/libgomp.fortran/async_io_9.f90: New test.
1467 2020-05-19  Jakub Jelinek  <jakub@redhat.com>
1469         * omp.h.in (omp_uintptr_t): New typedef.
1470         (__GOMP_UINTPTR_T_ENUM): Define.
1471         (omp_memspace_handle_t, omp_allocator_handle_t, omp_alloctrait_key_t,
1472         omp_alloctrait_value_t, omp_alloctrait_t): New typedefs.
1473         (__GOMP_DEFAULT_NULL_ALLOCATOR): Define.
1474         (omp_init_allocator, omp_destroy_allocator, omp_set_default_allocator,
1475         omp_get_default_allocator, omp_alloc, omp_free): Declare.
1476         * libgomp.h (struct gomp_team_state): Add def_allocator field.
1477         (gomp_def_allocator): Declare.
1478         * libgomp.map (OMP_5.0.1): Export omp_set_default_allocator,
1479         omp_get_default_allocator, omp_init_allocator, omp_destroy_allocator,
1480         omp_alloc and omp_free.
1481         * team.c (gomp_team_start): Copy over ts.def_allocator.
1482         * env.c (gomp_def_allocator): New variable.
1483         (parse_wait_policy): Adjust function comment.
1484         (parse_allocator): New function.
1485         (handle_omp_display_env): Print OMP_ALLOCATOR.
1486         (initialize_env): Call parse_allocator.
1487         * Makefile.am (libgomp_la_SOURCES): Add allocator.c.
1488         * allocator.c: New file.
1489         * icv.c (omp_set_default_allocator, omp_get_default_allocator): New
1490         functions.
1491         * testsuite/libgomp.c-c++-common/alloc-1.c: New test.
1492         * testsuite/libgomp.c-c++-common/alloc-2.c: New test.
1493         * testsuite/libgomp.c-c++-common/alloc-3.c: New test.
1494         * Makefile.in: Regenerated.
1496 2020-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1498         PR bootstrap/95147
1499         * configure: Regenerated.
1501 2020-05-14  Thomas Koenig  <tkoenig@gcc.gnu.org>
1503         PR libfortran/95119
1504         * testsuite/libgomp.fortran/close_errors_1.f90: New test.
1506 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1508         * configure: Regenerated.
1510 2020-05-14  Jakub Jelinek  <jakub@redhat.com>
1512         * testsuite/libgomp.c-c++-common/target-40.c: New test.
1514 2020-05-13  Tobias Burnus  <tobias@codesourcery.com>
1516         PR fortran/94690
1517         * testsuite/libgomp.fortran/pr66199-3.f90: New.
1518         * testsuite/libgomp.fortran/pr66199-4.f90: New.
1519         * testsuite/libgomp.fortran/pr66199-5.f90: New.
1520         * testsuite/libgomp.fortran/pr66199-6.f90: New.
1521         * testsuite/libgomp.fortran/pr66199-7.f90: New.
1522         * testsuite/libgomp.fortran/pr66199-8.f90: New.
1523         * testsuite/libgomp.fortran/pr66199-9.f90: New.
1525 2020-05-12  Jakub Jelinek  <jakub@redhat.com>
1527         * testsuite/libgomp.c/target-39.c: New test.
1529 2020-04-29  Thomas Schwinge  <thomas@codesourcery.com>
1531         * config/accel/openacc.f90 (acc_device_current): Set to '-1'.
1532         * openacc.f90 (acc_device_current): Likewise.
1533         * openacc.h (acc_device_current): Likewise.
1534         * openacc_lib.h (acc_device_current): Likewise.
1536         PR target/94282
1537         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Remove
1538         'dg-allow-blank-lines-in-output'.
1540         * oacc-init.c (get_openacc_name): Handle 'gcn'.
1541         * testsuite/lib/libgomp.exp
1542         (offload_target_to_openacc_device_type) [amdgcn*]: Return
1543         'radeon'.  Adjust all users.
1544         (check_effective_target_openacc_amdgcn_accel_present): Rename
1545         to...
1546         (check_effective_target_openacc_radeon_accel_present): ... this.
1547         Adjust all users.
1548         (check_effective_target_openacc_amdgcn_accel_selected): Rename to...
1549         (check_effective_target_openacc_radeon_accel_selected): ... this.
1550         Adjust all users.
1552         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Add
1553         'dg-do run'.
1555 2020-04-23  Andrew Stubbs  <ams@codesourcery.com>
1557         PR other/94629
1559         * plugin/plugin-gcn.c (init_hsa_context): Check return value from
1560         hsa_iterate_agents.
1561         (GOMP_OFFLOAD_init_device): Check return values from both calls to
1562         hsa_agent_iterate_regions.
1564 2020-04-20  Thomas Schwinge  <thomas@codesourcery.com>
1566         PR middle-end/94635
1567         * testsuite/libgomp.fortran/target-enter-data-2.F90: Add 'dg-do
1568         run'.
1570 2020-04-20  Tobias Burnus  <tobias@codesourcery.com>
1572         PR middle-end/94120
1573         * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
1574         test case.
1576 2020-04-17  Tobias Burnus  <tobias@codesourcery.com>
1578         PR middle-end/94635
1579         * testsuite/libgomp.fortran/target-enter-data-2.F90: New.
1581 2020-04-13  Thomas Schwinge  <thomas@codesourcery.com>
1583         PR libgomp/92843
1584         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
1585         Rename to...
1586         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1-lib.c:
1587         ... this.
1588         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
1589         Rename to...
1590         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-1.c:
1591         ... this.
1592         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
1593         Rename to...
1594         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2-lib.c:
1595         ... this.
1596         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
1597         Rename to...
1598         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-2.c:
1599         ... this.
1600         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
1601         Rename to...
1602         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3-lib.c:
1603         ... this.
1604         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
1605         Rename to...
1606         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-3.c:
1607         ... this.
1608         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
1609         Rename to...
1610         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4-lib.c:
1611         ... this.
1612         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
1613         Rename to...
1614         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-4.c:
1615         ... this.
1616         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
1617         Rename to...
1618         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5-lib.c:
1619         ... this.
1620         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
1621         Rename to...
1622         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-5.c:
1623         ... this.
1624         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
1625         Rename to...
1626         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6-lib.c:
1627         ... this.
1628         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
1629         Rename to...
1630         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-6.c:
1631         ... this.
1632         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
1633         Rename to...
1634         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7-lib.c:
1635         ... this.
1636         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
1637         Rename to...
1638         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-7.c:
1639         ... this.
1640         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
1641         Rename to...
1642         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8-lib.c:
1643         ... this.
1644         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c::
1645         Rename to...
1646         * testsuite/libgomp.oacc-c-c++-common/structured-dynamic-lifetimes-8.c:
1647         ... this.
1649 2020-04-10  Julian Brown  <julian@codesourcery.com>
1650             Thomas Schwinge  <thomas@codesourcery.com>
1652         PR libgomp/92843
1653         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1-lib.c:
1654         New file.
1655         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-1.c:
1656         Likewise.
1657         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2-lib.c:
1658         Likewise.
1659         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-2.c:
1660         Likewise.
1661         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3-lib.c:
1662         Likewise.
1663         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-3.c:
1664         Likewise.
1665         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4-lib.c:
1666         Likewise.
1667         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-4.c:
1668         Likewise.
1669         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5-lib.c:
1670         Likewise.
1671         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-5.c:
1672         Likewise.
1673         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6-lib.c:
1674         Likewise.
1675         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-6.c:
1676         Likewise.
1677         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7-lib.c:
1678         Likewise.
1679         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-7.c:
1680         Likewise.
1681         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8-lib.c:
1682         Likewise.
1683         * testsuite/libgomp.oacc-c-c++-common/static-dynamic-lifetimes-8.c:
1684         Likewise.
1686 2020-04-10  Thomas Schwinge  <thomas@codesourcery.com>
1688         * testsuite/libgomp.fortran/target-enter-data-1.f90: Add 'dg-do
1689         run'.
1691 2020-04-08  Tobias Burnus  <tobias@codesourcery.com>
1693         PR middle-end/94120
1694         * libgomp.oacc-c++/declare-pr94120.C: New.
1696 2020-04-06  Maciej W. Rozycki  <macro@wdc.com>
1698         * configure.ac: Add testsuite/libgomp-site-extra.exp to output
1699         files.
1700         * configure: Regenerate.
1701         * testsuite/libgomp-site-extra.exp.in: New file.
1702         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): Remove
1703         variable.
1704         * testsuite/Makefile.am (EXTRA_DEJAGNU_SITE_CONFIG): New
1705         variable.
1706         * testsuite/Makefile.in: Regenerate.
1708 2020-04-03  Thomas Schwinge  <thomas@codesourcery.com>
1710         PR tree-optimization/89713
1711         PR c/94392
1712         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Again expect
1713         'bar.sync'.
1714         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Likewise.
1716 2020-03-31  Tobias Burnus  <tobias@codesourcery.com>
1718         * target.c (GOMP_target_enter_exit_data): Handle PSET/MAP_POINTER.
1719         * testsuite/libgomp.fortran/target-enter-data-1.f90: New.
1721 2020-03-24  Tobias Burnus  <tobias@codesourcery.com>
1723         PR libgomp/81689
1724         * testsuite/libgomp.c/target-link-1.c: Remove xfail.
1726 2020-03-20  Tobias Burnus  <tobias@codesourcery.com>
1728         PR libgomp/94251
1729         * target.c (gomp_load_image_to_device): Fix link
1730         variable handling.
1732 2020-03-19  Jakub Jelinek  <jakub@redhat.com>
1734         PR c++/93931
1735         * testsuite/libgomp.c++/pr93931.C: New test.
1737 2020-03-19  Tobias Burnus  <tobias@codesourcery.com>
1739         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: Add
1740         dg-allow-blank-lines-in-output.
1742 2020-03-18  Julian Brown <julian@codesourcery.com>
1743             Tobias Burnus  <tobias@codesourcery.com>
1745         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
1746         it work concurrently.
1748 2020-03-18  Tobias Burnus  <tobias@codesourcery.com>
1750         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
1751         #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
1752         * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
1754 2020-03-14  Jakub Jelinek  <jakub@redhat.com>
1756         PR middle-end/93566
1757         * testsuite/libgomp.c/pr93566.c: New test.
1759 2020-02-21  Frederik Harwath  <frederik@codesourcery.com>
1761         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
1762         changes from 2020-02-19, i.e. use integer(c_size_t) instead of
1763         integer(acc_device_property) for the type of the return value of
1764         acc_get_property.
1766 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
1768         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
1769         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
1770         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
1771         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
1772         (acc_set_device_num): Fix Fortran argument name, use same name for C.
1773         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
1774         corrections; add note about the previous interface and named constant.
1775         (OpenACC library and environment variables): Fix two typos.
1776         * openacc.f90: Use for all procedures the argument names from the spec
1777         as for â€¦_h they are user visible.
1778         (openacc_kinds): Rename acc_device_property to
1779         acc_device_property_kinds and change value to int32 ; and update users.
1780         Re-add acc_device_property for for backward compatibility.
1781         (acc_get_property_string_h): Clean up as acc_device_property_kind
1782         changed.
1783         (acc_get_property_h): Likewise and return c_size_t instead of
1784         acc_device_property.
1785         (openacc): Also export acc_device_property_kinds.
1786         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
1787         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
1788         handling; check against /= 0 instead of == 1 to match C.
1789         * openacc_lib.h: Use for all procedures the argument names from the spec
1790         as for â€¦_h they are user visible. Place !GCC$ into the first column to
1791         be active also for fixed-form souce form.
1792         (acc_device_current, acc_device_property_kind, acc_device_property,
1793         acc_property_memory, acc_property_free_memory, acc_property_name,
1794         acc_property_vendor, acc_property_driver): New named constants.
1795         (acc_get_property, acc_get_property_string): New generic interface.
1797 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
1799         PR libgomp/93481
1800         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
1801         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
1802         optional.
1803         (gomp_target_task_fn): Assert "devicep->async_run_func".
1804         (clear_unsupported_flags): New function to remove unsupported flags
1805         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
1806         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
1807         * testsuite/libgomp.c/target-33.c:
1808         Remove xfail for offload_target_nvptx.
1809         * testsuite/libgomp.c/target-34.c: Likewise.
1811 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
1813         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
1814         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
1815         * testsuite/libgomp.c/target-34.c: Likewise.
1816         * testsuite/libgomp.c/target-link-1.c: Add xfail for
1817         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
1819 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
1821         * testsuite/libgomp.c/target-38.c: New test.
1823 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
1825         PR libgomp/93515
1826         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
1828 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
1830         * testsuite/lib/libgomp.exp
1831         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
1832         and not as 'source' argument to libgomp_target_compile.
1834 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
1836         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
1837         (gcn_gfx801_s): Remove.
1838         (isa_hsa_name): Remove gfx801.
1839         (isa_gcc_name): Remove gfx801/carizzo.
1840         (isa_code): Remove gfx801.
1842 2020-02-03  Julian Brown  <julian@codesourcery.com>
1843             Tobias Burnus  <tobias@codesourcery.com>
1845         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
1846         and *_finalize variants; document acc_attach and acc_detach; update
1847         references from OpenACC 2.0 to 2.6.
1848         * openacc.f90 (openacc_version): Update to 201711.
1849         * openacc_lib.h (openacc_version): Update to 201711.
1850         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
1851         openacc_version to 201711.
1852         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
1854 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
1856         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
1857         and vgpr_count fields.
1858         (struct kernel_info): Add a field for a hsa_kernel_description.
1859         (run_kernel): Reduce the number of threads/workers if the requested
1860         number would require too many VGPRs.
1861         (init_basic_kernel_info): Initialize description field with
1862         the hsa_kernel_description entry for the kernel.
1864 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
1866         PR bootstrap/93409
1867         * plugin/configfrag.ac (enable_offload_targets): Skip
1868         HSA and GCN plugin besides -m32 also for -mx32.
1869         * configure: Regenerate.
1871 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
1873         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
1875 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
1877         * plugin-gcn.c (struct agent_info): Add fields "name" and
1878         "vendor_name" ...
1879         (GOMP_OFFLOAD_init_device): ... and init from here.
1880         (struct hsa_context_info): Add field "driver_version_s" ...
1881         (init_hsa_contest): ... and init from here.
1882         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
1883         implementation.
1884         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
1885         Enable test execution for amdgcn and host offloading targets.
1886         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
1887         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
1888         (expect_device_properties): Split function into ...
1889         (expect_device_string_properties): ... this new function ...
1890         (expect_device_memory): ... and this new function.
1891         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
1892         Add test.
1894 2020-01-28  Julian Brown  <julian@codesourcery.com>
1896         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
1897         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
1898         component/non-component variable refs in a single directive.
1899         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
1901 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
1903         * configure.ac: Handle `--with-toolexeclibdir='.
1904         * Makefile.in: Regenerate.
1905         * aclocal.m4: Regenerate.
1906         * configure: Regenerate.
1907         * testsuite/Makefile.in: Regenerate.
1909 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
1911         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
1912         (expect_device_properties): Remove "expected_free_mem" argument,
1913         change "expected_total_mem" argument type to size_t;
1914         change types of acc_get_property results to size_t,
1915         adapt format strings.
1916         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
1917         Use %zu instead of %zd to print size_t values.
1918         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
1919         rename to ...
1920         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
1921         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
1922         rename to ...
1923         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
1925 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
1927         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
1928         the device id.
1930 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
1932         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
1933         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
1934         Adjust test dimensions for amdgcn.
1935         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
1936         gang/worker/vector expectations dynamically.
1937         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
1938         (main): Likewise.
1939         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
1940         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
1941         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
1942         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
1943         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
1944         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
1945         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
1946         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
1947         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
1948         (acc_gang): Recognise acc_device_radeon.
1949         (acc_worker): Likewise.
1950         (acc_vector): Likewise.
1951         (main): Set expectations for amdgcn.
1952         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
1953         (main): Adjust gang/worker/vector expectations dynamically.
1954         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
1955         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
1956         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
1957         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
1958         for amdgcn.
1960 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
1962         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
1963         acc_device_radeon.
1964         (openacc): Likewise.
1965         * openacc.f90 (openacc_kinds): Likewise.
1966         (openacc): Likewise.
1967         * openacc.h (acc_device_t): Likewise.
1968         * openacc_lib.h: Likewise.
1969         * testsuite/lib/libgomp.exp
1970         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
1971         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
1972         (cb_compute_construct_end): Likewise.
1973         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
1974         (cb_enqueue_launch_start): Likewise.
1975         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
1976         (cb_enter_data_end): Likewise.
1977         (cb_exit_data_start): Likewise.
1978         (cb_exit_data_end): Likewise.
1979         (cb_compute_construct_end): Likewise.
1980         (cb_enqueue_launch_start): Likewise.
1981         (cb_enqueue_launch_end): Likewise.
1982         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
1983         (main): Likewise.
1985 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
1987         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
1988         to use this instead of 'enum gomp_device_property'.
1989         (GOMP_OFFLOAD_get_property): Rename to...
1990         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
1991         * libgomp.h (struct gomp_device_descr): Move
1992         'GOMP_OFFLOAD_openacc_get_property'...
1993         (struct acc_dispatch_t): ... here.  Adjust all users.
1994         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
1996         * target.c (gomp_map_vars_internal)
1997         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
1998         paths.
2000 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
2002         PR libgomp/93219
2003         * libgomp.h (gomp_print_string): Change return type from void to int.
2004         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
2005         not all characters have been written.
2007 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
2009         * libgomp.texi: Fix typos, use https.
2011 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
2013         * testsuite/libgomp.fortran/optional-map.f90: Add test for
2014         unallocated/disassociated actual arguments to nonallocatable/nonpointer
2015         dummy arguments; those are/shall be regarded as absent arguments.
2016         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
2017         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
2019 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
2021         Update copyright years.
2023         * libgomp.texi: Bump @copying's copyright year.
2025 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
2027         PR libgomp/93065
2028         * oacc-init.c (goacc_runtime_deinitialize): New function.
2030 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
2032         PR bootstrap/93074
2033         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
2034         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
2036 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
2037             Frederik Harwath  <frederik@codesourcery.com>
2038             Thomas Schwinge  <tschwinge@codesourcery.com>
2040         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
2041         * libgomp-plugin.h (gomp_device_property_value): New union.
2042         (gomp_device_property_value): New prototype.
2043         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
2044         constant.
2045         (acc_device_property_t): New enum.
2046         (acc_get_property, acc_get_property_string): New prototypes.
2047         * oacc-init.c (acc_get_device_type): Also assert that result
2048         is not `acc_device_current'.
2049         (get_property_any, acc_get_property, acc_get_property_string):
2050         New functions.
2051         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
2052         `acc_property_memory', `acc_property_free_memory',
2053         `acc_property_name', `acc_property_vendor' and
2054         `acc_property_driver' constants.  Add `acc_device_property' data
2055         type.
2056         (openacc_internal): Add `acc_get_property' and
2057         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
2058         `acc_get_property_string_h', `acc_get_property_l' and
2059         `acc_get_property_string_l'.
2060         * oacc-host.c (host_get_property): New function.
2061         (host_dispatch): Wire it.
2062         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
2063         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
2064         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
2065         * libgomp.texi (OpenACC Runtime Library Routines): Add
2066         `acc_get_property'.
2067         (acc_get_property): New node.
2068         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
2069         function (stub).
2070         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
2071         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
2072         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
2073         calls.
2074         (GOMP_OFFLOAD_get_property): New function.
2075         (struct ptx_device): Add new field "name".
2076         (cuda_driver_version_s): Add new static variable ...
2077         (nvptx_init): ... and init from here.
2079         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
2080         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
2081         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
2082         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
2083         with test helper functions.
2085         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
2087 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
2089         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
2090         variable.
2092 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
2094         * target.c (gomp_map_vars_internal): Restore 'omp declare target
2095         link' handling.
2097 2019-12-19  Julian Brown  <julian@codesourcery.com>
2099         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
2100         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
2101         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
2103 2019-12-19  Julian Brown  <julian@codesourcery.com>
2104             Cesar Philippidis  <cesar@codesourcery.com>
2106         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
2107         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
2108         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
2109         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
2110         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
2111         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
2112         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
2113         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
2114         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
2115         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
2116         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
2117         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
2118         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
2120 2019-12-19  Julian Brown  <julian@codesourcery.com>
2122         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
2123         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
2124         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
2125         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
2126         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
2127         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
2128         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
2129         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
2130         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
2131         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
2132         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
2133         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
2135 2019-12-19  Julian Brown  <julian@codesourcery.com>
2137         * libgomp.h (struct target_var_desc): Add do_detach flag.
2138         * oacc-init.c (acc_shutdown_1): Free aux block if present.
2139         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
2140         struct components.  Tidy up and add some new checks.
2141         (goacc_enter_data_internal): Update call to find_group_last.
2142         (goacc_exit_data_internal): Support detach operations and
2143         GOMP_MAP_STRUCT.
2144         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
2145         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
2146         attach/detach in enter/exit data detection code.
2147         * target.c (gomp_map_vars_existing): Initialise do_detach field of
2148         tgt_var_desc.
2149         (gomp_map_vars_internal): Support attach.
2150         (gomp_unmap_vars_internal): Support detach.
2152 2019-12-19  Julian Brown  <julian@codesourcery.com>
2153             Thomas Schwinge  <thomas@codesourcery.com>
2155         * libgomp.h (struct splay_tree_aux): Add attach_count field.
2156         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
2157         * libgomp.map (OACC_2.6): New section. Add acc_attach,
2158         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
2159         acc_detach_finalize_async.
2160         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
2161         acc_detach, acc_detach_async, acc_detach_finalize,
2162         acc_detach_finalize_async): New functions.
2163         * openacc.h (acc_attach, acc_attach_async, acc_detach,
2164         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
2165         prototypes.
2166         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
2167         (gomp_remove_var_internal): Free attachment counts if present.
2168         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
2169         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
2171 2019-12-19  Julian Brown  <julian@codesourcery.com>
2172             Cesar Philippidis  <cesar@codesourcery.com>
2174         * libgomp.h (gomp_map_val): Add prototype.
2175         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
2176         open-coding device-address calculation.
2177         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
2178         non-present case.
2180 2019-12-19  Julian Brown  <julian@codesourcery.com>
2182         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
2183         field for virtual_refcount.
2184         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
2185         (gomp_free_memmap): Remove prototype.
2186         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
2187         instead of calling gomp_free_memmap.
2188         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
2189         dynamic_refcount.
2190         (acc_unmap_data): Open code instead of forcing target_mem_desc's
2191         to_free field to NULL then calling gomp_unmap_vars.  Handle
2192         REFCOUNT_INFINITY on target blocks.
2193         (goacc_enter_data): Rename to...
2194         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
2195         handling for mapping groups.  Use virtual_refcount instead of
2196         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
2197         map_map_vars_async call.  Re-do lookup for target pointer return value.
2198         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
2199         renamed goacc_enter_datum function.
2200         (goacc_exit_data): Rename to...
2201         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
2202         (acc_delete, acc_delete_async, acc_delete_finalize,
2203         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
2204         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
2205         goacc_exit_datum function.
2206         (gomp_acc_remove_pointer, find_pointer): Remove functions.
2207         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
2208         New functions.
2209         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
2210         goacc_exit_data_internal helper functions.
2211         * target.c (gomp_map_vars_internal): Handle
2212         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
2213         semantics.
2214         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
2215         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
2216         virtual_refcount field instead of dynamic_refcount.
2217         (gomp_free_memmap): Remove function.
2218         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
2219         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
2220         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
2222 2019-12-19  Julian Brown  <julian@codesourcery.com>
2223             Thomas Schwinge  <thomas@codesourcery.com>
2225         * libgomp.h (struct splay_tree_aux): New.
2226         (struct splay_tree_key_s): Replace link_key field with aux pointer.
2227         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
2228         to aux struct.
2229         (gomp_remove_var_internal): Free aux block if present.
2230         (gomp_load_image_to_device): Zero-initialise aux field instead of
2231         link_key field.
2232         (omp_target_associate_pointer): Zero-initialise aux field.
2234 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
2236         PR middle-end/86416
2237         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
2238         q or none.
2239         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
2240         L or none.
2242 2019-12-19  Julian Brown  <julian@codesourcery.com>
2243             Maciej W. Rozycki  <macro@codesourcery.com>
2244             Tobias Burnus  <tobias@codesourcery.com>
2245             Thomas Schwinge  <thomas@codesourcery.com>
2247         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
2248         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
2249         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
2250         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
2251         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
2252         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
2253         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
2254         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
2255         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
2257 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
2259         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
2260         called...
2261         (goacc_insert_pointer): ... from here, "present" case.
2262         (goacc_insert_pointer): Inline function into...
2263         (GOACC_enter_exit_data): ... here, and simplify.
2265         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
2266         called...
2267         (goacc_insert_pointer): ... from here, "not present" case.
2269         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
2270         all users.
2272         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
2273         'goacc_enter_data', 'goacc_exit_data'.
2275         * oacc-mem.c (delete_copyout): Refactor into...
2276         (goacc_exit_data): ... this.  Adjust all users.
2278         * oacc-mem.c (present_create_copy): Refactor into...
2279         (goacc_enter_data): ... this.  Adjust all users.
2281         * target.c (gomp_unmap_vars_internal): Add a safeguard to
2282         'gomp_remove_var'.
2284         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
2285         like 'GOMP_MAP_FROM'.
2287         PR libgomp/92726
2288         PR libgomp/92970
2289         PR libgomp/92984
2290         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
2291         fails.
2292         (GOACC_enter_exit_data): Simplify accordingly.
2293         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
2294         subsuming...
2295         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
2296         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
2297         file.
2298         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
2299         subsuming...
2300         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
2301         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
2302         file.
2303         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
2304         subsuming...
2305         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
2307         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
2308         'finalize' handling.
2310         PR libgomp/92848
2311         * oacc-mem.c (acc_map_data, present_create_copy)
2312         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
2313         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
2314         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
2315         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
2316         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
2317         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
2318         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
2319         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
2320         Remove "XFAIL"s.
2322         * target.c (gomp_unmap_tgt): Make it 'static'.
2323         * libgomp.h (gomp_unmap_tgt): Remove.
2325 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
2327         PR middle-end/86416
2328         * testsuite/libgomp.c/pr86416-1.c: New.
2329         * testsuite/libgomp.c/pr86416-2.c: New.
2331 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
2333         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
2334         all symbols as public except for the 'use â€¦, only' imported symbol,
2335         which is private.
2336         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
2337         all symbols from module openacc_kinds as PUBLIC
2338         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
2339         fix comment typo.
2340         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
2342 2019-12-13  Julian Brown  <julian@codesourcery.com>
2344         PR libgomp/92881
2346         * libgomp.h (gomp_remove_var_async): Add prototype.
2347         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
2348         gomp_remove_var.
2349         * target.c (gomp_unref_tgt): Change return type to bool, indicating
2350         whether target_mem_desc was unmapped.
2351         (gomp_unref_tgt_void): New.
2352         (gomp_remove_var): Reimplement in terms of...
2353         (gomp_remove_var_internal): ...this new helper function.
2354         (gomp_remove_var_async): New, implemented using above helper function.
2355         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
2356         gomp_unref_tgt.
2358 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
2360         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
2361         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
2362         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
2363         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
2364         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
2365         Likewise.
2366         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
2367         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
2369 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
2371         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
2372         as public except for the 'use â€¦, only' imported symbol, which is
2373         private.
2374         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
2375         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
2376         attributes for acc_copyout_finalize and acc_delete_finalize.
2378 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
2380         PR fortran/92899
2381         * testsuite/libgomp.fortran/atomic1.f90: New test.
2383 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
2385         PR libgomp/92843
2386         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
2387         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
2388         assertions.
2389         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
2390         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
2391         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
2392         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
2393         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
2395         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
2396         * oacc-mem.c: ... here.
2397         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
2398         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
2399         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
2400         Remove.
2401         * libgomp_g.h: Update.
2403         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
2404         * oacc-async.c: ... here.
2405         * oacc-int.h (goacc_wait): Declare.
2406         * libgomp_g.h: Update
2408         PR libgomp/92854
2409         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
2410         New file.
2411         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
2412         Likewise.
2413         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
2414         Likewise.
2415         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
2416         Likewise.
2417         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
2418         Likewise.
2419         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
2420         Likewise.
2422 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
2423             Julian Brown  <julian@codesourcery.com>
2425         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
2426         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
2428 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
2430         * omp_lib.h.in: Fix spelling of function declaration
2431         omp_get_cancell(l)ation.
2432         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
2433         Fix typos.
2434         * env.c: Fix comment typos.
2435         * oacc-host.c: Likewise.
2436         * ordered.c: Likewise.
2437         * task.c: Likewise.
2438         * team.c: Likewise.
2439         * config/gcn/task.c: Likewise.
2440         * config/gcn/team.c: Likewise.
2441         * config/nvptx/task.c: Likewise.
2442         * config/nvptx/team.c: Likewise.
2443         * plugin/plugin-gcn.c: Likewise.
2444         * testsuite/libgomp.fortran/jacobi.f: Likewise.
2445         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
2446         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
2448 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
2450         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
2451         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
2452         unnecessary 'dg-additional-options "-w"'.
2454 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
2455             Julian Brown  <julian@codesourcery.com>
2457         PR libgomp/92116
2458         PR libgomp/92877
2460         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
2461         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
2462         Adjust all users.
2463         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
2464         Remove XFAIL.
2465         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
2466         Likewise.
2467         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
2469 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
2471         PR libgomp/92503
2472         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
2473         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
2474         file.
2475         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
2476         Likewise.
2477         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
2478         Likewise.
2479         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
2480         Likewise.
2481         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
2482         Likewise.
2483         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
2484         Likewise.
2485         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
2486         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
2487         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
2488         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
2489         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
2490         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
2491         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
2492         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
2493         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
2494         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
2496         PR libgomp/92840
2497         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
2498         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
2499         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
2500         New file.
2501         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
2502         Likewise.
2503         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
2504         Likewise.
2505         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
2506         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
2508         PR libgomp/92511
2509         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
2510         this file...
2511         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
2512         this file...
2513         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
2514         file...
2515         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
2516         file...
2517         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
2518         ... with their content moved into, and extended in this new file.
2519         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
2520         New file.
2521         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
2522         Likewise.
2523         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
2524         Likewise.
2525         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
2526         Likewise.
2528         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
2530         PR libgomp/92854
2531         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
2533         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
2535         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
2537 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
2539         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
2540         unique.
2541         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
2542         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
2543         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
2544         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
2545         Ditto.
2546         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
2547         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
2549 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
2551         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
2553 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
2554             Kwok Cheung Yeung <kcy@codesourcery.com>
2556         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
2557         if input it a NULL pointer.
2558         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
2559         diagnostic of NULL pointer.
2560         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
2561         * testsuite/libgomp.fortran/optional-map.f90: New.
2562         * testsuite/libgomp.fortran/use_device_addr-1.f90
2563         (test_dummy_opt_callee_1_absent): New.
2564         (test_dummy_opt_call_1): Call it.
2565         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
2566         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
2567         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
2568         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
2569         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
2570         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
2571         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
2572         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
2573         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
2574         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
2575         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
2576         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
2577         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
2578         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
2579         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
2580         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
2582 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
2584         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
2585         expect dg-output of 'Error termination.' for GCN.
2586         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
2587         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
2589 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
2591         PR fortran/92756
2592         * testsuite/libgomp.fortran/teams1.f90: New test.
2593         * testsuite/libgomp.fortran/teams2.f90: New test.
2595 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
2597         * oacc-init.c (acc_known_device_type): Add function.
2598         (unknown_device_type_error): Add function.
2599         (name_of_acc_device_t): Change to call unknown_device_type_error
2600         on unknown type.
2601         (resolve_device): Use acc_known_device_type.
2602         (acc_init): Fail if acc_device_t argument is not valid.
2603         (acc_shutdown): Likewise.
2604         (acc_get_num_devices): Likewise.
2605         (acc_set_device_type): Likewise.
2606         (acc_get_device_num): Likewise.
2607         (acc_set_device_num): Likewise.
2608         (acc_on_device): Add comment that argument validity is not checked.
2610 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
2612         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
2613         Recognize amdgcn.
2614         (check_effective_target_openacc_amdgcn_accel_present): New proc.
2615         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
2616         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
2617         * testsuite/libgomp.oacc-c/c.exp: Likewise.
2618         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2620 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
2622         PR libgomp/91938
2623         * configure.tgt: Avoid IE tls on *-*-musl*.
2625 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
2627         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
2628         adding a common-block test case.
2630 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
2632         PR c++/60228
2633         * testsuite/libgomp.c++/udr-20.C: New test.
2634         * testsuite/libgomp.c++/udr-21.C: New test.
2636 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
2638         * testsuite/lib/libgomp.exp
2639         (check_effective_target_offload_target_nvptx): New proc.
2640         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
2641         'dg-skip-if'.
2642         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
2643         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
2644         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
2646 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2648         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
2649         * testsuite/libgomp.c/pr39591-2.c: Likewise.
2650         * testsuite/libgomp.c/pr39591-3.c: Likewise.
2651         * testsuite/libgomp.c/private-1.c: Likewise.
2652         * testsuite/libgomp.c/task-1.c: Likewise.
2653         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
2655 2019-11-20  Julian Brown  <julian@codesourcery.com>
2657         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
2658         aq->mutex here.
2659         (queue_push_launch): Lock aq->mutex before calling
2660         wait_for_queue_nonfull.
2661         (queue_push_callback): Likewise.
2662         (queue_push_asyncwait): Likewise.
2663         (queue_push_placeholder): Likewise.
2665 2019-11-20  Julian Brown  <julian@codesourcery.com>
2667         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
2668         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
2669         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
2670         return code.
2672 2019-11-20  Julian Brown  <julian@codesourcery.com>
2674         PR libgomp/92511
2676         * oacc-mem.c (present_create_copy): Fix device pointer return value in
2677         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
2678         in non-present/create case.
2679         (delete_copyout): Change error condition to fail only on copies outside
2680         of mapped block.  Adjust error message accordingly.
2681         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
2682         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
2683         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
2684         message.
2685         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
2686         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
2687         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
2689 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
2691         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
2692         libatomic in build-tree testing.
2694 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
2696         * testsuite/Makefile.in: Regenerate.
2698 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
2700         * testsuite/libgomp.c/target-print-1.c: New file.
2701         * testsuite/libgomp.fortran/target-print-1.f90: New file.
2702         * testsuite/libgomp.oacc-c/print-1.c: New file.
2703         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
2705 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
2706             Kwok Cheung Yeung  <kcy@codesourcery.com>
2707             Julian Brown  <julian@codesourcery.com>
2708             Tom de Vries  <tom@codesourcery.com>
2710         * plugin/Makefrag.am: Add amdgcn plugin support.
2711         * plugin/configfrag.ac: Likewise.
2712         * plugin/plugin-gcn.c: New file.
2713         * configure: Regenerate.
2714         * Makefile.in: Regenerate.
2715         * testsuite/Makefile.in: Regenerate.
2717 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
2719         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
2720         and use team_malloc variants.
2721         (gomp_gcn_exit_kernel): Use team_free.
2722         * libgomp.h (TEAM_ARENA_SIZE): Define.
2723         (TEAM_ARENA_START): Define.
2724         (TEAM_ARENA_FREE): Define.
2725         (TEAM_ARENA_END): Define.
2726         (team_malloc): New function.
2727         (team_malloc_cleared): New function.
2728         (team_free): New function.
2729         * team.c (gomp_new_team): Initialize and use team_malloc.
2730         (free_team): Use team_free.
2731         (gomp_free_thread): Use team_free.
2732         (gomp_pause_host): Use team_free.
2733         * work.c (gomp_init_work_share): Use team_malloc.
2734         (gomp_fini_work_share): Use team_free.
2736 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
2737             Kwok Cheung Yeung  <kcy@codesourcery.com>
2738             Julian Brown  <julian@codesourcery.com>
2739             Tom de Vries  <tom@codesourcery.com>
2741         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
2742         * Makefile.in: Regenerate.
2743         * config.h.in (PLUGIN_GCN): Add new undef.
2744         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
2745         * config/gcn/affinity-fmt.c: New file.
2746         * config/gcn/bar.c: New file.
2747         * config/gcn/bar.h: New file.
2748         * config/gcn/doacross.h: New file.
2749         * config/gcn/icv-device.c: New file.
2750         * config/gcn/oacc-target.c: New file.
2751         * config/gcn/simple-bar.h: New file.
2752         * config/gcn/target.c: New file.
2753         * config/gcn/task.c: New file.
2754         * config/gcn/team.c: New file.
2755         * config/gcn/time.c: New file.
2756         * configure.ac: Add amdgcn*-*-*.
2757         * configure: Regenerate.
2758         * configure.tgt: Add amdgcn*-*-*.
2759         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
2760         * libgomp.h (gcn_thrs): Add amdgcn variant.
2761         (set_gcn_thrs): Likewise.
2762         (gomp_thread): Likewise.
2763         * oacc-int.h (goacc_thread): Likewise.
2764         * oacc-target.c: New file.
2765         * openacc.f90 (acc_device_gcn): New parameter.
2766         * openacc.h (acc_device_t): Add acc_device_gcn.
2767         * team.c (gomp_free_pool_helper): Add amdgcn support.
2769 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
2770             Julian Brown  <julian@codesourcery.com>
2772         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
2773         parameter.
2774         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
2775         queue constructor.
2776         * oacc-host.c (host_openacc_async_construct): Add device parameter.
2777         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
2778         device parameter.
2780 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
2782         * configure.tgt (nvptx*-*-*): Add "accel" directory.
2783         * config/nvptx/libgomp-plugin.c: Move ...
2784         * config/accel/libgomp-plugin.c: ... to here.
2785         * config/nvptx/lock.c: Move ...
2786         * config/accel/lock.c: ... to here.
2787         * config/nvptx/mutex.c: Move ...
2788         * config/accel/mutex.c: ... to here.
2789         * config/nvptx/mutex.h: Move ...
2790         * config/accel/mutex.h: ... to here.
2791         * config/nvptx/oacc-async.c: Move ...
2792         * config/accel/oacc-async.c: ... to here.
2793         * config/nvptx/oacc-cuda.c: Move ...
2794         * config/accel/oacc-cuda.c: ... to here.
2795         * config/nvptx/oacc-host.c: Move ...
2796         * config/accel/oacc-host.c: ... to here.
2797         * config/nvptx/oacc-init.c: Move ...
2798         * config/accel/oacc-init.c: ... to here.
2799         * config/nvptx/oacc-mem.c: Move ...
2800         * config/accel/oacc-mem.c: ... to here.
2801         * config/nvptx/oacc-plugin.c: Move ...
2802         * config/accel/oacc-plugin.c: ... to here.
2803         * config/nvptx/omp-lock.h: Move ...
2804         * config/accel/omp-lock.h: ... to here.
2805         * config/nvptx/openacc.f90: Move ...
2806         * config/accel/openacc.f90: ... to here.
2807         * config/nvptx/pool.h: Move ...
2808         * config/accel/pool.h: ... to here.
2809         * config/nvptx/proc.c: Move ...
2810         * config/accel/proc.c: ... to here.
2811         * config/nvptx/ptrlock.c: Move ...
2812         * config/accel/ptrlock.c: ... to here.
2813         * config/nvptx/ptrlock.h: Move ...
2814         * config/accel/ptrlock.h: ... to here.
2815         * config/nvptx/sem.c: Move ...
2816         * config/accel/sem.c: ... to here.
2817         * config/nvptx/sem.h: Move ...
2818         * config/accel/sem.h: ... to here.
2819         * config/nvptx/thread-stacksize.h: Move ...
2820         * config/accel/thread-stacksize.h: ... to here.
2822 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
2823             Tobias Burnus  <tobias@codesourcery.com>
2824             Frederik Harwath  <frederik@codesourcery.com>
2825             Thomas Schwinge  <thomas@codesourcery.com>
2827         libgomp/
2828         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
2829         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
2830         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
2832 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
2833             Kwok Cheung Yeung  <kcy@codesourcery.com>
2835         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
2836         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
2838 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
2840         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
2842         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
2843         run'.
2844         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
2845         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
2847 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
2849         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
2850         Add expected warnings about missing reduction clauses.
2851         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
2852         Likewise.
2853         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
2854         Likewise.
2855         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
2856         Likewise.
2858 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
2860         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
2861         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
2862         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
2863         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
2864         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
2865         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
2867 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
2869         PR fortran/92305
2870         * testsuite/libgomp.fortran/allocatable2.f90: Use
2871         unique numbers with 'stop'.
2872         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
2873         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
2874         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
2875         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
2876         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
2878 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
2880         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
2881         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
2882         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
2883         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
2884         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
2885         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
2887 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
2889         * testsuite/libgomp.fortran/target9.f90: New.
2891 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
2893         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
2894         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
2895         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
2896         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
2897         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
2898         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
2899         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
2900         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
2901         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
2902         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
2903         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
2904         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
2905         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
2906         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
2907         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
2908         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
2909         * testsuite/libgomp.fortran/associate1.f90: Ditto.
2910         * testsuite/libgomp.fortran/associate2.f90: Ditto.
2911         * testsuite/libgomp.fortran/associate3.f90: Ditto.
2912         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
2913         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
2914         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
2915         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
2916         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
2917         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
2918         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
2919         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
2920         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
2921         * testsuite/libgomp.fortran/character1.f90: Ditto.
2922         * testsuite/libgomp.fortran/character2.f90: Ditto.
2923         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
2924         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
2925         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
2926         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
2927         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
2928         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
2929         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
2930         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
2931         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
2932         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
2933         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
2934         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
2935         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
2936         * testsuite/libgomp.fortran/do1.f90: Ditto.
2937         * testsuite/libgomp.fortran/do2.f90: Ditto.
2938         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
2939         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
2940         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
2941         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
2942         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
2943         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
2944         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
2945         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
2946         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
2947         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
2948         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
2949         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
2950         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
2951         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
2952         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
2953         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
2954         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
2955         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
2956         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
2957         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
2958         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
2959         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
2960         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
2961         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
2962         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
2963         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
2964         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
2965         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
2966         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
2967         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
2968         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
2969         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
2970         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
2971         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
2972         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
2973         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
2974         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
2975         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
2976         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
2977         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
2978         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
2979         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
2980         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
2981         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
2982         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
2983         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
2984         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
2985         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
2986         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
2987         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
2988         * testsuite/libgomp.fortran/lib1.f90: Ditto.
2989         * testsuite/libgomp.fortran/lib4.f90: Ditto.
2990         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
2991         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
2992         * testsuite/libgomp.fortran/nested1.f90: Ditto.
2993         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
2994         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
2995         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
2996         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
2997         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
2998         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
2999         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
3000         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
3001         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
3002         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
3003         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
3004         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
3005         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
3006         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
3007         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
3008         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
3009         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
3010         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
3011         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
3012         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
3013         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
3014         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
3015         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
3016         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
3017         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
3018         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
3019         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
3020         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
3021         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
3022         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
3023         * testsuite/libgomp.fortran/pr28390.f: Ditto.
3024         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
3025         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
3026         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
3027         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
3028         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
3029         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
3030         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
3031         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
3032         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
3033         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
3034         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
3035         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
3036         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
3037         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
3038         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
3039         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
3040         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
3041         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
3042         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
3043         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
3044         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
3045         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
3046         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
3047         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
3048         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
3049         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
3050         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
3051         * testsuite/libgomp.fortran/reference1.f90: Ditto.
3052         * testsuite/libgomp.fortran/reference2.f90: Ditto.
3053         * testsuite/libgomp.fortran/retval1.f90: Ditto.
3054         * testsuite/libgomp.fortran/retval2.f90: Ditto.
3055         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
3056         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
3057         * testsuite/libgomp.fortran/simd1.f90: Ditto.
3058         * testsuite/libgomp.fortran/simd2.f90: Ditto.
3059         * testsuite/libgomp.fortran/simd3.f90: Ditto.
3060         * testsuite/libgomp.fortran/simd4.f90: Ditto.
3061         * testsuite/libgomp.fortran/simd5.f90: Ditto.
3062         * testsuite/libgomp.fortran/simd6.f90: Ditto.
3063         * testsuite/libgomp.fortran/simd7.f90: Ditto.
3064         * testsuite/libgomp.fortran/stack.f90: Ditto.
3065         * testsuite/libgomp.fortran/strassen.f90: Ditto.
3066         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
3067         * testsuite/libgomp.fortran/tabs2.f: Ditto.
3068         * testsuite/libgomp.fortran/target1.f90: Ditto.
3069         * testsuite/libgomp.fortran/target2.f90: Ditto.
3070         * testsuite/libgomp.fortran/target3.f90: Ditto.
3071         * testsuite/libgomp.fortran/target4.f90: Ditto.
3072         * testsuite/libgomp.fortran/target5.f90: Ditto.
3073         * testsuite/libgomp.fortran/target6.f90: Ditto.
3074         * testsuite/libgomp.fortran/target7.f90: Ditto.
3075         * testsuite/libgomp.fortran/target8.f90: Ditto.
3076         * testsuite/libgomp.fortran/task1.f90: Ditto.
3077         * testsuite/libgomp.fortran/task2.f90: Ditto.
3078         * testsuite/libgomp.fortran/task3.f90: Ditto.
3079         * testsuite/libgomp.fortran/task4.f90: Ditto.
3080         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
3081         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
3082         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
3083         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
3084         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
3085         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
3086         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
3087         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
3088         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
3089         * testsuite/libgomp.fortran/udr1.f90: Ditto.
3090         * testsuite/libgomp.fortran/udr10.f90: Ditto.
3091         * testsuite/libgomp.fortran/udr11.f90: Ditto.
3092         * testsuite/libgomp.fortran/udr12.f90: Ditto.
3093         * testsuite/libgomp.fortran/udr13.f90: Ditto.
3094         * testsuite/libgomp.fortran/udr14.f90: Ditto.
3095         * testsuite/libgomp.fortran/udr15.f90: Ditto.
3096         * testsuite/libgomp.fortran/udr2.f90: Ditto.
3097         * testsuite/libgomp.fortran/udr3.f90: Ditto.
3098         * testsuite/libgomp.fortran/udr4.f90: Ditto.
3099         * testsuite/libgomp.fortran/udr5.f90: Ditto.
3100         * testsuite/libgomp.fortran/udr6.f90: Ditto.
3101         * testsuite/libgomp.fortran/udr7.f90: Ditto.
3102         * testsuite/libgomp.fortran/udr8.f90: Ditto.
3103         * testsuite/libgomp.fortran/udr9.f90: Ditto.
3104         * testsuite/libgomp.fortran/vla1.f90: Ditto.
3105         * testsuite/libgomp.fortran/vla2.f90: Ditto.
3106         * testsuite/libgomp.fortran/vla3.f90: Ditto.
3107         * testsuite/libgomp.fortran/vla4.f90: Ditto.
3108         * testsuite/libgomp.fortran/vla5.f90: Ditto.
3109         * testsuite/libgomp.fortran/vla6.f90: Ditto.
3110         * testsuite/libgomp.fortran/vla7.f90: Ditto.
3111         * testsuite/libgomp.fortran/vla8.f90: Ditto.
3112         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
3113         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
3115 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
3117         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
3118         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
3119         Ditto; add 'dg-do run' for torture testing.
3120         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
3121         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
3122         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
3123         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
3124         * testsuite/libgomp.fortran/pr28390.f: Ditto.
3125         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
3126         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
3127         * testsuite/libgomp.fortran/task2.f90: Ditto.
3128         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
3129         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
3130         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
3131         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
3132         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
3133         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
3135 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
3137         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
3138         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
3139         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
3140         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
3141         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
3142         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
3143         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
3144         Use 'stop' not abort().
3145         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
3146         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
3147         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
3148         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
3149         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
3150         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
3151         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
3152         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
3153         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
3154         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
3155         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
3156         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
3157         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
3158         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
3159         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
3160         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
3161         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
3162         Ditto.
3163         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3164         Ditto.
3165         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3166         Ditto.
3167         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3168         Ditto.
3169         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3170         Ditto.
3171         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
3172         Ditto.
3173         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
3174         Ditto.
3175         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
3176         Ditto.
3177         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
3178         Ditto.
3179         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
3180         Ditto.
3181         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
3182         Ditto.
3183         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
3184         Ditto.
3185         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
3186         Ditto.
3187         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
3188         Ditto.
3189         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
3190         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
3191         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
3192         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
3193         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
3194         Likewise and also add 'dg-do run'.
3195         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
3196         Ditto.
3198 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
3199             Tobias Burnus  <tobias@codesourcery.com>
3201         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
3202         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
3203         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
3205 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
3207         PR libgomp/92081
3208         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
3209         than 0.
3211 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
3213         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
3214         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
3216 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
3218         PR middle-end/92036
3219         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
3220         file.
3222 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
3224         PR testsuite/91884
3225         * testsuite/libgomp.fortran/fortran.exp: Conditionally
3226         add -lquadmath.
3227         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
3229 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
3231         PR libgomp/92028
3232         * target.c (gomp_map_vars_internal): Readd the previous
3233         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
3234         though do that just in the !not_found_cnt case.
3236 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
3238         * gfortran.dg/gomp/target-simd.f90: New.
3240 2019-10-02  Julian Brown  <julian@codesourcery.com>
3241             Cesar Philippidis  <cesar@codesourcery.com>
3243         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
3244         * target.c (FIELD_TGT_EMPTY): Define.
3245         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
3246         as switch instead of list of ifs.
3247         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
3249 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
3251         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
3252         include. Replace alloca () with __builtin_alloca ().
3253         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
3255 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
3257         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
3258         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
3259         * oacc-parallel.c: Don't include "libgomp_g.h".
3260         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
3261         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
3262         * aclocal.m4: Regenerated.
3263         * config.h.in: Regenerated.
3264         * configure: Regenerated.
3265         * Makefile.in: Regenerated.
3267 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
3269         * libgomp_g.h: Include stdint.h instead of gstdint.h.
3271 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
3273         * configure: Regenerate.
3275 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
3277         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
3278         string is initialized.
3280 2019-09-06  Florian Weimer  <fweimer@redhat.com>
3282         * configure: Regenerate.
3284 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
3286         PR other/79543
3287         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
3288         scanning to conform to the GNU Coding Standards.
3289         * configure: Regenerate.
3291 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
3293         PR libgomp/91530
3294         * testsuite/libgomp.c/scan-21.c: New test.
3295         * testsuite/libgomp.c/scan-22.c: New test.
3297 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
3299         PR libgomp/91530
3300         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
3301         targets.
3302         * testsuite/libgomp.c/scan-12.c: Likewise.
3303         * testsuite/libgomp.c/scan-13.c: Likewise.
3304         * testsuite/libgomp.c/scan-14.c: Likewise.
3305         * testsuite/libgomp.c/scan-15.c: Likewise.
3306         * testsuite/libgomp.c/scan-16.c: Likewise.
3307         * testsuite/libgomp.c/scan-17.c: Likewise.
3308         * testsuite/libgomp.c/scan-18.c: Likewise.
3309         * testsuite/libgomp.c/scan-19.c: Likewise.
3310         * testsuite/libgomp.c/scan-20.c: Likewise.
3311         * testsuite/libgomp.c++/scan-9.C: Likewise.
3312         * testsuite/libgomp.c++/scan-10.C: Likewise.
3313         * testsuite/libgomp.c++/scan-11.C: Likewise.
3314         * testsuite/libgomp.c++/scan-12.C: Likewise.
3315         * testsuite/libgomp.c++/scan-14.C: Likewise.
3316         * testsuite/libgomp.c++/scan-15.C: Likewise.
3317         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
3318         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
3319         * testsuite/libgomp.c++/scan-16.C: Likewise.
3321 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
3323         PR fortran/91473
3324         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
3325         -std=legacy so invalid code in the test case is accepted.
3327 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
3329         PR fortran/91422
3330         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
3331         dimension.
3333 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
3335         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
3336         perform the lookup in the first loop only if !not_found_cnt, otherwise
3337         perform lookups for it in the second loop guarded with
3338         if (not_found_cnt || has_firstprivate).
3339         * testsuite/libgomp.c/target-37.c: New test.
3340         * testsuite/libgomp.c++/target-22.C: New test.
3342 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
3344         * testsuite/libgomp.c/target-18.c (struct S): New type.
3345         (foo): Use use_device_addr clause instead of use_device_ptr clause
3346         where required by OpenMP 5.0, add further tests for both use_device_ptr
3347         and use_device_addr clauses.
3348         * testsuite/libgomp.c++/target-9.C (struct S): New type.
3349         (foo): Use use_device_addr clause instead of use_device_ptr clause
3350         where required by OpenMP 5.0, add further tests for both use_device_ptr
3351         and use_device_addr clauses.  Add t and u arguments.
3352         (main): Adjust caller.
3354 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
3356         * testsuite/libgomp.c++/loop-13.C: New test.
3357         * testsuite/libgomp.c++/loop-14.C: New test.
3358         * testsuite/libgomp.c++/loop-15.C: New test.
3360 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
3362         PR middle-end/91301
3363         * testsuite/libgomp.c++/for-27.C: New test.
3365 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
3367         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
3368         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
3370 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
3372         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
3374 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
3376         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
3377         * testsuite/libgomp.c++/scan-16.C: Likewise.
3379 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
3381         * testsuite/libgomp.c/scan-19.c: New test.
3382         * testsuite/libgomp.c/scan-20.c: New test.
3384         * testsuite/libgomp.c/scan-11.c: New test.
3385         * testsuite/libgomp.c/scan-12.c: New test.
3386         * testsuite/libgomp.c/scan-13.c: New test.
3387         * testsuite/libgomp.c/scan-14.c: New test.
3388         * testsuite/libgomp.c/scan-15.c: New test.
3389         * testsuite/libgomp.c/scan-16.c: New test.
3390         * testsuite/libgomp.c/scan-17.c: New test.
3391         * testsuite/libgomp.c/scan-18.c: New test.
3392         * testsuite/libgomp.c++/scan-9.C: New test.
3393         * testsuite/libgomp.c++/scan-10.C: New test.
3394         * testsuite/libgomp.c++/scan-11.C: New test.
3395         * testsuite/libgomp.c++/scan-12.C: New test.
3396         * testsuite/libgomp.c++/scan-13.C: New test.
3397         * testsuite/libgomp.c++/scan-14.C: New test.
3398         * testsuite/libgomp.c++/scan-15.C: New test.
3399         * testsuite/libgomp.c++/scan-16.C: New test.
3401 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
3403         * testsuite/libgomp.c/scan-9.c: New test.
3404         * testsuite/libgomp.c/scan-10.c: New test.
3406 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
3408         * testsuite/libgomp.c++/scan-1.C: New test.
3409         * testsuite/libgomp.c++/scan-2.C: New test.
3410         * testsuite/libgomp.c++/scan-3.C: New test.
3411         * testsuite/libgomp.c++/scan-4.C: New test.
3412         * testsuite/libgomp.c++/scan-5.C: New test.
3413         * testsuite/libgomp.c++/scan-6.C: New test.
3414         * testsuite/libgomp.c++/scan-7.C: New test.
3415         * testsuite/libgomp.c++/scan-8.C: New test.
3416         * testsuite/libgomp.c/scan-1.c: New test.
3417         * testsuite/libgomp.c/scan-2.c: New test.
3418         * testsuite/libgomp.c/scan-3.c: New test.
3419         * testsuite/libgomp.c/scan-4.c: New test.
3420         * testsuite/libgomp.c/scan-5.c: New test.
3421         * testsuite/libgomp.c/scan-6.c: New test.
3422         * testsuite/libgomp.c/scan-7.c: New test.
3423         * testsuite/libgomp.c/scan-8.c: New test.
3425 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
3427         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
3428         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
3429         Likewise.
3431         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
3432         check.
3434 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
3436         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
3437         file.
3439 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
3441         PR fortran/90743
3442         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
3443         case.
3444         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
3445         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
3446         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
3447         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
3449         PR testsuite/90861
3450         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
3452         PR middle-end/90862
3453         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
3455 2019-06-16  Tom de Vries  <tdevries@suse.de>
3457         PR tree-optimization/89376
3458         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
3460 2019-06-15  Tom de Vries  <tdevries@suse.de>
3462         PR tree-optimization/89713
3463         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
3464         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
3466 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
3468         PR middle-end/90779
3469         * testsuite/libgomp.c/pr90779.c: New test.
3470         * testsuite/libgomp.fortran/pr90779.f90: New test.
3472 2019-06-15  Tom de Vries  <tdevries@suse.de>
3474         PR tree-optimization/90009
3475         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
3477 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
3479         PR tree-optimization/89713
3480         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
3482 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
3484         PR target/90811
3485         * testsuite/libgomp.c/pr90811.c: New test.
3487 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
3489         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
3490         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
3492 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
3494         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
3495         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
3496         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
3497         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
3499 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3501         * configure.ac: Call AX_COUNT_CPUS.
3502         Substitute CPU_COUNT.
3503         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
3504         count fallback.
3505         * aclocal.m4: Regenerate.
3506         * configure: Regenerate.
3507         * Makefile.in, testsuite/Makefile.in: Regenerate.
3509 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
3511         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
3512         to ...
3513         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
3514         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
3515         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
3517 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
3519         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
3521         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
3523         PR libgomp/90641
3524         * work.c (gomp_init_work_share): Instead of aligning final ordered
3525         value to multiples of long long alignment, align to that the
3526         first part (ordered team ids) and if inline_ordered_team_ids
3527         is not on a long long alignment boundary within the structure,
3528         use __alignof__ (long long) - 1 pad size always.
3529         * loop.c (GOMP_loop_start): Fix *mem computation if
3530         inline_ordered_team_ids is not aligned on long long alignment boundary
3531         within the structure.
3532         * loop-ull.c (GOMP_loop_ull_start): Likewise.
3533         * sections.c (GOMP_sections2_start): Likewise.
3535 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
3537         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
3538         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
3540         PR libgomp/90585
3541         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
3542         HAVE_INTTYPES_H is defined.
3543         (print_uint64_t): New typedef.
3544         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
3545         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
3546         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
3547         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
3548         before casting to void *.
3549         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
3550         * oacc-mem.c: Don't include config.h nor stdint.h.
3551         * target.c: Don't include config.h.
3552         * oacc-cuda.c: Likewise.
3553         * oacc-host.c: Don't include stdint.h.
3555 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
3557         PR libgomp/90527
3558         * alloc.c (_GNU_SOURCE): Define.
3560 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
3562         * acc_prof.h: New file.
3563         * oacc-profiling.c: Likewise.
3564         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
3565         Add these, respectively.
3566         * Makefile.in: Regenerate.
3567         * env.c (initialize_env): Call goacc_profiling_initialize.
3568         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
3569         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
3570         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
3571         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
3572         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
3573         acc_prof_register, acc_prof_unregister, and acc_register_library.
3574         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
3575         GOMP_PLUGIN_goacc_thread.
3576         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
3577         prof_callbacks_enabled members.
3578         (goacc_prof_enabled, goacc_profiling_initialize)
3579         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
3580         (goacc_profiling_dispatch): Declare.
3581         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
3582         (GOACC_PROFILING_SETUP_P): Define.
3583         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
3584         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
3585         OpenACC Profiling Interface.
3586         * oacc-cuda.c (acc_get_current_cuda_device)
3587         (acc_get_current_cuda_context, acc_get_cuda_stream)
3588         (acc_set_cuda_stream): Likewise.
3589         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
3590         (acc_init, acc_set_device_type, acc_get_device_type)
3591         (acc_get_device_num, goacc_lazy_initialize): Likewise.
3592         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
3593         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
3594         (acc_unmap_data, present_create_copy, delete_copyout)
3595         (update_dev_host): Likewise.
3596         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
3597         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
3598         Likewise.
3599         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
3600         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
3601         Likewise.
3602         * libgomp.texi: Update.
3603         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
3604         file.
3605         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
3606         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
3607         Likewise.
3608         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
3609         Likewise.
3610         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
3611         Likewise.
3612         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
3613         Likewise.
3615 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
3617         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
3618         (struct goacc_asyncqueue_list): Likewise.
3619         (goacc_aq): Likewise.
3620         (goacc_aq_list): Likewise.
3621         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
3622         (GOMP_OFFLOAD_openacc_async_test): Remove.
3623         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
3624         (GOMP_OFFLOAD_openacc_async_wait): Remove.
3625         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
3626         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
3627         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
3628         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
3629         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
3630         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
3631         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
3632         (GOMP_OFFLOAD_openacc_async_exec): Declare.
3633         (GOMP_OFFLOAD_openacc_async_construct): Declare.
3634         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
3635         (GOMP_OFFLOAD_openacc_async_test): Declare.
3636         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
3637         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
3638         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
3639         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
3640         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
3642         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
3643         (gomp_acc_insert_pointer): Adjust declaration.
3644         (gomp_copy_host2dev): New declaration.
3645         (gomp_copy_dev2host): Likewise.
3646         (gomp_map_vars_async): Likewise.
3647         (gomp_unmap_tgt): Likewise.
3648         (gomp_unmap_vars_async): Likewise.
3649         (gomp_fini_device): Likewise.
3651         * oacc-async.c (get_goacc_thread): New function.
3652         (get_goacc_thread_device): New function.
3653         (lookup_goacc_asyncqueue): New function.
3654         (get_goacc_asyncqueue): New function.
3655         (acc_async_test): Adjust code to use new async design.
3656         (acc_async_test_all): Likewise.
3657         (acc_wait): Likewise.
3658         (acc_wait_async): Likewise.
3659         (acc_wait_all): Likewise.
3660         (acc_wait_all_async): Likewise.
3661         (goacc_async_free): New function.
3662         (goacc_init_asyncqueues): Likewise.
3663         (goacc_fini_asyncqueues): Likewise.
3664         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
3665         design.
3666         (acc_set_cuda_stream): Likewise.
3667         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
3668         (host_openacc_register_async_cleanup): Remove.
3669         (host_openacc_async_exec): New function.
3670         (host_openacc_async_test): Adjust parameters.
3671         (host_openacc_async_test_all): Remove.
3672         (host_openacc_async_wait): Remove.
3673         (host_openacc_async_wait_async): Remove.
3674         (host_openacc_async_wait_all): Remove.
3675         (host_openacc_async_wait_all_async): Remove.
3676         (host_openacc_async_set_async): Remove.
3677         (host_openacc_async_synchronize): New function.
3678         (host_openacc_async_serialize): New function.
3679         (host_openacc_async_host2dev): New function.
3680         (host_openacc_async_dev2host): New function.
3681         (host_openacc_async_queue_callback): New function.
3682         (host_openacc_async_construct): New function.
3683         (host_openacc_async_destruct): New function.
3684         (struct gomp_device_descr host_dispatch): Remove initialization of old
3685         interface, add initialization of new async sub-struct.
3686         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
3687         (goacc_attach_host_thread_to_device): Remove old async code usage.
3688         * oacc-int.h (goacc_init_asyncqueues): New declaration.
3689         (goacc_fini_asyncqueues): Likewise.
3690         (goacc_async_copyout_unmap_vars): Likewise.
3691         (goacc_async_free): Likewise.
3692         (get_goacc_asyncqueue): Likewise.
3693         (lookup_goacc_asyncqueue): Likewise.
3694         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
3695         design.
3696         (present_create_copy): Adjust code to use new async design.
3697         (delete_copyout): Likewise.
3698         (update_dev_host): Likewise.
3699         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
3700         async design.
3701         (gomp_acc_remove_pointer): Adjust code to use new async design.
3702         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
3703         design.
3704         (GOACC_enter_exit_data): Likewise.
3705         (goacc_wait): Likewise.
3706         (GOACC_update): Likewise.
3707         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
3708         when called, warn as obsolete in comment.
3709         * target.c (goacc_device_copy_async): New function.
3710         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
3711         add goacc_device_copy_async case.
3712         (gomp_copy_dev2host): Likewise.
3713         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
3714         (gomp_map_pointer): Likewise.
3715         (gomp_map_fields_existing): Likewise.
3716         (gomp_map_vars_internal): New always_inline function, renamed from
3717         gomp_map_vars.
3718         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
3719         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
3720         passing goacc_asyncqueue argument.
3721         (gomp_unmap_tgt): Remove static, add attribute_hidden.
3722         (gomp_unref_tgt): New function.
3723         (gomp_unmap_vars_internal): New always_inline function, renamed from
3724         gomp_unmap_vars.
3725         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
3726         (gomp_unmap_vars_async): Implement by calling
3727         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
3728         (gomp_fini_device): New function.
3729         (gomp_exit_data): Adjust gomp_copy_dev2host call.
3730         (gomp_load_plugin_for_device): Remove old interface, adjust to load
3731         new async interface.
3732         (gomp_target_fini): Adjust code to call gomp_fini_device.
3734         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
3735         (struct ptx_stream): Remove.
3736         (struct nvptx_thread): Remove current_stream field.
3737         (cuda_map_create): Remove.
3738         (cuda_map_destroy): Remove.
3739         (map_init): Remove.
3740         (map_fini): Remove.
3741         (map_pop): Remove.
3742         (map_push): Remove.
3743         (struct goacc_asyncqueue): Define.
3744         (struct nvptx_callback): Define.
3745         (struct ptx_free_block): Define.
3746         (struct ptx_device): Remove null_stream, active_streams, async_streams,
3747         stream_lock, and next fields.
3748         (enum ptx_event_type): Remove.
3749         (struct ptx_event): Remove.
3750         (ptx_event_lock): Remove.
3751         (ptx_events): Remove.
3752         (init_streams_for_device): Remove.
3753         (fini_streams_for_device): Remove.
3754         (select_stream_for_async): Remove.
3755         (nvptx_init): Remove ptx_events and ptx_event_lock references.
3756         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
3757         case.
3758         (nvptx_open_device): Add free_blocks initialization, remove
3759         init_streams_for_device call.
3760         (nvptx_close_device): Remove fini_streams_for_device call, add
3761         free_blocks destruct code.
3762         (event_gc): Remove.
3763         (event_add): Remove.
3764         (nvptx_exec): Adjust parameters and code.
3765         (nvptx_free): Likewise.
3766         (nvptx_host2dev): Remove.
3767         (nvptx_dev2host): Remove.
3768         (nvptx_set_async): Remove.
3769         (nvptx_async_test): Remove.
3770         (nvptx_async_test_all): Remove.
3771         (nvptx_wait): Remove.
3772         (nvptx_wait_async): Remove.
3773         (nvptx_wait_all): Remove.
3774         (nvptx_wait_all_async): Remove.
3775         (nvptx_get_cuda_stream): Remove.
3776         (nvptx_set_cuda_stream): Remove.
3777         (GOMP_OFFLOAD_alloc): Adjust code.
3778         (GOMP_OFFLOAD_free): Likewise.
3779         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
3780         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
3781         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
3782         (GOMP_OFFLOAD_openacc_async_wait): Remove.
3783         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
3784         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
3785         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
3786         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
3787         (cuda_free_argmem): New function.
3788         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
3789         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
3790         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
3791         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
3792         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
3793         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
3794         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
3795         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
3796         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
3797         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
3798         (cuda_callback_wrapper): New function.
3799         (cuda_memcpy_sanity_check): New function.
3800         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
3801         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
3802         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
3803         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
3805 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
3807         PR target/87835
3808         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
3810 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
3812         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
3814 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
3816         * team.c (gomp_team_start): Initialize pool->threads[0].
3818 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
3820         * testsuite/libgomp.oacc-c++/c++.exp: Specify
3821         "-foffload=$offload_target".
3822         * testsuite/libgomp.oacc-c/c.exp: Likewise.
3823         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3824         * testsuite/lib/libgomp.exp
3825         (check_effective_target_openacc_nvidia_accel_configured): Remove,
3826         as (conceptually) merged into
3827         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
3828         users.
3830         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
3831         * testsuite/libgomp-test-support.exp.in: Adjust.
3832         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
3833         openacc_device_types_s.
3834         (offload_target_to_openacc_device_type): New proc.
3835         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
3836         * testsuite/libgomp.oacc-c/c.exp: Likewise.
3837         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3838         * Makefile.in: Regenerate.
3839         * configure: Likewise.
3840         * testsuite/Makefile.in: Likewise.
3842         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
3843         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
3844         instead of OFFLOAD_TARGETS.
3845         * target.c (gomp_target_init): Adjust.
3846         * testsuite/libgomp-test-support.exp.in: Likewise.
3847         * testsuite/lib/libgomp.exp: Likewise.  Populate
3848         openacc_device_types_s instead of offload_targets_s_openacc.
3849         (check_effective_target_openacc_nvidia_accel_selected)
3850         (check_effective_target_openacc_host_selected): Adjust.
3851         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
3852         * testsuite/libgomp.oacc-c/c.exp: Likewise.
3853         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3854         * Makefile.in: Regenerate.
3855         * config.h.in: Likewise.
3856         * configure: Likewise.
3857         * testsuite/Makefile.in: Likewise.
3859         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
3860         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
3861         "offloading: supported, but hardware not accessible".
3862         * testsuite/libgomp.oacc-c/c.exp: Likewise.
3863         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
3865 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
3867         PR c/87924
3868         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
3869         goacc_wait().
3870         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
3871         and related adjustment.
3873 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
3875         PR c++/88988
3876         * testsuite/libgomp.c++/pr88988.C: New test.
3878 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
3880         PR middle-end/89002
3881         * testsuite/libgomp.c/pr89002.c: New test.
3883 2019-01-28  Richard Biener  <rguenther@suse.de>
3885         PR testsuite/89064
3886         PR tree-optimization/86865
3887         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
3889 2019-01-24  Tom de Vries  <tdevries@suse.de>
3891         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
3892         once instantiated_devices drops to 0.
3894 2019-01-23  Tom de Vries  <tdevries@suse.de>
3896         PR target/PR88946
3897         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
3898         cuMemFree.
3899         (nvptx_exec): Don't call map_push if mapnum == 0.
3900         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
3902 2019-01-23  Tom de Vries  <tdevries@suse.de>
3904         PR target/88941
3905         PR target/88939
3906         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
3907         (map_fini): Remove "assert (!s->map->active)".
3908         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
3910 2019-01-23  Tom de Vries  <tdevries@suse.de>
3912         PR target/87835
3913         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
3914         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
3916 2019-01-15  Tom de Vries  <tdevries@suse.de>
3918         PR target/80547
3919         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
3920         New test.
3922 2019-01-12  Tom de Vries  <tdevries@suse.de>
3924         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
3925         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
3926         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
3927         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
3929 2019-01-12  Tom de Vries  <tdevries@suse.de>
3931         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
3933 2019-01-12  Tom de Vries  <tdevries@suse.de>
3935         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
3936         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
3937         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
3939 2019-01-12  Tom de Vries  <tdevries@suse.de>
3941         PR target/85486
3942         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
3943         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
3945 2019-01-12  Tom de Vries  <tdevries@suse.de>
3947         PR target/85381
3948         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
3949         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
3951 2019-01-12  Tom de Vries  <tdevries@suse.de>
3953         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
3954         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
3955         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
3957 2019-01-12  Tom de Vries  <tdevries@suse.de>
3959         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
3960         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
3961         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
3963 2019-01-12  Tom de Vries  <tdevries@suse.de>
3965         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
3966         resources diagnostic.
3968 2019-01-12  Tom de Vries  <tdevries@suse.de>
3970         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
3971         vector length to be 128.
3972         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
3973         length 2097152 to be reduced to 1024 instead of 32.
3975 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
3976             James Norris  <jnorris@codesourcery.com>
3978         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
3979         Library Routines", and "Environment Variables".
3981 2019-01-11  Tom de Vries  <tdevries@suse.de>
3983         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
3984         num_workers 16.
3986 2019-01-11  Tom de Vries  <tdevries@suse.de>
3988         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
3989         -foffload=-w.
3990         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
3991         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
3992         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
3993         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
3995 2019-01-11  Tom de Vries  <tdevries@suse.de>
3997         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
3998         test.
4000 2019-01-10  Nathan Sidwell  <nathan@acm.org>
4001             Julian Brown  <julian@codesourcery.com>
4003         PR lto/71959
4004         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
4005         * testsuite/libgomp.oacc-c++/pr71959.C: New.
4007 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4009         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
4010         and paste code.
4012 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4014         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
4015         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
4016         write.
4018 2019-01-09  Tom de Vries  <tdevries@suse.de>
4020         PR target/88756
4021         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
4022         #define instead of "const int".
4023         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
4024         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
4025         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
4026         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
4028 2019-01-09  Tom de Vries  <tdevries@suse.de>
4030         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
4031         one worker.
4033 2019-01-07  Tom de Vries  <tdevries@suse.de>
4035         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
4036         GOMP_OPENACC_DIM argument.
4038 2019-01-03  Tom de Vries  <tdevries@suse.de>
4040         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
4041         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
4043 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
4045         Update copyright years.
4047 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
4049         * libgomp.texi: Bump @copying's copyright year.
4051 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
4053         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
4054         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
4055         (GOACC_declare): Redefine the "device" argument to "flags".
4057 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
4058             Cesar Philippidis  <cesar@codesourcery.com>
4060         * target.c (struct gomp_coalesce_chunk): New structure.
4061         (struct gomp_coalesce_buf): Update the chunks member to use that
4062         type.  Adjust all users.
4064 2018-12-19  Tom de Vries  <tdevries@suse.de>
4066         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
4067         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
4068         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
4070 2018-12-19  Tom de Vries  <tdevries@suse.de>
4072         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
4073         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
4074         gcc/testsuite/gcc.dg/goacc.
4075         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
4077 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
4078             Chung-Lin Tang  <cltang@codesourcery.com>
4080         * oacc-mem.c (acc_present_or_create): Remove definition and change
4081         to alias of acc_create.
4082         (acc_present_or_copyin): Remove definition and change to alias of
4083         acc_copyin.
4084         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
4085         of acc_present_or_create.
4086         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
4087         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
4088         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
4089         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
4090         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
4091         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
4092         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
4093         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
4094         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
4095         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
4096         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
4097         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
4098         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
4099         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
4100         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
4101         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
4103 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
4105         PR libgomp/88495
4106         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
4107         "identical parameters".
4108         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
4109         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
4111         PR libgomp/88484
4112         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
4113         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
4115         PR libgomp/88407
4116         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
4117         (nvptx_wait_async): Unseen async-argument is a no-op.
4118         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
4119         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
4120         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
4121         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
4122         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
4123         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
4124         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
4125         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
4126         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
4128         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
4129         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
4131 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
4133         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
4134         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
4135         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
4137 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
4139         PR libgomp/88370
4140         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
4141         (acc_set_cuda_stream): Clarify.
4142         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
4143         "async_valid_p".
4144         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
4145         acc_async_sync".
4146         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
4147         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
4148         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
4149         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
4151 2018-12-14  Tom de Vries  <tdevries@suse.de>
4153         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
4154         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
4155         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
4156         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
4157         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
4159 2018-12-13  Tom de Vries  <tdevries@suse.de>
4161         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
4162         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
4163         * fortran.c (omp_display_affinity_): ... here.
4164         * libgomp.h (gomp_print_string): Declare.
4165         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
4166         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
4167         write.
4169 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
4171         PR libgomp/88460
4172         * testsuite/libgomp.c++/for-24.C (results): Include it in
4173         omp declare target region.
4174         (main): Use map (always, tofrom: results) instead of
4175         map (tofrom: results).
4177 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
4179         PR fortran/88463
4180         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
4181         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
4183         * testsuite/libgomp.c-c++-common/for-16.c: New test.
4185 2018-12-12  Andreas Schwab  <schwab@suse.de>
4187         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
4188         clobbered.
4190 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
4192         PR fortran/88411
4193         * testsuite/libgomp.fortran/async_io_8.f90: New test.
4195 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
4196             Jakub Jelinek  <jakub@redhat.com>
4198         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
4199         devicep->host2dev_func.
4201 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
4203         PR libgomp/87995
4204         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
4205         tls_runtime effective target.
4206         (t): New threadprivate variable.
4207         (main): Set t in threads which execute iterations of the worksharing
4208         loop.  Propagate that to the task after the loop and don't abort
4209         if the current taskgroup hasn't been cancelled.
4211 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
4213         * testsuite/libgomp.c/task-reduction-3.c: New test.
4215         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
4217 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
4219         PR libgomp/88288
4220         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
4221         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
4223 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
4225         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
4227 2018-10-19  Richard Biener  <rguenther@suse.de>
4229         PR tree-optimization/88182
4230         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
4232 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
4234         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
4235         (RUNTEST): Don't define.
4236         (RUNTESTDEFAULTFLAGS): Add.
4237         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
4238         (distclean-am): Depend on distclean-DEJAGNU.
4239         (check-am): If -j% option is present in MFLAGS and if
4240         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
4241         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
4242         * testsuite/Makefile.in: Regenerated.
4244 2018-11-26  Richard Biener  <rguenther@suse.de>
4246         PR tree-optimization/88182
4247         * testsuite/libgomp.c++/pr88182.C: New testcase.
4249 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
4251         PR bootstrap/88106
4252         * config/mingw32/affinity-fmt.c: New file.
4254 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
4256         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
4257         (gomp_display_affinity): Use __builtin_choose_expr to handle
4258         properly handle argument having integral, or pointer or some other
4259         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
4260         with uint64_t type instead of %llx and unsigned long long.
4262         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
4263         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
4265 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4267         * affinity.c: Include <string.h>, <stdio.h>.
4268         (gomp_display_affinity_place): Remove cpusetp.
4269         * teams.c: Include <limits.h>.
4271 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
4273         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
4274         in_reduction clause for s[0].
4276         * affinity.c (gomp_display_affinity_place): New function.
4277         * affinity-fmt.c: New file.
4278         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
4279         * config/linux/affinity.c (gomp_display_affinity_place): New function.
4280         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
4281         Move these functions to ...
4282         * config/nvptx/teams.c: ... here.  New file.
4283         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
4284         New functions.
4285         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
4286         functions.
4287         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
4288         and _aligned_malloc.
4289         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
4290         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
4291         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
4292         gomp_affinity_format_len): New variables.
4293         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
4294         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
4295         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
4296         modifiers.  Display (non-default) chunk sizes.  Print
4297         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
4298         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
4299         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
4300         * fortran.c: Include stdio.h and string.h.
4301         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
4302         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
4303         (omp_set_affinity_format_, omp_get_affinity_format_,
4304         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
4305         omp_pause_resource_all_): New functions.
4306         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
4307         switch.
4308         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
4309         functions to ...
4310         * teams.c: ... here.  New file.
4311         * libgomp_g.h: Include gstdint.h.
4312         (GOMP_loop_nonmonotonic_runtime_start,
4313         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
4314         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
4315         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
4316         GOMP_parallel_loop_nonmonotonic_runtime,
4317         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
4318         GOMP_loop_ull_nonmonotonic_runtime_start,
4319         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
4320         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
4321         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
4322         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
4323         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
4324         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
4325         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
4326         GOMP_teams_reg): Declare.
4327         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
4328         gomp_aligned_alloc uses fallback implementation.
4329         (gomp_aligned_alloc, gomp_aligned_free): Declare.
4330         (enum gomp_schedule_type): Add GFS_MONOTONIC.
4331         (struct gomp_doacross_work_share): Add extra field.
4332         (struct gomp_work_share): Add task_reductions field.
4333         (struct gomp_taskgroup): Add workshare and reductions fields.
4334         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
4335         (gomp_thread_handle): New typedef.
4336         (gomp_display_affinity_place, gomp_set_affinity_format,
4337         gomp_display_string, gomp_display_affinity,
4338         gomp_display_affinity_thread): Declare.
4339         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
4340         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
4341         gomp_workshare_task_reduction_register): Declare.
4342         (gomp_team_start): Add taskgroup argument.
4343         (gomp_pause_host): Declare.
4344         (gomp_init_work_share, gomp_work_share_start): Change bool argument
4345         to size_t.
4346         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
4347         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
4348         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
4349         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
4350         GOMP_loop_ull_doacross_start,
4351         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
4352         GOMP_loop_maybe_nonmonotonic_runtime_next,
4353         GOMP_loop_maybe_nonmonotonic_runtime_start,
4354         GOMP_loop_nonmonotonic_runtime_next,
4355         GOMP_loop_nonmonotonic_runtime_start,
4356         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
4357         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
4358         GOMP_loop_ull_nonmonotonic_runtime_next,
4359         GOMP_loop_ull_nonmonotonic_runtime_start,
4360         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
4361         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
4362         GOMP_taskgroup_reduction_register,
4363         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
4364         GOMP_teams_reg and GOMP_taskwait_depend.
4365         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
4366         omp_{capture,display}_affinity{,_}, and
4367         omp_[gs]et_affinity_format{,_}.
4368         * loop.c: Include string.h.
4369         (GOMP_loop_runtime_next): Add ialias.
4370         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
4371         (gomp_loop_static_start, gomp_loop_dynamic_start,
4372         gomp_loop_guided_start, gomp_loop_ordered_static_start,
4373         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
4374         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
4375         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
4376         or gomp_doacross_init callers.
4377         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
4378         GOMP_loop_doacross_start): New functions.
4379         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
4380         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
4381         Mask off GFS_MONOTONIC bit.
4382         (GOMP_loop_maybe_nonmonotonic_runtime_next,
4383         GOMP_loop_maybe_nonmonotonic_runtime_start,
4384         GOMP_loop_nonmonotonic_runtime_next,
4385         GOMP_loop_nonmonotonic_runtime_start,
4386         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
4387         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
4388         functions.
4389         (gomp_parallel_loop_start): Pass NULL as taskgroup to
4390         gomp_team_start.
4391         * loop_ull.c: Include string.h.
4392         (GOMP_loop_ull_runtime_next): Add ialias.
4393         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
4394         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
4395         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
4396         gomp_loop_ull_ordered_dynamic_start,
4397         gomp_loop_ull_ordered_guided_start,
4398         gomp_loop_ull_doacross_static_start,
4399         gomp_loop_ull_doacross_dynamic_start,
4400         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
4401         and gomp_doacross_ull_init callers.
4402         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
4403         GOMP_loop_ull_doacross_start): New functions.
4404         (GOMP_loop_ull_runtime_start,
4405         GOMP_loop_ull_ordered_runtime_start,
4406         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
4407         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
4408         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
4409         GOMP_loop_ull_nonmonotonic_runtime_next,
4410         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
4411         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
4412         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
4413         (omp_pause_resource_t, omp_depend_t): New typedefs.
4414         (enum omp_lock_hint_t): Renamed to ...
4415         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
4416         enumerators using numbers and omp_lock_hint_* as their aliases.
4417         (omp_lock_hint_t): New typedef.  Rename to ...
4418         (omp_sync_hint_t): ... this.
4419         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
4420         omp_sync_hint_t instead of omp_lock_hint_t.
4421         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
4422         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
4423         Declare.
4424         (omp_target_is_present, omp_target_disassociate_ptr):
4425         Change first argument from void * to const void *.
4426         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
4427         from void * to const void *.
4428         (omp_target_associate_ptr): Change first and second arguments from
4429         void * to const void *.
4430         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
4431         omp_pause_hard): New parameters.
4432         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
4433         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
4434         New interfaces.
4435         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
4436         omp_pause_hard): New parameters.
4437         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
4438         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
4439         New externals.
4440         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
4441         EXTRA argument.  If not needed to prepare array, if extra is 0,
4442         clear ws->doacross, otherwise allocate just doacross structure and
4443         extra payload.  If array is needed, allocate also extra payload.
4444         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
4445         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
4446         doacross == NULL.
4447         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
4448         gomp_team_start.
4449         (GOMP_parallel): Likewise.  Formatting fix.
4450         (GOMP_parallel_reductions): New function.
4451         (GOMP_cancellation_point): If taskgroup has workshare
4452         flag set, check cancelled of prev taskgroup if any.
4453         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
4454         on prev taskgroup if any.
4455         * sections.c: Include string.h.
4456         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
4457         (GOMP_sections_start): Adjust gomp_work_share_start caller.
4458         (GOMP_sections2_start): New function.
4459         (GOMP_parallel_sections_start, GOMP_parallel_sections):
4460         Pass NULL as taskgroup to gomp_team_start.
4461         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
4462         gomp_work_share_start callers.
4463         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
4464         If taskgroup has workshare flag set, check cancelled on prev
4465         taskgroup if any.  Guard all cancellation tests with
4466         gomp_cancel_var test.
4467         (omp_target_is_present, omp_target_disassociate_ptr):
4468         Change ptr argument from void * to const void *.
4469         (omp_target_memcpy): Change src argument from void * to const void *.
4470         (omp_target_memcpy_rect): Likewise.
4471         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
4472         instead of char * where needed.
4473         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
4474         from void * to const void *.
4475         (omp_pause_resource, omp_pause_resource_all): New functions.
4476         * task.c (gomp_task_handle_depend): Handle new depend array format
4477         in addition to the old.  Handle mutexinoutset kinds the same as
4478         inout for now, handle unspecified kinds.
4479         (gomp_create_target_task): If taskgroup has workshare flag set, check
4480         cancelled on prev taskgroup if any.  Guard all cancellation tests with
4481         gomp_cancel_var test.  Handle new depend array format count in
4482         addition to the old.
4483         (GOMP_task): Likewise.  Adjust function comment.
4484         (gomp_task_run_pre): If taskgroup has workshare flag set, check
4485         cancelled on prev taskgroup if any.  Guard all cancellation tests with
4486         gomp_cancel_var test.
4487         (GOMP_taskwait_depend): New function.
4488         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
4489         format in addition to the old.  Handle mutexinoutset kinds the same as
4490         inout for now, handle unspecified kinds.  Fix a function comment typo.
4491         (gomp_taskgroup_init): New function.
4492         (GOMP_taskgroup_start): Use it.
4493         (gomp_reduction_register, gomp_create_artificial_team,
4494         GOMP_taskgroup_reduction_register,
4495         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
4496         gomp_parallel_reduction_register,
4497         gomp_workshare_task_reduction_register,
4498         gomp_workshare_taskgroup_start,
4499         GOMP_workshare_task_reduction_unregister): New functions.
4500         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
4501         check cancelled on prev taskgroup if any.  Guard all cancellation
4502         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
4503         by calling GOMP_taskgroup_reduction_register.
4504         * team.c (gomp_thread_attr): Remove comment.
4505         (struct gomp_thread_start_data): Add handle field.
4506         (gomp_thread_start): Call pthread_detach.
4507         (gomp_new_team): Adjust gomp_init_work_share caller.
4508         (gomp_free_pool_helper): Call pthread_detach.
4509         (gomp_team_start): Add taskgroup argument, initialize implicit
4510         tasks' taskgroup field to that.  Don't call
4511         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
4512         (gomp_team_end): Determine nesting by thr->ts.level != 0
4513         rather than thr->ts.team != NULL.
4514         (gomp_pause_pool_helper, gomp_pause_host): New functions.
4515         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
4516         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
4517         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
4518         if more than 1 allocate also extra payload at the end of array.  Never
4519         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
4520         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
4521         return true instead of ws.
4522         * Makefile.in: Regenerated.
4523         * configure: Regenerated.
4524         * config.h.in: Regenerated.
4525         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
4526         in some cases.
4527         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
4528         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
4529         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
4530         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
4531         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
4532         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
4533         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
4534         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
4535         * testsuite/libgomp.c-c++-common/for-10.c: New test.
4536         * testsuite/libgomp.c-c++-common/for-11.c: New test.
4537         * testsuite/libgomp.c-c++-common/for-12.c: New test.
4538         * testsuite/libgomp.c-c++-common/for-13.c: New test.
4539         * testsuite/libgomp.c-c++-common/for-14.c: New test.
4540         * testsuite/libgomp.c-c++-common/for-15.c: New test.
4541         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
4542         define a different N(test), don't define N(f0) to N(f14), but instead
4543         define N(f20) to N(f34) using != comparisons.
4544         * testsuite/libgomp.c-c++-common/for-7.c: New test.
4545         * testsuite/libgomp.c-c++-common/for-8.c: New test.
4546         * testsuite/libgomp.c-c++-common/for-9.c: New test.
4547         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
4548         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
4549         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
4550         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
4551         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
4552         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
4553         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
4554         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
4555         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
4556         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
4557         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
4558         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
4559         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
4560         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
4561         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
4562         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
4563         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
4564         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
4565         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
4566         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
4567         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
4568         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
4569         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
4570         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
4571         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
4572         * testsuite/libgomp.c++/depend-1.C: New test.
4573         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
4574         * testsuite/libgomp.c++/depobj-1.C: New test.
4575         * testsuite/libgomp.c++/for-16.C: New test.
4576         * testsuite/libgomp.c++/for-21.C: New test.
4577         * testsuite/libgomp.c++/for-22.C: New test.
4578         * testsuite/libgomp.c++/for-23.C: New test.
4579         * testsuite/libgomp.c++/for-24.C: New test.
4580         * testsuite/libgomp.c++/for-25.C: New test.
4581         * testsuite/libgomp.c++/for-26.C: New test.
4582         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
4583         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
4584         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
4585         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
4586         * testsuite/libgomp.c++/task-reduction-10.C: New test.
4587         * testsuite/libgomp.c++/task-reduction-11.C: New test.
4588         * testsuite/libgomp.c++/task-reduction-12.C: New test.
4589         * testsuite/libgomp.c++/task-reduction-13.C: New test.
4590         * testsuite/libgomp.c++/task-reduction-14.C: New test.
4591         * testsuite/libgomp.c++/task-reduction-15.C: New test.
4592         * testsuite/libgomp.c++/task-reduction-16.C: New test.
4593         * testsuite/libgomp.c++/task-reduction-17.C: New test.
4594         * testsuite/libgomp.c++/task-reduction-18.C: New test.
4595         * testsuite/libgomp.c++/task-reduction-19.C: New test.
4596         * testsuite/libgomp.c/task-reduction-1.c: New test.
4597         * testsuite/libgomp.c++/task-reduction-1.C: New test.
4598         * testsuite/libgomp.c/task-reduction-2.c: New test.
4599         * testsuite/libgomp.c++/task-reduction-2.C: New test.
4600         * testsuite/libgomp.c++/task-reduction-3.C: New test.
4601         * testsuite/libgomp.c++/task-reduction-4.C: New test.
4602         * testsuite/libgomp.c++/task-reduction-5.C: New test.
4603         * testsuite/libgomp.c++/task-reduction-6.C: New test.
4604         * testsuite/libgomp.c++/task-reduction-7.C: New test.
4605         * testsuite/libgomp.c++/task-reduction-8.C: New test.
4606         * testsuite/libgomp.c++/task-reduction-9.C: New test.
4607         * testsuite/libgomp.c/teams-1.c: New test.
4608         * testsuite/libgomp.c/teams-2.c: New test.
4609         * testsuite/libgomp.c/thread-limit-4.c: New test.
4610         * testsuite/libgomp.c/thread-limit-5.c: New test.
4611         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
4613 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
4615         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
4616         acc_memcpy_to/from_device functions, now with async parameter.
4617         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
4618         (acc_memcpy_from_device): Likewise.
4619         (acc_memcpy_to_device_async): New API function.
4620         (acc_memcpy_from_device_async): Likewise.
4621         (present_create_copy): Add async parameter and async setting/unsetting.
4622         (acc_create): Adjust present_create_copy call.
4623         (acc_copyin): Likewise.
4624         (acc_present_or_create): Likewise.
4625         (acc_present_or_copyin): Likewise.
4626         (acc_create_async): New API function.
4627         (acc_copyin_async): New API function.
4628         (delete_copyout): Add async parameter and async setting/unsetting.
4629         (acc_delete): Adjust delete_copyout call.
4630         (acc_copyout): Likewise.
4631         (acc_delete_async): New API function.
4632         (acc_copyout_async): Likewise.
4633         (update_dev_host): Add async parameter and async setting/unsetting.
4634         (acc_update_device): Adjust update_dev_host call.
4635         (acc_update_self): Likewise.
4636         (acc_update_device_async): New API function.
4637         (acc_update_self_async): Likewise.
4638         * openacc.h (acc_copyin_async): Declare new API function.
4639         (acc_create_async): Likewise.
4640         (acc_copyout_async): Likewise.
4641         (acc_delete_async): Likewise.
4642         (acc_update_device_async): Likewise.
4643         (acc_update_self_async): Likewise.
4644         (acc_memcpy_to_device_async): Likewise.
4645         (acc_memcpy_from_device_async): Likewise.
4646         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
4647         (acc_copyin_async_64_h): New subroutine.
4648         (acc_copyin_async_array_h): New subroutine.
4649         (acc_create_async_32_h): New subroutine.
4650         (acc_create_async_64_h): New subroutine.
4651         (acc_create_async_array_h): New subroutine.
4652         (acc_copyout_async_32_h): New subroutine.
4653         (acc_copyout_async_64_h): New subroutine.
4654         (acc_copyout_async_array_h): New subroutine.
4655         (acc_delete_async_32_h): New subroutine.
4656         (acc_delete_async_64_h): New subroutine.
4657         (acc_delete_async_array_h): New subroutine.
4658         (acc_update_device_async_32_h): New subroutine.
4659         (acc_update_device_async_64_h): New subroutine.
4660         (acc_update_device_async_array_h): New subroutine.
4661         (acc_update_self_async_32_h): New subroutine.
4662         (acc_update_self_async_64_h): New subroutine.
4663         (acc_update_self_async_array_h): New subroutine.
4664         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
4665         (acc_copyin_async_64_h): New subroutine.
4666         (acc_copyin_async_array_h): New subroutine.
4667         (acc_create_async_32_h): New subroutine.
4668         (acc_create_async_64_h): New subroutine.
4669         (acc_create_async_array_h): New subroutine.
4670         (acc_copyout_async_32_h): New subroutine.
4671         (acc_copyout_async_64_h): New subroutine.
4672         (acc_copyout_async_array_h): New subroutine.
4673         (acc_delete_async_32_h): New subroutine.
4674         (acc_delete_async_64_h): New subroutine.
4675         (acc_delete_async_array_h): New subroutine.
4676         (acc_update_device_async_32_h): New subroutine.
4677         (acc_update_device_async_64_h): New subroutine.
4678         (acc_update_device_async_array_h): New subroutine.
4679         (acc_update_self_async_32_h): New subroutine.
4680         (acc_update_self_async_64_h): New subroutine.
4681         (acc_update_self_async_array_h): New subroutine.
4682         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
4683         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
4684         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
4685         acc_memcpy_to_device_async*, acc_update_device_async*, and
4686         acc_update_self_async* entries.
4687         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
4688         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
4689         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
4691 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
4693         PR bootstrap/82856
4694         * Makefile.am: Include multilib.am
4695         (AUTOMAKE_OPTIONS): Add info-in-builddir.
4696         (CLEANFILES): Remove libgomp.info.
4697         * configure.ac: Remove AC_PREREQ.
4698         * testsuite/Makefile.am (RUNTEST): Remove quotes.
4699         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
4700         Regenerate.
4702 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
4703             Julian Brown  <julian@codesourcery.com>
4705         * testsuite/libgomp.oacc-c++/this.C: New.
4707 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
4709         * plugin/plugin-nvptx.c (struct cuda_map): New.
4710         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
4711         h_tail with (cuda_map *) map.
4712         (cuda_map_create): New function.
4713         (cuda_map_destroy): New function.
4714         (map_init): Update to use a linked list of cuda_map objects.
4715         (map_fini): Likewise.
4716         (map_pop): Likewise.
4717         (map_push): Likewise.  Return CUdeviceptr instead of void.
4718         (init_streams_for_device): Remove stales references to ptx_stream
4719         members.
4720         (select_stream_for_async): Likewise.
4721         (nvptx_exec): Update call to map_init.
4723 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
4724             Julian Brown  <julian@codesourcery.com>
4726         PR middle-end/86336
4727         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
4729 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
4730         Thomas Koenig <tkoenig@gcc.gnu.org>
4732         PR fortran/25829
4733         * testsuite/libgomp.fortran/async_io_1.f90: New test.
4734         * testsuite/libgomp.fortran/async_io_2.f90: New test.
4735         * testsuite/libgomp.fortran/async_io_3.f90: New test.
4736         * testsuite/libgomp.fortran/async_io_4.f90: New test.
4737         * testsuite/libgomp.fortran/async_io_5.f90: New test.
4738         * testsuite/libgomp.fortran/async_io_6.f90: New test.
4739         * testsuite/libgomp.fortran/async_io_7.f90: New test.
4741 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
4742             Tom de Vries  <tdevries@suse.de>
4744         PR target/85590
4745         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
4746         (cuOccupancyMaxPotentialBlockSize): Declare.
4747         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
4748         CUDA_ONE_CALL_MAYBE_NULL.
4749         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
4750         CUoccupancyB2DSize and declare
4751         cuOccupancyMaxPotentialBlockSize.
4752         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
4753         default num_gangs and num_workers when the driver supports it.
4755 2018-08-08  Tom de Vries  <tdevries@suse.de>
4757         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
4758         CUDA_ONE_CALL_MAYBE_NULL.
4759         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
4760         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
4761         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
4762         are not found.
4764 2018-08-08  Tom de Vries  <tdevries@suse.de>
4766         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
4767         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
4768         present.
4770 2018-08-08  Tom de Vries  <tdevries@suse.de>
4772         * plugin/plugin-nvptx.c
4773         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
4774         (nvptx_open_device): Use
4775         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
4777 2018-08-08  Tom de Vries  <tdevries@suse.de>
4779         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
4780         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
4782 2018-08-07  Tom de Vries  <tdevries@suse.de>
4784         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
4785         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
4786         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
4787         corresponding call in CUDA_ONE_CALL.  Add def/undef of
4788         CUDA_ONE_CALL_MAYBE_NULL.
4789         (CUDA_CALL_EXISTS): Define.
4791 2018-08-07  Tom de Vries  <tdevries@suse.de>
4793         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
4794         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
4795         corresponding undefs right after.
4797 2018-08-04  Tom de Vries  <tdevries@suse.de>
4799         * plugin/configfrag.ac: For --without-cuda-driver, set
4800         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
4801         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
4802         * configure: Regenerate.
4804 2018-08-02  Tom de Vries  <tdevries@suse.de>
4806         PR target/86660
4807         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
4808         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
4809         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
4810         Same.
4811         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
4812         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
4813         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
4815 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
4816             Thomas Schwinge <thomas@codesourcery.com>
4818         * config/nvptx/oacc-parallel.c: Truncate.
4820 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
4821             James Norris <jnorris@codesourcery.com>
4823         * plugin/plugin-nvptx.c (struct map): Removed.
4824         (map_init, map_pop): Remove use of struct map.
4825         (map_push): Likewise and change argument list.
4826         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
4828 2018-08-01  Tom de Vries  <tdevries@suse.de>
4830         * plugin/cuda-lib.def: New file.  Factor out of ...
4831         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
4832         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
4833         using CUDA_CALLS.
4835 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4837         Revert 'AsyncI/O patch committed'.
4838         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
4839                 Thomas Koenig <tkoenig@gcc.gnu.org>
4841         PR fortran/25829
4842         * testsuite/libgomp.fortran/async_io_1.f90: New test.
4843         * testsuite/libgomp.fortran/async_io_2.f90: New test.
4844         * testsuite/libgomp.fortran/async_io_3.f90: New test.
4845         * testsuite/libgomp.fortran/async_io_4.f90: New test.
4846         * testsuite/libgomp.fortran/async_io_5.f90: New test.
4847         * testsuite/libgomp.fortran/async_io_6.f90: New test.
4848         * testsuite/libgomp.fortran/async_io_7.f90: New test.
4850 2018-07-30  Tom de Vries  <tdevries@suse.de>
4852         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
4853         (nvptx_exec): Ensure worker and vector default dims don't exceed
4854         targ_fn->max_threads_per_block.
4856 2018-07-30  Tom de Vries  <tdevries@suse.de>
4858         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
4859         (nvptx_open_device): Init default_dims for device.
4860         (nvptx_exec): Use default_dims from device.
4862 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
4864         PR testsuite/86660
4865         * testsuite/libgomp.c++/for-15.C (results): Include it in
4866         omp declare target region.
4867         (main): Use map (always, tofrom: results) instead of
4868         map (tofrom: results).
4870         PR middle-end/86660
4871         * testsuite/libgomp.c/pr86660.c: New test.
4873 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
4874             Tom de Vries  <tdevries@suse.de>
4876         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
4877         sufficient resources to launch a kernel, and give a hint on how to fix
4878         it.
4880 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
4881             Tom de Vries  <tdevries@suse.de>
4883         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
4884         max_threads_per_block and max_threads_per_multiprocessor fields.
4885         (nvptx_open_device): Initialize new fields.
4886         (nvptx_exec): Use num_sms, and new fields.
4888 2018-07-26  Tom de Vries  <tdevries@suse.de>
4890         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
4891         to correct locations.  Remove xfail.
4893 2018-07-26  Tom de Vries  <tdevries@suse.de>
4895         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
4896         acc_wait.  Move acc_async_test calls to correct locations.  Remove
4897         xfail.
4899 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
4900         Thomas Koenig <tkoenig@gcc.gnu.org>
4902         PR fortran/25829
4903         * testsuite/libgomp.fortran/async_io_1.f90: New test.
4904         * testsuite/libgomp.fortran/async_io_2.f90: New test.
4905         * testsuite/libgomp.fortran/async_io_3.f90: New test.
4906         * testsuite/libgomp.fortran/async_io_4.f90: New test.
4907         * testsuite/libgomp.fortran/async_io_5.f90: New test.
4908         * testsuite/libgomp.fortran/async_io_6.f90: New test.
4909         * testsuite/libgomp.fortran/async_io_7.f90: New test.
4911 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
4913         PR middle-end/86542
4914         * testsuite/libgomp.c++/pr86542.C: New test.
4916         PR middle-end/86539
4917         * testsuite/libgomp.c++/pr86539.C: New test.
4919 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
4921         PR c++/86443
4922         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
4923         (results): Make sure the variable is not inside declare target region.
4924         (qux): Remove unused function.
4926 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
4928         PR c++/86443
4929         * testsuite/libgomp.c++/for-15.C: New test.
4931 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
4933         PR c++/86291
4934         * testsuite/libgomp.c++/pr86291.C: New test.
4936 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
4938         * libgomp.texi (Top): Move www.openmp.org to https.
4939         (Enabling OpenMP): Ditto.
4940         (omp_get_active_level): Ditto.
4941         (omp_get_ancestor_thread_num): Ditto.
4942         (omp_get_cancellation): Ditto.
4943         (omp_get_default_device): Ditto.
4944         (omp_get_dynamic): Ditto.
4945         (omp_get_level): Ditto.
4946         (omp_get_max_active_levels): Ditto.
4947         (omp_get_max_task_priority): Ditto.
4948         (omp_get_max_threads): Ditto.
4949         (omp_get_nested): Ditto.
4950         (omp_get_num_devices): Ditto.
4951         (omp_get_num_procs): Ditto.
4952         (omp_get_num_teams): Ditto.
4953         (omp_get_num_threads): Ditto.
4954         (omp_get_proc_bind): Ditto.
4955         (omp_get_schedule): Ditto.
4956         (omp_get_team_num): Ditto.
4957         (omp_get_team_size): Ditto.
4958         (omp_get_thread_limit): Ditto.
4959         (omp_get_thread_num): Ditto.
4960         (omp_in_parallel): Ditto.
4961         (omp_in_final): Ditto.
4962         (omp_is_initial_device): Ditto.
4963         (omp_set_default_device): Ditto.
4964         (omp_set_dynamic): Ditto.
4965         (omp_set_max_active_levels): Ditto.
4966         (omp_set_nested): Ditto.
4967         (omp_set_num_threads): Ditto.
4968         (omp_set_schedule): Ditto.
4969         (omp_init_lock): Ditto.
4970         (omp_set_lock): Ditto.
4971         (omp_test_lock): Ditto.
4972         (omp_unset_lock): Ditto.
4973         (omp_destroy_lock): Ditto.
4974         (omp_init_nest_lock): Ditto.
4975         (omp_set_nest_lock): Ditto.
4976         (omp_test_nest_lock): Ditto.
4977         (omp_unset_nest_lock): Ditto.
4978         (omp_destroy_nest_lock): Ditto.
4979         (omp_get_wtick): Ditto.
4980         (omp_get_wtime): Ditto.
4981         (OMP_CANCELLATION): Ditto.
4982         (OMP_DISPLAY_ENV): Ditto.
4983         (OMP_DEFAULT_DEVICE): Ditto.
4984         (OMP_DYNAMIC): Ditto.
4985         (OMP_MAX_ACTIVE_LEVELS): Ditto.
4986         (OMP_MAX_TASK_PRIORITY): Ditto.
4987         (OMP_NESTED): Ditto.
4988         (OMP_NUM_THREADS): Ditto.
4989         (OMP_PROC_BIND): Ditto.
4990         (OMP_PLACES): Ditto.
4991         (OMP_STACKSIZE): Ditto.
4992         (OMP_SCHEDULE): Ditto.
4993         (OMP_THREAD_LIMIT): Ditto.
4994         (OMP_WAIT_POLICY): Ditto.
4996 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
4997             James Norris  <jnorris@codesourcery.com>
4998             Julian Brown  <julian@codesourcery.com>
4999             Thomas Schwinge  <thomas@codesourcery.com>
5000             Tom de Vries  <tom@codesourcery.com>
5002         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
5003         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
5004         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
5005         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
5006         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
5007         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
5008         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
5009         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
5010         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
5011         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
5012         Likewise.
5013         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
5014         Likewise.
5015         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
5016         Likewise.
5017         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
5018         Likewise.
5019         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
5020         Likewise.
5021         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
5022         Likewise.
5023         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
5024         Likewise.
5025         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
5026         Likewise.
5027         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
5028         Likewise.
5029         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
5030         Likewise.
5031         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
5032         Likewise.
5033         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
5034         Likewise.
5035         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
5036         Likewise.
5037         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
5038         Likewise.
5039         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
5040         Likewise.
5041         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
5042         Likewise.
5043         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
5044         Likewise.
5045         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
5046         Likewise.
5047         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
5048         Likewise.
5049         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
5050         Likewise.
5051         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
5052         Likewise.
5053         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
5054         Likewise.
5055         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
5056         Likewise.
5057         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
5058         Likewise.
5059         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
5060         Likewise.
5061         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
5062         Likewise.
5063         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
5064         Likewise.
5065         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
5066         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
5067         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
5068         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
5069         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
5070         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
5071         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
5072         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
5073         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
5074         Likewise.
5075         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
5076         Likewise.
5077         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
5078         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
5079         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
5080         Likewise.
5081         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
5082         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
5083         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
5084         Likewise.
5085         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
5086         Likewise.
5087         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
5088         Likewise.
5089         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
5090         Likewise.
5091         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
5092         Likewise.
5093         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
5094         Likewise.
5095         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
5096         Likewise.
5097         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
5098         Likewise.
5099         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
5100         Likewise.
5101         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
5102         Likewise.
5103         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
5104         Likewise.
5105         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
5106         Likewise.
5107         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
5108         Likewise.
5109         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
5110         Likewise.
5111         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
5112         Likewise.
5113         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
5114         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
5115         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
5116         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
5117         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
5118         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
5119         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
5121 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
5122             Thomas Schwinge <thomas@codesourcery.com>
5123             Cesar Philippidis  <cesar@codesourcery.com>
5125         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
5126         (gomp_acc_remove_pointer): Update declaration.
5127         (gomp_acc_declare_allocate): Declare.
5128         (gomp_remove_var): Declare.
5129         * libgomp.map (OACC_2.5): Define.
5130         * oacc-mem.c (acc_map_data): Update refcount.
5131         (acc_unmap_data): Likewise.
5132         (present_create_copy): Likewise.
5133         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
5134         (acc_copyin): Likewise.
5135         (FLAG_FINALIZE): Define.
5136         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
5137         (acc_delete_finalize): New function.
5138         (acc_delete_finalize_async): New function.
5139         (acc_copyout_finalize): New function.
5140         (acc_copyout_finalize_async): New function.
5141         (gomp_acc_insert_pointer): Update refcounts.
5142         (gomp_acc_remove_pointer): Return if data is not present on the
5143         accelerator.
5144         * oacc-parallel.c (find_pset): Rename to find_pointer.
5145         (find_pointer): Add support for GOMP_MAP_POINTER.
5146         (handle_ftn_pointers): New function.
5147         (GOACC_parallel_keyed): Update refcounts of variables.
5148         (GOACC_enter_exit_data): Add support for finalized data mappings.
5149         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
5150         of fortran arrays.
5151         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
5152         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
5153         for GOMP_MAP_FORCE_FROM.
5154         * openacc.f90 (module openacc_internal): Add
5155         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
5156         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
5157         acc_copyout_finalize and acc_delete_finalize.
5158         (acc_copyout_finalize_32_h): New subroutine.
5159         (acc_copyout_finalize_64_h): New subroutine.
5160         (acc_copyout_finalize_array_h): New subroutine.
5161         (acc_delete_finalize_32_h): New subroutine.
5162         (acc_delete_finalize_64_h): New subroutine.
5163         (acc_delete_finalize_array_h): New subroutine.
5164         * openacc.h (acc_copyout_finalize): Declare.
5165         (acc_copyout_finalize_async): Declare.
5166         (acc_delete_finalize): Declare.
5167         (acc_delete_finalize_async): Declare.
5168         * openacc_lib.h (acc_copyout_finalize): New interface.
5169         (acc_delete_finalize): New interface.
5170         * target.c (gomp_map_vars): Update dynamic_refcount.
5171         (gomp_remove_var): New function.
5172         (gomp_unmap_vars): Use it.
5173         (gomp_unload_image_from_device): Likewise.
5174         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
5175         case to utilize OpenACC 2.5 data clause semantics.
5176         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
5177         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
5178         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
5179         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
5180         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
5181         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
5182         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
5183         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5184         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5185         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
5186         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
5187         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
5188         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
5189         utilize OpenACC 2.5 data clause semantics.
5190         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
5191         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
5192         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
5193         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
5194         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
5195         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
5196         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
5197         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
5198         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
5200 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
5202         PR fortran/85841
5203         PR testsuite/85865
5204         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
5205         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
5206         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
5207         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
5208         * testsuite/libgomp.fortran/task2.f90: Ditto.
5209         * testsuite/libgomp.fortran/vla1.f90: Ditto.
5210         * testsuite/libgomp.fortran/vla2.f90: Ditto.
5211         * testsuite/libgomp.fortran/vla3.f90: Ditto.
5212         * testsuite/libgomp.fortran/vla4.f90: Ditto.
5213         * testsuite/libgomp.fortran/vla5.f90: Ditto.
5214         * testsuite/libgomp.fortran/vla6.f90: Ditto.
5215         * testsuite/libgomp.fortran/vla8.f90: Ditto.
5216         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
5217         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
5219 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
5221         PR c++/85782
5222         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
5224 2018-05-09  Tom de Vries  <tom@codesourcery.com>
5226         PR libgomp/82901
5227         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
5228         to GOACC_enter_exit_data.
5230 2018-05-09  Tom de Vries  <tom@codesourcery.com>
5232         PR libgomp/83792
5233         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
5234         (async_synchronous_p): New function.
5235         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
5236         async_valid_p.
5237         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
5238         async_valid_stream_id_p.
5239         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
5240         * oacc-parallel.c (GOACC_parallel_keyed): Same.
5242 2018-05-07  Tom de Vries  <tom@codesourcery.com>
5244         PR testsuite/85677
5245         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
5246         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
5248 2018-05-03  Tom de Vries  <tom@codesourcery.com>
5250         PR testsuite/85106
5251         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
5252         extra_tool_flags if it contains an -foffload=-fdump-* flag.
5253         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
5254         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
5256 2018-05-02  Tom de Vries  <tom@codesourcery.com>
5258         PR libgomp/85411
5259         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
5260         GOMP_OPENACC_DIM ...
5261         * env.c (parse_gomp_openacc_dim): ... here.  New function.
5262         (initialize_env): Call parse_gomp_openacc_dim.
5263         (goacc_default_dims): Define.
5264         * libgomp.h (goacc_default_dims): Declare.
5265         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
5266         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
5267         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
5268         GOMP_PLUGIN_acc_default_dim.
5269         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
5270         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
5272 2018-05-02  Tom de Vries  <tom@codesourcery.com>
5274         PR testsuite/83791
5275         * testsuite/libgomp.c++/udr-9.C: Update.
5276         * testsuite/libgomp.c++/atomic-16.C: Remove.
5277         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
5278         * testsuite/libgomp.c++/loop-13.C: Remove.
5279         * testsuite/libgomp.c++/loop-14.C: Remove.
5280         * testsuite/libgomp.c++/loop-15.C: Remove.
5281         * testsuite/libgomp.c++/monotonic-1.C: Remove.
5282         * testsuite/libgomp.c++/monotonic-2.C: Remove.
5283         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
5284         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
5285         * testsuite/libgomp.c++/ordered-1.C: Remove.
5286         * testsuite/libgomp.c++/pr45784.C: Remove.
5287         * testsuite/libgomp.c++/pr64824.C: Remove.
5288         * testsuite/libgomp.c++/pr64868.C: Remove.
5289         * testsuite/libgomp.c++/pr66199-1.C: Remove.
5290         * testsuite/libgomp.c++/pr66199-2.C: Remove.
5291         * testsuite/libgomp.c++/pr66199-3.C: Remove.
5292         * testsuite/libgomp.c++/pr66199-4.C: Remove.
5293         * testsuite/libgomp.c++/pr66199-5.C: Remove.
5294         * testsuite/libgomp.c++/pr66199-6.C: Remove.
5295         * testsuite/libgomp.c++/pr66199-7.C: Remove.
5296         * testsuite/libgomp.c++/pr66199-8.C: Remove.
5297         * testsuite/libgomp.c++/pr66199-9.C: Remove.
5298         * testsuite/libgomp.c++/pr69389.C: Remove.
5299         * testsuite/libgomp.c++/simd10.C: Remove.
5300         * testsuite/libgomp.c++/simd11.C: Remove.
5301         * testsuite/libgomp.c++/simd12.C: Remove.
5302         * testsuite/libgomp.c++/simd13.C: Remove.
5303         * testsuite/libgomp.c++/target-1.C: Remove.
5304         * testsuite/libgomp.c++/target-3.C: Remove.
5305         * testsuite/libgomp.c++/target-4.C: Remove.
5306         * testsuite/libgomp.c++/target-5.C: Remove.
5307         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
5308         * testsuite/libgomp.c++/taskloop-1.C: Remove.
5309         * testsuite/libgomp.c++/taskloop-2.C: Remove.
5310         * testsuite/libgomp.c++/taskloop-3.C: Remove.
5311         * testsuite/libgomp.c++/taskloop-4.C: Remove.
5312         * testsuite/libgomp.c++/udr-9.C: Remove.
5313         * testsuite/libgomp.c++/for-10.C: Remove.
5314         * testsuite/libgomp.c++/for-11.C: Remove.
5315         * testsuite/libgomp.c++/for-12.C: Remove.
5316         * testsuite/libgomp.c++/for-13.C: Remove.
5317         * testsuite/libgomp.c++/for-14.C: Remove.
5318         * testsuite/libgomp.c++/for-9.C: Remove.
5319         * testsuite/libgomp.c/atomic-18.c: Move ...
5320         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
5321         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
5322         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
5323         * testsuite/libgomp.c/loop-13.c: Move ...
5324         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
5325         * testsuite/libgomp.c/loop-14.c: Move ...
5326         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
5327         * testsuite/libgomp.c/loop-15.c: Remove.
5328         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
5329         * testsuite/libgomp.c/monotonic-1.c: Move ...
5330         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
5331         * testsuite/libgomp.c/monotonic-2.c: Move ...
5332         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
5333         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
5334         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
5335         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
5336         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
5337         * testsuite/libgomp.c/ordered-4.c: Move ...
5338         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
5339         * testsuite/libgomp.c/pr45784.c: Move ...
5340         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
5341         * testsuite/libgomp.c/pr64824.c: Move ...
5342         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
5343         * testsuite/libgomp.c/pr64868.c: Move ...
5344         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
5345         * testsuite/libgomp.c/pr66199-1.c: Move ...
5346         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
5347         * testsuite/libgomp.c/pr66199-2.c: Move ...
5348         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
5349         * testsuite/libgomp.c/pr66199-3.c: Move ...
5350         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
5351         * testsuite/libgomp.c/pr66199-4.c: Move ...
5352         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
5353         * testsuite/libgomp.c/pr66199-5.c: Move ...
5354         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
5355         * testsuite/libgomp.c/pr66199-6.c: Move ...
5356         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
5357         * testsuite/libgomp.c/pr66199-7.c: Move ...
5358         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
5359         * testsuite/libgomp.c/pr66199-8.c: Move ...
5360         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
5361         * testsuite/libgomp.c/pr66199-9.c: Move ...
5362         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
5363         * testsuite/libgomp.c/pr69389.c: Move ...
5364         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
5365         * testsuite/libgomp.c/simd-14.c: Move ...
5366         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
5367         * testsuite/libgomp.c/simd-15.c: Move ...
5368         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
5369         * testsuite/libgomp.c/simd-16.c: Move ...
5370         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
5371         * testsuite/libgomp.c/simd-17.c: Move ...
5372         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
5373         * testsuite/libgomp.c/target-1.c: Move ...
5374         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
5375         * testsuite/libgomp.c/target-10.c: Move ...
5376         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
5377         * testsuite/libgomp.c/target-13.c: Move ...
5378         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
5379         * testsuite/libgomp.c/target-2.c: Move ...
5380         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
5381         * testsuite/libgomp.c/taskgroup-1.c: Move ...
5382         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
5383         * testsuite/libgomp.c/taskloop-1.c: Move ...
5384         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
5385         * testsuite/libgomp.c/taskloop-2.c: Move ...
5386         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
5387         * testsuite/libgomp.c/taskloop-3.c: Move ...
5388         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
5389         * testsuite/libgomp.c/taskloop-4.c: Move ...
5390         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
5391         * testsuite/libgomp.c/udr-1.c: Move ...
5392         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
5393         * testsuite/libgomp.c/for-1.c: Move ...
5394         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
5395         * testsuite/libgomp.c/for-1.h: Move ...
5396         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
5397         * testsuite/libgomp.c/for-2.c: Move ...
5398         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
5399         * testsuite/libgomp.c/for-2.h: Move ...
5400         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
5401         * testsuite/libgomp.c/for-3.c: Move ...
5402         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
5403         * testsuite/libgomp.c/for-4.c: Move ...
5404         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
5405         * testsuite/libgomp.c/for-5.c: Move ...
5406         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
5407         * testsuite/libgomp.c/for-6.c: Move ...
5408         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
5410 2018-05-02  Tom de Vries  <tom@codesourcery.com>
5412         PR libgomp/82428
5413         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
5414         __builtin_goacc_parlevel_{id,size}.
5415         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
5416         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
5417         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
5418         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
5419         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
5420         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
5421         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
5422         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
5423         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
5424         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
5425         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
5426         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
5427         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
5428         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
5429         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
5430         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
5431         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
5432         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
5433         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
5434         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
5435         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
5436         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
5437         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
5439 2018-05-02  Tom de Vries  <tom@codesourcery.com>
5441         PR testsuite/85106
5442         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
5444 2018-05-02  Tom de Vries  <tom@codesourcery.com>
5446         PR testsuite/85106
5447         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
5449 2018-04-29  Julian Brown  <julian@codesourcery.com>
5450             Tom de Vries  <tom@codesourcery.com>
5452         PR testsuite/85527
5453         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
5454         arbitrary order for iterations of atomic subtract check.
5456 2018-04-28  Tom de Vries  <tom@codesourcery.com>
5458         PR testsuite/85527
5459         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
5460         atomic capture results obtained in parallel loop to an array, instead of
5461         to a scalar.
5463 2018-04-26  Tom de Vries  <tom@codesourcery.com>
5465         PR libgomp/84020
5466         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
5467         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
5468         (process_GOMP_NVPTX_JIT): New function.
5469         (link_ptx): Use process_GOMP_NVPTX_JIT.
5471 2018-04-26  Richard Biener <rguenther@suse.de>
5472             Tom de Vries  <tom@codesourcery.com>
5474         PR lto/85422
5475         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
5477 2018-04-26  Tom de Vries  <tom@codesourcery.com>
5479         PR target/85519
5480         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
5481         recursion depth from 25 to 23.
5482         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
5484 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
5486         * configure: Regenerated.
5488 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
5489             Tom de Vries  <tom@codesourcery.com>
5491         PR target/85445
5492         * testsuite/libgomp.oacc-c++/ref-1.C: New.
5494 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
5496         PR libgomp/85463
5497         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
5498         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
5499         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
5500         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
5501         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
5502         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
5504         PR libfortran/85166
5505         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
5506         abort".
5507         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
5509 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
5511         * configure: Regenerated.
5513 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
5515         PR jit/85384
5516         * configure: Regenerate.
5518 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
5519             Tom de Vries  <tom@codesourcery.com>
5521         PR middle-end/84955
5522         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
5523         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
5525 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
5527         PR fortran/83064
5528         PR testsuite/85346
5529         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
5530         test from gfortran.dg to here.
5532 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
5534         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
5535         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
5537 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
5539         PR middle-end/84955
5540         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
5541         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
5543 2018-04-05  Tom de Vries  <tom@codesourcery.com>
5545         PR target/85204
5546         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
5548 2018-03-26  Tom de Vries  <tom@codesourcery.com>
5550         PR tree-optimization/85063
5551         * testsuite/libgomp.c/switch-conversion-2.c: New test.
5552         * testsuite/libgomp.c/switch-conversion.c: New test.
5553         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
5554         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
5556 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
5558         PR fortran/84381
5559         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
5560         call abort by STOP n.
5561         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
5562         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
5563         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
5564         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
5565         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
5566         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
5567         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
5568         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
5569         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
5570         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
5571         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
5572         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
5573         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
5574         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
5575         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
5576         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
5577         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
5578         * testsuite/libgomp.fortran/associate1.f90: Likewise.
5579         * testsuite/libgomp.fortran/associate2.f90: Likewise.
5580         * testsuite/libgomp.fortran/associate3.f90: Likewise.
5581         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
5582         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
5583         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
5584         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
5585         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
5586         * testsuite/libgomp.fortran/character1.f90: Likewise.
5587         * testsuite/libgomp.fortran/character2.f90: Likewise.
5588         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
5589         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
5590         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
5591         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
5592         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
5593         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
5594         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
5595         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
5596         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
5597         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
5598         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
5599         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
5600         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
5601         * testsuite/libgomp.fortran/do1.f90: Likewise.
5602         * testsuite/libgomp.fortran/do2.f90: Likewise.
5603         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
5604         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
5605         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
5606         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
5607         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
5608         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
5609         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
5610         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
5611         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
5612         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
5613         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
5614         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
5615         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
5616         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
5617         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
5618         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
5619         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
5620         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
5621         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
5622         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
5623         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
5624         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
5625         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
5626         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
5627         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
5628         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
5629         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
5630         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
5631         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
5632         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
5633         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
5634         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
5635         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
5636         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
5637         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
5638         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
5639         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
5640         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
5641         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
5642         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
5643         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
5644         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
5645         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
5646         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
5647         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
5648         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
5649         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
5650         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
5651         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
5652         * testsuite/libgomp.fortran/lib1.f90: Likewise.
5653         * testsuite/libgomp.fortran/lib2.f: Likewise.
5654         * testsuite/libgomp.fortran/lib3.f: Likewise.
5655         * testsuite/libgomp.fortran/lib4.f90: Likewise.
5656         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
5657         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
5658         * testsuite/libgomp.fortran/nested1.f90: Likewise.
5659         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
5660         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
5661         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
5662         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
5663         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
5664         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
5665         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
5666         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
5667         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
5668         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
5669         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
5670         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
5671         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
5672         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
5673         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
5674         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
5675         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
5676         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
5677         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
5678         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
5679         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
5680         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
5681         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
5682         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
5683         * testsuite/libgomp.fortran/pr25162.f: Likewise.
5684         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
5685         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
5686         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
5687         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
5688         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
5689         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
5690         * testsuite/libgomp.fortran/pr28390.f: Likewise.
5691         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
5692         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
5693         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
5694         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
5695         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
5696         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
5697         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
5698         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
5699         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
5700         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
5701         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
5702         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
5703         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
5704         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
5705         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
5706         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
5707         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
5708         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
5709         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
5710         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
5711         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
5712         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
5713         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
5714         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
5715         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
5716         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
5717         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
5718         * testsuite/libgomp.fortran/reference1.f90: Likewise.
5719         * testsuite/libgomp.fortran/reference2.f90: Likewise.
5720         * testsuite/libgomp.fortran/retval1.f90: Likewise.
5721         * testsuite/libgomp.fortran/retval2.f90: Likewise.
5722         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
5723         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
5724         * testsuite/libgomp.fortran/simd1.f90: Likewise.
5725         * testsuite/libgomp.fortran/simd2.f90: Likewise.
5726         * testsuite/libgomp.fortran/simd3.f90: Likewise.
5727         * testsuite/libgomp.fortran/simd4.f90: Likewise.
5728         * testsuite/libgomp.fortran/simd5.f90: Likewise.
5729         * testsuite/libgomp.fortran/simd6.f90: Likewise.
5730         * testsuite/libgomp.fortran/simd7.f90: Likewise.
5731         * testsuite/libgomp.fortran/stack.f90: Likewise.
5732         * testsuite/libgomp.fortran/strassen.f90: Likewise.
5733         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
5734         * testsuite/libgomp.fortran/tabs2.f: Likewise.
5735         * testsuite/libgomp.fortran/target1.f90: Likewise.
5736         * testsuite/libgomp.fortran/target2.f90: Likewise.
5737         * testsuite/libgomp.fortran/target3.f90: Likewise.
5738         * testsuite/libgomp.fortran/target4.f90: Likewise.
5739         * testsuite/libgomp.fortran/target5.f90: Likewise.
5740         * testsuite/libgomp.fortran/target6.f90: Likewise.
5741         * testsuite/libgomp.fortran/target7.f90: Likewise.
5742         * testsuite/libgomp.fortran/target8.f90: Likewise.
5743         * testsuite/libgomp.fortran/task1.f90: Likewise.
5744         * testsuite/libgomp.fortran/task2.f90: Likewise.
5745         * testsuite/libgomp.fortran/task3.f90: Likewise.
5746         * testsuite/libgomp.fortran/task4.f90: Likewise.
5747         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
5748         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
5749         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
5750         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
5751         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
5752         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
5753         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
5754         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
5755         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
5756         * testsuite/libgomp.fortran/udr1.f90: Likewise.
5757         * testsuite/libgomp.fortran/udr10.f90: Likewise.
5758         * testsuite/libgomp.fortran/udr11.f90: Likewise.
5759         * testsuite/libgomp.fortran/udr12.f90: Likewise.
5760         * testsuite/libgomp.fortran/udr13.f90: Likewise.
5761         * testsuite/libgomp.fortran/udr14.f90: Likewise.
5762         * testsuite/libgomp.fortran/udr15.f90: Likewise.
5763         * testsuite/libgomp.fortran/udr2.f90: Likewise.
5764         * testsuite/libgomp.fortran/udr3.f90: Likewise.
5765         * testsuite/libgomp.fortran/udr4.f90: Likewise.
5766         * testsuite/libgomp.fortran/udr5.f90: Likewise.
5767         * testsuite/libgomp.fortran/udr6.f90: Likewise.
5768         * testsuite/libgomp.fortran/udr7.f90: Likewise.
5769         * testsuite/libgomp.fortran/udr8.f90: Likewise.
5770         * testsuite/libgomp.fortran/udr9.f90: Likewise.
5771         * testsuite/libgomp.fortran/vla1.f90: Likewise.
5772         * testsuite/libgomp.fortran/vla2.f90: Likewise.
5773         * testsuite/libgomp.fortran/vla3.f90: Likewise.
5774         * testsuite/libgomp.fortran/vla4.f90: Likewise.
5775         * testsuite/libgomp.fortran/vla5.f90: Likewise.
5776         * testsuite/libgomp.fortran/vla6.f90: Likewise.
5777         * testsuite/libgomp.fortran/vla7.f90: Likewise.
5778         * testsuite/libgomp.fortran/vla8.f90: Likewise.
5779         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
5780         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
5781         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
5782         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
5783         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
5784         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
5785         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
5786         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5787         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
5788         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
5789         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
5790         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
5791         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
5792         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
5793         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
5794         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
5795         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
5796         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
5797         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
5798         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
5799         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
5800         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
5801         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
5802         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
5803         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
5804         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
5805         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
5806         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
5807         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
5808         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
5809         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5810         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
5811         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
5812         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
5813         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
5814         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5815         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
5816         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
5817         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
5818         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5819         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
5820         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
5821         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
5822         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
5823         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
5824         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
5825         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
5826         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
5827         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
5828         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
5829         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
5830         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
5831         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
5832         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
5833         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
5834         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
5835         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
5836         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
5837         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
5838         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
5839         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
5840         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
5841         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
5842         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
5843         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
5844         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
5845         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
5846         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
5847         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
5848         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
5849         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
5850         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
5851         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
5852         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
5853         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5854         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
5855         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
5856         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5857         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5858         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5859         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5860         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5861         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
5862         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
5863         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
5864         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
5865         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
5866         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
5867         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
5868         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
5869         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
5870         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
5871         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
5872         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
5874 2018-03-20  Richard Biener  <rguenther@suse.de>
5876         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
5877         parallelizable loop.
5879 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
5881         PR target/84148
5882         * configure: Regenerate.
5884 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
5886         PR fortran/84418
5887         * libgomp.fortran/pr84418-1.f90: New test.
5888         * libgomp.fortran/pr84418-2.f90: New test.
5890 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
5892         PR fortran/84313
5893         * testsuite/libgomp.fortran/threadprivate4.f90: Add
5894         -std=f2003 -fall-intrinsics into dg-additional-options.
5896 2018-02-08  Martin Jambor  <mjambor@suse.cz>
5898         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
5899         clonable.
5901 2018-02-08  Martin Jambor  <mjambor@suse.cz>
5903         * testsuite/libgomp.hsa.c/staticvar.c: New test.
5905 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5907         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
5908         [__cplusplus]: Declare extern "C".
5910 2018-02-07  Tom de Vries  <tom@codesourcery.com>
5912         PR libgomp/84217
5913         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
5915 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
5916             Jakub Jelinek  <jakub@redhat.com>
5918         PR libgomp/84096
5919         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
5920         instead of omp_lock_t.
5922 2018-01-25  Tom de Vries  <tom@codesourcery.com>
5924         PR target/84028
5925         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
5927 2018-01-24  Tom de Vries  <tom@codesourcery.com>
5929         PR target/83589
5930         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
5932 2018-01-24  Tom de Vries  <tom@codesourcery.com>
5934         PR target/81352
5935         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
5937 2018-01-19  Tom de Vries  <tom@codesourcery.com>
5938             Cesar Philippidis  <cesar@codesourcery.com>
5940         PR target/83920
5941         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
5942         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
5944 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
5946         Update copyright years.
5948         * libgomp.texi: Bump @copying's copyright year.
5950 2017-12-30  Tom de Vries  <tom@codesourcery.com>
5952         PR libgomp/83046
5953         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
5954         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
5956 2017-12-27  Tom de Vries  <tom@codesourcery.com>
5958         PR c++/83046
5959         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
5960         (test_nonstatic): Fix return type to workaround PR83046.
5962 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
5964         PR testsuite/83281
5965         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
5966         j suffix instead of i.
5967         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
5968         Likewise.
5970 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
5972         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
5973         call to acc_wait (1).
5975 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
5977         PR fortran/81304
5978         * testsuite/libgomp.fortran/pr81304.f90: New test.
5980 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
5982         PR fortran/81841
5983         * libgomp.fortran/pr81841.f90: New test.
5985 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
5987         PR libgomp/83106
5988         * target.c (gomp_target_init): Compute lengths just once and
5989         use them in both malloc size and subsequent copying.
5991 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
5993         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
5994         * acinclude.m4: Add cet.m4.
5995         * configure: Regenerate.
5996         * Makefile.in: Likewise.
5997         * testsuite/Makefile.in: Likewise.
5999 2017-11-15  Tom de Vries  <tom@codesourcery.com>
6001         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
6002         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
6003         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
6004         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
6005         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
6006         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
6008 2017-11-14  Tom de Vries  <tom@codesourcery.com>
6010         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
6011         non-nvidia devices.
6013 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
6015         PR c++/82835
6016         * testsuite/libgomp.c++/pr82835.C: New test.
6018 2017-11-06  Martin Liska  <mliska@suse.cz>
6020         * testsuite/libgomp.c++/loop-2.C: Return a value
6021         for functions with non-void return type, or change type to void,
6022         or add -Wno-return-type for test.
6023         * testsuite/libgomp.c++/loop-4.C: Likewise.
6024         * testsuite/libgomp.c++/parallel-1.C: Likewise.
6025         * testsuite/libgomp.c++/shared-1.C: Likewise.
6026         * testsuite/libgomp.c++/single-1.C: Likewise.
6027         * testsuite/libgomp.c++/single-2.C: Likewise.
6029 2017-10-31  Tom de Vries  <tom@codesourcery.com>
6031         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
6032         "do {} while (false)".
6033         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
6034         after HSA_DEBUG call.
6036 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
6038         * target.c (struct gomp_coalesce_buf): New type.
6039         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
6040         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
6041         (gomp_copy_host2dev): Add CBUF argument, if copying into
6042         the cached ranges, memcpy into buffer instead of copying
6043         into device.
6044         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
6045         Add CBUF argument, pass it through to other calls.
6046         (gomp_map_vars): Aggregate copies from host to device if small enough
6047         and with small enough gaps in between into memcpy into a buffer and
6048         fewer host to device copies from the buffer.
6049         (gomp_update): Adjust gomp_copy_host2dev caller.
6051 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
6053         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
6054         run" directive.
6055         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
6056         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
6057         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
6058         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
6060 2017-10-16  Tom de Vries  <tom@codesourcery.com>
6062         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
6063         openacc_nvidia_accel_selected.
6064         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
6065         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
6066         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
6067         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
6068         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
6069         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
6070         openacc_nvidia_accel_selected. Skip for shared memory device.
6071         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
6072         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
6074 2017-10-09  Martin Jambor  <mjambor@suse.cz>
6076         PR hsa/82416
6077         * testsuite/libgomp.hsa.c/pr82416.c: New test.
6079 2017-10-07  Tom de Vries  <tom@codesourcery.com>
6081         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
6082         Remove acc_device_nvidia references.
6083         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
6084         Same.
6086 2017-10-05  Tom de Vries  <tom@codesourcery.com>
6088         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
6089         vector_length(32) clause from acc parallel directive.
6090         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
6092 2017-10-04  Tom de Vries  <tom@codesourcery.com>
6094         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
6095         (main): Reduce sum of arr elements.  Assert that hres is exactly
6096         representable in 32-bit floating point.
6097         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
6098         (main): Reduce sum of arr elements.  Assert that hres and hmres are
6099         exactly representable in 32-bit floating point.
6100         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
6102 2017-09-28  Tom de Vries  <tom@codesourcery.com>
6104         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
6105         setting.
6106         * testsuite/libgomp.c++/pr69393.C: Same.
6107         * testsuite/libgomp.c++/taskloop-1.C: Same.
6108         * testsuite/libgomp.c++/taskloop-3.C: Same.
6109         * testsuite/libgomp.c++/taskloop-4.C: Same.
6110         * testsuite/libgomp.c/for-4.c: Same.
6111         * testsuite/libgomp.c/pr66199-3.c: Same.
6112         * testsuite/libgomp.c/pr66199-4.c: Same.
6113         * testsuite/libgomp.c/pr66199-6.c: Same.
6114         * testsuite/libgomp.c/taskloop-1.c: Same.
6115         * testsuite/libgomp.c/taskloop-3.c: Same.
6116         * testsuite/libgomp.c/taskloop-4.c: Same.
6117         * testsuite/libgomp.fortran/aligned1.f03: Same.
6118         * testsuite/libgomp.fortran/condinc1.f: Same.
6119         * testsuite/libgomp.fortran/condinc3.f90: Same.
6120         * testsuite/libgomp.fortran/crayptr1.f90: Same.
6121         * testsuite/libgomp.fortran/crayptr2.f90: Same.
6122         * testsuite/libgomp.fortran/crayptr3.f90: Same.
6123         * testsuite/libgomp.fortran/omp_cond1.f: Same.
6124         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
6125         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
6126         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
6127         * testsuite/libgomp.fortran/recursion1.f90: Same.
6128         * testsuite/libgomp.fortran/target2.f90: Same.
6129         * testsuite/libgomp.fortran/target5.f90: Same.
6130         * testsuite/libgomp.fortran/task3.f90: Same.
6132 2017-09-28  Tom de Vries  <tom@codesourcery.com>
6134         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
6135         vector_length(32) clause from acc parallel directive.
6136         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
6138 2017-09-27  Tom de Vries  <tom@codesourcery.com>
6140         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
6141         Remove acc_device_nvidia references.
6143 2017-09-16  Tom de Vries  <tom@codesourcery.com>
6145         PR c/81875
6146         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
6148 2017-09-14  Tom de Vries  <tom@codesourcery.com>
6150         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
6151         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
6152         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
6153         * testsuite/libgomp.c/c.exp: Include test-cases from
6154         libgomp.c-c++-common.
6155         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
6156         files.
6158 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
6160         PR c++/81314
6161         * testsuite/libgomp.c++/pr81314.C: New test.
6163 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
6165         * libgomp.texi (Top): www.openacc.org now uses https.
6166         (Enabling OpenACC): Ditto.
6167         (acc_get_num_devices): Ditto.
6168         (acc_set_device_type): Ditto.
6169         (acc_get_device_type): Ditto.
6170         (acc_set_device_num): Ditto.
6171         (acc_get_device_num): Ditto.
6172         (acc_async_test): Ditto.
6173         (acc_async_test_all): Ditto.
6174         (acc_wait): Ditto.
6175         (acc_wait_all): Ditto.
6176         (acc_wait_all_async): Ditto.
6177         (acc_wait_async): Ditto.
6178         (acc_init): Ditto.
6179         (acc_shutdown): Ditto.
6180         (acc_on_device): Ditto.
6181         (acc_malloc): Ditto.
6182         (acc_free): Ditto.
6183         (acc_copyin): Ditto.
6184         (acc_present_or_copyin): Ditto.
6185         (acc_create): Ditto.
6186         (acc_present_or_create): Ditto.
6187         (acc_copyout): Ditto.
6188         (acc_delete): Ditto.
6189         (acc_update_device): Ditto.
6190         (acc_update_self): Ditto.
6191         (acc_map_data): Ditto.
6192         (acc_unmap_data): Ditto.
6193         (acc_deviceptr): Ditto.
6194         (acc_hostptr): Ditto.
6195         (acc_is_present): Ditto.
6196         (acc_memcpy_to_device): Ditto.
6197         (acc_memcpy_from_device): Ditto.
6198         (acc_get_current_cuda_device): Ditto.
6199         (acc_get_current_cuda_context): Ditto.
6200         (acc_get_cuda_stream): Ditto.
6201         (acc_set_cuda_stream): Ditto.
6202         (ACC_DEVICE_TYPE): Ditto.
6203         (ACC_DEVICE_NUM): Ditto.
6204         (OpenACC Library Interoperability): Ditto.
6206 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
6208         PR c/81687
6209         * testsuite/libgomp.c/pr81687-1.c: New test.
6210         * testsuite/libgomp.c/pr81687-2.c: New test.
6212 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
6214         PR c/69389
6215         * testsuite/libgomp.c/pr69389.c: New test.
6216         * testsuite/libgomp.c++/pr69389.C: New test.
6218 2017-08-07  Tom de Vries  <tom@codesourcery.com>
6220         PR middle-end/78266
6221         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
6222         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
6224 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
6226         PR c/45784
6227         * testsuite/libgomp.c/pr45784.c: New test.
6228         * testsuite/libgomp.c++/pr45784.C: New test.
6230 2017-07-19  Tom de Vries  <tom@codesourcery.com>
6232         * testsuite/libgomp.oacc-c/vec.c: New test.
6234 2017-07-03  Tom de Vries  <tom@codesourcery.com>
6236         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
6238 2017-06-27  Tom de Vries  <tom@codesourcery.com>
6240         * plugin/plugin-nvptx.c (notify_var): New function.
6241         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
6243 2017-06-27  Tom de Vries  <tom@codesourcery.com>
6245         * env.c (parse_unsigned_long_1): Factor out of ...
6246         (parse_unsigned_long): ... here.
6247         (parse_int_1): Factor out of ...
6248         (parse_int): ... here.
6249         (parse_int_secure): New function.
6250         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
6251         * secure_getenv.h: Factor out of ...
6252         * plugin/plugin-hsa.c: ... here.
6253         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
6255 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
6257         PR c++/81130
6258         * testsuite/libgomp.c++/pr81130.C: New test.
6260 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6262         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
6263         default args.
6264         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
6265         dg-xfail-run-if default args.
6267 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6269         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
6270         * testsuite/libgomp.c/pr39591-3.c: Likewise.
6272 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
6274         PR libgomp/80822
6275         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
6276         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
6277         sibling lists, depending on level just pick up what CPUs to put
6278         together into a place vs. whether add multiple ordered places.
6280 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
6282         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
6283         * libgomp.map (OACC_2.0.1): Add these.
6284         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
6285         for "acc_wait", and "acc_wait_all", respectively.
6286         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
6287         for "acc_wait", and "acc_wait_all", respectively.
6288         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
6289         * libgomp.texi (acc_wait, acc_wait_all): Update.
6290         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
6291         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
6292         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
6294         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
6295         acc_present_or_copyin and acc_present_or_create procedures,
6296         respectively.
6297         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
6298         generally different variants of OpenACC Runtime Library functions.
6299         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
6301         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
6302         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
6304         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
6305         of preprocessor definitions.
6306         * libgomp.h (strong_alias): Guard by "#ifdef
6307         HAVE_ATTRIBUTE_ALIAS".
6308         * oacc-mem.c: Provide "acc_pcreate" as alias for
6309         "acc_present_or_create", and "acc_pcopyin" as alias for
6310         "acc_present_or_copyin".
6311         * libgomp.map: New version "OACC_2.0.1".
6312         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
6313         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
6314         its content into...
6315         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
6316         Extend testing.
6318         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
6319         when disabling nvptx offloading.
6321 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
6323         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
6324         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
6325         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
6327         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
6328         * testsuite/lib/libgomp.exp
6329         (check_effective_target_openacc_nvidia_accel_configured): New
6330         proc.
6331         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
6332         (check_effective_target_c++): New procs.
6333         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
6334         (check_effective_target_c++): Likewise.
6336 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
6338         PR middle-end/80809
6339         * testsuite/libgomp.c/pr80809-2.c: New test.
6340         * testsuite/libgomp.c/pr80809-3.c: New test.
6342         PR middle-end/80809
6343         * testsuite/libgomp.c/pr80809-1.c: New test.
6345         PR middle-end/80853
6346         * testsuite/libgomp.c/pr80853.c: New test.
6348 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
6350         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
6351         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
6352         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
6353         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
6354         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
6356         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
6357         Debug output for failure.
6359 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6361         * testsuite/lib/libgomp.exp: Load scanlang.exp.
6363 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
6365         PR bootstrap/80531
6366         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
6367         bootstrap compare failures.
6369 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
6371         * testsuite/libgomp.c/target-36.c: New testcase.
6373 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
6375         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
6376         instead of char.
6378 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
6380         PR libgomp/80394
6381         * testsuite/libgomp.c/pr80394.c: New test.
6383 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
6385         PR libgomp/79876
6386         * config/posix/thread-stacksize.h: New file.
6387         * config/darwin/thread-stacksize.h: New file.
6388         * config/nvptx/thread-stacksize.h: New file.
6389         * env.c: Include thread-stacksize.h.
6390         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
6391         instead of 0.  Call pthread_attr_setstacksize even if
6392         GOMP_DEFAULT_STACKSIZE is non-zero.
6394 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
6396         * env.c (initialize_env): Initialize stacksize to 0.
6398 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
6400         PR c++/80029
6401         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
6403 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
6405         PR c/79940
6406         * testsuite/libgomp.c/pr79940.c: New test.
6408 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6410         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
6411         targets.
6412         Add __float128 options.
6414 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
6416         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
6417         hppa*-*-* dg-skip-if directive.
6419 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
6421         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
6422         dg-skip-if directive into a comment.
6424 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
6425             Chung-Lin Tang  <cltang@codesourcery.com>
6427         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
6428         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
6429         add additional case.
6430         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
6431         "openacc_nvidia_accel_selected".
6432         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
6433         Add num_workers(8) clause.
6435 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
6437         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
6438         hppa*-*-*.
6439         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
6440         include complex.h on hppa*-*-hpux*.
6441         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
6443 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
6445         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
6447         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
6448         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
6449         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
6450         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
6451         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
6452         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
6453         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
6454         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
6455         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
6456         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
6458 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
6460         * libgomp-plugin.h: #include <stdbool.h>.
6461         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
6462         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
6463         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
6464         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
6465         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
6466         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
6467         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
6468         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
6469         (GOMP_OFFLOAD_openacc_register_async_cleanup)
6470         (GOMP_OFFLOAD_openacc_async_test)
6471         (GOMP_OFFLOAD_openacc_async_test_all)
6472         (GOMP_OFFLOAD_openacc_async_wait)
6473         (GOMP_OFFLOAD_openacc_async_wait_async)
6474         (GOMP_OFFLOAD_openacc_async_wait_all)
6475         (GOMP_OFFLOAD_openacc_async_wait_all_async)
6476         (GOMP_OFFLOAD_openacc_async_set_async)
6477         (GOMP_OFFLOAD_openacc_create_thread_data)
6478         (GOMP_OFFLOAD_openacc_destroy_thread_data)
6479         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
6480         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
6481         (GOMP_OFFLOAD_openacc_get_cuda_stream)
6482         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
6483         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
6484         these.
6485         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
6486         (GOMP_OFFLOAD_unload_image): Fix argument types.
6488 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
6490         * testsuite/lib/libgomp.exp
6491         (check_effective_target_hsa_offloading_selected_nocache): Fix up
6492         check_compile invocation.  Fix up removal of executable.  Drop
6493         bogus "2>&1" argument.
6495         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
6496         directive.
6498 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
6499             Martin Jambor  <mjambor@suse.cz>
6501         * plugin/hsa.h: Moved to top level include.
6502         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
6504 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
6506         PR other/79046
6507         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
6508         of cat to get version from BASE-VER file.
6509         * testsuite/Makefile.in: Regenerated.
6511 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
6513         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
6514         for _WIN64.
6516 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
6518         * plugin/hsa.h: Add GCC runtime library exception.
6519         * plugin/hsa_ext_finalize.h: Likewise.
6521         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
6522         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
6523         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
6524         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
6525         plugin/include/cuda as include dir and -ldl instead of -lcuda as
6526         library to link ptx plugin against.
6527         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
6528         (CUDA_CALLS): Define.
6529         (cuda_lib, cuda_lib_inited): New variables.
6530         (init_cuda_lib): New function.
6531         (CUDA_CALL_PREFIX): Define.
6532         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
6533         (CUDA_CALL): Use FN instead of (FN).
6534         (CUDA_CALL_NOCHECK): Define.
6535         (cuda_error, fini_streams_for_device, select_stream_for_async,
6536         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
6537         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
6538         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
6539         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
6540         CUDA_CALL_NOCHECK.
6541         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
6542         CUDA_CALL_NOCHECK.
6543         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
6544         Use CUDA_CALL_NOCHECK.
6545         * plugin/cuda/cuda.h: New file.
6546         * config.h.in: Regenerated.
6547         * configure: Regenerated.
6549         PR other/79046
6550         * configure.ac: Add GCC_BASE_VER.
6551         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
6552         get version from BASE-VER file.
6553         * testsuite/Makefile.in: Regenerated.
6554         * configure: Regenerated.
6555         * Makefile.in: Regenerated.
6557 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
6559         PR libgomp/60670
6560         * Makefile.am: Make fincludedir multilib-aware.
6561         * Makefile.in: Regenerate.
6563 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
6565         Update copyright years.
6567         * libgomp.texi: Bump @copying's copyright year.
6569 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6571         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
6572         pthread_spinlock_t instead of gomp_mutex_t lock.
6573         (gomp_get_thread_pool): Likewise.
6574         (gomp_release_thread_pool): Likewise.
6575         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
6576         Likewise.
6578 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6580         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
6581         thread pool in case nthreads == 1.
6583 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
6585         * config/nvptx/env.c: Delete.
6586         * icv.c: Move definitions of ICV variables back ...
6587         * env.c: ...here.  Do not compile environment-related functionality if
6588         LIBGOMP_OFFLOADED_ONLY is set.
6590 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
6592         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
6593         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
6594         * configure: Regenerate.
6595         * config.h.in: Likewise.
6597 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
6599         * Makefile.in: Regenerate with automake-1.11.6.
6600         * aclocal.m4: Likewise.
6601         * configure: Likewise.
6602         * testsuite/Makefile.in: Likewise.
6604 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
6606         * config/nvptx/critical.c: Delete to use generic implementation.
6608 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
6610         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
6611         ../../affinity.c as fallback.
6612         * config/nvptx/affinity.c: Delete to use fallback implementation.
6614 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
6615             Jakub Jelinek  <jakub@redhat.com>
6616             Dmitry Melnik  <dm@ispras.ru>
6618         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
6619         * Makefile.in. Regenerate.
6620         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
6621         (LIBGOMP_USE_PTHREADS): ...here; new define.
6622         * configure: Regenerate.
6623         * config.h.in: Likewise.
6624         * config/posix/affinity.c: Move to...
6625         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
6626         interface by LIBGOMP_USE_PTHREADS. 
6627         * critical.c: Split out GOMP_atomic_{start,end} into...
6628         * atomic.c: ...here (new file).
6629         * env.c: Split out ICV definitions into...
6630         * icv.c: ...here (new file) and...
6631         * icv-device.c: ...here. New file.
6632         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
6633         (gomp_destroy_lock_30): Ditto.
6634         (gomp_set_lock_30): Ditto.
6635         (gomp_unset_lock_30): Ditto.
6636         (gomp_test_lock_30): Ditto.
6637         (gomp_init_nest_lock_30): Ditto.
6638         (gomp_destroy_nest_lock_30): Ditto.
6639         (gomp_set_nest_lock_30): Ditto.
6640         (gomp_unset_nest_lock_30): Ditto.
6641         (gomp_test_nest_lock_30): Ditto.
6642         * lock.c: New.
6643         * config/nvptx/lock.c: New.
6644         * config/nvptx/bar.c: New.
6645         * config/nvptx/bar.h: New.
6646         * config/nvptx/doacross.h: New.
6647         * config/nvptx/error.c: New.
6648         * config/nvptx/icv-device.c: New.
6649         * config/nvptx/mutex.h: New.
6650         * config/nvptx/pool.h: New.
6651         * config/nvptx/proc.c: New.
6652         * config/nvptx/ptrlock.h: New.
6653         * config/nvptx/sem.h: New.
6654         * config/nvptx/simple-bar.h: New.
6655         * config/nvptx/target.c: New.
6656         * config/nvptx/task.c: New.
6657         * config/nvptx/team.c: New.
6658         * config/nvptx/time.c: New.
6659         * config/posix/simple-bar.h: New.
6660         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
6661         (gomp_num_teams_var): Declare.
6662         (struct gomp_thread_pool): Change threads_dock member to
6663         gomp_simple_barrier_t.
6664         [__nvptx__] (gomp_thread): New implementation.
6665         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
6666         (gomp_thread_destructor): Ditto.
6667         (gomp_init_thread_affinity): Ditto.
6668         * team.c: Guard uses of Pthreads-specific interfaces by
6669         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
6670         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
6671         * config/nvptx/alloc.c: Delete.
6672         * config/nvptx/barrier.c: Ditto.
6673         * config/nvptx/fortran.c: Ditto.
6674         * config/nvptx/iter.c: Ditto.
6675         * config/nvptx/iter_ull.c: Ditto.
6676         * config/nvptx/loop.c: Ditto.
6677         * config/nvptx/loop_ull.c: Ditto.
6678         * config/nvptx/ordered.c: Ditto.
6679         * config/nvptx/parallel.c: Ditto.
6680         * config/nvptx/priority_queue.c: Ditto.
6681         * config/nvptx/sections.c: Ditto.
6682         * config/nvptx/single.c: Ditto.
6683         * config/nvptx/splay-tree.c: Ditto.
6684         * config/nvptx/work.c: Ditto.
6685         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
6686         -foffload=-lgfortran in addition to -lgfortran.
6687         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
6688         * plugin/plugin-nvptx.c: Include <limits.h>.
6689         (struct targ_fn_descriptor): Add new fields.
6690         (struct ptx_device): Ditto.  Set them...
6691         (nvptx_open_device): ...here.
6692         (nvptx_adjust_launch_bounds): New.
6693         (nvptx_host2dev): Allow NULL 'nvthd'.
6694         (nvptx_dev2host): Ditto.
6695         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
6696         (link_ptx): Adjust log sizes.
6697         (nvptx_host2dev): Allow NULL 'nvthd'.
6698         (nvptx_dev2host): Ditto.
6699         (nvptx_set_clocktick): New.  Use it...
6700         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
6701         fields.
6702         (GOMP_OFFLOAD_dev2dev): New.
6703         (nvptx_adjust_launch_bounds): New.
6704         (nvptx_stacks_size): New.
6705         (nvptx_stacks_alloc): New.
6706         (nvptx_stacks_free): New.
6707         (GOMP_OFFLOAD_run): New.
6708         (GOMP_OFFLOAD_async_run): New (stub).
6710 2016-11-23  Martin Jambor  <mjambor@suse.cz>
6712         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
6713         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
6714         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
6716 2016-11-23  Martin Liska  <mliska@suse.cz>
6717             Martin Jambor  <mjambor@suse.cz>
6719         * plugin/hsa.h: New file.
6720         * plugin/hsa_ext_finalize.h: New file.
6721         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
6722         header file unistd.h, and functions secure_getenv, __secure_getenv,
6723         getuid, geteuid, getgid and getegid.
6724         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
6725         -D_GNU_SOURCE.
6726         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
6727         Handle various cases of secure_getenv presence, add an implementation
6728         when we can test effective UID and GID.
6729         (struct hsa_runtime_fn_info): New structure.
6730         (hsa_runtime_fn_info hsa_fns): New variable.
6731         (hsa_runtime_lib): Likewise.
6732         (support_cpu_devices): Likewise.
6733         (init_enviroment_variables): Load newly introduced ENV
6734         variables.
6735         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
6736         (hsa_fatal): Likewise.
6737         (DLSYM_FN): New macro.
6738         (init_hsa_runtime_functions): New function.
6739         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
6740         structure.  Depending on environment, also allow CPU devices.
6741         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
6742         (get_kernarg_memory_region): Likewise.
6743         (GOMP_OFFLOAD_init_device): Likewise.
6744         (destroy_hsa_program): Likewise.
6745         (init_basic_kernel_info): New function.
6746         (GOMP_OFFLOAD_load_image): Use it.
6747         (create_and_finalize_hsa_program): Call hsa run-time functions via
6748         hsa_fns structure.
6749         (create_single_kernel_dispatch): Likewise.
6750         (release_kernel_dispatch): Likewise.
6751         (init_single_kernel): Likewise.
6752         (parse_target_attributes): Allow up multiple HSA grid dimensions.
6753         (get_group_size): New function.
6754         (run_kernel): Likewise.
6755         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
6756         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
6757         structure.
6758         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
6759         * testsuite/libgomp-test-support.exp.in: Likewise.
6760         * Makefile.in: Regenerated.
6761         * aclocal.m4: Likewise.
6762         * config.h.in: Likewise.
6763         * configure: Likewise.
6764         * testsuite/Makefile.in: Likewise.
6766 2016-11-15  Martin Jambor  <mjambor@suse.cz>
6767             Alexander Monakov  <amonakov@ispras.ru>
6769         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
6770         mapping clauses to target constructs.
6771         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
6773 2016-11-15  Matthias Klose  <doko@ubuntu.com>
6775         * configure: Regenerate.
6777 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
6779         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
6780         * omp_lib.h.in (openmp_version): Likewise.
6781         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
6782         of 201307.
6783         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
6785         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
6786         (fib_wrapper): Add map(from: x) clause.
6787         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
6788         (e_53_2): Likewise.
6789         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
6790         (accum): Add map(tmp) clause.
6791         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
6792         (accum): Add map(tofrom: tmp) clause.
6793         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
6794         (gramSchmidt): Likewise.
6795         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
6796         map(tofrom: sum) clause.
6797         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
6798         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
6799         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
6800         only allowed on the loop iterator.
6801         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
6802         * testsuite/libgomp.fortran/taskloop2.f90: New test.
6803         * testsuite/libgomp.fortran/taskloop4.f90: New test.
6804         * testsuite/libgomp.fortran/doacross1.f90: New test.
6805         * testsuite/libgomp.fortran/doacross3.f90: New test.
6806         * testsuite/libgomp.fortran/taskloop1.f90: New test.
6807         * testsuite/libgomp.fortran/taskloop3.f90: New test.
6808         * testsuite/libgomp.fortran/doacross2.f90: New test.
6809         * testsuite/libgomp.c/doacross-1.c (main): Add missing
6810         #pragma omp atomic read.
6811         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
6812         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
6814 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
6815             Nathan Sidwell  <nathan@acm.org>
6817         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
6818         to determine default geometry.
6819         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
6820         dimension.
6822 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
6824         * hashtab.h: Use standard GPLv3 with runtime exception
6825         boilerplate.
6827 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
6829         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
6830         size when allocating new thread.
6832 2016-09-14  Marek Polacek  <polacek@redhat.com>
6834         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
6836 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
6838         PR fortran/71014
6839         * testsuite/libgomp.fortran/pr71014.f90: New test.
6841 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
6843         PR middle-end/70895
6844         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
6845         firstprivate clauses.
6846         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
6847         copy clauses.
6848         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
6849         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
6850         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
6851         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6852         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6853         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
6854         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6855         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
6856         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6857         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6858         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6859         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
6861 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
6863         PR fortran/70598
6864         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
6866 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
6868         PR c++/58706
6869         * testsuite/libgomp.c++/pr58706.C: New test.
6871 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
6873         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
6874         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
6875         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
6876         Likewise.
6877         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
6878         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
6879         Likewise.
6880         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
6882         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
6883         test, and don't hardcode -O0.
6885 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
6887         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
6889 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
6891         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
6892         test.
6894 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
6896         PR middle-end/71734
6897         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
6898         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
6900 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
6902         PR fortran/71717
6903         * testsuite/libgomp.fortran/associate3.f90: New test.
6905 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
6907         * testsuite/libgomp.c++/target-21.C: New test.
6909 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
6911         * testsuite/libgomp.c++/target-20.C: New test.
6913 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
6914             Cesar Philippidis  <cesar@codesourcery.com>
6916         PR middle-end/71373
6917         * libgomp.oacc-c/nested-function-1.c: New file.
6918         * libgomp.oacc-c/nested-function-2.c: Likewise.
6919         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
6920         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
6921         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
6923 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
6925         PR c/71381
6926         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
6927         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
6928         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
6930 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
6932         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
6933         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
6935 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
6937         PR c/70688
6938         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
6940 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
6942         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
6943         instead of invalid schedule(static, 0).
6944         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
6946 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
6948         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
6949         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
6950         parameter, use to set async stream around call to gomp_unmap_vars,
6951         call gomp_unmap_vars() with 'do_copyfrom' set to true.
6952         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
6953         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
6954         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
6955         (event_add): Add int parameter, initialize 'val' field when
6956         adding new ptx_event struct.
6957         (nvptx_evec): Adjust event_add() call arguments.
6958         (nvptx_host2dev): Likewise.
6959         (nvptx_dev2host): Likewise.
6960         (nvptx_wait_async): Likewise.
6961         (nvptx_wait_all_async): Likewise.
6962         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
6963         pass to event_add() call.
6964         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
6965         parameter.
6966         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
6967         call openacc.register_async_cleanup_func() hook.
6968         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
6969         * target.c (gomp_copy_from_async): Delete function.
6970         (gomp_map_vars): Remove async_refcount.
6971         (gomp_unmap_vars): Likewise.
6972         (gomp_load_image_to_device): Likewise.
6973         (omp_target_associate_ptr): Likewise.
6974         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
6975         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
6976         (gomp_copy_from_async): Remove.
6978 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
6980         * target.c (gomp_device_copy): New function.
6981         (gomp_copy_host2dev): Likewise.
6982         (gomp_copy_dev2host): Likewise.
6983         (gomp_free_device_memory): Likewise.
6984         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
6985         (gomp_map_pointer): Likewise.
6986         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
6987         NULL value from alloc_func plugin hook.
6988         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
6989         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
6990         (gomp_unmap_vars): Likewise.
6991         (gomp_update): Adjust to call gomp_copy_dev2host and
6992         gomp_copy_host2dev functions.
6993         (gomp_unload_image_from_device): Handle false value from
6994         unload_image_func plugin hook.
6995         (gomp_init_device): Handle false value from init_device_func
6996         plugin hook.
6997         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
6998         (omp_target_free): Adjust to call gomp_free_device_memory.
6999         (omp_target_memcpy): Handle return values from host2dev_func,
7000         dev2host_func, and dev2dev_func plugin hooks.
7001         (omp_target_memcpy_rect_worker): Likewise.
7002         (gomp_target_fini): Handle false value from fini_device_func
7003         plugin hook.
7004         * libgomp.h (struct gomp_device_descr): Adjust return type of
7005         init_device_func, fini_device_func, unload_image_func, free_func,
7006         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
7007         * oacc-init.c (acc_shutdown_1): Handle false value from
7008         fini_device_func plugin hook.
7009         * oacc-host.c (host_init_device): Change return type to bool.
7010         (host_fini_device): Likewise.
7011         (host_unload_image): Likewise.
7012         (host_free): Likewise.
7013         (host_dev2host): Likewise.
7014         (host_host2dev): Likewise.
7015         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
7016         (acc_memcpy_to_device): Likewise.
7017         (acc_memcpy_from_device): Likewise.
7018         (delete_copyout): Add libfnname parameter, handle free_func
7019         hook fatal error case.
7020         (acc_delete): Adjust delete_copyout call.
7021         (acc_copyout): Likewise.
7022         (update_dev_host): Move gomp_mutex_unlock to after
7023         host2dev/dev2host hook calls.
7025         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
7026         to 'hsa_error_msg', for clarity.
7027         (hsa_fatal): Likewise.
7028         (hsa_error): New function.
7029         (init_hsa_context): Change return type to bool, adjust to return
7030         false on error.
7031         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
7032         return value.
7033         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
7034         return false on error.
7035         (get_agent_info): Adjust to return NULL on error.
7036         (destroy_hsa_program): Change return type to bool, adjust to
7037         return false on error.
7038         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
7039         (destroy_module): Change return type to bool, adjust to
7040         return false on error.
7041         (GOMP_OFFLOAD_unload_image): Likewise.
7042         (GOMP_OFFLOAD_fini_device): Likewise.
7043         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
7044         (GOMP_OFFLOAD_free): Change to return false when called.
7045         (GOMP_OFFLOAD_dev2host): Likewise.
7046         (GOMP_OFFLOAD_host2dev): Likewise.
7047         (GOMP_OFFLOAD_dev2dev): Likewise.
7049         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
7050         (CUDA_CALL): Likewise.
7051         (CUDA_CALL_ASSERT): Likewise.
7052         (map_init): Change return type to bool, use CUDA_CALL* macros.
7053         (map_fini): Likewise.
7054         (init_streams_for_device): Change return type to bool, adjust
7055         call to map_init.
7056         (fini_streams_for_device): Change return type to bool, adjust
7057         call to map_fini.
7058         (select_stream_for_async): Release stream_lock before calls to
7059         GOMP_PLUGIN_fatal, adjust call to map_init.
7060         (nvptx_init): Use CUDA_CALL* macros.
7061         (nvptx_attach_host_thread_to_device): Change return type to bool,
7062         use CUDA_CALL* macros.
7063         (nvptx_open_device): Use CUDA_CALL* macros.
7064         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
7065         macros.
7066         (nvptx_get_num_devices): Use CUDA_CALL* macros.
7067         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
7068         (nvptx_exec): Use CUDA_CALL* macros.
7069         (nvptx_alloc): Use CUDA_CALL* macros.
7070         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
7071         (nvptx_host2dev): Likewise.
7072         (nvptx_dev2host): Likewise.
7073         (nvptx_wait): Use CUDA_CALL* macros.
7074         (nvptx_wait_async): Likewise.
7075         (nvptx_wait_all): Likewise.
7076         (nvptx_wait_all_async): Likewise.
7077         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
7078         use CUDA_CALL* macros, adjust call to map_fini.
7079         (GOMP_OFFLOAD_init_device): Change return type to bool,
7080         adjust code accordingly.
7081         (GOMP_OFFLOAD_fini_device): Likewise.
7082         (GOMP_OFFLOAD_load_image): Adjust calls to
7083         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
7084         use CUDA_CALL* macros.
7085         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
7086         return code.
7087         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
7088         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
7089         handle error return.
7090         (GOMP_OFFLOAD_dev2host): Likewise.
7091         (GOMP_OFFLOAD_host2dev): Likewise.
7092         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
7093         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
7095 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
7097         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
7098         (acc_free): Likewise.
7099         (acc_memcpy_to_device): Likewise.
7100         (acc_memcpy_from_device): Likewise.
7101         (acc_deviceptr): Likewise.
7102         (acc_hostptr): Likewise.
7103         (acc_is_present): Likewise.
7104         (acc_map_data): Likewise.
7105         (acc_unmap_data): Likewise.
7106         (present_create_copy): Likewise.
7107         (delete_copyout): Likewise.
7108         (update_dev_host): Likewise.
7109         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
7110         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
7111         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
7112         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
7113         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
7114         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
7115         it only runs on nvptx targets.
7116         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
7117         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
7118         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7119         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7120         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7121         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7122         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7123         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7124         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7125         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
7126         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7127         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7128         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7129         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7130         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7131         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7132         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7133         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7134         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7135         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7136         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7137         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7138         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7140 2016-05-23  Martin Jambor  <mjambor@suse.cz>
7142         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
7144 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
7146         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
7147         to gomp_init_targets_once.
7148         (acc_set_device_type): Remove !cached_base_dev condition on call to
7149         gomp_init_targets_once, move call to before acc_device_lock acquire,
7150         to avoid deadlock.
7151         (acc_get_device_num): Remove !cached_base_dev condition on call to
7152         gomp_init_targets_once.
7153         (acc_set_device_num): Likewise.
7155 2016-05-16  Martin Jambor  <mjambor@suse.cz>
7157         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
7159 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
7161         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
7162         expected partitioning.
7164 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
7166         PR middle-end/70626
7167         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
7168         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
7169         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
7171 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
7173         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
7174         non-fatal.
7176 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
7178         PR middle-end/70680
7179         * testsuite/libgomp.c/pr70680-1.c: New test.
7180         * testsuite/libgomp.c/pr70680-2.c: New test.
7182 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
7184         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
7185         pass parameter variables to subroutines.
7187 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
7189         PR middle-end/70643
7190         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
7192 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
7194         PR testsuite/68242
7195         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
7196         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
7198 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
7200         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
7201         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
7202         GOACC_declare prototype.
7204         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
7205         Merge this file, and...
7206         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
7207         ... this file, and...
7208         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
7209         ... this file, and...
7210         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
7211         ... this file, and...
7212         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
7213         ... this file, and...
7214         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
7215         ... this file, and...
7216         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
7217         ... this file, and...
7218         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
7219         ... this file, and...
7220         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
7221         ... this file, and...
7222         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
7223         ... this file, and...
7224         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
7225         ... this file, and...
7226         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
7227         ... this file, and...
7228         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
7229         ... this file into...
7230         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
7231         file.
7233         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
7234         Make failure observable.
7236 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
7238         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
7239         field.
7240         * target.c (gomp_target_fallback_firstprivate,
7241         gomp_target_unshare_firstprivate): Removed.
7242         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
7243         before waiting for dependencies.
7244         (gomp_target_task_fn): Don't copy firstprivate vars here.
7245         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
7246         firstprivate_copies here.
7247         (gomp_create_target_task): Don't initialize firstprivate_copies field.
7248         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
7249         explicit/implicit firstprivate.
7251 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
7253         PR lto/70289
7254         PR ipa/70348
7255         PR tree-optimization/70373
7256         PR middle-end/70533
7257         PR middle-end/70534
7258         PR middle-end/70535
7259         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
7260         test.
7261         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
7262         test.
7263         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
7264         test.
7265         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
7266         test.
7267         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
7268         test.
7269         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
7270         test.
7271         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
7272         test.
7273         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
7274         test.
7275         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
7276         test.
7277         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
7278         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
7279         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
7280         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
7281         test.
7282         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
7283         test.
7284         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
7285         test.
7286         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
7287         test.
7288         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
7289         coverage.
7290         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
7291         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
7292         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
7293         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
7294         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
7295         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
7296         coverage.
7297         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
7298         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
7299         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
7300         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
7301         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
7302         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
7303         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
7304         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
7305         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
7306         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
7307         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
7308         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
7309         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
7310         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
7311         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
7313 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
7314             James Norris  <jnorris@codesourcery.com>
7315             Nathan Sidwell  <nathan@codesourcery.com>
7316             Julian Brown  <julian@codesourcery.com>
7317             Cesar Philippidis  <cesar@codesourcery.com>
7318             Chung-Lin Tang  <cltang@codesourcery.com>
7319             Tom de Vries  <tom@codesourcery.com>
7321         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
7322         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
7323         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
7324         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
7325         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
7326         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
7327         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
7328         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
7329         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
7330         XFAIL.
7331         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
7332         Incorporate...
7333         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
7334         file.
7335         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
7336         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
7337         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
7338         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
7339         Likewise.
7340         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
7341         Likewise.
7342         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
7343         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
7344         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
7345         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
7346         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
7347         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
7348         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
7349         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
7350         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
7351         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
7352         Likewise.
7353         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
7354         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
7355         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
7356         file...
7357         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
7358         file into...
7359         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
7360         file.  Update.
7361         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
7362         file.
7363         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
7364         Likewise.
7365         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
7366         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
7367         ... this new file.  Update.
7368         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
7369         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
7370         ... this new file.  Update.
7371         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
7372         file.  Incorporate...
7373         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
7374         file, and...
7375         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
7376         file, and...
7377         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
7378         file.
7379         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
7381 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
7383         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
7384         set-torture-options.
7386 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
7388         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
7389         gcc-dg-runtest.
7390         * testsuite/libgomp.oacc-c/c.exp: Likewise.
7391         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
7392         -fno-builtin-acc_on_device instead of -O0.
7393         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
7394         -O0.
7395         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
7396         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
7397         Likewise.
7398         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
7399         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
7400         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
7401         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
7402         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
7403         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
7404         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
7405         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
7406         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
7407         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
7408         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
7409         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
7410         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
7411         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
7412         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
7413         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
7414         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
7415         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
7416         Don't specify -O2.
7417         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
7418         Likewise.
7419         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
7420         Likewise.
7422 2016-03-24  Martin Liska  <mliska@suse.cz>
7424         * plugin/plugin-hsa.c (packet_store_release): New function
7425         that is taken from the HSA runtime manual.
7426         (GOMP_OFFLOAD_run): Use the function.
7428 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
7430         PR c++/70376
7431         * testsuite/libgomp.c++/pr70376.C: New test.
7433 2016-03-23  Tom de Vries  <tom@codesourcery.com>
7435         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
7436         initialization of lresult and lvresult.
7437         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
7439 2016-03-23  James Norris  <jnorris@codesourcery.com>
7440             Daichi Fukuoka <dc-fukuoka@sgi.com>
7442         PR libgomp/69414
7443         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
7444         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
7445         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
7446         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
7448 2016-03-23  Martin Liska  <mliska@suse.cz>
7450         PR hsa/70337
7451         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
7452         argument just in case a dispatched kernel uses that argument.
7454 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
7456         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
7457         -ftree-parallelize-loops/-fopenacc changes.
7458         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
7459         Likewise.
7460         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
7461         Likewise.
7462         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
7463         Likewise.
7464         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
7465         Likewise.
7466         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
7467         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
7469 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
7471         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
7472         always_ld_library_path the path to libgcc_s.
7474 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
7476         PR testsuite/70009
7477         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
7479 2016-03-09  Tom de Vries  <tom@codesourcery.com>
7481         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
7482         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
7483         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
7484         Same.
7485         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
7486         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
7487         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
7488         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
7490 2016-03-07  Martin Jambor  <mjambor@suse.cz>
7492         * testsuite/lib/libgomp.exp
7493         (check_effective_target_hsa_offloading_selected_nocache): New.
7494         (check_effective_target_hsa_offloading_selected): Likewise.
7495         * testsuite/libgomp.hsa.c/c.exp: Likewise.
7496         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
7497         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
7498         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
7499         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
7500         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
7501         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
7502         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
7503         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
7504         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
7505         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
7506         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
7507         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
7508         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
7509         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
7510         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
7511         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
7513 2016-03-07  Martin Jambor  <mjambor@suse.cz>
7515         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
7516         non-shared memory accelerators.
7517         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
7518         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
7519         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
7520         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
7521         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
7522         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
7523         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
7524         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
7525         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
7527 2016-03-07  Martin Jambor  <mjambor@suse.cz>
7529         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
7530         ALWAYS_CFLAGS.
7532 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
7534         PR libgomp/69555
7535         * testsuite/libgomp.c++/pr69555-1.C: New test.
7536         * testsuite/libgomp.c++/pr69555-2.C: New test.
7538 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
7539             Martin Jambor  <mjambor@suse.cz>
7541         * testsuite/lib/libgomp.exp
7542         (check_effective_target_offload_device_shared_as): New proc.
7543         * testsuite/libgomp.c++/declare_target-1.C: New test.
7545 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
7547         PR driver/68463
7548         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
7550 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
7552         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
7553         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
7554         dims.
7555         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
7556         -ftree-parallelize-loops/-fopenacc changes.
7557         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
7558         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
7559         Likewise.
7560         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
7561         Likewise.
7562         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
7563         Likewise.
7564         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
7565         Likewise.
7566         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
7567         Likewise.
7568         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
7569         Likewise.
7570         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
7571         Likewise.
7572         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
7573         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
7574         Likewise.
7575         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
7576         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
7577         Likewise.
7578         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
7579         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
7580         Likewise.
7582 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
7584         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
7586 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
7588         PR driver/69805
7589         * testsuite/libgomp.c/pr69805.c: New test.
7591 2016-02-16  Tom de Vries  <tom@codesourcery.com>
7593         PR lto/67709
7594         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
7596 2016-02-09  Tom de Vries  <tom@codesourcery.com>
7598         PR tree-optimization/69599
7599         * testsuite/libgomp.c/omp-nested-3.c: New test.
7600         * testsuite/libgomp.c/pr46032-2.c: New test.
7601         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
7602         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
7604 2016-02-09  Tom de Vries  <tom@codesourcery.com>
7606         PR lto/69707
7607         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
7609 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
7611         * testsuite/libgomp.c/target-31.c: Fix testcase.
7613 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
7615         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
7616         clause.
7617         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
7618         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
7619         reduction and map clauses.
7620         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
7622 2016-02-02  James Norris  <jnorris@codesourcery.com>
7624         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
7626 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
7628         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
7629         * oacc-parallel.c (GOACC_host_data): Remove function definition.
7631         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
7632         cases.
7634         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
7635         variables.
7636         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
7637         (hsa_kmt_lib): Set variables.
7638         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
7639         always_ld_library_path.
7640         * Makefile.in: Regenerate.
7641         * configure: Likewise.
7642         * testsuite/Makefile.in: Likewise.
7644         * plugin/configfrag.ac (offload_additional_options)
7645         (offload_additional_lib_paths): Don't amend for hsa offloading.
7646         * configure: Regenerate.
7648         * plugin/configfrag.ac: Don't configure for offloading target if
7649         we don't build the corresponding plugin.
7650         * configure: Regenerate.
7652 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
7654         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
7655         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
7657 2016-01-26  Tom de Vries  <tom@codesourcery.com>
7659         PR tree-optimization/69110
7660         * testsuite/libgomp.c/pr69110.c: New test.
7662 2016-01-25  Richard Biener  <rguenther@suse.de>
7664         PR lto/69393
7665         * testsuite/libgomp.c++/pr69393.C: New testcase.
7667 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
7669         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
7670         function wasn't mapped to the device with non-shared memory.
7672 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
7674         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
7676 2016-01-19  Martin Jambor  <mjambor@suse.cz>
7677             Martin Liska  <mliska@suse.cz>
7679         * plugin/Makefrag.am: Add HSA plugin requirements.
7680         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
7681         (HSA_RUNTIME_LIB): Likewise.
7682         (HSA_RUNTIME_CPPFLAGS): Likewise.
7683         (HSA_RUNTIME_INCLUDE): New substitution.
7684         (HSA_RUNTIME_LIB): Likewise.
7685         (HSA_RUNTIME_LDFLAGS): Likewise.
7686         (hsa-runtime): New configure option.
7687         (hsa-runtime-include): Likewise.
7688         (hsa-runtime-lib): Likewise.
7689         (PLUGIN_HSA): New substitution variable.
7690         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
7691         configure options.
7692         (PLUGIN_HSA_CPPFLAGS): Likewise.
7693         (PLUGIN_HSA_LDFLAGS): Likewise.
7694         (PLUGIN_HSA_LIBS): Likewise.
7695         Check that we have access to HSA run-time.
7696         * libgomp-plugin.h (offload_target_type): New element
7697         OFFLOAD_TARGET_TYPE_HSA.
7698         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
7699         args.
7700         (bool gomp_create_target_task): Updated.
7701         (gomp_device_descr): Extra parameter of run_func and async_run_func,
7702         new field can_run_func.
7703         * libgomp_g.h (GOMP_target_ext): Update prototype.
7704         * oacc-host.c (host_run): Added a new parameter args.
7705         * target.c (calculate_firstprivate_requirements): New function.
7706         (copy_firstprivate_data): Likewise.
7707         (gomp_target_fallback_firstprivate): Use them.
7708         (gomp_target_unshare_firstprivate): New function.
7709         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
7710         devices.
7711         (GOMP_target): Do host fallback for all shared memory devices.  Do not
7712         pass any args to plugins.
7713         (GOMP_target_ext): Introduce device-specific argument parameter args.
7714         Allow host fallback if device shares memory.  Do not remap data if
7715         device has shared memory.
7716         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
7717         like host fallback for mappings.
7718         (GOMP_target_data): Treat shared memory devices like host fallback.
7719         (GOMP_target_data_ext): Likewise.
7720         (GOMP_target_update): Likewise.
7721         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
7722         gomp_create_target_task.
7723         (GOMP_target_enter_exit_data): Likewise.
7724         (omp_target_alloc): Treat shared memory devices like host fallback.
7725         (omp_target_free): Likewise.
7726         (omp_target_is_present): Likewise.
7727         (omp_target_memcpy): Likewise.
7728         (omp_target_memcpy_rect): Likewise.
7729         (omp_target_associate_ptr): Likewise.
7730         (gomp_load_plugin_for_device): Also load can_run.
7731         * task.c (GOMP_PLUGIN_target_task_completion): Free
7732         firstprivate_copies.
7733         (gomp_create_target_task): Accept new argument args and store it to
7734         ttask.
7735         * plugin/plugin-hsa.c: New file.
7737 2016-01-18  Tom de Vries  <tom@codesourcery.com>
7739         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
7740         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
7741         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
7742         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
7743         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
7744         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
7745         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
7746         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
7747         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
7748         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
7749         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
7750         Same.
7751         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
7752         Same.
7753         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
7754         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
7755         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
7756         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
7757         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
7758         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
7759         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
7760         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
7761         Same.
7762         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
7764 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
7766         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
7768 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
7770         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
7772 2016-01-12  James Norris  <jnorris@codesourcery.com>
7774         * libgomp.texi: Updates for OpenACC.
7776 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
7778         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
7780 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
7782         PR fortran/66680
7783         * testsuite/libgomp.fortran/pr66680.f90: New test.
7785 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
7787         PR middle-end/68960
7788         * testsuite/libgomp.c/pr68960.c: New test.
7790 2016-01-06  Nathan Sidwell  <nathan@acm.org>
7792         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
7793         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
7795 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
7797         Update copyright years.
7799         * libgomp.texi: Bump @copying's copyright year.
7801 2015-12-31  Nathan Sidwell  <nathan@acm.org>
7803         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
7804         dg-additional-options syntax.
7805         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
7806         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
7807         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
7808         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
7809         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
7810         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
7811         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
7812         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
7813         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
7814         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
7815         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
7816         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
7817         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
7818         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
7819         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
7820         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
7821         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
7822         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
7824 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
7826         * libgomp.h (REFCOUNT_LINK): Define.
7827         (struct splay_tree_key_s): Add link_key.
7828         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
7829         Replace target address of the pointer with target address of newly
7830         mapped object in the splay tree.  Set link pointer on target to the
7831         device address of the mapped object.
7832         (gomp_unmap_vars): Restore target address of the pointer in the splay
7833         tree for REFCOUNT_LINK objects after unmapping.
7834         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
7835         declare target link" objects.
7836         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
7837         "omp declare target link" objects, which were mapped for the image.
7838         (gomp_exit_data): Restore target address of the pointer in the splay
7839         tree for REFCOUNT_LINK objects after unmapping.
7840         * testsuite/libgomp.c/target-link-1.c: New file.
7842 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
7844         * libgomp.h (gomp_device_state): New enum.
7845         (struct gomp_device_descr): Replace is_initialized with state.
7846         (gomp_fini_device): Remove declaration.
7847         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
7848         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
7849         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
7850         (acc_set_device_type): Use state instead of is_initialized.
7851         (acc_set_device_num): Likewise.
7852         * target.c (resolve_device): Use state instead of is_initialized.
7853         Do not initialize finalized device.
7854         (gomp_map_vars): Do nothing if device is finalized.
7855         (gomp_unmap_vars): Likewise.
7856         (gomp_update): Likewise.
7857         (GOMP_offload_register_ver): Use state instead of is_initialized.
7858         (GOMP_offload_unregister_ver): Likewise.
7859         (gomp_init_device): Likewise.
7860         (gomp_unload_device): Likewise.
7861         (gomp_fini_device): Remove.
7862         (gomp_get_target_fn_addr): Do nothing if device is finalized.
7863         (GOMP_target): Go to host fallback if device is finalized.
7864         (GOMP_target_ext): Likewise.
7865         (gomp_exit_data): Do nothing if device is finalized.
7866         (gomp_target_task_fn): Go to host fallback if device is finalized.
7867         (gomp_target_fini): New static function.
7868         (gomp_target_init): Use state instead of is_initialized.
7869         Call gomp_target_fini at exit.
7871 2015-12-09  Tom de Vries  <tom@codesourcery.com>
7873         PR tree-optimization/68716
7874         * testsuite/libgomp.c/omp-nested-2.c: New test.
7876 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
7878         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
7879         target openacc_nvidia_accel_selected.
7880         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
7881         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
7882         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
7883         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
7885 2015-12-01  Julian Brown  <julian@codesourcery.com>
7886             James Norris  <James_Norris@mentor.com>
7888         * oacc-parallel.c (GOACC_host_data): New function.
7889         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
7890         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
7891         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
7892         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
7893         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
7894         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
7895         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
7897 2015-11-30  James Norris  <jnorris@codesourcery.com>
7898             Cesar Philippidis  <cesar@codesourcery.com>
7900         libgomp/
7901         * libgomp.oacc-fortran/routine-5.f90: New test.
7902         * libgomp.oacc-fortran/routine-7.f90: New test.
7903         * libgomp.oacc-fortran/routine-9.f90: New test.
7905 2015-11-30  Tom de Vries  <tom@codesourcery.com>
7907         PR tree-optimization/46032
7908         * testsuite/libgomp.c/pr46032.c: New test.
7910 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
7912         PR libgomp/68579
7913         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
7914         (gomp_create_target_task): Call it before freeing
7915         GOMP_TARGET_TASK_DATA tasks.
7917         PR c/63326
7918         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
7919         in between case label and OpenMP standalone directives.
7920         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
7922 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
7924         * configure: Regenerate.
7926 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
7928         * testsuite/libgomp.c/target-35.c: New test.
7930 2015-11-22  James Norris  <jnorris@codesourcery.com>
7931             Cesar Philippidis  <cesar@codesourcery.com>
7933         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
7934         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
7935         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
7936         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
7937         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
7939 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
7941         PR middle-end/68221
7942         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
7943         * testsuite/libgomp.c/reduction-12.c: Likewise.
7944         * testsuite/libgomp.c++/reduction-11.C: Likewise.
7945         * testsuite/libgomp.c++/reduction-12.C: Likewise.
7947 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
7949         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
7950         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
7951         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
7952         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
7953         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
7954         and fix.
7955         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
7956         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
7958 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
7960         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
7961         worker & gang cases.
7962         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
7964 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
7966         * config/nvptx/priority_queue.c: New file.
7968 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
7970         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
7971         sections.
7973 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
7974             Aldy Hernandez  <aldyh@redhat.com>
7975             Ilya Verbin  <ilya.verbin@intel.com>
7977         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
7978         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
7979         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
7980         iterators or IV by chunk size.
7981         * parallel.c (gomp_resolve_num_threads): Don't assume that
7982         if thr->ts.team is non-NULL, then pool must be non-NULL.
7983         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
7984         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
7985         GOMP_PLUGIN_target_task_completion.
7986         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
7987         * Makefile.in: Regenerate.
7988         * libgomp.h: Shuffle prototypes and forward definitions around so
7989         priority queues can be defined.
7990         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
7991         (enum gomp_target_task_state): New enum.
7992         (struct gomp_target_task): Add state, tgt, task and team fields.
7993         (gomp_create_target_task): Change return type to bool, add
7994         state argument.
7995         (gomp_target_task_fn): Change return type to bool.
7996         (struct gomp_device_descr): Add async_run_func.
7997         (struct gomp_task): Remove children, next_child, prev_child,
7998         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
7999         Add pnode field.
8000         (struct gomp_taskgroup): Remove children.
8001         Add taskgroup_queue.
8002         (struct gomp_team): Change task_queue type to a priority queue.
8003         (splay_compare): Define inline.
8004         (priority_queue_offset): New.
8005         (priority_node_to_task): New.
8006         (task_to_priority_node): New.
8007         * oacc-mem.c: Do not include splay-tree.h.
8008         * priority_queue.c: New file.
8009         * priority_queue.h: New file.
8010         * splay-tree.c: Do not include splay-tree.h.
8011         (splay_tree_foreach_internal): New.
8012         (splay_tree_foreach): New.
8013         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
8014         (splay_tree_callback): Define typedef.
8015         * target.c (splay_compare): Move to libgomp.h.
8016         (GOMP_target): Don't adjust *thr in any way around running offloaded
8017         task.
8018         (GOMP_target_ext): Likewise.  Handle target nowait.
8019         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
8020         return value from gomp_create_target_task, if false, fallthrough
8021         as if no dependencies exist.
8022         (gomp_target_task_fn): Change return type to bool, return true
8023         if the task should have another part scheduled later.  Handle
8024         target nowait.
8025         (gomp_load_plugin_for_device): Initialize async_run.
8026         * task.c (gomp_init_task): Initialize children_queue.
8027         (gomp_clear_parent_in_list): New.
8028         (gomp_clear_parent_in_tree): New.
8029         (gomp_clear_parent): Handle priorities.
8030         (GOMP_task): Likewise.
8031         (priority_queue_move_task_first,
8032         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
8033         New functions.
8034         (gomp_create_target_task): Use priority queues.  Change return type
8035         to bool, add state argument, return false if for async
8036         {{enter,exit} data,update} constructs no dependencies need to be
8037         waited for, handle target nowait.  Set task->fn to NULL instead of
8038         gomp_target_task_fn.
8039         (verify_children_queue): Remove.
8040         (priority_list_upgrade_task): New.
8041         (priority_queue_upgrade_task): New.
8042         (verify_task_queue): Remove.
8043         (priority_list_downgrade_task): New.
8044         (priority_queue_downgrade_task): New.
8045         (gomp_task_run_pre): Use priority queues.
8046         Abstract code out to priority_queue_downgrade_task.
8047         (gomp_task_run_post_handle_dependers): Use priority queues.
8048         (gomp_task_run_post_remove_parent): Likewise.
8049         (gomp_task_run_post_remove_taskgroup): Likewise.
8050         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
8051         tasks specially.
8052         (GOMP_taskwait): Likewise.
8053         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
8054         priority-queue_upgrade_task.
8055         (GOMP_taskgroup_start): Use priority queues.
8056         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
8057         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
8058         barrier.
8059         * taskloop.c (GOMP_taskloop): Handle priorities.
8060         * team.c (gomp_new_team): Call priority_queue_init.
8061         (free_team): Call priority_queue_free.
8062         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
8063         team created for target nowait in implicit parallel region.
8064         (gomp_team_start): For nested check, test thr->ts.level instead of
8065         thr->ts.team != NULL.
8066         * testsuite/libgomp.c/doacross-3.c: New test.
8067         * testsuite/libgomp.c/ordered-5.c: New test.
8068         * testsuite/libgomp.c/priority.c: New test.
8069         * testsuite/libgomp.c/target-31.c: New test.
8070         * testsuite/libgomp.c/target-32.c: New test.
8071         * testsuite/libgomp.c/target-33.c: New test.
8072         * testsuite/libgomp.c/target-34.c: New test.
8074 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
8076         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
8078         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
8079         loop is sequential.
8081 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
8083         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
8084         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
8086 2015-11-12  James Norris  <jnorris@codesourcery.com>
8087             Joseph Myers  <joseph@codesourcery.com>
8089         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
8090         * oacc-parallel.c (GOACC_declare): New function.
8091         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
8092         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
8093         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
8094         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
8095         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
8097 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
8099         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
8101 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
8103         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
8104         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
8106 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
8108         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
8109         inadvertent commit.
8111 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
8113         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
8114         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
8115         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
8116         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
8117         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
8119 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
8121         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
8122         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
8124 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
8125             Ilya Verbin  <ilya.verbin@intel.com>
8127         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
8128         GOMP_loop_nonmonotonic_dynamic_start,
8129         GOMP_loop_nonmonotonic_guided_next,
8130         GOMP_loop_nonmonotonic_guided_start,
8131         GOMP_loop_ull_nonmonotonic_dynamic_next,
8132         GOMP_loop_ull_nonmonotonic_dynamic_start,
8133         GOMP_loop_ull_nonmonotonic_guided_next,
8134         GOMP_loop_ull_nonmonotonic_guided_start,
8135         GOMP_parallel_loop_nonmonotonic_dynamic,
8136         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
8137         (GOMP_target_41): Renamed to ...
8138         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
8139         arguments.
8140         (GOMP_target_data_41): Renamed to ...
8141         (GOMP_target_data_ext): ... this.
8142         (GOMP_target_update_41): Renamed to ...
8143         (GOMP_target_update_ext): ... this.
8144         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
8145         GOMP_target_data_ext and GOMP_target_update_ext instead of
8146         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
8147         Export GOMP_loop_nonmonotonic_dynamic_next,
8148         GOMP_loop_nonmonotonic_dynamic_start,
8149         GOMP_loop_nonmonotonic_guided_next,
8150         GOMP_loop_nonmonotonic_guided_start,
8151         GOMP_loop_ull_nonmonotonic_dynamic_next,
8152         GOMP_loop_ull_nonmonotonic_dynamic_start,
8153         GOMP_loop_ull_nonmonotonic_guided_next,
8154         GOMP_loop_ull_nonmonotonic_guided_start,
8155         GOMP_parallel_loop_nonmonotonic_dynamic and
8156         GOMP_parallel_loop_nonmonotonic_guided.
8157         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
8158         GOMP_parallel_loop_nonmonotonic_guided,
8159         GOMP_loop_nonmonotonic_dynamic_start,
8160         GOMP_loop_nonmonotonic_guided_start,
8161         GOMP_loop_nonmonotonic_dynamic_next,
8162         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
8163         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
8164         GOMP_loop_ull_nonmonotonic_guided_start,
8165         GOMP_loop_ull_nonmonotonic_dynamic_next,
8166         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
8167         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
8168         functions.
8169         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
8170         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
8171         Use gomp_map_val function.
8172         (gomp_target_fallback_firstprivate): New static function.
8173         (GOMP_target_41): Renamed to ...
8174         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
8175         arguments.  Move firstprivate fallback handling into a new
8176         function.
8177         (GOMP_target_data_41): Renamed to ...
8178         (GOMP_target_data_ext): ... this.
8179         (GOMP_target_update_41): Renamed to ...
8180         (GOMP_target_update_ext): ... this.
8181         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
8182         gomp_map_0len_lookup instead of gomp_map_lookup.
8183         (omp_target_is_present): Use gomp_map_0len_lookup instead of
8184         gomp_map_lookup.
8185         * testsuite/libgomp.c/target-28.c: Likewise.
8186         * testsuite/libgomp.c/monotonic-1.c: New test.
8187         * testsuite/libgomp.c/monotonic-2.c: New test.
8188         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
8189         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
8190         * testsuite/libgomp.c/pr66199-5.c: New test.
8191         * testsuite/libgomp.c/pr66199-6.c: New test.
8192         * testsuite/libgomp.c/pr66199-7.c: New test.
8193         * testsuite/libgomp.c/pr66199-8.c: New test.
8194         * testsuite/libgomp.c/pr66199-9.c: New test.
8195         * testsuite/libgomp.c/reduction-11.c: New test.
8196         * testsuite/libgomp.c/reduction-12.c: New test.
8197         * testsuite/libgomp.c/reduction-13.c: New test.
8198         * testsuite/libgomp.c/reduction-14.c: New test.
8199         * testsuite/libgomp.c/reduction-15.c: New test.
8200         * testsuite/libgomp.c/target-12.c (main): Adjust for
8201         omp_target_is_present change for one-past-last element.
8202         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
8203         the same var is both mapped and privatized.
8204         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
8205         handling of zero-length array sections.
8206         * testsuite/libgomp.c/target-28.c: New test.
8207         * testsuite/libgomp.c/target-29.c: New test.
8208         * testsuite/libgomp.c/target-30.c: New test.
8209         * testsuite/libgomp.c/target-teams-1.c: New test.
8210         * testsuite/libgomp.c++/member-6.C: New test.
8211         * testsuite/libgomp.c++/member-7.C: New test.
8212         * testsuite/libgomp.c++/monotonic-1.C: New test.
8213         * testsuite/libgomp.c++/monotonic-2.C: New test.
8214         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
8215         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
8216         * testsuite/libgomp.c++/pr66199-3.C: New test.
8217         * testsuite/libgomp.c++/pr66199-4.C: New test.
8218         * testsuite/libgomp.c++/pr66199-5.C: New test.
8219         * testsuite/libgomp.c++/pr66199-6.C: New test.
8220         * testsuite/libgomp.c++/pr66199-7.C: New test.
8221         * testsuite/libgomp.c++/pr66199-8.C: New test.
8222         * testsuite/libgomp.c++/pr66199-9.C: New test.
8223         * testsuite/libgomp.c++/reduction-11.C: New test.
8224         * testsuite/libgomp.c++/reduction-12.C: New test.
8225         * testsuite/libgomp.c++/target-13.C: New test.
8226         * testsuite/libgomp.c++/target-14.C: New test.
8227         * testsuite/libgomp.c++/target-15.C: New test.
8228         * testsuite/libgomp.c++/target-16.C: New test.
8229         * testsuite/libgomp.c++/target-17.C: New test.
8230         * testsuite/libgomp.c++/target-18.C: New test.
8231         * testsuite/libgomp.c++/target-19.C: New test.
8233 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
8235         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
8236         and reduction copy.
8237         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8238         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8239         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8240         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8241         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
8242         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8243         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8244         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
8245         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8246         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
8247         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
8248         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8249         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8250         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
8252 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
8254         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
8255         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
8256         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
8257         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
8258         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
8259         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
8260         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
8261         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
8263 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
8265         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
8266         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
8267         (GOMP_OFFLOAD_openacc_parallel): Likewise.
8268         * oacc-host.c (host_openacc_exec): Likewise.
8269         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
8271 2015-11-03  Julian Brown  <julian@codesourcery.com>
8272             Thomas Schwinge  <thomas@codesourcery.com>
8274         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
8275         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
8276         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
8277         Likewise.
8278         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
8279         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
8281 2015-11-03  James Norris  <jnorris@codesourcery.com>
8283         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
8284         file.
8285         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
8286         Likewise.
8287         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
8288         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
8289         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
8290         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
8291         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
8293 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
8295         * openacc.h (enum acc_device_t): Reformat. Ensure layout
8296         compatibility.
8297         (enum acc_async_t): Reformat.
8298         (acc_on_device): Declare compatible with builtin and provide C++
8299         wrapper.
8300         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
8302 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
8303             Cesar Philippidis  <cesar@codesourcery.com>
8305         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
8306         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
8307         ... this.  Add a description of the test at the top of the file.
8308         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
8309         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
8310         ... this.  Add a description of the test at the top of the file.
8312 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
8314         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
8315         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
8316         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
8317         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
8318         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
8319         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
8321 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
8323         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
8324         dimensions.
8326 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
8328         PR testsuite/68063
8329         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
8331 2015-10-27  James Norris  <jnorris@codesourcery.com>
8333         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
8334         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
8336 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
8338         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
8339         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
8341         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
8342         acc_device_nvidia usage.
8343         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
8344         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8345         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
8347         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
8348         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
8350         PR libgomp/66518
8351         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
8353         PR libgomp/65437
8354         PR libgomp/66518
8355         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
8356         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
8358 2015-10-23  Tom de Vries  <tom@codesourcery.com>
8360         PR testsuite/68063
8361         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
8363 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
8365         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
8366         vector_length.
8367         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8369 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
8370             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
8372         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
8373         to 0 when mapnum is 0.
8375 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8377         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
8378         Cast to int from int32_t.
8380 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
8381             Aldy Hernandez  <aldyh@redhat.com>
8382             Ilya Verbin  <ilya.verbin@intel.com>
8384         * config/linux/affinity.c (omp_get_place_num_procs,
8385         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
8386         * config/linux/doacross.h: New file.
8387         * config/posix/affinity.c (omp_get_place_num_procs,
8388         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
8389         * config/posix/doacross.h: New file.
8390         * env.c: Include gomp-constants.h.
8391         (struct gomp_task_icv): Rename run_sched_modifier to
8392         run_sched_chunk_size.
8393         (gomp_max_task_priority_var): New variable.
8394         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
8395         (handle_omp_display_env): Change _OPENMP value from 201307 to
8396         201511.  Print OMP_MAX_TASK_PRIORITY.
8397         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
8398         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
8399         chunk_size and run_sched_modifier to run_sched_chunk_size.
8400         (omp_get_max_task_priority, omp_get_initial_device,
8401         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
8402         omp_get_partition_place_nums): New functions.
8403         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
8404         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
8405         to chunk_size.
8406         (omp_get_num_places_, omp_get_place_num_procs_,
8407         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
8408         omp_get_place_proc_ids_8_, omp_get_place_num_,
8409         omp_get_partition_num_places_, omp_get_partition_place_nums_,
8410         omp_get_partition_place_nums_8_, omp_get_initial_device_,
8411         omp_get_max_task_priority_): New functions.
8412         * libgomp_g.h (GOMP_loop_doacross_static_start,
8413         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
8414         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
8415         GOMP_loop_ull_doacross_dynamic_start,
8416         GOMP_loop_ull_doacross_guided_start,
8417         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
8418         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
8419         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
8420         GOMP_target_data_41, GOMP_target_update_41,
8421         GOMP_target_enter_exit_data): New prototypes.
8422         (GOMP_task): Add prototype argument.
8423         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
8424         (struct gomp_doacross_work_share): New type.
8425         (struct gomp_work_share): Add doacross field.
8426         (struct gomp_task_icv): Rename run_sched_modifier to
8427         run_sched_chunk_size.
8428         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
8429         GOMP_TASK_UNDEFERRED.  Add comments.
8430         (struct gomp_task_depend_entry): Add comments.
8431         (struct gomp_task): Likewise.
8432         (struct gomp_taskgroup): Likewise.
8433         (struct gomp_target_task): New type.
8434         (struct gomp_team): Add comment.
8435         (gomp_get_place_proc_ids_8, gomp_doacross_init,
8436         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
8437         gomp_create_target_task, gomp_target_task_fn): New prototypes.
8438         (struct target_var_desc): New type.
8439         (struct target_mem_desc): Adjust comment.  Use struct
8440         target_var_desc instead of splay_tree_key for list.
8441         (REFCOUNT_INFINITY): Define.
8442         (struct splay_tree_key_s): Remove copy_from field.
8443         (struct gomp_device_descr): Add dev2dev_func field.
8444         (enum gomp_map_vars_kind): New enum.
8445         (gomp_map_vars): Add one argument.
8446         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
8447         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
8448         omp_get_place_num_procs, omp_get_place_num_procs_,
8449         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
8450         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
8451         omp_get_place_num_, omp_get_partition_num_places,
8452         omp_get_partition_num_places_, omp_get_partition_place_nums,
8453         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
8454         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
8455         omp_target_free, omp_target_is_present, omp_target_memcpy,
8456         omp_target_memcpy_rect, omp_target_associate_ptr and
8457         omp_target_disassociate_ptr.
8458         (GOMP_4.0.2): Renamed to ...
8459         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
8460         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
8461         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
8462         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
8463         GOMP_loop_doacross_static_start, GOMP_doacross_post,
8464         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
8465         GOMP_loop_ull_doacross_guided_start,
8466         GOMP_loop_ull_doacross_runtime_start,
8467         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
8468         GOMP_doacross_ull_wait.
8469         * libgomp.texi: Document omp_get_max_task_priority.
8470         Rename modifier argument to chunk_size for omp_set_schedule and
8471         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
8472         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
8473         to run_sched_chunk_size renaming.
8474         (GOMP_loop_ordered_runtime_start): Likewise.
8475         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
8476         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
8477         GOMP_parallel_loop_runtime_start): New functions.
8478         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
8479         to run_sched_chunk_size renaming.
8480         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
8481         GOMP_loop_doacross_guided_start): New functions or aliases.
8482         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
8483         run_sched_modifier to run_sched_chunk_size renaming.
8484         (GOMP_loop_ull_ordered_runtime_start): Likewise.
8485         (gomp_loop_ull_doacross_static_start,
8486         gomp_loop_ull_doacross_dynamic_start,
8487         gomp_loop_ull_doacross_guided_start,
8488         GOMP_loop_ull_doacross_runtime_start): New functions.
8489         (GOMP_loop_ull_doacross_static_start,
8490         GOMP_loop_ull_doacross_dynamic_start,
8491         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
8492         * oacc-mem.c (acc_map_data, present_create_copy,
8493         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
8494         to gomp_map_vars.
8495         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
8496         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
8497         instead of false to gomp_map_vars.
8498         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
8499         * omp.h.in (omp_lock_hint_t): New type.
8500         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
8501         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
8502         omp_get_place_num, omp_get_partition_num_places,
8503         omp_get_partition_place_nums, omp_get_initial_device,
8504         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
8505         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
8506         omp_target_associate_ptr, omp_target_disassociate_ptr): New
8507         prototypes.
8508         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
8509         (omp_lock_hint_none, omp_lock_hint_uncontended,
8510         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
8511         omp_lock_hint_speculative): New parameters.
8512         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
8513         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
8514         omp_get_place_num, omp_get_partition_num_places,
8515         omp_get_partition_place_nums, omp_get_initial_device,
8516         omp_get_max_task_priority): New interfaces.
8517         (omp_set_schedule, omp_get_schedule): Rename modifier argument
8518         to chunk_size.
8519         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
8520         (omp_lock_hint_none, omp_lock_hint_uncontended,
8521         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
8522         omp_lock_hint_speculative): New parameters.
8523         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
8524         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
8525         omp_get_place_num, omp_get_partition_num_places,
8526         omp_get_partition_place_nums, omp_get_initial_device,
8527         omp_get_max_task_priority): New functions and subroutines.
8528         * ordered.c: Include stdarg.h and string.h.
8529         (MAX_COLLAPSED_BITS): Define.
8530         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
8531         gomp_doacross_ull_init, GOMP_doacross_ull_post,
8532         GOMP_doacross_ull_wait): New functions.
8533         * target.c: Include errno.h.
8534         (resolve_device): If device is not initialized, call
8535         gomp_init_device on it.
8536         (gomp_map_lookup): New function.
8537         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
8538         Don't bump refcount if REFCOUNT_INFINITY.  Handle
8539         GOMP_MAP_ALWAYS_TO_P.
8540         (get_kind): Rename is_openacc argument to short_mapkind.
8541         (gomp_map_pointer): Use gomp_map_lookup.
8542         (gomp_map_fields_existing): New function.
8543         (gomp_map_vars): Rename is_openacc argument to short_mapkind
8544         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
8545         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
8546         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
8547         Adjust for tgt->list changed type and copy_from living in there.
8548         (gomp_copy_from_async): Adjust for tgt->list changed type and
8549         copy_from living in there.
8550         (gomp_unmap_vars): Likewise.
8551         (gomp_update): Likewise.  Rename is_openacc argument to
8552         short_mapkind.  Don't fail if object is not mapped.
8553         (gomp_load_image_to_device): Initialize refcount to
8554         REFCOUNT_INFINITY.
8555         (gomp_target_fallback): New function.
8556         (gomp_get_target_fn_addr): Likewise.
8557         (GOMP_target): Adjust gomp_map_vars caller, use
8558         gomp_get_target_fn_addr and gomp_target_fallback.
8559         (GOMP_target_41): New function.
8560         (gomp_target_data_fallback): New function.
8561         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
8562         (GOMP_target_data_41): New function.
8563         (GOMP_target_update): Adjust gomp_update caller.
8564         (GOMP_target_update_41): New function.
8565         (gomp_exit_data, GOMP_target_enter_exit_data,
8566         gomp_target_task_fn, omp_target_alloc, omp_target_free,
8567         omp_target_is_present, omp_target_memcpy,
8568         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
8569         omp_target_associate_ptr, omp_target_disassociate_ptr,
8570         gomp_load_plugin_for_device): New functions.
8571         * task.c: Include gomp-constants.h.  Include taskloop.c
8572         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
8573         (gomp_task_handle_depend): New function.
8574         (GOMP_task): Use it.  Add priority argument.  Use
8575         gomp-constant.h constants instead of hardcoded numbers.
8576         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
8577         (gomp_create_target_task): New function.
8578         (verify_children_queue, verify_taskgroup_queue,
8579         verify_task_queue): New functions.
8580         (gomp_task_run_pre): Call verify_*_queue functions.
8581         If an upcoming tied task is about to leave the sibling or
8582         taskgroup queues in an invalid state, adjust appropriately.
8583         Remove taskgroup argument.  Add comments.
8584         (gomp_task_run_post_handle_dependers): Add comments.
8585         (gomp_task_run_post_remove_parent): Likewise.
8586         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
8587         (GOMP_taskwait): Likewise.  Add comments.
8588         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
8589         problem such that the first non parent_depends_on task does not
8590         end up at the end of the children queue.
8591         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
8592         GOMP_TASK_UNDEFERRED.
8593         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
8594         * taskloop.c: New file.
8595         * testsuite/lib/libgomp.exp
8596         (check_effective_target_offload_device_nonshared_as): New proc.
8597         * testsuite/libgomp.c/affinity-2.c: New test.
8598         * testsuite/libgomp.c/doacross-1.c: New test.
8599         * testsuite/libgomp.c/doacross-2.c: New test.
8600         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
8601         Add map clause to target.
8602         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
8603         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
8604         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
8605         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
8606         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
8607         Likewise.
8608         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
8609         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
8610         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
8611         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
8612         not defined.  Use those where needed.
8613         * testsuite/libgomp.c/for-4.c: New test.
8614         * testsuite/libgomp.c/for-5.c: New test.
8615         * testsuite/libgomp.c/for-6.c: New test.
8616         * testsuite/libgomp.c/linear-1.c: New test.
8617         * testsuite/libgomp.c/ordered-4.c: New test.
8618         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
8619         only allowed on the loop iterator.
8620         * testsuite/libgomp.c/pr66199-3.c: New test.
8621         * testsuite/libgomp.c/pr66199-4.c: New test.
8622         * testsuite/libgomp.c/reduction-7.c: New test.
8623         * testsuite/libgomp.c/reduction-8.c: New test.
8624         * testsuite/libgomp.c/reduction-9.c: New test.
8625         * testsuite/libgomp.c/reduction-10.c: New test.
8626         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
8627         map(tofrom:s).
8628         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
8629         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
8630         * testsuite/libgomp.c/target-11.c: New test.
8631         * testsuite/libgomp.c/target-12.c: New test.
8632         * testsuite/libgomp.c/target-13.c: New test.
8633         * testsuite/libgomp.c/target-14.c: New test.
8634         * testsuite/libgomp.c/target-15.c: New test.
8635         * testsuite/libgomp.c/target-16.c: New test.
8636         * testsuite/libgomp.c/target-17.c: New test.
8637         * testsuite/libgomp.c/target-18.c: New test.
8638         * testsuite/libgomp.c/target-19.c: New test.
8639         * testsuite/libgomp.c/target-20.c: New test.
8640         * testsuite/libgomp.c/target-21.c: New test.
8641         * testsuite/libgomp.c/target-22.c: New test.
8642         * testsuite/libgomp.c/target-23.c: New test.
8643         * testsuite/libgomp.c/target-24.c: New test.
8644         * testsuite/libgomp.c/target-25.c: New test.
8645         * testsuite/libgomp.c/target-26.c: New test.
8646         * testsuite/libgomp.c/target-27.c: New test.
8647         * testsuite/libgomp.c/taskloop-1.c: New test.
8648         * testsuite/libgomp.c/taskloop-2.c: New test.
8649         * testsuite/libgomp.c/taskloop-3.c: New test.
8650         * testsuite/libgomp.c/taskloop-4.c: New test.
8651         * testsuite/libgomp.c++/ctor-13.C: New test.
8652         * testsuite/libgomp.c++/doacross-1.C: New test.
8653         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
8654         Replace offload_device with offload_device_nonshared_as.
8655         * testsuite/libgomp.c++/for-12.C: New test.
8656         * testsuite/libgomp.c++/for-13.C: New test.
8657         * testsuite/libgomp.c++/for-14.C: New test.
8658         * testsuite/libgomp.c++/linear-1.C: New test.
8659         * testsuite/libgomp.c++/member-1.C: New test.
8660         * testsuite/libgomp.c++/member-2.C: New test.
8661         * testsuite/libgomp.c++/member-3.C: New test.
8662         * testsuite/libgomp.c++/member-4.C: New test.
8663         * testsuite/libgomp.c++/member-5.C: New test.
8664         * testsuite/libgomp.c++/ordered-1.C: New test.
8665         * testsuite/libgomp.c++/reduction-5.C: New test.
8666         * testsuite/libgomp.c++/reduction-6.C: New test.
8667         * testsuite/libgomp.c++/reduction-7.C: New test.
8668         * testsuite/libgomp.c++/reduction-8.C: New test.
8669         * testsuite/libgomp.c++/reduction-9.C: New test.
8670         * testsuite/libgomp.c++/reduction-10.C: New test.
8671         * testsuite/libgomp.c++/reference-1.C: New test.
8672         * testsuite/libgomp.c++/simd14.C: New test.
8673         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
8674         * testsuite/libgomp.c++/target-5.C: New test.
8675         * testsuite/libgomp.c++/target-6.C: New test.
8676         * testsuite/libgomp.c++/target-7.C: New test.
8677         * testsuite/libgomp.c++/target-8.C: New test.
8678         * testsuite/libgomp.c++/target-9.C: New test.
8679         * testsuite/libgomp.c++/target-10.C: New test.
8680         * testsuite/libgomp.c++/target-11.C: New test.
8681         * testsuite/libgomp.c++/target-12.C: New test.
8682         * testsuite/libgomp.c++/taskloop-1.C: New test.
8683         * testsuite/libgomp.c++/taskloop-2.C: New test.
8684         * testsuite/libgomp.c++/taskloop-3.C: New test.
8685         * testsuite/libgomp.c++/taskloop-4.C: New test.
8686         * testsuite/libgomp.c++/taskloop-5.C: New test.
8687         * testsuite/libgomp.c++/taskloop-6.C: New test.
8688         * testsuite/libgomp.c++/taskloop-7.C: New test.
8689         * testsuite/libgomp.c++/taskloop-8.C: New test.
8690         * testsuite/libgomp.c++/taskloop-9.C: New test.
8691         * testsuite/libgomp.fortran/affinity1.f90: New test.
8692         * testsuite/libgomp.fortran/affinity2.f90: New test.
8694 2015-10-13  Tom de Vries  <tom@codesourcery.com>
8696         PR tree-optimization/67476
8697         * testsuite/libgomp.c/autopar-3.c: New test.
8698         * testsuite/libgomp.c/autopar-4.c: New test.
8699         * testsuite/libgomp.c/autopar-5.c: New test.
8700         * testsuite/libgomp.c/autopar-6.c: New test.
8701         * testsuite/libgomp.c/autopar-7.c: New test.
8702         * testsuite/libgomp.c/autopar-8.c: New test.
8704 2015-10-12  James Norris  <jnorris@codesourcery.com>
8706         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
8707         initializer.
8709 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
8711         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
8712         using load_gcc_lib.
8714 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
8716         * oacc-ptx.h: Remove file, moving its content into...
8717         * config/nvptx/fortran.c: ... here...
8718         * config/nvptx/oacc-init.c: ..., here...
8719         * config/nvptx/oacc-parallel.c: ..., and here.
8720         * config/nvptx/openacc.f90: New file.
8721         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
8722         (link_ptx): Don't link in predefined bits of PTX code.
8724 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
8725             Bernd Schmidt <bernds@codesourcery.com>
8727         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
8728         (struct targ_ptx_obj): New.
8729         (nvptx_tdata): Move earlier, change data format.
8730         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
8731         objects.
8732         (GOMP_OFFLOAD_load_image): Adjust.
8734 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
8736         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
8737         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
8738         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
8739         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
8740         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8741         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8742         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8743         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8744         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8745         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8746         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8747         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8748         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8749         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8750         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8751         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8752         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8753         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8754         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8755         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8756         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8757         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8758         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8759         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8760         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8761         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8762         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8763         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8764         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8765         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8766         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8767         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8768         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8769         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8770         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8771         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8772         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8773         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8774         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8775         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8776         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8777         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8778         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8779         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8780         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8781         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8782         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8783         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8784         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8785         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8786         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8787         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8788         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8789         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8790         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8791         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8792         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8793         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8794         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8795         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8796         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8797         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8798         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8800 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
8802         * oacc-init.c (acc_on_device): Force optimization level.
8804 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
8806         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
8807         (cuda_errlist): Delete.
8808         (cuda_error): Reimplement.
8810 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
8812         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
8813         array.
8814         * libgomp.map (GOACC_parallel_keyed): New.
8815         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
8816         all callers.
8817         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
8818         and take keyed varargs list.  Adjust call to exec_func.
8819         (GOACC_parallel): Force host fallback.
8820         * libgomp_g.h (GOACC_parallel): Remove.
8821         (GOACC_parallel_keyed): Declare.
8822         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
8823         (struct targ_gn_descriptor): Replace name field with launch field.
8824         (nvptx_exec): Lose separate geometry args, take array.  Process
8825         dynamic dimensions and adjust.
8826         (struct nvptx_tdata): Replace fn_names field with fn_descs.
8827         (GOMP_OFFLOAD_load_image): Adjust for change in function table
8828         data.
8829         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
8830         passing.
8831         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
8832         passing.
8834 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
8836         PR libgomp/67141
8837         * oacc-int.h (goacc_host_init): Add declaration.
8838         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
8839         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
8841 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
8842             Sebastian Pop  <s.pop@samsung.com>
8844         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
8845         match o/p.
8846         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
8847         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
8848         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
8849         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
8850         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
8852 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
8854         * configure.tgt: Add missing ;; in between nvptx and rtems
8855         snippets.
8857 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8859         * config/posix/pool.h (gomp_adjust_thread_attr): New.
8860         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
8861         (gomp_thread_pool_reservoir): Add priority member.
8862         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
8863         priority.
8864         (parse_thread_pools): Likewise.
8865         * team.c (gomp_team_start): Call configuration provided
8866         gomp_adjust_thread_attr(). Destroy thread attributes if
8867         necessary.
8868         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
8870 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8872         * config/posix/pool.h: New.
8873         * config/rtems/pool.h: Likewise.
8874         * config/rtems/proc.c: Likewise.
8875         * libgomp.h (gomp_thread_destructor): Declare.
8876         * team.c: Include configuration provided "pool.h".
8877         (gomp_get_thread_pool): Define in configuration.
8878         (gomp_team_end): Call configuration defined
8879         gomp_release_thread_pool().
8881 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8883         * config/rtems/bar.c: New.
8884         * config/rtems/bar.h: Likewise.
8885         * config/rtems/mutex.c: Likewise.
8886         * config/rtems/mutex.h: Likewise.
8887         * config/rtems/sem.c: Likewise.
8888         * config/rtems/sem.h: Likewise.
8889         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
8890         <sys/lock.h> header file.
8891         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
8892         supported by Newlib.
8893         * configure: Regenerate.
8895 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8897         * team.c (gomp_new_thread_pool): Delete and move content to ...
8898         (gomp_get_thread_pool): ... new function.  Allocate and
8899         initialize thread pool on demand.
8900         (get_last_team): Use gomp_get_thread_pool().
8901         (gomp_team_start): Delete thread pool initialization.
8903 2015-09-03  Tom de Vries  <tom@codesourcery.com>
8905         PR tree-optimization/65637
8906         * testsuite/libgomp.c/autopar-2.c: New test.
8908 2015-08-29  Tom de Vries  <tom@codesourcery.com>
8910         PR tree-optimization/46193
8911         * testsuite/libgomp.c/pr46193.c: New test.
8913 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
8915         libgomp/
8916         * libgomp.map: Add 4.0.2 version.
8917         * target.c (offload_image_descr): Add version field.
8918         (gomp_load_image_to_device): Add version argument.  Adjust plugin
8919         call.  Improve load mismatch diagnostic.
8920         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
8921         call.
8922         (GOMP_offload_regster): Make stub function, move bulk to ...
8923         (GOMP_offload_register_ver): ... here.  Process version argument.
8924         (GOMP_offload_unregister): Make stub function, move bulk to ...
8925         (GOMP_offload_unregister_ver): ... here.  Process version argument.
8926         (gomp_init_device): Process version field.
8927         (gomp_unload_device): Process version field.
8928         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
8929         macros.  Check plugin version.
8930         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
8931         loader and unloader types.
8932         * oacc-host.c: Include gomp-constants.h.
8933         (host_version): New.
8934         (host_load_image, host_unload_image): Adjust.
8935         (host_dispatch): Add host_version.
8936         * plugin/plugin-nvptx.c: Include gomp-constants.h.
8937         (GOMP_OFFLOAD_version): New.
8938         (GOMP_OFFLOAD_load_image): Add version arg and check it.
8939         (GOMP_OFFLOAD_unload_image): Likewise.
8940         * plugin/plugin-host.c: Include gomp-constants.h.
8941         (GOMP_OFFLOAD_version): New.
8942         (GOMP_OFFLOAD_load_image): Add version arg.
8943         (GOMP_OFFLOAD_unload_image): Likewise.
8945 2015-08-24  Tom de Vries  <tom@codesourcery.com>
8947         PR tree-optimization/65468
8948         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
8950 2015-08-24  Tom de Vries  <tom@codesourcery.com>
8952         PR tree-optimization/65468
8953         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
8955 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
8957         PR libgomp/66761
8958         PR libgomp/67303
8959         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
8960         (gomp_iter_guided_next): Idem.
8961         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
8962         (gomp_iter_ull_guided_next): Idem.
8963         * config/linux/wait.h (do_spin): Idem.
8965 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
8967         * libgomp-plugin.h (enum offload_target_type): Remove
8968         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
8969         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
8970         * openacc.h (enum acc_device_t): Likewise.
8971         * openacc_lib.h: Likewise.
8972         * oacc-init.c (name_of_acc_device_t): Don't handle it.
8973         (acc_on_device): Just use __builtin_acc_on_device.
8974         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
8975         of acc_on_device builtin.
8976         * plugin/plugin-host.h: Remove file.
8977         * plugin/plugin-host.c: Likewise, but salvage some content into...
8978         * oacc-host.c: ... this file.
8979         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
8980         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
8981         * Makefile.in: Regenerate.
8982         * configure: Likewise.
8983         * testsuite/lib/libgomp.exp
8984         (check_effective_target_openacc_host_nonshm_selected): Remove.
8985         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
8986         ACC_DEVICE_TYPE=host_nonshm.
8987         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8988         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8989         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
8990         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8991         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8992         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8994 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
8995             Jakub Jelinek  <jakub@redhat.com>
8997         * config/nvptx/affinity.c: New file.
8998         * config/nvptx/alloc.c: Likewise.
8999         * config/nvptx/bar.c: Likewise.
9000         * config/nvptx/barrier.c: Likewise.
9001         * config/nvptx/critical.c: Likewise.
9002         * config/nvptx/env.c: Likewise.
9003         * config/nvptx/error.c: Likewise.
9004         * config/nvptx/fortran.c: Likewise.
9005         * config/nvptx/iter.c: Likewise.
9006         * config/nvptx/iter_ull.c: Likewise.
9007         * config/nvptx/libgomp-plugin.c: Likewise.
9008         * config/nvptx/lock.c: Likewise.
9009         * config/nvptx/loop.c: Likewise.
9010         * config/nvptx/loop_ull.c: Likewise.
9011         * config/nvptx/mutex.c: Likewise.
9012         * config/nvptx/oacc-async.c: Likewise.
9013         * config/nvptx/oacc-cuda.c: Likewise.
9014         * config/nvptx/oacc-host.c: Likewise.
9015         * config/nvptx/oacc-init.c: Likewise.
9016         * config/nvptx/oacc-mem.c: Likewise.
9017         * config/nvptx/oacc-parallel.c: Likewise.
9018         * config/nvptx/oacc-plugin.c: Likewise.
9019         * config/nvptx/omp-lock.h: Likewise.
9020         * config/nvptx/ordered.c: Likewise.
9021         * config/nvptx/parallel.c: Likewise.
9022         * config/nvptx/proc.c: Likewise.
9023         * config/nvptx/ptrlock.c: Likewise.
9024         * config/nvptx/sections.c: Likewise.
9025         * config/nvptx/sem.c: Likewise.
9026         * config/nvptx/single.c: Likewise.
9027         * config/nvptx/splay-tree.c: Likewise.
9028         * config/nvptx/target.c: Likewise.
9029         * config/nvptx/task.c: Likewise.
9030         * config/nvptx/team.c: Likewise.
9031         * config/nvptx/time.c: Likewise.
9032         * config/nvptx/work.c: Likewise.
9033         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
9034         * configure: Regenerate.
9035         * configure.tgt (config_path): Set to "nvptx" for target
9036         nvptx*-*-*.
9038 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
9040         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
9042 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
9044         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
9045         (cuda_errlist): Constify.
9046         (errmsg):  Move into ...
9047         (cuda_error): ... here.  Make smaller.
9048         (_XSTR, _STR): Delete.
9049         (cuda_synames): Delete.
9050         (verify_device_library): Delete.
9051         (nvptx_init): Don't call it.
9053 2015-07-28  Tom de Vries  <tom@codesourcery.com>
9055         * testsuite/libgomp.c/uns-outer-4.c: New test.
9057 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
9059         * testsuite/libgomp.c/pr66714.c: New test.
9061 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
9063         PR libgomp/66950
9064         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
9065         (fib_ref): New function.
9066         (fib): Correct corner cases in the recursion.
9067         (main): Replace the non-simd loop with fib_ref call.
9068         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
9069         subroutine.
9070         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
9071         for the last array element value.  Replace the non-simd loop with
9072         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
9073         of the last array element with according Fibonacci sequence element.
9074         (fib): Correct corner cases in the recursion.
9076 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
9078         * target.c (gomp_offload_image_to_device): Rename to ...
9079         (gomp_load_image_to_device): ... here.
9080         (GOMP_offload_register): Adjust call.
9081         (gomp_init_device): Likewise.
9082         (gomp_unload_image_from_device): New.  Broken out of ...
9083         (GOMP_offload_unregister): ... here.  Call it.
9084         (gomp_unload_device): New.
9085         * libgomp.h (gomp_unload_device): Declare.
9086         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
9087         mem maps.
9089 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
9091         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
9092         wait=-specific if.
9093         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
9094         !=0 condition.
9095         (goacc_waits): Move !num_waits handling to ...
9096         (GOACC_wait): ... here, the only caller that might have zero waits.
9098         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
9099         (struct ptx_image_data): Move earlier, add fns field.
9100         (struct ptx_device): Add images and image_lock fields.
9101         (ptx_images, ptx_image_lock): Delete.
9102         (nvptx_open_device): Initialize images and image_lock fields.
9103         (nvptx_close_device): Destroy image_lock.
9104         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
9105         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
9106         fields.
9108 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
9110         * target.c (GOMP_offload_register): Use int for device type arg.
9111         (GOMP_offload_unregister): Likewise.
9113         * target.c (struct_offload_image_descr): Constify host_table.
9114         (gomp_offload_image_to_device): Likewise.
9115         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
9117         * libgomp.h (gomp_device_descr): Constify target data arguments.
9118         * target.c (struct offload_image_descr): Constify target_data.
9119         (gomp_offload_image_to_device): Likewise.
9120         (GOMP_offload_register): Likewise.
9121         (GOMP_offload_unregister): Likewise.
9122         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
9123         GOMP_OFFLOAD_unload_image): Constify target data.
9124         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
9125         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
9127 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
9129         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
9130         Workaround driver library const error.
9131         (struct nvptx_tdata, nvptx_tdata_t): New.
9132         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
9133         type.
9135 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
9137         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
9138         of EPS parameter from integer to real.
9139         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
9140         type of EPS parameter from integer to real.
9142 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9144         * team.c (get_last_team): New.
9145         (gomp_new_team): Recycle last non-nested team if possible.
9146         (gomp_team_end): Move team work share list free lock destruction
9147         to ...
9148         (free_team): ... here.
9150 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
9152         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
9153         and ref from int to double.  Replaced their comparison with
9154         an inequality of their difference and EPS.
9155         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
9156         comparison of pri and a reference number with an inequality of their
9157         difference and EPS.
9158         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
9159         the comparison of sum and sum_ref with an inequality of their
9160         difference and EPS.
9161         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
9162         the comparison of pri and a reference number with an inequality of
9163         their difference and EPS.
9165 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
9167         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
9168         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
9169         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
9170         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
9171         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
9172         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
9173         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
9174         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
9175         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
9176         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
9177         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
9178         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
9179         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
9180         variables.
9181         (vec_mult): Likewise.  Add #pragma omp taskwait.
9182         (main): Adjust caller.
9183         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
9184         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
9185         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
9186         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
9187         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
9188         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
9189         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
9190         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
9191         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
9192         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
9193         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
9194         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
9195         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
9196         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
9197         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
9198         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
9199         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
9200         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
9201         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
9202         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
9203         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
9204         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
9205         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
9206         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
9207         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
9208         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
9209         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
9210         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
9211         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
9212         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
9213         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
9214         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
9215         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
9216         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
9217         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
9218         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
9219         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
9220         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
9221         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
9222         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
9223         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
9224         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
9225         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
9226         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
9227         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
9228         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
9229         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
9230         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
9231         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
9232         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
9233         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
9234         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
9235         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
9236         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
9237         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
9238         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
9239         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
9240         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
9241         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
9242         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
9243         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
9244         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
9245         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
9246         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
9247         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
9248         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
9249         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
9250         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
9251         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
9252         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
9253         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
9254         (vec_mult): Add !$omp taskwait.
9255         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
9256         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
9257         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
9258         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
9259         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
9260         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
9261         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
9262         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
9263         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
9264         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
9265         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
9266         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
9267         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
9268         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
9269         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
9270         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
9271         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
9272         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
9273         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
9274         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
9275         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
9276         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
9277         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
9278         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
9279         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
9280         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
9281         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
9282         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
9283         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
9284         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
9285         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
9286         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
9287         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
9288         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
9289         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
9290         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
9291         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
9292         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
9293         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
9294         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
9295         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
9296         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
9297         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
9298         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
9299         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
9300         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
9301         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
9302         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
9303         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
9304         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
9305         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
9306         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
9307         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
9308         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
9309         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
9310         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
9311         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
9312         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
9313         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
9314         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
9315         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
9316         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
9317         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
9318         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
9319         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
9320         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
9321         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
9323 2015-07-10  Tom de Vries  <tom@codesourcery.com>
9325         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
9326         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
9328 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
9330         PR libgomp/65099
9331         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
9332         in a 64-bit configuration.
9333         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
9334         offloading testing if no such device is available.
9335         * testsuite/libgomp.oacc-c/c.exp: Likewise.
9336         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
9338 2015-07-08  Tom de Vries  <tom@codesourcery.com>
9340         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
9341         second call to f.
9342         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
9344 2015-07-07  Tom de Vries  <tom@codesourcery.com>
9346         PR tree-optimization/66642
9347         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
9348         iteration count case.
9349         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
9350         function, factor out of ...
9351         (main): ... here.  Test low iteration count case.
9353 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9355         * libgomp.h (gomp_thread_pool): Comment last_team field.
9357 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
9359         * testsuite/libgomp.c++/pr66702-1.C: Require
9360         vect_simd_clones effective target.
9361         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
9363 2015-06-30  Tom de Vries  <tom@codesourcery.com>
9365         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
9366         already set.  Use DEFAULT_CFLAGS in dg-runtest.
9367         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
9368         "-O2".
9370 2015-06-30  Tom de Vries  <tom@codesourcery.com>
9372         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
9373         already set.  Use DEFAULT_CFLAGS in dg-runtest.
9374         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
9375         * testsuite/libgomp.c++/pr64824.C: Same.
9376         * testsuite/libgomp.c++/pr64868.C: Same.
9377         * testsuite/libgomp.c++/pr66199-1.C: Same.
9378         * testsuite/libgomp.c++/pr66199-2.C: Same.
9379         * testsuite/libgomp.c++/target-2.C: Same.
9380         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
9381         -std=<standard> option.
9382         * testsuite/libgomp.c++/udr-11.C: Same.
9383         * testsuite/libgomp.c++/udr-12.C: Same.
9384         * testsuite/libgomp.c++/udr-13.C: Same.
9385         * testsuite/libgomp.c++/udr-14.C: Same.
9386         * testsuite/libgomp.c++/udr-15.C: Same.
9387         * testsuite/libgomp.c++/udr-16.C: Same.
9388         * testsuite/libgomp.c++/udr-17.C: Same.
9389         * testsuite/libgomp.c++/udr-18.C: Same.
9390         * testsuite/libgomp.c++/udr-19.C: Same.
9391         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
9392         * testsuite/libgomp.c++/simd-1.C: Same.
9393         * testsuite/libgomp.c++/simd-2.C: Same.
9394         * testsuite/libgomp.c++/simd-3.C: Same.
9395         * testsuite/libgomp.c++/simd-4.C: Same.
9396         * testsuite/libgomp.c++/simd-5.C: Same.
9397         * testsuite/libgomp.c++/simd-6.C: Same.
9398         * testsuite/libgomp.c++/simd-7.C: Same.
9399         * testsuite/libgomp.c++/simd-8.C: Same.
9400         * testsuite/libgomp.c++/simd-9.C: Same.
9401         * testsuite/libgomp.c++/simd10.C: Same.
9402         * testsuite/libgomp.c++/simd11.C: Same.
9403         * testsuite/libgomp.c++/simd12.C: Same.
9404         * testsuite/libgomp.c++/simd13.C: Same.
9406 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
9408         PR middle-end/66702
9409         * testsuite/libgomp.c++/pr66702-1.C: New test.
9410         * testsuite/libgomp.c++/pr66702-2.C: New test.
9412 2015-06-30  Tom de Vries  <tom@codesourcery.com>
9414         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
9415         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
9416         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
9417         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
9419 2015-06-30  Tom de Vries  <tom@codesourcery.com>
9421         PR tree-optimization/66652
9422         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
9423         using restrict pointers.
9424         (main): Add arguments to calls to f.
9425         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
9427 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
9429         * configure.ac: Fix check for header <sys/sysctl.h>.
9430         * configure: Regenerate.
9431         * config.h.in: Likewise.
9433 2015-06-23  Tom de Vries  <tom@codesourcery.com>
9435         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
9436         abort.
9437         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
9439 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
9441         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
9442         acc_device_nvidia.
9444         PR libgomp/66518
9445         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
9446         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
9448 2015-06-15  Tom de Vries  <tom@codesourcery.com>
9450         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
9451         dg-additional-options for any remaining options.
9452         * testsuite/libgomp.c/atomic-2.c: Same.
9453         * testsuite/libgomp.c/atomic-4.c: Same.
9454         * testsuite/libgomp.c/atomic-5.c: Same.
9455         * testsuite/libgomp.c/atomic-6.c: Same.
9456         * testsuite/libgomp.c/autopar-1.c: Same.
9457         * testsuite/libgomp.c/copyin-1.c: Same.
9458         * testsuite/libgomp.c/copyin-2.c: Same.
9459         * testsuite/libgomp.c/copyin-3.c: Same.
9460         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
9461         * testsuite/libgomp.c/nestedfn-5.c: Same.
9462         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
9463         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
9464         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
9465         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
9466         * testsuite/libgomp.c/pr32362-1.c: Same.
9467         * testsuite/libgomp.c/pr32362-2.c: Same.
9468         * testsuite/libgomp.c/pr32362-3.c: Same.
9469         * testsuite/libgomp.c/pr39591-1.c: Same.
9470         * testsuite/libgomp.c/pr39591-2.c: Same.
9471         * testsuite/libgomp.c/pr39591-3.c: Same.
9472         * testsuite/libgomp.c/pr58392.c: Same.
9473         * testsuite/libgomp.c/pr58756.c: Same.
9474         * testsuite/libgomp.c/simd-1.c: Same.
9475         * testsuite/libgomp.c/simd-10.c: Same.
9476         * testsuite/libgomp.c/simd-11.c: Same.
9477         * testsuite/libgomp.c/simd-12.c: Same.
9478         * testsuite/libgomp.c/simd-13.c: Same.
9479         * testsuite/libgomp.c/simd-14.c: Same.
9480         * testsuite/libgomp.c/simd-15.c: Same.
9481         * testsuite/libgomp.c/simd-2.c: Same.
9482         * testsuite/libgomp.c/simd-3.c: Same.
9483         * testsuite/libgomp.c/simd-4.c: Same.
9484         * testsuite/libgomp.c/simd-5.c: Same.
9485         * testsuite/libgomp.c/simd-6.c: Same.
9486         * testsuite/libgomp.c/simd-7.c: Same.
9487         * testsuite/libgomp.c/simd-8.c: Same.
9488         * testsuite/libgomp.c/simd-9.c: Same.
9490 2015-06-15  Tom de Vries  <tom@codesourcery.com>
9492         * testsuite/libgomp.c/pr35625.c: Fix typo.
9494 2015-06-15  Tom de Vries  <tom@codesourcery.com>
9496         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
9497         in dg-options.
9498         * testsuite/libgomp.c/atomic-3.c: Same.
9499         * testsuite/libgomp.c/debug-1.c: Same.
9500         * testsuite/libgomp.c/nqueens-1.c: Same.
9501         * testsuite/libgomp.c/pr26171.c: Same.
9502         * testsuite/libgomp.c/pr48591.c: Same.
9503         * testsuite/libgomp.c/pr64824.c: Same.
9504         * testsuite/libgomp.c/pr64868.c: Same.
9505         * testsuite/libgomp.c/pr66133.c: Same.
9506         * testsuite/libgomp.c/pr66199-1.c: Same.
9507         * testsuite/libgomp.c/pr66199-2.c: Same.
9508         * testsuite/libgomp.c/target-8.c: Same.
9510 2015-06-15  Tom de Vries  <tom@codesourcery.com>
9512         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
9513         -std={gnu99,c99}.
9514         * testsuite/libgomp.c/for-1.c: Same.
9515         * testsuite/libgomp.c/for-2.c: Same.
9516         * testsuite/libgomp.c/for-3.c: Same.
9517         * testsuite/libgomp.c/pr35625.c: Same.
9518         * testsuite/libgomp.c/pr39154.c: Same.
9519         * testsuite/libgomp.c/simd-16.c: Same.
9520         * testsuite/libgomp.c/simd-17.c: Same.
9522 2015-06-13  Tom de Vries  <tom@codesourcery.com>
9524         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
9526 2015-06-13  Tom de Vries  <tom@codesourcery.com>
9528         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
9529         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
9530         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
9531         (N): Define.
9532         (main): Use N instead of hardcoded constants.
9534 2015-06-05  Tom de Vries  <tom@codesourcery.com>
9536         merge from gomp4 branch:
9537         2015-05-28  Tom de Vries  <tom@codesourcery.com>
9539         PR tree-optimization/65443
9540         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
9541         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
9542         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
9544 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9546         * testsuite/libgomp.graphite/bounds.c: Adjust for
9547         cleanup-tree-dump removal.
9548         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
9549         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9550         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9551         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
9552         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9553         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9554         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9555         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9556         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9557         * testsuite/libgomp.graphite/pr41118.c: Likewise.
9559 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
9561         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
9562         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
9563         (futex_wake) [!__x86_64__]: Ditto.
9565 2015-05-28  Julian Brown  <julian@codesourcery.com>
9567         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
9568         function comment. Only call gomp_fatal if new argument is true.
9569         (acc_dev_num_out_of_range): New function.
9570         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
9571         acc_dev_num_out_of_range as appropriate.
9572         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
9573         (acc_get_device_num, acc_set_device_num): Update calls to
9574         resolve_device.
9575         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
9576         output.
9578 2015-05-28  Julian Brown  <julian@codesourcery.com>
9580         PR libgomp/65742
9581         * oacc-init.c (plugin/plugin-host.h): Include.
9582         (acc_on_device): Check whether we're in an offloaded region for
9583         host_nonshm
9584         plugin. Don't use __builtin_acc_on_device.
9585         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
9586         nonshm_exec flag in thread-local data.
9587         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
9588         data for host_nonshm plugin.
9589         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
9590         for host_nonshm plugin.
9591         * plugin/plugin-host.h: New.
9593 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
9595         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
9597 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
9599         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
9600         Declare as int.
9601         (FUTEX_PRIVATE_FLAG): Remove L suffix.
9602         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
9603         Declare as int.
9605 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
9607         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
9609 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
9611         * target.c (gomp_map_pointer): New function abstracting out
9612         GOMP_MAP_POINTER handling.
9613         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
9614         gomp_map_pointer().
9616 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
9618         PR middle-end/66199
9619         * testsuite/libgomp.c/pr66199-1.c: New test.
9620         * testsuite/libgomp.c/pr66199-2.c: New test.
9621         * testsuite/libgomp.c++/pr66199-1.C: New test.
9622         * testsuite/libgomp.c++/pr66199-2.C: New test.
9623         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
9624         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
9626 2015-05-19  Julian Brown  <julian@codesourcery.com>
9628         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
9629         on cuInit failure.
9631 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
9633         PR middle-end/66133
9634         * testsuite/libgomp.c/pr66133.c: New test.
9636 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
9638         * Makefile.in: Regenerated with automake-1.11.6.
9639         * aclocal.m4: Likewise.
9640         * config.h.in: Likewise.
9641         * configure: Likewise.
9642         * testsuite/Makefile.in: Likewise.
9644 2015-05-08  Jason Merrill  <jason@redhat.com>
9646         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
9647         _Complex.
9649         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
9651 2015-05-06  Julian Brown  <julian@codesourcery.com>
9653         * oacc-init.c (acc_device_lock): Add explanatory comment.
9654         (resolve_device): Add comment about locking requirement.
9655         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
9656         gomp_init_device and gomp_fini_device calls.
9657         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
9658         (acc_get_device_num, acc_set_device_num): Add locking around
9659         resolve_device and gomp_init_device calls.
9661 2015-05-06  Julian Brown  <julian@codesourcery.com>
9663         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
9664         goacc_thread_lock on error paths.
9665         * oacc-mem.c (lookup_host): Remove locking from function. Note
9666         locking requirement for caller in function comment.
9667         (lookup_dev): Likewise.
9668         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
9669         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
9670         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
9671         Add locking.
9673 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
9675         PR testsuite/65205
9676         PR libgomp/65993
9677         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
9678         don't expect "0x" prefix for "%p" format specifier, don't expect
9679         "(nil)" for NULL pointer.
9680         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
9681         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
9682         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
9683         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
9684         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
9685         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
9686         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
9687         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
9688         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
9689         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
9690         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
9691         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
9692         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
9693         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
9694         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
9695         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
9696         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
9697         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
9698         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
9699         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
9700         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
9701         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
9702         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
9703         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
9704         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
9705         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
9706         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
9707         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
9708         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
9709         accurately specify what we're looking for.
9710         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
9711         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
9712         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
9713         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
9714         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
9716 2015-04-30  James Norris  <jnorris@codesourcery.com>
9718         PR testsuite/65205
9719         * testsuite/lib/libgomp.exp
9720         (check_effective_target_openacc_host_selected)
9721         (check_effective_target_openacc_host_nonshm_selected): New
9722         procedures.
9723         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
9724         dg-shouldfail.
9725         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
9726         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
9727         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
9728         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
9729         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
9730         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
9731         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
9732         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
9733         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
9734         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
9735         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
9736         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
9737         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
9738         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
9739         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
9740         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
9741         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
9742         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
9743         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
9744         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
9745         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
9746         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
9747         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
9748         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
9749         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
9750         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
9751         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
9752         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
9753         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
9754         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
9755         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
9756         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
9757         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
9758         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
9759         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
9760         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
9761         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
9762         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
9763         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
9764         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
9765         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
9766         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
9767         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
9769 2015-04-08  Julian Brown  <julian@codesourcery.com>
9771         * libgomp.h (target_mem_desc: Remove mem_map field.
9772         (acc_dispatch_t): Remove open_device_func, close_device_func,
9773         get_device_num_func, set_device_num_func, target_data members.
9774         Change create_thread_data_func argument to device number instead of
9775         generic pointer.
9776         * oacc-async.c (assert.h): Include.
9777         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
9778         (acc_wait_all, acc_wait_all_async): Use current host thread's
9779         active device, not base_dev.
9780         * oacc-cuda.c (acc_get_current_cuda_device)
9781         (acc_get_current_cuda_context, acc_get_cuda_stream)
9782         (acc_set_cuda_stream): Likewise.
9783         * oacc-host.c (host_dispatch): Don't set open_device_func,
9784         close_device_func, get_device_num_func or set_device_num_func.
9785         * oacc-init.c (base_dev, init_key): Remove.
9786         (cached_base_dev): New.
9787         (name_of_acc_device_t): New.
9788         (acc_init_1): Initialise default-numbered device, not zeroth.
9789         (acc_shutdown_1): Close all devices of a given type.
9790         (goacc_destroy_thread): Don't use base_dev.
9791         (lazy_open, lazy_init, lazy_init_and_open): Remove.
9792         (goacc_attach_host_thread_to_device): New.
9793         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
9794         (acc_get_num_devices): Don't use base_dev.
9795         (acc_set_device_type): Reimplement.
9796         (acc_get_device_type): Don't use base_dev.
9797         (acc_get_device_num): Tweak logic.
9798         (acc_set_device_num): Likewise.
9799         (acc_on_device): Use acc_get_device_type.
9800         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
9801         (goacc_lazy_initialize): Reimplement with acc_init and
9802         goacc_attach_host_thread_to_device.
9803         * oacc-int.h (goacc_thread): Add base_dev field.
9804         (base_dev): Remove extern declaration.
9805         (goacc_attach_host_thread_to_device): Add prototype.
9806         * oacc-mem.c (acc_malloc): Use current thread's device instead of
9807         base_dev.
9808         (acc_free): Likewise.
9809         (acc_memcpy_to_device): Likewise.
9810         (acc_memcpy_from_device): Likewise.
9811         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
9812         goacc_lazy_initialize (throughout).
9813         (GOACC_parallel): Use tgt_offset to locate target functions.
9814         * target.c (gomp_map_vars): Don't set tgt->mem_map.
9815         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
9816         (gomp_load_plugin_for_device): Remove open_device, close_device,
9817         get_device_num, set_device_num openacc hook initialisation. Don't set
9818         openacc.target_data.
9819         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
9820         (GOMP_OFFLOAD_openacc_close_device)
9821         (GOMP_OFFLOAD_openacc_get_device_num)
9822         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
9823         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
9824         to int.
9825         * plugin/plugin-nvptx.c (ptx_inited): Remove.
9826         (instantiated_devices, ptx_dev_lock): New.
9827         (struct ptx_image_data): New.
9828         (ptx_devices, ptx_images, ptx_image_lock): New.
9829         (fini_streams_for_device): Reorder cuStreamDestroy call.
9830         (nvptx_get_num_devices): Remove forward declaration.
9831         (nvptx_init): Change return type to bool.
9832         (nvptx_fini): Remove.
9833         (nvptx_attach_host_thread_to_device): New.
9834         (nvptx_open_device): Return struct ptx_device* instead of void*.
9835         (nvptx_close_device): Change argument type to struct ptx_device*,
9836         return type to void.
9837         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
9838         (kernel_target_data, kernel_host_table): Remove static globals.
9839         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
9840         (GOMP_OFFLOAD_init_device): Reimplement.
9841         (GOMP_OFFLOAD_fini_device): Likewise.
9842         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
9843         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
9844         (GOMP_OFFLOAD_host2dev): Use ORD argument.
9845         (GOMP_OFFLOAD_openacc_open_device)
9846         (GOMP_OFFLOAD_openacc_close_device)
9847         (GOMP_OFFLOAD_openacc_set_device_num)
9848         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
9849         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
9850         (device number).
9852         testsuite/
9853         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
9855 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
9857         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
9858         * libgomp.h (struct gomp_memory_mapping): Remove.
9859         (struct target_mem_desc): Change type of mem_map from
9860         gomp_memory_mapping * to splay_tree_s *.
9861         (struct gomp_device_descr): Remove register_image_func, get_table_func.
9862         Add load_image_func, unload_image_func.
9863         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
9864         Remove offload_regions_registered.
9865         (gomp_init_tables): Remove.
9866         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
9867         to splay_tree_s *.
9868         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
9869         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
9870         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
9871         offload_regions_registered.
9872         Initialize load_image_func, unload_image_func, mem_map.root.
9873         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
9874         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
9875         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
9876         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
9877         gomp_memory_mapping *.  Use dev's lock and splay_tree.
9878         (lookup_dev): Use dev's lock.
9879         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
9880         (acc_is_present): Likewise.
9881         (acc_map_data): Likewise.
9882         (acc_unmap_data): Likewise.  Use dev's lock.
9883         (present_create_copy): Likewise.
9884         (delete_copyout): Pass dev to lookup_host instead of mem_map.
9885         (update_dev_host): Likewise.
9886         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
9887         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
9888         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
9889         (GOMP_OFFLOAD_get_table): Remove
9890         (GOMP_OFFLOAD_load_image): New function.
9891         (GOMP_OFFLOAD_unload_image): New function.
9892         * target.c (register_lock): New mutex for offload image registration.
9893         (num_devices): Do not guard with PLUGIN_SUPPORT.
9894         (gomp_realloc_unlock): New static function.
9895         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
9896         before gomp_fatal.
9897         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
9898         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
9899         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
9900         mem_map's.
9901         (gomp_unmap_vars): Likewise.
9902         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
9903         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
9904         (gomp_offload_image_to_device): New static function.
9905         (GOMP_offload_register): Add mutex lock.
9906         Call gomp_offload_image_to_device for all initialized devices.
9907         Replace gomp_realloc with gomp_realloc_unlock.
9908         (GOMP_offload_unregister): New function.
9909         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
9910         get_table_func from the plugin with calls to init_device_func and
9911         gomp_offload_image_to_device.
9912         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
9913         to splay_tree_s *.
9914         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
9915         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
9916         (GOMP_target_data): Do not call gomp_init_tables.
9917         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
9918         (gomp_load_plugin_for_device): Replace register_image and get_table
9919         with load_image and unload_image in DLSYM ().
9920         (gomp_register_images_for_device): Remove function.
9921         (gomp_target_init): Do not initialize current_device.mem_map.*,
9922         current_device.offload_regions_registered.
9923         Remove call to gomp_register_images_for_device.
9924         Do not free offload_images and num_offload_images.
9926 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
9928         PR fortran/65597
9929         * testsuite/libgomp.fortran/pr65597.f90: New test.
9931 2015-03-27  Tom de Vries  <tom@codesourcery.com>
9933         PR testsuite/65594
9934         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
9935         (init, check): New function.
9936         (foo): Change return type to void.
9937         (main): Call init and check.
9939 2015-03-27  Tom de Vries  <tom@codesourcery.com>
9941         PR testsuite/65594
9942         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
9943         (foo): Use M for non-inner loops to scale down test-case.
9945 2015-03-25  Kai Tietz  <ktietz@redhat.com>
9947         PR libgomp/64972
9948         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
9949         (GOACC_data_start): Likewise.
9950         * target.c (gomp_map_vars): Likewise.
9952 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
9954         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
9955         hppa*-*-hpux*.
9957 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
9959         * testsuite/libgomp.c/target-10.c: New test.
9960         * testsuite/libgomp.c++/target-4.C: New test.
9962 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
9964         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
9965         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
9967 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9969         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
9970         * configure.ac (*-*-rtems*): Assume Pthread is supported.
9971         (pthread.h): Check for this header file.
9972         * configure: Regenerate.
9974 2015-02-25  Tom de Vries  <tom@codesourcery.com>
9976         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
9977         (check_reduction_op, check_reduction_macro, max, min):
9978         Declare.
9979         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
9980         function.
9981         (main): Use new functions.
9983 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
9985         * target.c (gomp_load_plugin_for_device): Use const char * instead of
9986         char * for variables holding dlerror return values.
9987         (DLSYM_OPT): Ditto.
9989 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
9991         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
9993 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
9994             Cesar Philippidis  <cesar@codesourcery.com>
9996         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
9997         GOACC_ctaid, and GOACC_nctaid routines.
9999 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
10001         PR c/64824
10002         * testsuite/libgomp.c/atomic-18.c: New test.
10003         * testsuite/libgomp.c++/atomic-16.C: New test.
10005 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
10007         PR c/64824
10008         PR c/64868
10009         * testsuite/libgomp.c/pr64824.c: New test.
10010         * testsuite/libgomp.c/pr64868.c: New test.
10011         * testsuite/libgomp.c++/pr64824.C: New test.
10012         * testsuite/libgomp.c++/pr64868.C: New test.
10014 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
10016         PR libgomp/64635
10017         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
10018         Link with -lpthread.
10019         * config/aix/plugin-suffix.h: Delete.
10021 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
10023         PR libgomp/64635
10024         * configure.tgt (*-*-aix*): Use config_path "aix posix".
10025         (*-*-darwin*): Use config_path "bsd darwin posix".
10026         (*-*-hpux*): Use config_path "hpux posix".
10027         * target.c: Add include of plugin-suffix.h and use
10028         SONAME_SUFFIX macro.
10029         * config/aix/plugin-suffix.h: New file.
10030         * config/darwin/plugin-suffix.h: New file.
10031         * config/hpux/plugin-suffix.h: New file.
10032         * config/posix/plugin-suffix.h: New file.
10034 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
10036         PR middle-end/64734
10037         * libgomp.c/pr64734.c: New test.
10039 2015-01-23  Tom de Vries  <tom@codesourcery.com>
10041         PR libgomp/64672
10042         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
10044 2015-01-23  Tom de Vries  <tom@codesourcery.com>
10046         PR libgomp/64707
10047         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
10048         dg-options.
10050 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
10052         PR libgomp/64625
10053         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
10054         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
10055         formal parameter.  Update all users.
10056         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
10057         Document unused formal parameter.
10059 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
10061         * oacc-parallel.c: Don't include <alloca.h>.
10062         (GOACC_parallel): Use gomp_alloca instead of alloca.
10064 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
10066         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
10068 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
10069             James Norris  <jnorris@codesourcery.com>
10070             Tom de Vries  <tom@codesourcery.com>
10071             Julian Brown  <julian@codesourcery.com>
10072             Cesar Philippidis  <cesar@codesourcery.com>
10073             Nathan Sidwell  <nathan@codesourcery.com>
10074             Tobias Burnus  <burnus@net-b.de>
10076         * Makefile.am (search_path): Add $(top_srcdir)/../include.
10077         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
10078         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
10079         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
10080         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
10081         Include $(top_srcdir)/plugin/Makefrag.am.
10082         (nodist_libsubinclude_HEADERS): Add openacc.h.
10083         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
10084         openacc.f90, openacc.mod, openacc_kinds.mod.
10085         (omp_lib.mod): Generalize into...
10086         (%.mod): ... this new rule.
10087         (openacc_kinds.mod, openacc.mod): New rules.
10088         * plugin/configfrag.ac: New file.
10089         * configure.ac: Move plugin/offloading support into it.  Include
10090         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
10091         * plugin/Makefrag.am: New file.
10092         * testsuite/Makefile.am (OFFLOAD_TARGETS)
10093         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
10094         export.
10095         (libgomp-test-support.exp): New rule.
10096         (all-local): Depend on it.
10097         * Makefile.in: Regenerate.
10098         * testsuite/Makefile.in: Regenerate.
10099         * config.h.in: Likewise.
10100         * configure: Likewise.
10101         * configure.tgt: Harden shell syntax.
10102         * env.c: Include "oacc-int.h".
10103         (parse_acc_device_type): New function.
10104         (gomp_debug_var, goacc_device_type, goacc_device_num): New
10105         variables.
10106         (initialize_env): Initialize those.  Call
10107         goacc_runtime_initialize.
10108         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
10109         (gomp_fatal): Call gomp_vfatal.
10110         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
10111         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
10112         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
10113         (splay_tree_node, splay_tree, splay_tree_key)
10114         (struct target_mem_desc, struct splay_tree_key_s)
10115         (struct gomp_memory_mapping, struct acc_dispatch_t)
10116         (struct gomp_device_descr, gomp_acc_insert_pointer)
10117         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
10118         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
10119         (gomp_free_memmap, gomp_fini_device): New declarations.
10120         (gomp_vdebug, gomp_debug): New macros.
10121         Include "splay-tree.h".
10122         * libgomp.map (OACC_2.0): New symbol version.  Use for
10123         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
10124         acc_set_device_type_h_, acc_get_device_type,
10125         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
10126         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
10127         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
10128         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
10129         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
10130         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
10131         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
10132         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
10133         acc_copyin_array_h_, acc_present_or_copyin,
10134         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
10135         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
10136         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
10137         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
10138         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
10139         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
10140         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
10141         acc_update_device, acc_update_device_32_h_,
10142         acc_update_device_64_h_, acc_update_device_array_h_,
10143         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
10144         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
10145         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
10146         acc_is_present_64_h_, acc_is_present_array_h_,
10147         acc_memcpy_to_device, acc_memcpy_from_device,
10148         acc_get_current_cuda_device, acc_get_current_cuda_context,
10149         acc_get_cuda_stream, acc_set_cuda_stream.
10150         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
10151         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
10152         GOACC_update, GOACC_wait, GOACC_get_thread_num,
10153         GOACC_get_num_threads.
10154         (GOMP_PLUGIN_1.0): New symbol version.  Use for
10155         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
10156         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
10157         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
10158         GOMP_PLUGIN_acc_thread.
10159         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
10160         environment variable.
10161         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
10162         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
10163         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
10164         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
10165         (splay_tree_remove): New declarations.
10166         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
10167         (splay_tree_remove, splay_tree_lookup): Move into...
10168         * splay-tree.c: ... this new file.
10169         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
10170         (splay_tree_node, splay_tree, splay_tree_key)
10171         (struct target_mem_desc, struct splay_tree_key_s)
10172         (struct gomp_device_descr): Don't declare.
10173         (num_devices_openmp): New variable.
10174         (gomp_get_num_devices ): Use it.
10175         (gomp_init_targets_once): New function.
10176         (gomp_get_num_devices ): Use it.
10177         (get_kind, gomp_copy_from_async, gomp_free_memmap)
10178         (gomp_fini_device, gomp_register_image_for_device): New functions.
10179         (gomp_map_vars): Add devaddrs parameter.
10180         (gomp_update): Add mm parameter.
10181         (gomp_init_device): Move most of it into...
10182         (gomp_init_tables): ... this new function.
10183         (gomp_register_images_for_device): Remove function.
10184         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
10185         Make them hidden instead of static.
10186         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
10187         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
10188         (GOMP_target_end_data, GOMP_target_update)
10189         (gomp_load_plugin_for_device, gomp_target_init): Update for
10190         OpenACC changes.
10191         * oacc-async.c: New file.
10192         * oacc-cuda.c: Likewise.
10193         * oacc-host.c: Likewise.
10194         * oacc-init.c: Likewise.
10195         * oacc-int.h: Likewise.
10196         * oacc-mem.c: Likewise.
10197         * oacc-parallel.c: Likewise.
10198         * oacc-plugin.c: Likewise.
10199         * oacc-plugin.h: Likewise.
10200         * oacc-ptx.h: Likewise.
10201         * openacc.f90: Likewise.
10202         * openacc.h: Likewise.
10203         * openacc_lib.h: Likewise.
10204         * plugin/plugin-host.c: Likewise.
10205         * plugin/plugin-nvptx.c: Likewise.
10206         * libgomp-plugin.c: Likewise.
10207         * libgomp-plugin.h: Likewise.
10208         * libgomp_target.h: Remove file after merging content into the
10209         former file.  Update all users.
10210         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
10211         (offload_targets_s, offload_targets_s_openacc): New variables.
10212         (check_effective_target_openacc_nvidia_accel_present)
10213         (check_effective_target_openacc_nvidia_accel_selected): New
10214         procedures.
10215         (libgomp_init): Update for OpenACC changes.
10216         * testsuite/libgomp-test-support.exp.in: New file.
10217         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
10218         * testsuite/libgomp.oacc-c/c.exp: Likewise.
10219         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
10220         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
10221         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
10222         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
10223         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
10224         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
10225         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
10226         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
10227         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
10228         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
10229         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
10230         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
10231         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
10232         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
10233         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
10234         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
10235         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
10236         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
10237         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
10238         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
10239         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
10240         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
10241         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
10242         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
10243         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
10244         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
10245         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
10246         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
10247         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
10248         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
10249         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
10250         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
10251         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
10252         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
10253         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
10254         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
10255         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
10256         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
10257         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
10258         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
10259         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
10260         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
10261         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
10262         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
10263         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
10264         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
10265         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
10266         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
10267         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
10268         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
10269         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
10270         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
10271         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
10272         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
10273         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
10274         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
10275         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
10276         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
10277         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
10278         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
10279         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
10280         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
10281         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
10282         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
10283         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
10284         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
10285         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
10286         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
10287         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
10288         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
10289         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
10290         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
10291         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
10292         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
10293         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
10294         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
10295         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
10296         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
10297         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
10298         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
10299         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
10300         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
10301         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
10302         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
10303         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
10304         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
10305         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
10306         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
10307         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
10308         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
10309         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
10310         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
10311         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
10312         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
10313         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
10314         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
10315         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
10316         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
10317         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
10318         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
10319         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
10320         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
10321         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
10322         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
10323         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
10324         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
10325         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
10326         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
10327         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
10328         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
10329         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
10330         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
10331         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
10332         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
10333         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
10334         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
10335         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
10336         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
10337         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
10338         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
10339         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
10340         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
10341         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
10342         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
10343         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
10344         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
10345         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
10346         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
10347         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
10348         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
10349         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
10350         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
10351         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
10352         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
10353         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
10354         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
10355         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
10356         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
10357         Likewise.
10358         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
10359         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
10360         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
10361         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
10362         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
10363         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
10364         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
10365         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
10366         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
10367         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
10368         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
10369         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
10370         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
10371         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
10372         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
10373         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
10374         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
10375         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
10376         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
10377         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
10378         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
10379         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
10380         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
10381         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
10382         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
10383         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
10384         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
10385         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
10386         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
10387         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
10388         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
10389         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
10390         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
10391         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
10392         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
10393         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
10394         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
10395         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
10396         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
10397         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
10398         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
10399         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
10400         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
10401         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
10402         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
10403         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
10404         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
10405         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
10406         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
10407         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
10408         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
10409         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
10410         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
10411         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
10412         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
10413         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
10414         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
10415         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
10416         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
10417         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
10419 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
10420             Julian Brown  <julian@codesourcery.com>
10421             David Malcolm  <dmalcolm@redhat.com>
10423         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
10424         to "GNU Offloading and Multi Processing Runtime Library".  Change
10425         all users.
10426         * configure: Regenerate.
10427         * libgomp.texi: Update.
10429 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
10431         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
10432         "$tgt_dir/lib32".
10433         * configure: Regenerate.
10435         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
10436         "intelmic" in $offload_targets.
10438 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
10440         Update copyright years.
10442         * libgomp.texi: Bump @copying's copyright year.
10444 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10446         * testsuite/lib/libgomp.exp: Load target-utils.exp.
10447         Move load of target-supports.exp earlier.
10449 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
10451         * testsuite/libgomp.c/target-9.c: New test.
10453 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
10455         * config.h.in: Regenerate.
10456         * configure: Regenerate.
10457         * configure.ac: Add GCC_CHECK_EMUTLS.
10458         * libgomp.h: Add check for USE_EMUTLS: this case
10459         is equal to HAVE_TLS.
10460         * team.c: Likewise.
10462 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
10464         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
10466 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
10467             Ilya Verbin  <ilya.verbin@intel.com>
10469         * testsuite/libgomp.c/target-critical-1.c: New test.
10471 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
10473         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
10474         to dg-options unless expensive testing is on.
10475         (TESTITERS): Define to N if not defined.
10476         (main): Use TESTITERS instead of N.
10477         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
10478         dg-additional-options depending on whether expensive testing is on.
10479         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
10480         Decrease N to 100000 and CHUNKSZ to 10000.
10482 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
10484         PR fortran/63938
10485         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
10486         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
10488 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
10490         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
10492 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
10494         PR bootstrap/63784
10495         * configure: Regenerated.
10497 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
10499         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
10500         vect_simd_clones effective target.
10501         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
10503 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
10505         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
10506         of 32 as block_size.
10507         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
10508         instead of 32 as block_size.
10510 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
10511             Ilya Verbin  <ilya.verbin@intel.com>
10513         * Makefile.in: Regenerate.
10514         * configure: Regenerate.
10515         * configure.ac: Set up offload_additional_options,
10516         offload_additional_lib_paths and offload_targets.
10517         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
10518         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
10519         * testsuite/Makefile.in: Regenerate.
10520         * testsuite/lib/libgomp.exp (libgomp_init): Append
10521         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
10522         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
10523         build directory to LD_LIBRARY_PATH for intelmic offload targets.
10525 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
10526             Ilya Verbin  <ilya.verbin@intel.com>
10527             Kirill Yukhin  <kirill.yukhin@intel.com>
10528             Ilya Tocar  <ilya.tocar@intel.com>
10530         * testsuite/lib/libgomp.exp
10531         (check_effective_target_offload_device): New.
10532         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
10533         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
10534         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
10535         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
10536         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
10537         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
10538         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
10539         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
10540         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
10541         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
10542         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
10543         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
10544         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
10545         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
10546         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
10547         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
10548         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
10549         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
10550         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
10551         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
10552         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
10553         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
10554         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
10555         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
10556         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
10557         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
10558         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
10559         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
10560         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
10561         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
10562         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
10563         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
10564         * testsuite/libgomp.c/target-7.c: Fix test.
10565         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
10566         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
10567         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
10568         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
10569         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
10570         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
10571         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
10572         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
10573         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
10574         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
10575         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
10576         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
10577         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
10578         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
10579         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
10580         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
10581         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
10582         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
10583         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
10584         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
10585         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
10586         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
10587         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
10588         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
10589         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
10590         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
10591         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
10592         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
10593         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
10594         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
10595         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
10597 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
10598             Ilya Verbin  <ilya.verbin@intel.com>
10599             Thomas Schwinge  <thomas@codesourcery.com>
10600             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10602         * libgomp.map (GOMP_4.0.1): New symbol version.
10603         Add GOMP_offload_register.
10604         * libgomp_target.h: New file.
10605         * splay-tree.h: New file.
10606         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
10607         (gomp_target_init): New forward declaration.
10608         (gomp_is_initialized): New static variable.
10609         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
10610         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
10611         New structures.
10612         (offload_images, num_offload_images, devices, num_devices): New static
10613         variables.
10614         (splay_compare): New static function.
10615         (struct gomp_device_descr): New structure.
10616         (gomp_get_num_devices): Call gomp_target_init.
10617         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
10618         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
10619         (GOMP_offload_register): New function.
10620         (GOMP_target): Arrange for host callback to be performed in a separate
10621         initial thread and contention group, inheriting ICVs from
10622         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
10623         Add device initialization and lookup for target function in splay tree.
10624         (GOMP_target_data): Add device initialization and call gomp_map_vars.
10625         (GOMP_target_end_data): Call gomp_unmap_vars.
10626         (GOMP_target_update): Add device initialization and call gomp_update.
10627         (gomp_load_plugin_for_device, gomp_register_images_for_device)
10628         (gomp_target_init): New static functions.
10630 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
10631             Thomas Schwinge  <thomas@codesourcery.com>
10632             Ilya Verbin  <ilya.verbin@intel.com>
10633             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10635         * config.h.in: Regenerate.
10636         * configure: Regenerate.
10637         * configure.ac: Check for libdl, required for plugin support.
10638         (PLUGIN_SUPPORT): Define if plugins are supported.
10639         (enable_offload_targets): Support Intel MIC targets.
10640         (OFFLOAD_TARGETS): List of target names suitable for offloading.
10642 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10644         PR target/63610
10645         * configure: Regenerate.
10647 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10649         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
10651 2014-10-06  Marek Polacek  <polacek@redhat.com>
10653         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
10654         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
10655         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
10656         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
10658 2014-10-06  Marek Polacek  <polacek@redhat.com>
10660         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
10661         * testsuite/libgomp.c/nqueens-1.c: Likewise.
10662         * testsuite/libgomp.c/pr26943-3.c: Likewise.
10663         * testsuite/libgomp.c/pr26943-4.c: Likewise.
10664         * testsuite/libgomp.c/pr36802-2.c: Likewise.
10665         * testsuite/libgomp.c/pr36802-3.c: Likewise.
10666         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
10667         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
10668         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
10669         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
10670         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
10671         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
10672         * testsuite/libgomp.c/omp-single-1.c: Likewise.
10673         * testsuite/libgomp.c/omp-single-2.c: Likewise.
10674         * testsuite/libgomp.c/omp_matvec.c: Likewise.
10675         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
10676         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
10677         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
10678         declarations.
10680 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
10682         PR libgomp/61200
10683         * testsuite/libgomp.c/pr61200.c: New test.
10685 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
10687         PR c++/63248
10688         * testsuite/libgomp.c++/pr63248.C: New test.
10690 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
10692         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
10693         is not zero, but taskgroup->children is NULL and there are
10694         any task->children, schedule those instead of waiting.
10695         * testsuite/libgomp.c/depend-6.c: New test.
10696         * testsuite/libgomp.c/depend-7.c: New test.
10697         * testsuite/libgomp.c/depend-8.c: New test.
10698         * testsuite/libgomp.c/depend-9.c: New test.
10699         * testsuite/libgomp.c/depend-10.c: New test.
10701 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
10703         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
10704         (struct gomp_taskwait): New type.
10705         (struct gomp_task): Add taskwait and parent_depends_on, remove
10706         in_taskwait and taskwait_sem fields.
10707         (gomp_finish_task): Don't destroy taskwait_sem.
10708         * task.c (gomp_init_task): Don't init in_taskwait, instead init
10709         taskwait and parent_depends_on.
10710         (GOMP_task): For if (0) tasks with depend clause that depend on
10711         earlier tasks don't defer them, instead call
10712         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
10713         Initialize redundant_out field, for redundant out entries just
10714         move them at the end of linked list instead of removing them
10715         completely, and set redundant_out flag instead of redundant.
10716         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
10717         that task.
10718         (gomp_task_run_post_handle_dependers): If parent is in
10719         gomp_task_maybe_wait_for_dependencies and newly runnable task
10720         is not parent_depends_on, queue it in parent->children linked
10721         list after all runnable tasks with parent_depends_on set.
10722         Adjust for addition of taskwait indirection.
10723         (gomp_task_run_post_remove_parent): If parent is in
10724         gomp_task_maybe_wait_for_dependencies and task to be removed
10725         is parent_depends_on, decrement n_depend and if needed awake
10726         parent.  Adjust for addition of taskwait indirection.
10727         (GOMP_taskwait): Adjust for addition of taskwait indirection.
10728         (gomp_task_maybe_wait_for_dependencies): New function.
10729         * testsuite/libgomp.c/depend-5.c: New test.
10731 2014-07-13  Tobias Burnus  <burnus@net-b.de>
10733         * testsuite/libgomp.fortran/pr34020.f90: Make compile
10734         with TS 18508/Fortran 2015.
10736 2014-07-06  Marek Polacek  <polacek@redhat.com>
10738         PR c/6940
10739         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
10741 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
10743         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
10744         matches regex $lang_source_re, add $lang_include_flags to options.
10745         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
10746         * testsuite/libgomp.c++/c++.exp: Likewise.
10747         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
10748         and lang_include_flags instead of adding -fintrinsic-modules-path= to
10749         ALWAYS_CFLAGS.
10750         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
10752 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
10754         * testsuite/libgomp.fortran/fortran.exp: Explain
10755         gfortran-dg-runtest usage.
10757 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
10759         * testsuite/libgomp.fortran/simd5.f90: New test.
10760         * testsuite/libgomp.fortran/simd6.f90: New test.
10761         * testsuite/libgomp.fortran/simd7.f90: New test.
10763 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
10765         * testsuite/libgomp.c/for-2.c: Define SC to static for
10766         #pragma omp for simd testing.
10767         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
10768         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
10769         SC macro.
10770         * testsuite/libgomp.c/simd-14.c: New test.
10771         * testsuite/libgomp.c/simd-15.c: New test.
10772         * testsuite/libgomp.c/simd-16.c: New test.
10773         * testsuite/libgomp.c/simd-17.c: New test.
10774         * testsuite/libgomp.c++/for-10.C: Define SC to static for
10775         #pragma omp for simd testing.
10776         * testsuite/libgomp.c++/simd10.C: New test.
10777         * testsuite/libgomp.c++/simd11.C: New test.
10778         * testsuite/libgomp.c++/simd12.C: New test.
10779         * testsuite/libgomp.c++/simd13.C: New test.
10781         * testsuite/libgomp.fortran/aligned1.f03: New test.
10782         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
10783         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
10784         tasks with !$omp parallel !$omp single.
10785         * testsuite/libgomp.fortran/target8.f90: New test.
10786         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
10787         not to use trim in the combiner, instead call elemental function.
10788         (fn): New elemental function.
10789         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
10790         Make elemental.
10791         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
10792         omp_in): Likewise.
10793         * testsuite/libgomp.fortran/udr12.f90: New test.
10794         * testsuite/libgomp.fortran/udr13.f90: New test.
10795         * testsuite/libgomp.fortran/udr14.f90: New test.
10796         * testsuite/libgomp.fortran/udr15.f90: New test.
10798 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
10800         * omp_lib.f90.in (openmp_version): Set to 201307.
10801         * omp_lib.h.in (openmp_version): Likewise.
10802         * testsuite/libgomp.c/target-8.c: New test.
10803         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
10804         and inbranch clauses.
10805         * testsuite/libgomp.fortran/depend-3.f90: New test.
10806         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
10807         openmp_version.
10808         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
10809         * testsuite/libgomp.fortran/target1.f90: New test.
10810         * testsuite/libgomp.fortran/target2.f90: New test.
10811         * testsuite/libgomp.fortran/target3.f90: New test.
10812         * testsuite/libgomp.fortran/target4.f90: New test.
10813         * testsuite/libgomp.fortran/target5.f90: New test.
10814         * testsuite/libgomp.fortran/target6.f90: New test.
10815         * testsuite/libgomp.fortran/target7.f90: New test.
10817 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
10819         PR fortran/60928
10820         * testsuite/libgomp.fortran/allocatable9.f90: New test.
10821         * testsuite/libgomp.fortran/allocatable10.f90: New test.
10822         * testsuite/libgomp.fortran/allocatable11.f90: New test.
10823         * testsuite/libgomp.fortran/allocatable12.f90: New test.
10824         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
10825         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
10826         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
10827         * testsuite/libgomp.fortran/associate1.f90: New test.
10828         * testsuite/libgomp.fortran/associate2.f90: New test.
10829         * testsuite/libgomp.fortran/procptr1.f90: New test.
10831 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
10833         * testsuite/libgomp.fortran/simd1.f90: New test.
10834         * testsuite/libgomp.fortran/udr1.f90: New test.
10835         * testsuite/libgomp.fortran/udr2.f90: New test.
10836         * testsuite/libgomp.fortran/udr3.f90: New test.
10837         * testsuite/libgomp.fortran/udr4.f90: New test.
10838         * testsuite/libgomp.fortran/udr5.f90: New test.
10839         * testsuite/libgomp.fortran/udr6.f90: New test.
10840         * testsuite/libgomp.fortran/udr7.f90: New test.
10841         * testsuite/libgomp.fortran/udr8.f90: New test.
10842         * testsuite/libgomp.fortran/udr9.f90: New test.
10843         * testsuite/libgomp.fortran/udr10.f90: New test.
10844         * testsuite/libgomp.fortran/udr11.f90: New test.
10846 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
10848         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
10849         vect_simd_clones effective target.
10850         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
10852 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
10854         PR middle-end/61252
10855         * testsuite/libgomp.c++/simd-9.C: New test.
10857 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
10859         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
10860         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
10861         texts according to their @menu entry positions.
10863 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
10865         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
10866         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
10867         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
10868         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
10869         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
10870         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
10871         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
10872         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
10873         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
10874         * testsuite/libgomp.fortran/depend-1.f90: New test.
10875         * testsuite/libgomp.fortran/depend-2.f90: New test.
10876         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
10877         * testsuite/libgomp.fortran/simd1.f90: New test.
10878         * testsuite/libgomp.fortran/simd2.f90: New test.
10879         * testsuite/libgomp.fortran/simd3.f90: New test.
10880         * testsuite/libgomp.fortran/simd4.f90: New test.
10881         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
10883 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
10885         * testsuite/libgomp.c/simd-10.c: New test.
10886         * testsuite/libgomp.c/simd-11.c: New test.
10887         * testsuite/libgomp.c/simd-12.c: New test.
10888         * testsuite/libgomp.c/simd-13.c: New test.
10890 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
10892         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
10893         atomic type clauses in any order and optional comma in between.
10894         * testsuite/libgomp.c++/atomic-15.C: Likewise.
10895         * testsuite/libgomp.c/atomic-17.c: Likewise.
10897         * testsuite/libgomp.c/simd-7.c: New test.
10898         * testsuite/libgomp.c/simd-8.c: New test.
10899         * testsuite/libgomp.c/simd-9.c: New test.
10900         * testsuite/libgomp.c/loop-16.c: New test.
10902 2014-04-02  Richard Henderson  <rth@redhat.com>
10904         * config/linux/futex.h (futex_wait): Get error value from errno.
10905         (futex_wake): Likewise.
10907 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
10909         PR c++/60331
10910         * testsuite/libgomp.c++/udr-11.C: New test.
10911         * testsuite/libgomp.c++/udr-12.C: New test.
10912         * testsuite/libgomp.c++/udr-13.C: New test.
10913         * testsuite/libgomp.c++/udr-14.C: New test.
10914         * testsuite/libgomp.c++/udr-15.C: New test.
10915         * testsuite/libgomp.c++/udr-16.C: New test.
10916         * testsuite/libgomp.c++/udr-17.C: New test.
10917         * testsuite/libgomp.c++/udr-18.C: New test.
10918         * testsuite/libgomp.c++/udr-19.C: New test.
10920 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
10922         Update copyright years
10924 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
10926         * hashtab.h: Use the standard form for the copyright notice.
10928 2014-01-02  Tobias Burnus  <burnus@net-b.de>
10930         * libgomp.texi: Bump @copying's copyright year.
10932 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
10934         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
10935         alloca () with __builtin_alloca ().
10936         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
10937         * testsuite/libgomp.c/lock-3.c: Likewise.
10938         * testsuite/libgomp.c/pr48591.c: Likewise.
10940 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
10942         PR testsuite/59534
10943         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
10944         comparisons.
10946 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
10948         PR libgomp/58756
10949         * testsuite/libgomp.c/pr58756.c: New test.
10951 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
10953         PR libgomp/59467
10954         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
10955         !$omp parallel.
10957 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
10959         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
10960         ALWAYS_CFLAGS.
10961         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
10962         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
10963         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
10964         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
10965         Likewise.
10967         * libgomp_g.h: Include <stddef.h> for size_t.
10969         * libgomp.spec.in: Update comment about libgomp's dependencies.
10970         * configure.ac: Likewise.
10971         * configure: Regenerate.
10973 2013-10-16  Tobias Burnus  <burnus@net-b.de>
10975         * libgomp.texi: (Runtime Library Routines): Update references for
10976         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
10977         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
10978         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
10979         (Environment Variables): Update references for OpenMP 4.0. Add
10980         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
10981         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
10982         order.
10984 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
10986         * env.c (parse_bind_var): Initialize value to avoid
10987         (false positive) warning.
10989 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
10991         PR libgomp/58691
10992         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
10993         to check variable.
10994         (gomp_init_num_threads): Move i variable declaration into
10995         #ifdef CPU_ALLOC_SIZE block.
10996         * config/linux/affinity.c (gomp_affinity_init_level): Test
10997         gomp_places_list_len == 0 rather than gomp_places_list == 0
10998         when checking for topology reading error.
10999         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
11000         * env.c (parse_affinity): Add ignore argument, if true, don't populate
11001         gomp_places_list, only parse env var and always return false.
11002         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
11003         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
11004         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
11005         and either of these variables were parsed correctly into a places
11006         list.
11008 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
11009             Jakub Jelinek  <jakub@redhat.com>
11011         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
11012         of 5 loopfn matches.
11013         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
11014         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
11015         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
11016         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
11017         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
11018         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
11019         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
11020         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
11022 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
11024         * Makefile.am (omp_lib.mod): Streamline rule.
11025         * Makefile.in: Regenerate.
11027         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
11028         exceptions.
11030         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
11031         * testsuite/libgomp.fortran/lib1.f90: Likewise.
11032         * testsuite/libgomp.fortran/lib2.f: Likewise.
11033         * testsuite/libgomp.fortran/lib3.f: Likewise.
11035         * configure.ac: Typo fix.
11036         * configure: Regenerate.
11038         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
11039         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
11041         * omp.h.in: Don't touch the user's namespace.
11043 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
11044             Tobias Burnus  <burnus@net-b.de>
11045             Richard Henderson  <rth@redhat.com>
11047         * target.c: New file.
11048         * Makefile.am (libgomp_la_SOURCES): Add target.c.
11049         * Makefile.in: Regenerated.
11050         * libgomp_g.h (GOMP_task): Add depend argument.
11051         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
11052         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
11053         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
11054         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
11055         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
11056         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
11057         GOMP_taskgroup_start, GOMP_taskgroup_end,
11058         GOMP_parallel_sections): New prototypes.
11059         * fortran.c (omp_is_initial_device): Add ialias_redirect.
11060         (omp_is_initial_device_): New function.
11061         (ULP, STR1, STR2, ialias_redirect): Removed.
11062         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
11063         omp_set_default_device_8_, omp_get_default_device_,
11064         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
11065         functions.
11066         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
11067         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
11068         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
11069         @@GOMP_4.0.
11070         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
11071         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
11072         omp_set_default_device, omp_set_default_device_,
11073         omp_set_default_device_8_, omp_get_default_device,
11074         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
11075         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
11076         omp_get_team_num_): Export @@OMP_4.0.
11077         * team.c (struct gomp_thread_start_data): Add place field.
11078         (gomp_thread_start): Clear thr->thread_pool and
11079         thr->task before returning.  Use gomp_team_barrier_wait_final
11080         instead of gomp_team_barrier_wait.  Initialize thr->place.
11081         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
11082         team_cancelled and task_queued_count fields.
11083         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
11084         before calling pthread_exit.
11085         (gomp_free_thread): No longer static.  Use
11086         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
11087         (gomp_team_start): Add flags argument.  Set
11088         thr->thread_pool->threads_busy to nthreads immediately after creating
11089         new pool.  Use gomp_managed_threads_lock instead of
11090         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
11091         (gomp_team_end): Use gomp_managed_threads_lock instead of
11092         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
11093         of gomp_team_barrier_wait.  If team->team_cancelled, call
11094         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
11095         rather than thr->ts.work_share.
11096         (initialize_team): Don't call gomp_sem_init here.
11097         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
11098         caller.
11099         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
11100         * env.c (gomp_global_icv): Add default_device_var, target_data and
11101         bind_var initializers.
11102         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
11103         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
11104         gomp_places_list_len): New variables.
11105         (parse_bind_var, parse_one_place, parse_places_var): New functions.
11106         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
11107         sized places.
11108         (gomp_cancel_var): New global variable.
11109         (parse_int): New function.
11110         (handle_omp_display_env): New function.
11111         (initialize_env): Use it.  Initialize default_device_var.
11112         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
11113         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
11114         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
11115         been successfully parsed (and call gomp_init_affinity in that case).
11116         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
11117         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
11118         omp_get_team_num, omp_is_initial_device): New functions.
11119         * libgomp.h: Include stdlib.h.
11120         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
11121         Define.
11122         (struct target_mem_desc): Forward declare.
11123         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
11124         and thread_limit_var fields.
11125         (gomp_get_num_devices): New prototype.
11126         (gomp_cancel_var): New extern decl.
11127         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
11128         team_cancelled and task_queued_count fields.  Add comments about
11129         task_{,queued_,running_}count.
11130         (gomp_cancel_kind): New enum.
11131         (gomp_work_share_end_cancel): New prototype.
11132         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
11133         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
11134         and depend fields.
11135         (struct gomp_taskgroup): New type.
11136         (struct gomp_task_depend_entry,
11137         struct gomp_dependers_vec): New types.
11138         (gomp_finish_task): Free depend_hash if non-NULL.
11139         (struct gomp_team_state): Add place_partition_off
11140         and place_partition_len fields.
11141         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
11142         gomp_places_list_len): New extern decls.
11143         (struct gomp_thread): Add place field.
11144         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
11145         (gomp_init_thread_affinity): Add place argument.
11146         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
11147         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
11148         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
11149         gomp_affinity_init_level, gomp_affinity_print_place): New
11150         prototypes.
11151         (gomp_team_start): Add flags argument.
11152         (gomp_thread_limit_var, gomp_remaining_threads_count,
11153         gomp_remaining_threads_lock): Remove.
11154         (gomp_managed_threads_lock): New variable.
11155         (struct gomp_thread_pool): Add threads_busy field.
11156         (gomp_free_thread): New prototype.
11157         * task.c: Include hashtab.h.
11158         (hash_entry_type): New typedef.
11159         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
11160         (gomp_init_task): Clear dependers, depend_hash, depend_count,
11161         copy_ctors_done and taskgroup fields.
11162         (GOMP_task): Add depend argument, handle depend clauses.  If
11163         gomp_team_barrier_cancelled or if it's taskgroup has been
11164         cancelled, don't queue or start new tasks.  Set copy_ctors_done
11165         field if needed.  Initialize taskgroup field.  If copy_ctors_done
11166         and already cancelled, don't discard the task.  If taskgroup is
11167         non-NULL, enqueue the task into taskgroup queue.  Increment
11168         num_children field in taskgroup.  Increment task_queued_count.
11169         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
11170         gomp_task_run_post_remove_taskgroup): New inline functions.
11171         (gomp_task_run_post_handle_depend_hash,
11172         gomp_task_run_post_handle_dependers,
11173         gomp_task_run_post_handle_depend): New functions.
11174         (GOMP_taskwait): Use them.  If more than one new tasks
11175         have been queued, wake other threads if needed.
11176         (gomp_barrier_handle_tasks): Likewise.  If
11177         gomp_team_barrier_cancelled, don't start any new tasks, just free
11178         all tasks.
11179         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
11180         * omp_lib.f90.in
11181         (omp_proc_bind_kind, omp_proc_bind_false,
11182         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
11183         omp_proc_bind_spread): New params.
11184         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
11185         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
11186         omp_get_team_num, omp_is_initial_device): New interfaces.
11187         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
11188         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
11189         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
11190         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
11191         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
11192         useless use omp_lib_kinds.
11193         * omp.h.in (omp_proc_bind_t): New typedef.
11194         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
11195         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
11196         omp_get_team_num, omp_is_initial_device): New prototypes.
11197         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
11198         through to gomp_team_start.
11199         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
11200         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
11201         Adjust gomp_parallel_loop_start callers.
11202         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
11203         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
11204         GOMP_loop_end_cancel): New functions.
11205         (GOMP_parallel_end): Add ialias_redirect.
11206         * hashtab.h: New file.
11207         * libgomp.texi (Environment Variables): Minor cleanup,
11208         update section refs to OpenMP 4.0rc2.
11209         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
11210         environment variables.
11211         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
11212         team->work_shares_to_free to thr->ts.work_share before calling
11213         free_work_share.
11214         (gomp_work_share_end_cancel): New function.
11215         * config/linux/proc.c: Include errno.h.
11216         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
11217         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
11218         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
11219         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
11220         gomp_cpuset_size is sizeof (cpu_set_t).
11221         (gomp_init_num_threads): Initialize gomp_cpuset_size,
11222         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
11223         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
11224         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
11225         contain any logical CPUs.
11226         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
11227         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
11228         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
11229         pthread_getaffinity_np.  Check gomp_places_list instead of
11230         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
11231         * config/linux/bar.c (gomp_barrier_wait_end,
11232         gomp_barrier_wait_last): Use BAR_* defines.
11233         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
11234         from state where needed.  Set work_share_cancelled to 0 on last
11235         thread.
11236         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
11237         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
11238         functions.
11239         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
11240         Add cpusetsize argument.
11241         (gomp_cpuset_size, gomp_cpusetp): Declare.
11242         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
11243         (affinity_counter): Remove.
11244         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
11245         if CPU_ALLOC_SIZE isn't defined.
11246         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
11247         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
11248         bind current thread to the first place.
11249         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
11250         pthread_setaffinity_np to gomp_places_list[place].
11251         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
11252         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
11253         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
11254         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
11255         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
11256         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
11257         (gomp_barrier_t): Add awaited_final field.
11258         (gomp_barrier_init): Initialize awaited_final field.
11259         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
11260         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
11261         prototypes.
11262         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
11263         defines.
11264         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
11265         gomp_team_barrier_cancelled): New inline functions.
11266         (gomp_barrier_last_thread,
11267         gomp_team_barrier_set_task_pending,
11268         gomp_team_barrier_clear_task_pending,
11269         gomp_team_barrier_set_waiting_for_tasks,
11270         gomp_team_barrier_waiting_for_tasks,
11271         gomp_team_barrier_done): Use BAR_* defines.
11272         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
11273         (gomp_barrier_wait_end): Use BAR_* defines.
11274         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
11275         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
11276         Use BAR_* defines.
11277         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
11278         gomp_team_barrier_cancel): New functions.
11279         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
11280         argument.
11281         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
11282         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
11283         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
11284         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
11285         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
11286         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
11287         (gomp_barrier_t): Add cancellable field.
11288         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
11289         gomp_team_barrier_cancel): New prototypes.
11290         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
11291         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
11292         gomp_team_barrier_cancelled): New inline functions.
11293         (gomp_barrier_wait_start, gomp_barrier_last_thread,
11294         gomp_team_barrier_set_task_pending,
11295         gomp_team_barrier_clear_task_pending,
11296         gomp_team_barrier_set_waiting_for_tasks,
11297         gomp_team_barrier_waiting_for_tasks,
11298         gomp_team_barrier_done): Use BAR_* defines.
11299         * barrier.c (GOMP_barrier_cancel): New function.
11300         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
11301         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
11302         omp_proc_bind_spread): New params.
11303         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
11304         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
11305         omp_get_team_num, omp_is_initial_device): New externals.
11306         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
11307         New functions.
11308         (gomp_resolve_num_threads): Adjust for thread_limit now being in
11309         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
11310         infinity.  If not nested, just return minimum of max_num_threads
11311         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
11312         to the returned value.  Otherwise, don't update atomically
11313         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
11314         (GOMP_parallel_end): Adjust for thread_limit now being in
11315         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
11316         infinity.  Adjust threads_busy in the pool rather than
11317         gomp_remaining_threads_count.  Remember team->nthreads and call
11318         gomp_team_end before adjusting threads_busy, if not nested
11319         afterwards, just set it to 1 non-atomically.  Add ialias.
11320         (GOMP_parallel_start): Adjust gomp_team_start caller.
11321         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
11322         * testsuite/libgomp.c/affinity-1.c: New test.
11323         * testsuite/libgomp.c/atomic-15.c: New test.
11324         * testsuite/libgomp.c/atomic-16.c: New test.
11325         * testsuite/libgomp.c/atomic-17.c: New test.
11326         * testsuite/libgomp.c/cancel-for-1.c: New test.
11327         * testsuite/libgomp.c/cancel-for-2.c: New test.
11328         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
11329         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
11330         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
11331         * testsuite/libgomp.c/cancel-sections-1.c: New test.
11332         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
11333         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
11334         * testsuite/libgomp.c/depend-1.c: New test.
11335         * testsuite/libgomp.c/depend-2.c: New test.
11336         * testsuite/libgomp.c/depend-3.c: New test.
11337         * testsuite/libgomp.c/depend-4.c: New test.
11338         * testsuite/libgomp.c/for-1.c: New test.
11339         * testsuite/libgomp.c/for-1.h: New file.
11340         * testsuite/libgomp.c/for-2.c: New test.
11341         * testsuite/libgomp.c/for-2.h: New file.
11342         * testsuite/libgomp.c/for-3.c: New test.
11343         * testsuite/libgomp.c/pr58392.c: New test.
11344         * testsuite/libgomp.c/simd-1.c: New test.
11345         * testsuite/libgomp.c/simd-2.c: New test.
11346         * testsuite/libgomp.c/simd-3.c: New test.
11347         * testsuite/libgomp.c/simd-4.c: New test.
11348         * testsuite/libgomp.c/simd-5.c: New test.
11349         * testsuite/libgomp.c/simd-6.c: New test.
11350         * testsuite/libgomp.c/target-1.c: New test.
11351         * testsuite/libgomp.c/target-2.c: New test.
11352         * testsuite/libgomp.c/target-3.c: New test.
11353         * testsuite/libgomp.c/target-4.c: New test.
11354         * testsuite/libgomp.c/target-5.c: New test.
11355         * testsuite/libgomp.c/target-6.c: New test.
11356         * testsuite/libgomp.c/target-7.c: New test.
11357         * testsuite/libgomp.c/taskgroup-1.c: New test.
11358         * testsuite/libgomp.c/thread-limit-1.c: New test.
11359         * testsuite/libgomp.c/thread-limit-2.c: New test.
11360         * testsuite/libgomp.c/thread-limit-3.c: New test.
11361         * testsuite/libgomp.c/udr-1.c: New test.
11362         * testsuite/libgomp.c/udr-2.c: New test.
11363         * testsuite/libgomp.c/udr-3.c: New test.
11364         * testsuite/libgomp.c++/affinity-1.C: New test.
11365         * testsuite/libgomp.c++/atomic-10.C: New test.
11366         * testsuite/libgomp.c++/atomic-11.C: New test.
11367         * testsuite/libgomp.c++/atomic-12.C: New test.
11368         * testsuite/libgomp.c++/atomic-13.C: New test.
11369         * testsuite/libgomp.c++/atomic-14.C: New test.
11370         * testsuite/libgomp.c++/atomic-15.C: New test.
11371         * testsuite/libgomp.c++/cancel-for-1.C: New test.
11372         * testsuite/libgomp.c++/cancel-for-2.C: New test.
11373         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
11374         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
11375         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
11376         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
11377         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
11378         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
11379         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
11380         * testsuite/libgomp.c++/cancel-test.h: New file.
11381         * testsuite/libgomp.c++/for-9.C: New test.
11382         * testsuite/libgomp.c++/for-10.C: New test.
11383         * testsuite/libgomp.c++/for-11.C: New test.
11384         * testsuite/libgomp.c++/simd-1.C: New test.
11385         * testsuite/libgomp.c++/simd-2.C: New test.
11386         * testsuite/libgomp.c++/simd-3.C: New test.
11387         * testsuite/libgomp.c++/simd-4.C: New test.
11388         * testsuite/libgomp.c++/simd-5.C: New test.
11389         * testsuite/libgomp.c++/simd-6.C: New test.
11390         * testsuite/libgomp.c++/simd-7.C: New test.
11391         * testsuite/libgomp.c++/simd-8.C: New test.
11392         * testsuite/libgomp.c++/target-1.C: New test.
11393         * testsuite/libgomp.c++/target-2.C: New test.
11394         * testsuite/libgomp.c++/target-2-aux.cc: New file.
11395         * testsuite/libgomp.c++/target-3.C: New test.
11396         * testsuite/libgomp.c++/taskgroup-1.C: New test.
11397         * testsuite/libgomp.c++/udr-1.C: New test.
11398         * testsuite/libgomp.c++/udr-2.C: New test.
11399         * testsuite/libgomp.c++/udr-3.C: New test.
11400         * testsuite/libgomp.c++/udr-4.C: New test.
11401         * testsuite/libgomp.c++/udr-5.C: New test.
11402         * testsuite/libgomp.c++/udr-6.C: New test.
11403         * testsuite/libgomp.c++/udr-7.C: New test.
11404         * testsuite/libgomp.c++/udr-8.C: New test.
11405         * testsuite/libgomp.c++/udr-9.C: New test.
11407 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
11409         PR testsuite/57605
11410         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
11411         ALWAYS_CFLAGS.
11413 2013-09-20  Alan Modra  <amodra@gmail.com>
11415         * configure: Regenerate.
11417 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
11419         * testsuite/libgomp.c/sections-2.c: New test.
11421 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11423         * testsuite/libgomp.fortran/strassen.f90:
11424         Add dg-skip-if aarch64_tiny.
11426 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
11427             Cesar Philippidis  <cesar@codesourcery.com>
11429         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
11430         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
11431         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
11432         * testsuite/libgomp.fortran/fortran.exp: Likewise.
11433         * testsuite/libgomp.graphite/graphite.exp: Likewise.
11434         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
11435         Use dg-runtest rather than gfortran-dg-runtest.
11437 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
11439         * testsuite/libgomp.c/icv-2.c: Extend current handling of
11440         Linux-based x86 systems to cover all GNU systems.
11441         * testsuite/libgomp.c/lock-3.c: Likewise.
11442         * testsuite/libgomp.c/pr48591.c: Likewise.
11444 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
11446         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
11447         GNU/Hurd, as done for Linux-based systems.
11449         * config/posix/ptrlock.h: Fix comment.
11451 2013-05-27  Tobias Burnus  <burnus@net-b.de>
11453         PR fortran/57423
11454         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
11455         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
11456         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
11457         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
11458         omp_destroy_nest_lock): Correct arguments to match the one in
11459         the OpenMP spec.
11460         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
11461         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
11462         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
11463         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
11465 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
11467         * testsuite/libgomp.c/loop-13.c: New test.
11468         * testsuite/libgomp.c/loop-14.c: New test.
11469         * testsuite/libgomp.c/loop-15.c: New test.
11470         * testsuite/libgomp.c++/loop-13.C: New test.
11471         * testsuite/libgomp.c++/loop-14.C: New test.
11472         * testsuite/libgomp.c++/loop-15.C: New test.
11474 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
11476         PR middle-end/56217
11477         * testsuite/libgomp.c++/pr56217.C: New test.
11479 2013-02-01  Alan Modra  <amodra@gmail.com>
11481         * task.c (GOMP_task, GOMP_taskwait): Comment.
11483 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
11484             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
11486         PR libgomp/55561
11487         * config/linux/wait.h (do_spin): Use atomic load for addr.
11488         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
11489         for intptr and ptrlock.
11490         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
11491         for ptrlock.
11493 2013-01-22  Alan Modra  <amodra@gmail.com>
11495         PR libgomp/51376
11496         PR libgomp/56073
11497         * task.c (GOMP_task): Revert 2011-12-09 change.
11498         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
11499         barrier to read task->children..
11500         (gomp_barrier_handle_tasks): ..and matching atomic store with
11501         release barrier here when setting parent->children to NULL.
11503 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
11504             Tobias Burnus  <burnus@net-b.de>
11506         PR driver/55884
11507         * testsuite/libgomp.fortran/fortran.exp: Use
11508         -fintrinsic-modules-path= instead of
11509         -fintrinsic-modules-path.
11511 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
11513         Update copyright years.
11515 2012-12-19  Tobias Burnus  <burnus@net-b.de>
11517         * testsuite/libgomp.fortran/fortran.exp: Set
11518         -fintrinsic-modules-path.
11520 2012-12-19  Tobias Burnus  <burnus@net-b.de>
11522         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
11523         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
11525 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
11527         PR libgomp/55411
11528         * team.c (gomp_free_thread): Decrease gomp_managed_threads
11529         if pool had any threads_used.
11531 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
11533         * testsuite/libgomp.c++/pr24455.C: Use
11534         -Wl,-undefined,dynamic_lookup on darwin.
11536 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
11538         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
11540 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
11542         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
11544 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
11545             Jim MacArthur  <jim.macarthur@arm.com>
11546             Marcus Shawcroft  <marcus.shawcroft@arm.com>
11547             Nigel Stephens  <nigel.stephens@arm.com>
11548             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11549             Richard Earnshaw  <rearnsha@arm.com>
11550             Sofiane Naci  <sofiane.naci@arm.com>
11551             Stephen Thomas  <stephen.thomas@arm.com>
11552             Tejas Belagod  <tejas.belagod@arm.com>
11553             Yufeng Zhang  <yufeng.zhang@arm.com>
11555         * configure.tgt: Add AArch64.
11557 2012-10-04  Jason Merrill  <jason@redhat.com>
11559         * testsuite/libgomp.c++/tls-init1.C: New.
11561 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
11563         * configure: Regenerated.
11565 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
11567         * config/linux/mips/futex.h (sys_futex0): Change to static
11568         function with noinline, nomips16 attributes under MIPS16. Adjust
11569         asm statement to place 'li v0,SYS_futex' immediately before
11570         syscall insn.
11572 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
11574         * libgomp.texi (Library Index): Renamed from "Index" to prevent
11575         conflict with index.html on case-insensitive file systems.
11577 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
11579         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
11580         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
11582 2012-07-02  Richard Guenther  <rguenther@suse.de>
11583             Michael Matz  <matz@suse.de>
11584             Tobias Grosser <tobias@grosser.es>
11585             Sebastian Pop <sebpop@gmail.com>
11587         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
11588         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
11589         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
11590         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
11592 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
11594         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
11596 2012-06-22  Richard Guenther  <rguenther@suse.de>
11598         Merge from graphite branch
11599         2012-01-13  Tobias Grosser  <tobias@grosser.es>
11601         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
11602         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
11604 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
11606         PR middle-end/53580
11607         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
11608         use GOMP_barrier () call instead.
11609         * testsuite/libgomp.c/pr26943-3.c: Likewise.
11610         * testsuite/libgomp.c/pr26943-4.c: Likewise.
11611         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
11612         call GOMP_barrier instead.
11613         * testsuite/libgomp.fortran/vla5.f90: Likewise.
11615 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
11617         PR libgomp/52993
11618         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
11619         argument to memset call.
11621 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
11623         * configure: Regenerated.
11625 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11627         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
11629 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
11631         PR bootstrap/52812
11632         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
11634 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
11636         PR middle-end/52547
11637         * testsuite/libgomp.c/pr52547.c: New test.
11639 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
11641         * testsuite/lib/libgomp.exp: load fortran-modules.exp
11643 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11645         * configure.tgt (mips-sgi-irix6*): Remove.
11647 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11649         * configure.tgt (alpha*-dec-osf*): Remove.
11651         * config/osf/sem.h: Remove.
11652         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
11654 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
11656         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
11658 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11660         PR libstdc++/52188
11661         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
11662         Remove ENABLE_SYMVERS_SOL2.
11663         * configure: Regenerate.
11664         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
11665         (PREPROCESS): New variable.
11666         (libgomp.ver): New target.
11667         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
11668         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
11669         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
11670         Use libgomp.ver.
11671         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
11672         * Makefile.in: Regenerate.
11674 2012-02-14  Walter Lee  <walt@tilera.com>
11676         * configure.tgt: Handle tilegx and tilepro.
11677         * config/linux/tile/futex.h: New file.
11679 2012-02-08  Richard Guenther  <rguenther@suse.de>
11681         PR tree-optimization/46886
11682         * testsuite/libgomp.c/pr46886.c: New testcase.
11684 2012-01-25  Matthias Klose  <doko@ubuntu.com>
11686         * config/linux/arm: Remove empty directory.
11687         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
11689 2011-12-09  Alan Modra  <amodra@gmail.com>
11691         PR libgomp/51376
11692         * task.c (GOMP_taskwait): Don't access task->children outside of
11693         task_lock mutex region.
11694         (GOMP_task): Likewise.
11696 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
11698         PR libgomp/51132
11699         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
11700         to file scope.
11701         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
11702         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
11703         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
11704         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
11705         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
11707 2011-12-02  Alan Modra  <amodra@gmail.com>
11709         * config/linux/affinity.c: Use atomic rather than sync builtin.
11710         * config/linux/lock.c: Likewise.
11711         * config/linux/ptrlock.h: Likewise.
11712         * config/linux/ptrlock.c: Likewise.
11713         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
11714         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
11715         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
11716         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
11717         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
11718         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
11719         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
11720         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
11721         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
11722         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
11724 2011-11-30  Alan Modra  <amodra@gmail.com>
11726         PR libgomp/51298
11727         * config/linux/bar.h: Use atomic rather than sync builtins.
11728         * config/linux/bar.c: Likewise.  Add missing acquire
11729         synchronisation on generation field.
11730         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
11731         double unlock.
11733 2011-11-30  Alan Modra  <amodra@gmail.com>
11735         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
11736         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
11737         * config/linux/mutex.h: Use atomic rather than sync builtins.
11738         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
11739         * config/linux/omp-lock.h: Comment fix.
11740         * config/linux/arm/mutex.h: Delete.
11741         * config/linux/powerpc/mutex.h: Delete.
11742         * config/linux/ia64/mutex.h: Delete.
11743         * config/linux/mips/mutex.h: Delete.
11745 2011-11-30  Alan Modra  <amodra@gmail.com>
11747         PR libgomp/51249
11748         * config/linux/sem.h: Rewrite.
11749         * config/linux/sem.c: Rewrite.
11751 2011-11-28  Richard Henderson  <rth@redhat.com>
11753         * libgomp.h (enum memmodel): New.
11755 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
11757         * configure: Regenerate.
11759 2011-10-10  Matthias Klose  <doko@ubuntu.com>
11761         * config/posix95: Remove empty directory.
11763 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
11765         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
11767 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
11769         PR fortran/49792
11770         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
11771         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
11773 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11775         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
11777 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11779         PR libgomp/49965
11780         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
11782 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
11784         * config/linux/proc.h: New.
11785         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
11786         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
11787         (gomp_init_num_threads): Update call to cpuset_popcount.
11788         (get_num_procs): Ditto.
11789         * config/linux/affinity.c (gomp_init_affinity): Call
11790         gomp_cpuset_popcount.
11792 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
11794         PR fortran/42041
11795         PR fortran/46752
11796         * omp.h.in (omp_in_final): New prototype.
11797         * omp_lib.f90.in (omp_in_final): New interface.
11798         (omp_integer_kind, omp_logical_kind): Remove
11799         and replace all its uses in the module with 4.
11800         (openmp_version): Change to 201107.
11801         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
11802         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
11803         kind for the parameters.
11804         (omp_in_final): New external.
11805         (openmp_version): Change to 201107.
11806         * task.c (omp_in_final): New function.
11807         (gomp_init_task): Initialize final_task.
11808         (GOMP_task): Remove unused attribute from flags.  Handle final
11809         tasks.
11810         (GOMP_taskyield): New function.
11811         (omp_in_final): Return true if if (false) or final (true) task
11812         or descendant of final (true).
11813         * fortran.c (omp_in_final_): New function.
11814         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
11815         (GOMP_3.0): Export GOMP_taskyield.
11816         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
11817         variables.
11818         (parse_unsigned_long_list): New function.
11819         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
11820         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
11821         even if parse_affinity returned false.
11822         * config/linux/affinity.c (gomp_init_affinity): Handle
11823         gomp_cpu_affinity_len == 0.
11824         * libgomp_g.h (GOMP_taskyield): New prototype.
11825         * libgomp.h (struct gomp_task): Add final_task field.
11826         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
11827         * team.c (gomp_team_start): Override new task's nthreads_var icv
11828         if list form OMP_NUM_THREADS has been used and it has value for
11829         the new nesting level.
11831         * testsuite/libgomp.c/atomic-11.c: New test.
11832         * testsuite/libgomp.c/atomic-12.c: New test.
11833         * testsuite/libgomp.c/atomic-13.c: New test.
11834         * testsuite/libgomp.c/atomic-14.c: New test.
11835         * testsuite/libgomp.c/reduction-6.c: New test.
11836         * testsuite/libgomp.c/task-5.c: New test.
11837         * testsuite/libgomp.c++/atomic-2.C: New test.
11838         * testsuite/libgomp.c++/atomic-3.C: New test.
11839         * testsuite/libgomp.c++/atomic-4.C: New test.
11840         * testsuite/libgomp.c++/atomic-5.C: New test.
11841         * testsuite/libgomp.c++/atomic-6.C: New test.
11842         * testsuite/libgomp.c++/atomic-7.C: New test.
11843         * testsuite/libgomp.c++/atomic-8.C: New test.
11844         * testsuite/libgomp.c++/atomic-9.C: New test.
11845         * testsuite/libgomp.c++/task-8.C: New test.
11846         * testsuite/libgomp.c++/reduction-4.C: New test.
11847         * testsuite/libgomp.fortran/allocatable7.f90: New test.
11848         * testsuite/libgomp.fortran/allocatable8.f90: New test.
11849         * testsuite/libgomp.fortran/crayptr3.f90: New test.
11850         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
11851         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
11852         * testsuite/libgomp.fortran/pointer1.f90: New test.
11853         * testsuite/libgomp.fortran/pointer2.f90: New test.
11854         * testsuite/libgomp.fortran/task4.f90: New test.
11856 2011-08-02  Tobias Burnus  <burnus@net-b.de>
11858         * libgomp.texi: Update OpenMP spec references to 3.1.
11859         (omp_in_final,OMP_PROC_BIND): New sections.
11860         (OMP_NUM_THREADS): Document that the value can be now a list.
11861         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
11863 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
11865         * config/linux/x86/futex.h: Check __x86_64__ instead of
11866         __LP64__.
11868 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
11870         PR middle-end/49897
11871         PR middle-end/49898
11872         * testsuite/libgomp.c/pr49897-1.c: New test.
11873         * testsuite/libgomp.c/pr49897-2.c: New test.
11874         * testsuite/libgomp.c/pr49898-1.c: New test.
11875         * testsuite/libgomp.c/pr49898-2.c: New test.
11877 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
11879         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
11880         for ia32 instead of ilp32.
11882         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
11883         * testsuite/libgomp.c/atomic-6.c: Likewise.
11885 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
11887         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
11888         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
11890 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11892         PR libgomp/45351
11893         * config/osf/sem.h: New file.
11894         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
11896 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11898         PR target/49541
11899         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
11900         ldflags.
11902 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
11904         * config/linux/wait.h (do_spin): New inline, largely copied
11905         from do_wait, just don't do futex_wait here, instead return true if
11906         it should be done.
11907         (do_wait): Implement using do_spin.
11908         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
11909         to prototype.
11910         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
11911         __sync_bool_compare_and_swap, pass the oldval to
11912         gomp_mutex_lock_slow.
11913         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
11914         If all mutex contenders are just spinning and not sleeping, don't
11915         change state to 2 unnecessarily.  Optimize the loop when state has
11916         already become 2 to use just one atomic operation per loop instead
11917         of two.
11918         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
11919         to prototype.
11920         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
11921         __sync_bool_compare_and_swap, pass the oldval to
11922         gomp_mutex_lock_slow.
11924 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
11926         PR libgomp/49490
11927         * iter.c (gomp_iter_static_next): For chunk size 0
11928         only use n ceil/ nthreads size for the first
11929         n % nthreads threads in the team instead of
11930         all threads except for the last few ones which
11931         get less work or none at all.
11932         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
11933         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
11934         chunk argument, set run_sched_modifier to 0 for static
11935         resp. 1 for other kinds.  If chunk argument is 0
11936         and not static, set value to 1.
11938 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
11940         PR c++/49043
11941         * testsuite/libgomp.c++/pr49043.C: New test.
11943         PR c++/48869
11944         * testsuite/libgomp.c++/pr48869.C: New test.
11946 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
11948         PR fortran/48894
11949         * fortran.c: Include limits.h.
11950         (TO_INT): Define.
11951         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
11952         *set.
11953         (omp_set_num_threads_8_, omp_set_schedule_8_,
11954         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
11955         omp_get_team_size_8_): Use TO_INT macro.
11956         * testsuite/libgomp.fortran/pr48894.f90: New test.
11958 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
11960         PR middle-end/48591
11961         * testsuite/libgomp.c/pr48591.c: New test.
11963 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11965         PR bootstrap/48135
11966         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
11967         * configure: Regenerate.
11969 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
11971         PR fortran/47886
11972         * testsuite/libgomp.fortran/task3.f90: New test.
11974 2011-02-24  Tobias Burnus  <burnus@net-b.de>
11976         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
11978 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
11980         PR libgomp/47854
11981         * libgomp.texi (omp_get_wtime): Don't say time in the past
11982         must be Unix Epoch.
11984 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11986         PR libgomp/47804
11987         * testsuite/libgomp.fortran/fortran.exp: Check for both
11988         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
11989         but $blddir != "", still append ${blddir}/${lang_library_path}
11990         to ld_library_path.
11992 2011-02-16  Tobias Burnus  <burnus@net-b.de>
11994         PR libgomp/47758
11995         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
11996         of libquadmath.a before adding its libpath to ldflags.
11998 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
12000         PR libgomp/47731
12001         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
12002         to FUTEX_WAIT futex syscall.
12003         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
12005 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12007         * configure: Regenerate.
12009 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
12011         PR libstdc++/36104
12012         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
12014 2011-01-16  Gerald Pfeifer
12016         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
12018 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
12020         PR fortran/46874
12021         * libgomp.fortran/allocatable6.f90: New test.
12023 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12025         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
12026         * configure: Regenerate.
12028 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
12030         PR target/40125
12031         PR lto/46695
12032         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
12033         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
12034         * aclocal.m4: Regenerate.
12035         * configure: Regenerate.
12036         * Makefile.in: Regenerate.
12037         * testsuite/Makefile.in: Regenerate.
12039 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
12041         PR fortran/46753
12042         * libgomp.fortran/pr46753.f90: New test.
12044         PR libgomp/43706
12045         * env.c (initialize_env): Default to spin count 300000
12046         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
12047         is specified.
12049         PR libgomp/45240
12050         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
12051         at the end if sync builtins aren't supported.
12053 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12055         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
12057 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12059         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
12061 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
12063         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
12065 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
12066             Tobias Burnus  <burnus@net-b.de>
12068         PR fortran/32049
12069         * configure.ac:
12070         * configure: Regenerate.
12072 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12074         * config/linux/futex.h: New.
12075         * config/linux/arm/mutex.h: New.
12076         * configure.tgt (arm*-*-linux*): Add config path.
12078 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
12080         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
12082 2010-09-23  Tobias Burnus  <burnus@net-b.de>
12084         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
12085         Change Fortran datatype to LOGICAL.
12086         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
12087         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
12089 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12091         * configure: Regenerate.
12093 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
12095         * libgomp.texi: Add function keyword to a couple of Fortran
12096         interfaces, use integer instead of int for Fortran.
12098 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
12100         * libgomp.texi: Fix spelling and pasto problems throughout.
12101         Adjust prototypes to match code.
12103 2010-07-24  Tobias Burnus  <burnus@net-b.de>
12105         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
12106         silence -fwhole-file warning.
12108 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12110         * configure.tgt (*-*-solaris2.[56]*): Removed.
12112 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12114         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
12115         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
12116         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
12117         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
12118         targetting solaris2*.
12119         * configure: Regenerate.
12120         * config.h.in: Regenerate.
12122         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
12123         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
12124         Add libgomp_version_dep.
12125         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
12126         versioning.
12127         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
12128         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
12129         * Makefile.in: Regenerate.
12131         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
12132         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
12133         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
12134         to common block, protected by
12135         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
12137 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
12139         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
12141 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
12143         PR bootstrap/43170
12144         * configure: Regenerate.
12146 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12148         PR other/43620
12149         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
12150         * configure: Regenerate.
12151         * Makefile.in: Regenerate.
12152         * testsuite/Makefile.in: Regenerate.
12154 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
12156         PR c/43893
12157         * testsuite/libgomp.c/pr43893.c: New test.
12158         * testsuite/libgomp.c++/pr43893.C: New test.
12160 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
12162         PR middle-end/43570
12163         * testsuite/libgomp.fortran/vla8.f90: New test.
12165 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
12167         PR libgomp/43706
12168         * config/linux/affinity.c (gomp_init_affinity): Decrease
12169         gomp_available_cpus if affinity mask confines the process to fewer
12170         CPUs.
12171         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
12172         non-NULL, just return gomp_available_cpus.
12174         PR libgomp/43569
12175         * sections.c (gomp_sections_init): Initialize ws->mode.
12177 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12179         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
12180         not unused bar variable.
12181         * configure: Regenerate.
12183 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12185         * Makefile.in: Regenerate.
12186         * aclocal.m4: Regenerate.
12187         * testsuite/Makefile.in: Regenerate.
12189 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
12191         PR libgomp/42942
12192         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
12193         (initialize_env): Adjust callers.
12194         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
12195         when the argument is 0.
12197         * testsuite/libgomp.c/pr42942.c: New test.
12199 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
12201         PR middle-end/42644
12202         PR middle-end/42130
12203         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
12204         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
12206 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12208         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
12209         * testsuite/libgomp.c++/task-6.C: Likewise.
12211 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
12213         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
12215 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
12217         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
12218         * configure: Regenerate.
12220 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
12222         PR fortran/42866
12223         * testsuite/libgomp.fortran/allocatable5.f90: New test.
12225 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
12227         * configure.ac: Test for executability of GFORTRAN.
12228         * configure: Regenerate.
12230 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12232         * configure: Regenerate.
12234 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
12236         PR libgomp/42602
12237         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
12239 2010-01-03  Richard Guenther  <rguenther@suse.de>
12241         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
12243 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
12245         * testsuite/libgomp.graphite/pr4118.c: New.
12247 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
12249         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
12250         for darwin, protect the test with require-effective-target tls_runtime.
12251         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
12253 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
12255         PR target/41605
12256         * testsuite/lib/libgomp.exp: Provide -B options to allow for
12257         link spec %s substitutions for static libraries.
12259 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
12261         PR testsuite/42135
12262         * libgomp.graphite/force-parallel-2.c: Reduce array size.
12264 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12266         * Makefile.in: Regenerate.
12267         * configure: Regenerate.
12268         * testsuite/Makefile.in: Regenerate.
12270 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
12272         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
12273         settings for LC_ALL and LANG.
12275 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
12277         PR fortran/42162
12278         * testsuite/libgomp.fortran/pr42162.f90: New test.
12280 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
12282         PR middle-end/42029
12283         * testsuite/libgomp.c/pr42029.c: New test.
12285 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
12287         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
12288         *s.  Accept ld version without text in ()s.
12289         * configure: Regenerated.
12291 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
12293         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
12295 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12297         PR libgomp/41418
12298         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
12299         or a hyphen (happens with fortran language disabled).
12300         * configure: Regenerate.
12302 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12304         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
12305         use sed script portable to Solaris /bin/sed for extracting ld
12306         version.
12307         * configure: Regenerate.
12309 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
12311         * testsuite/libgomp.graphite/bounds.c: New test.
12313 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12315         * Makefile.am (libgomp_la_LINK): New.
12316         * Makefile.in: Regenerate.
12318 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12320         * configure.ac (AC_PREREQ): Bump to 2.64.
12322 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12324         * Makefile.am (install-html, install-pdf): Remove.
12325         * Makefile.in: Regenerate.
12327         * Makefile.in: Regenerate.
12328         * aclocal.m4: Regenerate.
12329         * config.h.in: Regenerate.
12330         * configure: Regenerate.
12331         * testsuite/Makefile.in: Regenerate.
12333 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12335         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
12336         * Makefile.in: Regenerate.
12338 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
12340         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
12341         * Makefile.in: Regenerate.
12343 2009-08-19  Tobias Burnus  <burnus@net-b.de>
12345         PR fortran/41102
12346         omp_lib.h.in: Fix -std=f95 errors.
12348 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
12350         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
12351         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
12352         * testsuite/libgomp.graphite/graphite.exp: New.
12354 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
12356         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
12357         only build.
12359 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
12361         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
12362         needed memory barrier semantics.
12363         * config/linux/mips/mutex.h: New file.
12365 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12367         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
12369 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
12371         * configure: Regenerate.
12373 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
12375         PR testsuite/40699
12376         PR testsuite/40707
12377         PR testsuite/40709
12378         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
12379         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
12380         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
12382 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
12384         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
12385         options when choosing a multilib.
12387 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
12389         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
12390         ld_library_path.  Use add_path.  Add just find_libgcc_s to
12391         ld_library_path, not every libgcc multilib directory.
12392         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
12393         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
12394         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
12395         Use add_path.
12396         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
12398 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
12400         * Makefile.am (LTLDFLAGS): Define.
12401         (LINK): Define.
12402         * Makefile.in: Regenerate.
12404 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
12406         PR fortran/39718
12407         * testsuite/libgomp.fortran/fortran.exp: Don't link with
12408         libgfortranbegin, check existence of libgfortran.a instead of
12409         libgfortranbegin.a.
12411 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
12413         PR libgomp/40174
12414         * team.c (gomp_thread_start): Destroy thr->release semaphore.
12415         (gomp_free_pool_helper): Likewise.
12417 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
12418             Jakub Jelinek  <jakub@redhat.com>
12420         PR fortran/35423
12421         * testsuite/libgomp.fortran/workshare2.f90: New test.
12423 2009-04-09  Nick Clifton  <nickc@redhat.com>
12425         * iter.c: Change copyright header to refer to version 3 of the
12426         GNU General Public License with version 3.1 of the GCC Runtime
12427         Library Exception and to point readers at the COPYING3 and
12428         COPYING3.RUNTIME files and the FSF's license web page.
12429         * alloc.c: Likewise.
12430         * barrier.c: Likewise.
12431         * config/bsd/proc.c: Likewise.
12432         * config/linux/affinity.c: Likewise.
12433         * config/linux/alpha/futex.h: Likewise.
12434         * config/linux/bar.c: Likewise.
12435         * config/linux/bar.h: Likewise.
12436         * config/linux/ia64/futex.h: Likewise.
12437         * config/linux/ia64/mutex.h: Likewise.
12438         * config/linux/lock.c: Likewise.
12439         * config/linux/mips/futex.h: Likewise.
12440         * config/linux/mutex.c: Likewise.
12441         * config/linux/mutex.h: Likewise.
12442         * config/linux/powerpc/futex.h: Likewise.
12443         * config/linux/proc.c: Likewise.
12444         * config/linux/ptrlock.c: Likewise.
12445         * config/linux/ptrlock.h: Likewise.
12446         * config/linux/s390/futex.h: Likewise.
12447         * config/linux/sem.c: Likewise.
12448         * config/linux/sem.h: Likewise.
12449         * config/linux/sparc/futex.h: Likewise.
12450         * config/linux/wait.h: Likewise.
12451         * config/linux/x86/futex.h: Likewise.
12452         * config/mingw32/proc.c: Likewise.
12453         * config/mingw32/time.c: Likewise.
12454         * config/posix/affinity.c: Likewise.
12455         * config/posix/bar.c: Likewise.
12456         * config/posix/bar.h: Likewise.
12457         * config/posix/lock.c: Likewise.
12458         * config/posix/mutex.h: Likewise.
12459         * config/posix/proc.c: Likewise.
12460         * config/posix/ptrlock.h: Likewise.
12461         * config/posix/sem.c: Likewise.
12462         * config/posix/sem.h: Likewise.
12463         * config/posix/time.c: Likewise.
12464         * config/posix95/lock.c: Likewise.
12465         * critical.c: Likewise.
12466         * env.c: Likewise.
12467         * error.c: Likewise.
12468         * fortran.c: Likewise.
12469         * iter_ull.c: Likewise.
12470         * libgomp.h: Likewise.
12471         * libgomp_f.h.in: Likewise.
12472         * libgomp_g.h: Likewise.
12473         * loop.c: Likewise.
12474         * loop_ull.c: Likewise.
12475         * omp.h.in: Likewise.
12476         * omp_lib.f90.in: Likewise.
12477         * omp_lib.h.in: Likewise.
12478         * ordered.c: Likewise.
12479         * parallel.c: Likewise.
12480         * sections.c: Likewise.
12481         * single.c: Likewise.
12482         * task.c: Likewise.
12483         * team.c: Likewise.
12484         * work.c: Likewise.
12486 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
12488         * testsuite/config/default.exp: Change copyright header to refer to
12489         version 3 of the GNU General Public License and to point readers
12490         at the COPYING3 file and the FSF's license web page.
12492 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
12494         PR middle-end/39573
12495         * libgomp.c++/pr39573.C: New test.
12497 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
12499         PR other/39591
12500         * testsuite/libgomp.c/pr39591-1.c: New test.
12501         * testsuite/libgomp.c/pr39591-2.c: New test.
12502         * testsuite/libgomp.c/pr39591-3.c: New test.
12504 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
12506         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
12507         * testsuite/libgomp.c/atomic-6.c: Ditto.
12509 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
12511         PR c/39495
12512         * testsuite/libgomp.c/loop-12.c: New test.
12513         * testsuite/libgomp.c/loop-11.c: New test.
12514         * testsuite/libgomp.c++/loop-11.C: New test.
12515         * testsuite/libgomp.c++/loop-12.C: New test.
12516         * testsuite/libgomp.c++/for-8.C: New test.
12518 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12520         * configure: Regenerate.
12522 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
12524         PR middle-end/39154
12525         * testsuite/libgomp.c/pr39154.c: New test.
12527 2009-01-30  Ian Lance Taylor  <iant@google.com>
12529         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
12530         libgomp_ld_is_gold.  Get gold version number.
12531         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
12532         * configure: Rebuild.
12534 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
12536         * testsuite/lib/libgomp.exp: Add -B option for targets that
12537         use libgfortran.a%s in their specs.
12539 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
12541         PR libgomp/38086
12542         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
12543         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
12544         HAVE_AS_SYMVER_DIRECTIVE is not defined.
12545         * configure: Regenerated.
12546         * config.h.in: Likewise.
12548 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
12550         PR c++/38650
12551         * testsuite/libgomp.c/pr38650.c: New test.
12552         * testsuite/libgomp.c++/pr38650.C: New test.
12554 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
12556         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
12558 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
12560         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
12562 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12564         * configure: Regenerate.
12566 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
12568         PR middle-end/36802
12569         * testsuite/libgomp.c/pr36802-1.c: New test.
12570         * testsuite/libgomp.c/pr36802-2.c: New test.
12571         * testsuite/libgomp.c/pr36802-3.c: New test.
12573 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
12575         PR libgomp/38270
12576         * config/linux/powerpc/mutex.h: New.
12578 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
12580         PR c++/38257
12581         * testsuite/libgomp.c++/for-7.C: New test.
12583         PR c++/38348
12584         * testsuite/libgomp.c++/for-6.C: New test.
12586 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
12588         PR testsuite/28870
12589         * testsuite/lib/libgomp.exp: Include new timeout library files.
12590         (libgomp_target_compile): Set timeout value from new proc.
12592 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
12594         PR libgomp/37938
12595         * config/linux/ia64/mutex.h: New.
12597 2008-11-04  Tobias Burnus  <burnus@net-b.de>
12599         PR libgomp/37935
12600         * libgomp.texi (Runtime library routines, environment variables):
12601         Update for OpenMP version 3.0.
12603 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
12604             Steve Ellcey  <sje@cup.hp.com>
12606         * configure: Regenerate for new libtool.
12607         * Makefile.in: Ditto.
12608         * testsuite/Makefile.in: Ditto.
12610 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
12611             Andreas Tobler  <a.tobler@schweiz.org>
12613         * config/bsd/proc.c: New file.
12614         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
12615         * configure.ac: Check for header <sys/sysctl.h>
12616         * configure: Regenerate.
12617         * config.h.in: Likewise.
12619 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
12621         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
12623 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
12625         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
12626         * Makefile.in: Regenerated.
12627         * testsuite/Makefile.in: Regenerated.
12629 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
12631         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
12632         depend on blddir if blddir exists.
12633         (libgomp_target_compile): Likewise.
12634         * testsuite/libgomp.c++/c++.exp: Likewise.
12635         * testsuite/libgomp.fortran/fortran.exp: Likewise.
12637 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12639         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
12640         Do not list GPL as Invariant Section.
12642 2008-07-28  Ilie Garbacea  <ilie@mips.com>
12643             Chao-ying Fu  <fu@mips.com>
12645         * configure.tgt: Enable futex for MIPS.
12646         * config/linux/mips/futex.h: New file.
12648 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
12650         * team.c (gomp_team_end): Free team immediately if it has
12651         just one thread.
12653 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
12655         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
12656         * testsuite/libgomp.fortran/fortran.exp: Same.
12657         * testsuite/libgomp.c/c.exp: Same.
12658         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
12659         directory to library path first.
12661 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
12663         * env.c (parse_stacksize): Add cast to avoid warning.
12664         (parse_spincount): Likewise.
12666 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
12668         * testsuite/libgomp.c/loop-10.c: New test.
12669         * libgomp.c/loop-3.c (main): Add lastprivate clause.
12670         * libgomp.c++/loop-6.C (main): Likewise.
12672         PR debug/36617
12673         * testsuite/libgomp.c/debug-1.c: New test.
12675 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
12677         * testsuite/libgomp.c/nqueens-1.c: New test.
12679         PR c++/36523
12680         * testsuite/libgomp.c++/task-7.C: New function.
12682 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12684         * configure: Regenerate.
12686 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12688         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
12689         mutex when HAVE_SYNC_BUILTINS isn't defined.
12691 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12693         * libgomp.texi (omp_test_lock): Fix typo.
12695 2008-06-12  Tobias Burnus  <burnus@net-b.de>
12697         * omp_lib.f90.in: Add "implicit none".
12699 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
12701         PR middle-end/36506
12702         * testsuite/libgomp.c/reduction-5.c: New test.
12704 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
12706         * libgomp.h (struct gomp_task): Add in_tied_task field.
12707         * task.c (gomp_init_task): Initialize it.
12708         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
12709         unconditionally.  Don't call gomp_team_barrier_wake if
12710         current task is implicit or if(0) from implicit and number of
12711         running tasks is equal to nthreads - 1.
12713         PR libgomp/36471
12714         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
12715         omp_get_team_size_8): Fix pastos.
12717         PR libgomp/36469
12718         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
12719         * configure: Regenerated.
12720         * config.h.in: Regenerated.
12721         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
12722         defined.
12724 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
12726         PR bootstrap/36452
12727         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
12728         (GOMP_loop_ull_dynamic_start): Likewise.
12729         (GOMP_loop_ull_guided_start): Likewise.
12730         (GOMP_loop_ull_ordered_static_start): Likewise.
12731         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
12732         (GOMP_loop_ull_ordered_guided_start): Likewise.
12734 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
12735             Richard Henderson  <rth@redhat.com>
12736             Ulrich Drepper  <drepper@redhat.com>
12737             Jakob Blomer  <jakob.blomer@ira.uka.de>
12739         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
12740         Substitute also OMP_*LOCK_25*.
12741         * configure: Regenerated.
12742         * config.h.in: Regenerated.
12743         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
12744         ptrlock.c and task.c.
12745         * Makefile.in: Regenerated.
12746         * testsuite/Makefile.in: Regenerated.
12747         * task.c: New file.
12748         * loop_ull.c: New file.
12749         * iter_ull.c: New file.
12750         * libgomp.h: Include ptrlock.h.
12751         (enum gomp_task_kind): New type.
12752         (struct gomp_team): Add task_lock, task_queue, task_count,
12753         task_running_count, single_count fields.  Add
12754         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
12755         Remove work_share_lock, generation_mask,
12756         oldest_live_gen, num_live_gen and init_work_shares fields, add
12757         work work_share_list_alloc, work_share_list_free and work_share_chunk
12758         fields.  Change work_shares from pointer to pointers into an array.
12759         Change ordered_release field into gomp_sem_t ** from flexible array
12760         member.  Add implicit_task and initial_work_shares fields.
12761         Move close to the end of the struct.
12762         (struct gomp_team_state): Add single_count, last_work_share,
12763         active_level and level fields, remove work_share_generation.
12764         (gomp_barrier_handle_tasks): New prototype.
12765         (gomp_finish_task): New inline function.
12766         (struct gomp_work_share): Move chunk_size, end, incr into
12767         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
12768         next_ll fields.  Reshuffle fields.  Add next_alloc,
12769         next_ws, next_free and inline_ordered_team_ids fields, change
12770         ordered_team_ids into pointer from flexible array member.
12771         Add mode field.  Put lock and next into a different cache line
12772         from most of the write-once fields.
12773         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
12774         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
12775         gomp_iter_ull_guided_next): New prototypes.
12776         (gomp_new_icv): New prototype.
12777         (struct gomp_thread): Add thread_pool and task fields.
12778         (struct gomp_thread_pool): New type.
12779         (gomp_new_team): New prototype.
12780         (gomp_team_start): Change type of last argument.
12781         (gomp_new_work_share): Removed.
12782         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
12783         (gomp_work_share_init_done): New static inline.
12784         (gomp_throttled_spin_count_var, gomp_available_cpus,
12785         gomp_managed_threads): New extern decls.
12786         (gomp_init_task): New prototype.
12787         (gomp_spin_count_var): New extern var decl.
12788         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
12789         or no alias support, or if not PIC.
12790         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
12791         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
12792         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
12793         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
12794         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
12795         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
12796         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
12797         gomp_test_nest_lock_25): New prototypes.
12798         (omp_lock_symver, strong_alias): Define.
12799         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
12800         decls.
12801         (gomp_end_task): New.
12802         (struct gomp_task_icv, gomp_global_icv): New.
12803         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
12804         (struct gomp_task): New.
12805         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
12806         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
12807         (gomp_icv): New.
12808         (gomp_schedule_type): Reorder enum to match
12809         omp_sched_t.
12810         * team.c (struct gomp_thread_start_data): Add thread_pool and task
12811         fields.
12812         (gomp_thread_start): Add gomp_team_barrier_wait call.
12813         For non-nested case remove clearing of docked thread thr fields.
12814         Use pool fields instead of global gomp_* variables.  Use
12815         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
12816         Create tasks for each member thread.
12817         (free_team): Only destroy team barrier, task_lock here and free it.
12818         (gomp_free_thread): Free last_team if non-NULL.
12819         (gomp_team_end): Call gomp_team_barrier_wait instead of
12820         gomp_barrier_wait.  For nested case call one extra
12821         gomp_barrier_wait.  Move here some destruction from free_team.
12822         Call free_team on pool->last_team if any, rather than freeing
12823         current team.  Destroy work_share_list_free_lock ifndef
12824         HAVE_SYNC_BUILTINS.
12825         (gomp_new_icv): New function.
12826         (gomp_threads, gomp_threads_size, gomp_threads_used,
12827         gomp_threads_dock): Removed.
12828         (gomp_thread_destructor): New variable.
12829         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
12830         functions.
12831         (gomp_team_start): Create new pool if current thread doesn't have
12832         one.  Use pool fields instead of global gomp_* variables.
12833         Initialize thread_pool field for new threads.  Clear single_count.
12834         Change last argument from ws to team, don't create
12835         new team, set ts.work_share to &team->work_shares[0] and clear
12836         ts.last_work_share.  Don't clear ts.work_share_generation.
12837         If number of threads changed, adjust atomically gomp_managed_threads.
12838         Use gomp_init_task instead of gomp_new_task,
12839         set thr->task to the corresponding implicit_task array entry.
12840         Create tasks for each member thread.  Initialize ts.level.
12841         (initialize_team): Call pthread_key_create on
12842         gomp_thread_destructor.
12843         (team_destructor): New function.
12844         (new_team): Removed.
12845         (gomp_new_team): New function.
12846         (free_team): Free gomp_work_share blocks chained through next_alloc,
12847         instead of freeing work_shares and destroying work_share_lock.
12848         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
12849         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
12850         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
12851         of gomp_barrier_wait.
12852         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
12853         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
12854         if gomp_work_share_start returned true.  Don't unlock ws->lock.
12855         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
12856         of gomp_barrier_wait.
12857         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
12858         gomp_work_share_init_done if gomp_work_share_start returned true.
12859         Don't unlock ws->lock.
12860         * work.c: Include stddef.h.
12861         (free_work_share): Use work_share_list_free_lock instead
12862         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
12863         Call gomp_fini_work_share and then either free ws if orphaned, or
12864         put it into work_share_list_free list of the current team.
12865         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
12866         functions.
12867         (gomp_work_share_start, gomp_work_share_end,
12868         gomp_work_share_end_nowait): Rewritten.
12869         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
12870         (openmp_version): Set to 200805.
12871         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
12872         omp_sched_guided, omp_sched_auto): New parameters.
12873         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
12874         omp_set_max_active_levels, omp_get_max_active_levels,
12875         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
12876         omp_get_active_level): New interfaces.
12877         * omp_lib.h.in (openmp_version): Set to 200805.
12878         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
12879         omp_sched_guided, omp_sched_auto): New parameters.
12880         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
12881         omp_set_max_active_levels, omp_get_max_active_levels,
12882         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
12883         omp_get_active_level): New externals.
12884         * loop.c: Include limits.h.
12885         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
12886         GFS_AUTO.
12887         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
12888         Likewise.  Use gomp_icv.
12889         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
12890         ts.static_trip here.
12891         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
12892         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
12893         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
12894         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
12895         don't unlock ws->lock, otherwise lock it.
12896         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
12897         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
12898         (gomp_parallel_loop_start): Call gomp_new_team instead of
12899         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
12900         Adjust gomp_team_start caller.  Pass 0 as second argument to
12901         gomp_resolve_num_threads.
12902         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
12903         If adding ws->chunk_size nthreads + 1 times after end won't
12904         overflow, set ws->mode to 1.
12905         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
12906         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
12907         GOMP_loop_ull_ordered_static_start,
12908         GOMP_loop_ull_ordered_dynamic_start,
12909         GOMP_loop_ull_ordered_guided_start,
12910         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
12911         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
12912         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
12913         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
12914         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
12915         prototypes.
12916         * libgomp.map: Export lock routines also @@OMP_2.0.
12917         (GOMP_loop_ordered_dynamic_first,
12918         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
12919         GOMP_loop_ordered_static_first): Remove.
12920         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
12921         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
12922         GOMP_loop_ull_ordered_dynamic_next,
12923         GOMP_loop_ull_ordered_dynamic_start,
12924         GOMP_loop_ull_ordered_guided_next,
12925         GOMP_loop_ull_ordered_guided_start,
12926         GOMP_loop_ull_ordered_runtime_next,
12927         GOMP_loop_ull_ordered_runtime_start,
12928         GOMP_loop_ull_ordered_static_next,
12929         GOMP_loop_ull_ordered_static_start,
12930         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
12931         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
12932         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
12933         (omp_set_schedule, omp_get_schedule,
12934         omp_get_thread_limit, omp_set_max_active_levels,
12935         omp_get_max_active_levels, omp_get_level,
12936         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
12937         omp_set_schedule_, omp_set_schedule_8_,
12938         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
12939         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
12940         omp_get_max_active_levels_, omp_get_level_,
12941         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
12942         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
12943         New exports @@OMP_3.0.
12944         * omp.h.in (omp_sched_t): New type.
12945         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
12946         omp_set_max_active_levels, omp_get_max_active_levels,
12947         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
12948         omp_get_active_level): New prototypes.
12949         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
12950         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
12951         gomp_thread_limit_var, gomp_remaining_threads_count,
12952         gomp_remaining_threads_lock): New variables.
12953         (parse_spincount): New function.
12954         (initialize_env): Call gomp_init_num_threads unconditionally.
12955         Initialize gomp_available_cpus.  Call parse_spincount,
12956         initialize gomp_{,throttled_}spin_count_var
12957         depending on presence and value of OMP_WAIT_POLICY and
12958         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
12959         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
12960         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
12961         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
12962         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
12963         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
12964         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
12965         (gomp_global_icv): New.
12966         (parse_schedule): Use it.  Parse "auto".
12967         (omp_set_num_threads): Use gomp_icv.
12968         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
12969         Likewise.
12970         (omp_get_max_threads): Move from parallel.c.
12971         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
12972         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
12973         add ialias.
12974         (parse_stacksize, parse_wait_policy): New functions.
12975         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
12976         both wrappers for compatibility and new locks.
12977         (omp_set_schedule, omp_get_schedule,
12978         omp_get_thread_limit, omp_set_max_active_levels,
12979         omp_get_max_active_levels, omp_get_level,
12980         omp_get_ancestor_thread_num, omp_get_team_size,
12981         omp_get_active_level): New ialias_redirect.
12982         (omp_set_schedule_, omp_set_schedule_8_,
12983         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
12984         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
12985         omp_get_max_active_levels_, omp_get_level_,
12986         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
12987         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
12988         New functions.
12989         * parallel.c: Include limits.h.
12990         (gomp_resolve_num_threads): Add count argument.  Rewritten.
12991         (GOMP_parallel_start): Call gomp_new_team and pass that as last
12992         argument to gomp_team_start.  Pass 0 as second argument to
12993         gomp_resolve_num_threads.
12994         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
12995         if gomp_thread_limit_var != ULONG_MAX.
12996         (omp_in_parallel): Implement using ts.active_level.
12997         (omp_get_max_threads): Move to env.c.
12998         (omp_get_level, omp_get_ancestor_thread_num,
12999         omp_get_team_size, omp_get_active_level): New functions,
13000         add ialias.
13001         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
13002         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
13003         gomp_iter_dynamic_next instead of the _locked variant and don't take
13004         lock around it, otherwise acquire it before calling
13005         gomp_iter_dynamic_next_locked.
13006         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
13007         gomp_iter_dynamic_next instead of the _locked variant and don't take
13008         lock around it.
13009         (GOMP_parallel_sections_start): Call gomp_new_team instead of
13010         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
13011         Adjust gomp_team_start caller.  Pass count as second argument to
13012         gomp_resolve_num_threads, don't adjust num_threads after the call.
13013         Use gomp_icv.
13014         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
13015         ws->chunk_size by incr.
13016         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
13017         code.
13018         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
13019         types.
13020         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
13021         (omp_check_defines): Check even the compat defines.
13022         * config/linux/ptrlock.c: New file.
13023         * config/linux/ptrlock.h: New file.
13024         * config/linux/wait.h: New file.
13025         * config/posix/ptrlock.c: New file.
13026         * config/posix/ptrlock.h: New file.
13027         * config/linux/bar.h (gomp_team_barrier_wait,
13028         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
13029         (gomp_team_barrier_set_task_pending,
13030         gomp_team_barrier_clear_task_pending,
13031         gomp_team_barrier_set_waiting_for_tasks,
13032         gomp_team_barrier_waiting_for_tasks,
13033         gomp_team_barrier_done): New inlines.
13034         (gomp_barrier_t): Rewritten.
13035         (gomp_barrier_state_t): New typedef.
13036         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
13037         gomp_barrier_wait_start): Rewritten.
13038         (gomp_barrier_wait_end): Change second argument to
13039         gomp_barrier_state_t.
13040         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
13041         inlines.
13042         * config/linux/bar.c: Include wait.h instead of libgomp.h and
13043         futex.h.
13044         (gomp_barrier_wait_end): Rewritten.
13045         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
13046         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
13047         * config/posix/bar.h (gomp_barrier_t): Add generation field.
13048         (gomp_barrier_state_t): New typedef.
13049         (gomp_team_barrier_wait,
13050         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
13051         (gomp_barrier_wait_start): Or all but low 2 bits from generation
13052         into the return value.  Return gomp_barrier_state_t.
13053         (gomp_team_barrier_set_task_pending,
13054         gomp_team_barrier_clear_task_pending,
13055         gomp_team_barrier_set_waiting_for_tasks,
13056         gomp_team_barrier_waiting_for_tasks,
13057         gomp_team_barrier_done): New inlines.
13058         (gomp_barrier_wait_end): Change second argument to
13059         gomp_barrier_state_t.
13060         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
13061         inlines.
13062         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
13063         (gomp_barrier_wait_end): Change second argument to
13064         gomp_barrier_state_t.
13065         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
13066         gomp_team_barrier_wake): New functions.
13067         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
13068         futex.h.
13069         (gomp_futex_wake, gomp_futex_wait): New variables.
13070         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
13071         * config/linux/lock.c: Rewrite to make locks task owned,
13072         for backwards compatibility provide the old entrypoints
13073         if symbol versioning.  Include wait.h instead of libgomp.h and
13074         futex.h.
13075         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
13076         * config/posix95/lock.c: Rewrite to make locks task owned,
13077         for backwards compatibility provide the old entrypoints
13078         if symbol versioning.
13079         * config/posix/lock.c: Rewrite to make locks task owned,
13080         for backwards compatibility provide the old entrypoints
13081         if symbol versioning.
13082         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
13083         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
13084         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
13085         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
13086         (sys_futex0): Return error code.
13087         (futex_wake, futex_wait): If ENOSYS was returned, clear
13088         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
13089         (cpu_relax, atomic_write_barrier): New static inlines.
13090         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
13091         (futex_wake, futex_wait): If ENOSYS was returned, clear
13092         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
13093         (cpu_relax, atomic_write_barrier): New static inlines.
13094         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
13095         (sys_futex0): Return error code.
13096         (futex_wake, futex_wait): If ENOSYS was returned, clear
13097         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
13098         (cpu_relax, atomic_write_barrier): New static inlines.
13099         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
13100         (sys_futex0): Return error code.
13101         (futex_wake, futex_wait): If ENOSYS was returned, clear
13102         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
13103         (cpu_relax, atomic_write_barrier): New static inlines.
13104         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
13105         (sys_futex0): Return error code.
13106         (futex_wake, futex_wait): If ENOSYS was returned, clear
13107         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
13108         (cpu_relax, atomic_write_barrier): New static inlines.
13109         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
13110         (sys_futex0): Return error code.
13111         (futex_wake, futex_wait): If ENOSYS was returned, clear
13112         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
13113         (cpu_relax, atomic_write_barrier): New static inlines.
13114         * config/linux/sem.c: Include wait.h instead of libgomp.h and
13115         futex.h.
13116         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
13117         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
13118         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
13119         types.
13120         (omp_nest_lock_t): Change owner into void *, add lock field.
13121         * config/posix95/omp-lock.h: Include semaphore.h.
13122         (omp_lock_25_t, omp_nest_lock_25_t): New types.
13123         (omp_lock_t): Use sem_t instead of mutex if semaphores
13124         aren't broken.
13125         (omp_nest_lock_t): Likewise.  Change owner to void *.
13126         * config/posix/omp-lock.h: Include semaphore.h.
13127         (omp_lock_25_t, omp_nest_lock_25_t): New types.
13128         (omp_lock_t): Use sem_t instead of mutex if semaphores
13129         aren't broken.
13130         (omp_nest_lock_t): Likewise.  Add owner field.
13132 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
13134         * testsuite/libgomp.c/collapse-1.c: New test.
13135         * testsuite/libgomp.c/collapse-2.c: New test.
13136         * testsuite/libgomp.c/collapse-3.c: New test.
13137         * testsuite/libgomp.c/icv-1.c: New test.
13138         * testsuite/libgomp.c/icv-2.c: New test.
13139         * testsuite/libgomp.c/lib-2.c: New test.
13140         * testsuite/libgomp.c/lock-1.c: New test.
13141         * testsuite/libgomp.c/lock-2.c: New test.
13142         * testsuite/libgomp.c/lock-3.c: New test.
13143         * testsuite/libgomp.c/loop-4.c: New test.
13144         * testsuite/libgomp.c/loop-5.c: New test.
13145         * testsuite/libgomp.c/loop-6.c: New test.
13146         * testsuite/libgomp.c/loop-7.c: New test.
13147         * testsuite/libgomp.c/loop-8.c: New test.
13148         * testsuite/libgomp.c/loop-9.c: New test.
13149         * testsuite/libgomp.c/nested-3.c: New test.
13150         * testsuite/libgomp.c/nestedfn-6.c: New test.
13151         * testsuite/libgomp.c/sort-1.c: New test.
13152         * testsuite/libgomp.c/task-1.c: New test.
13153         * testsuite/libgomp.c/task-2.c: New test.
13154         * testsuite/libgomp.c/task-3.c: New test.
13155         * testsuite/libgomp.c/task-4.c: New test.
13156         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
13157         to C++ testsuite default compiler options.
13158         * testsuite/libgomp.c++/collapse-1.C: New test.
13159         * testsuite/libgomp.c++/collapse-2.C: New test.
13160         * testsuite/libgomp.c++/ctor-10.C: New test.
13161         * testsuite/libgomp.c++/for-1.C: New test.
13162         * testsuite/libgomp.c++/for-2.C: New test.
13163         * testsuite/libgomp.c++/for-3.C: New test.
13164         * testsuite/libgomp.c++/for-4.C: New test.
13165         * testsuite/libgomp.c++/for-5.C: New test.
13166         * testsuite/libgomp.c++/loop-8.C: New test.
13167         * testsuite/libgomp.c++/loop-9.C: New test.
13168         * testsuite/libgomp.c++/loop-10.C: New test.
13169         * testsuite/libgomp.c++/task-1.C: New test.
13170         * testsuite/libgomp.c++/task-2.C: New test.
13171         * testsuite/libgomp.c++/task-3.C: New test.
13172         * testsuite/libgomp.c++/task-4.C: New test.
13173         * testsuite/libgomp.c++/task-5.C: New test.
13174         * testsuite/libgomp.c++/task-6.C: New test.
13175         * testsuite/libgomp.fortran/allocatable1.f90: New test.
13176         * testsuite/libgomp.fortran/allocatable2.f90: New test.
13177         * testsuite/libgomp.fortran/allocatable3.f90: New test.
13178         * testsuite/libgomp.fortran/allocatable4.f90: New test.
13179         * testsuite/libgomp.fortran/collapse1.f90: New test.
13180         * testsuite/libgomp.fortran/collapse2.f90: New test.
13181         * testsuite/libgomp.fortran/collapse3.f90: New test.
13182         * testsuite/libgomp.fortran/collapse4.f90: New test.
13183         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
13184         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
13185         * testsuite/libgomp.fortran/lib4.f90: New test.
13186         * testsuite/libgomp.fortran/lock-1.f90: New test.
13187         * testsuite/libgomp.fortran/lock-2.f90: New test.
13188         * testsuite/libgomp.fortran/nested1.f90: New test.
13189         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
13190         * testsuite/libgomp.fortran/strassen.f90: New test.
13191         * testsuite/libgomp.fortran/tabs1.f90: New test.
13192         * testsuite/libgomp.fortran/tabs2.f: New test.
13193         * testsuite/libgomp.fortran/task1.f90: New test.
13194         * testsuite/libgomp.fortran/task2.f90: New test.
13195         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
13196         * testsuite/libgomp.fortran/vla5.f90: Likewise.
13197         * testsuite/libgomp.c/pr26943-2.c: Likewise.
13198         * testsuite/libgomp.c/pr26943-3.c: Likewise.
13199         * testsuite/libgomp.c/pr26943-4.c: Likewise.
13201 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
13203         PR c++/36308
13204         * testsuite/libgomp.c++/ctor-11.C: New test.
13205         * testsuite/libgomp.c++/ctor-12.C: New test.
13207 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
13209         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
13211 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
13213         PR middle-end/36106
13214         * testsuite/libgomp.c/atomic-5.c: New test.
13215         * testsuite/libgomp.c/atomic-6.c: New test.
13216         * testsuite/libgomp.c/autopar-1.c: New test.
13218 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13220         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
13221         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
13222         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
13223         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
13224         * configure: Regenerate.
13225         * Makefile.in, testsuite/Makefile.in: Likewise.
13227 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
13229         PR bootstrap/35457
13230         * aclocal.m4: Regenerate.
13231         * configure: Regenerate.
13233 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
13235         PR middle-end/35611
13236         * testsuite/libgomp.c/atomic-4.c: New test.
13238         PR libgomp/35625
13239         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
13240         (gomp_iter_guided_next): Likewise.
13241         * testsuite/libgomp.c/pr35625.c: New test.
13243 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13245         * aclocal.m4: Regenerate.
13246         * configure: Likewise.
13247         * Makefile.in: Likewise.
13248         * testsuite/Makefile.in: Likewise.
13250 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
13252         PR middle-end/35185
13253         * testsuite/libgomp.c++/pr35185.C: New test.
13255 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
13257         PR middle-end/35549
13258         * testsuite/libgomp.c/pr35549.c: New test.
13260 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
13262         * testsuite/libgomp.c/atomic-3.c: New test.
13264 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13266         PR fortran/33197
13267         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
13268         .F08 file suffixes.
13270 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
13272         PR libgomp/33131
13273         * configure.ac: Add ACX_HEADER_STRING.
13274         * env.c: Include strings.h.
13275         * aclocal.m4: Regenerate.
13276         * config.h.in: Regenerate.
13277         * configure: Regenerate.
13278         * Makefile.in: Regenerate.
13279         * testsuite/Makefile.in: Regenerate.
13281 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
13283         PR middle-end/35196
13284         * testsuite/libgomp.c/pr35196.c: New test.
13286         PR middle-end/35130
13287         * testsuite/libgomp.fortran/pr35130.f90: New test.
13288         * testsuite/libgomp.c/pr35130.c: New test.
13290 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
13292         PR middle-end/33880
13293         * testsuite/libgomp.c/pr33880.c: New test.
13294         * testsuite/libgomp.fortran/pr33880.f90: New test.
13296 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
13298         * configure: Regenerate.
13300 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
13302         * configure.ac: Move futex checking into ../config/futex.m4.
13303         * configure: Rebuilt.
13304         * aclocal.m4: Rebuilt.
13305         * Makefile.in: Rebuilt.
13307         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
13308         2007-10-15 ../config/tls.m4 change.
13310 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
13312         PR c++/34513
13313         * testsuite/libgomp.c/pr34513.c: New test.
13314         * testsuite/libgomp.c++/pr34513.C: New test.
13316 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
13318         PR target/32765
13319         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
13321 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
13323         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
13325 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
13327         * testsuite/libgomp.c/private-1.c: New test.
13329 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
13330             Paolo Bonzini  <bonzini@gnu.org>
13332         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
13333         instead of 'VPATH ='.
13334         * Makefile.in: Regenerate.
13336 2007-11-23  Matthias Klose  <doko@ubuntu.com>
13338         * configure.ac: Adjust makeinfo version check.
13339         * configure: Regenerate.
13341 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
13343         PR fortran/34020
13344         * testsuite/libgomp.fortran/pr34020.f90: New test.
13346 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
13348         PR c++/33894
13349         * testsuite/libgomp.c++/atomic-1.C: New test.
13351 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
13353         PR libgomp/33275
13354         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
13355         Make x and y integers rather than (implicit) reals.  Add private (j)
13356         clause to the last omp parallel.
13358 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
13360         * configure: Regenerate following changes to ../config/tls.m4.
13362 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
13364         * testsuite/libgomp.fortran/stack.f90: New test.
13366 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
13368         * config/mingw32/proc.c: New file.
13370 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
13372         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
13373         (main): Use __get_cpuid to get i386 target fetaures.
13374         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
13375         (main): Use __get_cpuid to get x86_64 target fetaures.
13377 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
13379         PR target/32765
13380         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
13381         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
13383 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
13385         PR fortran/32550
13386         * testsuite/libgomp.fortran/pr32550.f90: New test.
13387         * testsuite/libgomp.fortran/crayptr2.f90: New test.
13389 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
13391         * aclocal.m4: Regenerated.
13393 2007-07-05  Tobias Burnus  <burnus@net-b.de>
13395         PR fortran/32359
13396         * testsuite/libgomp.fortran/pr32359.f90: New.
13398 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
13400         PR libgomp/32468
13401         * sections.c (GOMP_parallel_sections_start): Only decrease
13402         number of threads to COUNT if dyn_var is true.
13403         * testsuite/libgomp.c/pr32468.c: New test.
13405 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13407         PR libgomp/26308
13408         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
13410 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
13412         PR middle-end/32362
13413         * testsuite/libgomp.c/pr32362-1.c: New test.
13414         * testsuite/libgomp.c/pr32362-2.c: New test.
13415         * testsuite/libgomp.c/pr32362-3.c: New test.
13417 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
13419         * team.c (gomp_team_start): Fix setting up thread_attr
13420         stack size.
13422 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
13424         * configure: Regenerate.
13426 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
13428         * Makefile.in: Regenerate.
13429         * configure: Regenerate.
13430         * aclocal.m4: Regenerate.
13431         * testsuite/Makefile.in: Regenerate.
13433 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
13435         * config/linux/proc.c: New file.
13437         PR libgomp/28482
13438         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
13440 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
13442         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
13444 2007-04-16  Matthias Klose  <doko@debian.org>
13446         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
13447         flags if not building with -m64.
13448         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
13449         flag for i?86-*-* targets, if current target matches -m64.
13451 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
13453         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
13454         * Makefile.in: Regenerate.
13456 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13458         PR testsuite/31369
13459         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
13460         ld_library_path.
13461         * testsuite/libgomp.fortran/fortran.exp: Likewise.
13463 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
13465         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
13466         decls.
13467         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
13468         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
13469         (parse_affinity): New function.
13470         (initialize_env): Call it and gomp_init_affinity.
13471         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
13472         create new pthread_attr_t and call gomp_init_thread_affinity
13473         on it for each thread before passing the attribute to pthread_create.
13474         * config/linux/affinity.c: New file.
13475         * config/posix/affinity.c: New file.
13476         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
13477         * configure: Rebuilt.
13478         * config.h.in: Rebuilt.
13479         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
13480         * Makefile.in: Rebuilt.
13482 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
13484         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
13485         *-*-darwin*.
13486         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
13487         and use it if found.
13489 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
13491         * testsuite/config/default.exp: New file.
13492         * testsuite/lib/libgomp.exp: New file.
13493         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
13494         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
13495         load_lib *, load_gcc_lib *): Move to libgomp.exp.
13496         (libgomp_load): Remove.
13497         * testsuite/lib/libgomp.exp (libgomp_init): Compute
13498         always_ld_library_path, not ld_library_path.  Set additional_flags
13499         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
13500         (target_compile): Do not call libgomp_init.  Append lang_library_path
13501         and lang_link_flags to options.
13502         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
13503         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
13504         here.
13505         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
13506         always_ld_library_path.  Set LD_LIBRARY_PATH here.
13507         * testsuite/libgomp.fortran/fortran.exp: Ditto.
13508         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
13509         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
13510         CX8 flag.
13511         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
13512         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
13513         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
13514         * testsuite/libgomp.c/pr29947-1.c: Ditto.
13515         * testsuite/libgomp.c/atomic-10.c: Ditto.
13517 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
13519         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
13520         dg-final cleanup-modules line.
13521         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
13522         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
13523         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
13524         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
13525         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
13526         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
13527         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
13529 2007-03-18  Andreas Schwab  <schwab@suse.de>
13531         * acinclude.m4: Adjust regular expression for ld version
13532         extraction.
13533         * configure: Regenerate.
13535 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
13537         * Makefile.am: Add install-pdf target as copied from
13538         automake v1.10 rules.
13539         * Makefile.in: Regenerate
13541 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
13543         PR libgomp/28486
13544         * configure: Regenerate.
13546         PR c++/30703
13547         * testsuite/libgomp.c++/pr30703.C: New test.
13549 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
13551         Revert:
13552         2006-07-05  Eric Christopher  <echristo@apple.com>
13553         * configure.ac: Depend addition of -pthread on host OS.
13554         * configure: Regenerate.
13556 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13558         * libgomp.texi: Fix spacing after abbreviations.
13560 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
13562         PR libgomp/30546
13563         * configure.ac: Add check for makeinfo
13564         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
13565         if an appropriate version of makeinfo is found.
13566         * aclocal.m4: Regenerated.
13567         * configure: Regenerated.
13568         * Makefile.in: Regenerated.
13569         * testsuite/Makefile.in: Regenerated.
13571 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
13573         PR libgomp/30540
13574         * libgomp.texi: More about implementation-dependent settings.
13576 2007-01-26  Tobias Burnus  <burnus@net-b.de>
13578         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
13580 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
13582         PR middle-end/30494
13583         * testsuite/libgomp.c/pr30494.c: New test.
13585 2007-01-15  Tom Tromey  <tromey@redhat.com>
13587         * configure: Rebuilt.
13588         * configure.ac: Fixed comment.
13590 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
13592         * libgomp.texi: Document implementation specific default values of
13593         environment variables.
13595 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
13597         PR libgomp/28209
13598         * libgomp.texi: New file.
13599         * configure.ac: Add --enable-generated-files-in-srcdir option.
13600         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
13601         files to srcdir.
13602         * Makefile.in: Regenerated.
13603         * config.h.in: Regenerated.
13604         * testsuite/Makefile.in: Regenerated.
13605         * NOTES: Removed.
13607 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
13609         PR libgomp/29949
13610         * env.c (omp_set_num_threads): Set illegal thread count to 1.
13612 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
13614         * configure: Regenerate.
13616 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
13618         PR libgomp/29947
13619         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
13620         start if there shouldn't be any loop iterations.
13621         (gomp_loop_ordered_static_start): Remove start == end test.
13622         * testsuite/libgomp.c/pr29947-1.c: New test.
13623         * testsuite/libgomp.c/pr29947-2.c: New test.
13625 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
13627         * configure.tgt: Force initial-exec TLS model on Linux only.
13629 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
13631         * configure: Regenerated.
13633 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
13635         * env.c (parse_schedule): Reject out of range values.
13636         (parse_unsigned_long): Reject out of range, negative or zero values.
13638 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
13640         PR fortran/29629
13641         * testsuite/libgomp.fortran/pr29629.f90: New test.
13643 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
13645         PR libgomp/29494
13646         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
13647         * config/posix95: New directory.
13648         * config/posix95/omp-lock.h: New file.
13649         * config/posix95/lock.c: Likewise.
13651 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
13653         * aclocal.m4: Regenerate.
13654         * configure: Regenerate.
13656 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
13658         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
13659         '<' to '<='.
13661 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
13663         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
13664         test.
13665         * configure: Regenerate.
13666         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
13668 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
13670         PR middle-end/25261
13671         PR middle-end/28790
13672         * testsuite/libgomp.c/nestedfn-4.c: New test.
13673         * testsuite/libgomp.c/nestedfn-5.c: New test.
13674         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
13676         PR fortran/29097
13677         * testsuite/libgomp.fortran/condinc1.f: New test.
13678         * testsuite/libgomp.fortran/condinc2.f: New test.
13679         * testsuite/libgomp.fortran/condinc3.f90: New test.
13680         * testsuite/libgomp.fortran/condinc4.f90: New test.
13681         * testsuite/libgomp.fortran/condinc1.inc: New file.
13683 2006-09-18  Tom Tromey  <tromey@redhat.com>
13685         * configure: Rebuilt.
13687 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
13689         PR c/28768
13690         PR preprocessor/14634
13691         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
13692         to AC_DEFINE.
13693         * configure: Regenerate.
13695 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
13697         * testsuite/libgomp.fortran/reduction3.f90: Change
13698         -2147483648 to -huge(i)-1 to avoid overflow.
13699         * testsuite/libgomp.fortran/reduction4.f90: Change
13700         Z'ffffffff' to not(0) to avoid overflow.
13702 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
13704         PR libgomp/25938
13705         * Makefile.am (libsubincludedir): New.
13706         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
13707         * Makefile.in: Regenerate.
13709 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
13711         PR libgomp/28725
13712         * env.c: Include ctype.h.
13713         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
13714         leading and/or trailing whitespace and compare strings case
13715         insensitively.
13717 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
13719         PR fortran/28390
13720         * testsuite/libgomp.fortran/pr28390.f: New test.
13722 2006-07-05  Eric Christopher  <echristo@apple.com>
13724         * configure.ac: Depend addition of -pthread on host OS.
13725         * configure: Regenerate.
13727 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
13729         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
13730         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
13731         defined.
13733 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
13735         PR libgomp/26175
13736         PR libgomp/26477
13737         * configure.ac: If neither --enable-linux-futex nor
13738         --disable-linux-futex is passed, determine the default by checking
13739         for compiling and/or running against NPTL.  With --enable-linux-futex,
13740         check if SYS_gettid and SYS_futex are defined.
13741         * configure: Rebuilt.
13743 2006-06-14  Richard Henderson  <rth@redhat.com>
13745         PR libgomp/28008
13746         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
13747         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
13749 2006-06-09  Richard Henderson  <rth@redhat.com>
13751         * env.c (gomp_nthreads_var): Change to unsigned long.
13752         (gomp_run_sched_chunk): Likewise.
13753         (parse_unsigned_long): Rename from parse_num_threads and generalize.
13754         (initialize_env): Initialize gomp_thread_attr.
13755         * libgomp.h (gomp_nthreads_var): Update decl.
13756         (gomp_run_sched_chunk): Likewise.
13757         (gomp_thread_attr): Declare.
13758         * team.c (gomp_thread_attr): Export.
13759         (initialize_team): Don't initialize it.
13761 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
13763         PR fortran/27916
13764         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
13765         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
13767 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
13769         * config/mingw32/time.c: New file.
13770         * configure.tgt: Use it.
13772 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
13774         * Makefile.am: Add install-html target. Add install-html to .PHONY
13775         * Makefile.in: Regenerate.
13777 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13779         PR libgomp/27612
13780         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
13781         * testsuite/libgomp.c/critical-1.c: Likewise.
13782         * testsuite/libgomp.c/loop-1.c: Likewise.
13783         * testsuite/libgomp.c/loop-2.c: Likewise.
13784         * testsuite/libgomp.c/single-1.c: Likewise.
13785         * testsuite/libgomp.c/ordered-1.c: Likewise.
13786         * testsuite/libgomp.c/ordered-2.c: Likewise.
13788 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
13790         PR middle-end/27416
13791         * libgomp.fortran/pr27416-1.f90: New test.
13793 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
13795         PR fortran/27395
13796         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
13797         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
13799 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
13801         PR c++/26943
13802         * testsuite/libgomp.c/pr26943-1.c: New test.
13803         * testsuite/libgomp.c/pr26943-2.c: New test.
13804         * testsuite/libgomp.c/pr26943-3.c: New test.
13805         * testsuite/libgomp.c/pr26943-4.c: New test.
13806         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
13807         * testsuite/libgomp.c++/pr26943.C: New test.
13809 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
13811         PR middle-end/27337
13812         * testsuite/libgomp.c++/pr27337.C: New test.
13814 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
13816         PR c/26171
13817         * testsuite/libgomp.c/pr26171.c: New test.
13819 2006-04-25  Richard Henderson  <rth@redhat.com>
13821         PR libgomp/25865
13822         * configure.ac: Use GCC_CHECK_TLS.
13823         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
13824         * Makefile.in, aclocal.m4, configure: Regenerate.
13826 2006-04-10  Matthias Klose  <doko@debian.org>
13828         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
13829         directory names containing underscores.
13831 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
13833         PR c++/26691
13834         * testsuite/libgomp.c++/pr26691.C: New test.
13836 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
13838         * testsuite/libgomp.fortran/retval2.f90: New test.
13840 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
13842         * testsuite/libgomp.c++: New directory.
13844 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
13846         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
13847         * config/posix/sem.c: Implement the above.
13849 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
13851         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
13852         define HAVE_BROKEN_POSIX_SEMAPHORES.
13853         * configure: Rebuilt.
13854         * config.h.in: Rebuilt.
13856 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
13858         PR bootstrap/26161
13859         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
13860         for the other pthread check.
13861         * configure: Regenerate.
13862         * config.h.in: Regenerate.
13864 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
13866         PR libgomp/25938
13867         PR libgomp/25984
13868         * Makefile.am (fincludedir): New variable.
13869         (nodist_include_HEADERS): Remove Fortran files.
13870         (nodist_finclude_HEADERS): New variable.
13871         * Makefile.in: Regenerated.
13873 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
13875         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
13876         Remove tests for returning assumed character length arrays.
13878 2006-02-12  Roger Sayle  <roger@eyesopen.com>
13879             John David Anglin  <dave@hiauly1.hia.nrc.ca>
13881         PR libgomp/25936
13882         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
13884 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
13886         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
13888 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
13890         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
13891         part of LD_LIBRARY_PATH manually.
13893 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
13895         PR libgomp/25852
13896         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
13897         libgomp_init.
13899 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
13901         PR libgomp/25884
13902         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
13903         * configure.ac (PERL): Don't set.
13904         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
13905         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
13906         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
13907         * omp.h.in: Wrap the new configure substitutions with @ characters.
13908         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
13909         * aclocal.m4, configure, Makefile.in: Regenerate.
13910         * mkomp_h.pl: Delete.
13912 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
13914         PR libgomp/25259
13915         * configure.ac: Use GCC_HEADER_STDINT.
13916         * libgomp.h: Include gstdint.h.
13917         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
13918         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
13920 2006-01-24  Richard Henderson  <rth@redhat.com>
13922         PR libgomp/25942
13923         * configure.ac: Add AM_MAINTAINER_MODE.
13924         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
13926 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
13928         * Makefile.in: Regenerate.
13929         * testsuite/Makefile.in: Regenerate.
13930         * aclocal.m4: Regenerate.
13932 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
13934         * config/posix/proc.c: Conditional include of sys/loadavg.h for
13935         Solaris.
13936         * configure.ac: Add check for loadavg.h.
13937         (link_gomp): Adjust comment.
13938         * configure: Regenerate.
13939         * config.h.in: Regenerate.
13941 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
13943         PR libgomp/25877
13944         * configure.ac: Remove check for alloca.h.
13945         * configure: Regenerate.
13946         * config.h.in: Regenerate.
13947         * libgomp.h: define gomp_alloca to be __builtin_alloca.
13948         * team.c: Remove use of alloca.h.
13949         Call gomp_alloca instead of alloca.
13951 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
13953         PR libgomp/25877
13954         * team.c: Add include of alloca.h.
13955         * configure.ac: Add check for alloca.h.
13956         * configure: Regenerate.
13957         * config.h.in: Regenerate.
13959 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
13961         PR fortran/25219
13962         * testsuite/libgomp.fortran/pr25219.f90: New test.
13964 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
13966         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
13967         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
13968         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
13969         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
13970         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
13971         testsuite/libgomp.fortran/threadprivate1.f90,
13972         testsuite/libgomp.fortran/threadprivate2.f90,
13973         testsuite/libgomp.fortran/threadprivate3.f90,
13974         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
13975         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
13976         testsuite/libgomp.fortran/omp_parse3.f90: Change required
13977         effective-target to TLS runtime.
13979         * testsuite/libgomp.fortran/pr25162.f: Require
13980         effective-target TLS runtime.
13982 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
13984         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
13985         * testsuite/libgomp.c/nestedfn-3.c: New test.
13987 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
13989         PR fortran/25162
13990         * testsuite/libgomp.fortran/pr25162.f: New test.
13992 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
13994         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
13995         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
13997 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
13999         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
14000         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
14001         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
14002         single.c, team.c, work.c, config/linux/alpha/futex.h,
14003         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
14004         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
14005         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
14006         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
14007         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
14008         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
14009         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
14010         FSF address.
14012 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
14014         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
14015         to nodist_noinst_HEADERS.
14016         * Makefile.in: Rebuilt.
14018         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
14019         add integer count field.
14020         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
14021         omp_nest_lock_t type change.
14022         (omp_init_nest_lock): Likewise.  Initialize count to 0.
14023         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
14024         Increment count.
14025         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
14026         Decrement count.
14027         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
14028         Increment count if successful and return the new nesting level.
14029         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
14030         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
14031         * testsuite/libgomp.c/lib-1.c: New test.
14032         * testsuite/libgomp.fortran/lib1.f90: New test.
14033         * testsuite/libgomp.fortran/lib2.f: New test.
14034         * testsuite/libgomp.fortran/lib3.f: New test.
14036 2005-11-17  Richard Henderson  <rth@redhat.com>
14038         PR 24845
14039         * Makefile.am (nodist_toolexeclib_HEADERS): New.
14040         * configure.ac (link_gomp): New.  Substitute it.
14041         (AC_CONFIG_FILES): Add libgomp.spec.
14042         * libgomp.spec.in: New file.
14043         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
14044         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
14046 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
14048         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
14049         reduction(-:var) behaving the same as reduction(+:var).
14050         * testsuite/libgomp.c/reduction-4.c: New test.
14052 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
14054         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
14055         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
14056         testsuite/libgomp.c/copyin-3.c,
14057         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
14058         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
14059         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
14060         testsuite/libgomp.c++/pr24455.C,
14061         testsuite/libgomp.fortran/threadprivate1.f90,
14062         testsuite/libgomp.fortran/threadprivate2.f90,
14063         testsuite/libgomp.fortran/threadprivate3.f90,
14064         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
14065         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
14066         testsuite/libgomp.fortran/omp_parse3.f90: Require
14067         effective-target TLS.
14069 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
14071         * HEADER: Remove.
14073 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
14075         PR libgomp/24797
14076         * team.c (initialize_team): Pass NULL rather than free as
14077         pthread_key_create destructor.  Initialize thread specific data
14078         pointer in initial thread to a static local variable rather than
14079         malloced memory.
14081 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
14083         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
14084         its location to ld_library_path.
14086 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
14088         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
14090 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
14092         * testsuite/libgomp.c: Rename from libgomp.dg.
14094 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
14096         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
14097         threadprivate variable 'i'.
14099 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
14101         * config/linux/s390/futex.h: New file.
14102         * configure.tgt: Use it.
14104         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
14105         before the parallel.
14107 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
14109         PR c++/24734
14110         * testsuite/libgomp.c++/master-1.C: New test.
14112 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
14114         * testsuite/libgomp.dg/copyin-3.c: New test.
14116 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
14118         * testsuite/libgomp.fortran/retval1.f90: New test.
14119         * testsuite/libgomp.fortran/vla7.f90: New test.
14121 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
14123         * testsuite/libgomp.fortran/vla2.f90: New test.
14124         * testsuite/libgomp.fortran/vla3.f90: New test.
14125         * testsuite/libgomp.fortran/vla4.f90: New test.
14126         * testsuite/libgomp.fortran/vla5.f90: New test.
14127         * testsuite/libgomp.fortran/vla6.f90: New test.
14129 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
14131         * config/linux/sparc/futex.h: New file.
14132         * configure.tgt: Use it.
14133         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
14135         * critical.c: Include stdlib.h.
14136         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
14137         ignoring return value.
14138         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
14139         LIBGOMP_CHECK_SYNC_BUILTINS check.
14140         * configure: Rebuilt.
14142 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
14144         * testsuite/libgomp.fortran/vla1.f90: New test.
14146 2005-10-31  Richard Henderson  <rth@redhat.com>
14148         * testsuite/libgomp.fortran/character2.f90: Fix race condition
14149         setting 's' in different threads.
14151 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
14153         * libgomp.h (attribute_hidden, ialias): Define.
14154         * config/posix/proc.c (omp_get_num_procs): Add ialias.
14155         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
14156         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
14157         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
14158         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
14159         omp_test_lock, omp_test_nest_lock): Likewise.
14160         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
14161         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
14162         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
14163         omp_test_lock, omp_test_nest_lock): Likewise.
14164         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
14165         omp_get_dynamic, omp_get_nested): Likewise.
14166         * parallel.c (omp_get_num_threads, omp_get_max_threads,
14167         omp_get_thread_num, omp_in_parallel): Likewise.
14168         * fortran.c (ialias_redirect): Define.
14169         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
14170         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
14171         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
14172         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
14173         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
14174         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
14175         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
14176         omp_get_wtime): Add ialias_redirect.
14178 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
14180         * fortran.c: Include stdlib.h.
14182 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
14184         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
14185         * Makefile.in: Regenerated.
14187 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
14189         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
14190         * libgomp_f.h.in (omp_check_defines): New function.
14191         * env.c: Include libgomp_f.h.
14192         (initialize_env): Call omp_check_defines.
14194         * testsuite/libgomp.dg/copyin-2.c: New test.
14195         * testsuite/libgomp.c++/copyin-2.C: New test.
14196         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
14198         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
14199         * testsuite/libgomp.fortran/sharing2.f90: New test.
14201         * testsuite/libgomp.dg/copyin-1.c: New test.
14202         * testsuite/libgomp.c++/copyin-1.C: New test.
14204 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
14206         * testsuite/libgomp.fortran/crayptr1.f90: New test.
14208         * testsuite/libgomp.fortran/workshare1.f90: New test.
14210         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
14211         only test.
14212         * libgomp.fortran/sharing1.f90: New test.
14214 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
14216         PR c++/24502
14217         * testsuite/libgomp.c++/loop-7.C: New test.
14219         * testsuite/libgomp.dg/nestedfn-2.c: New test.
14221         * testsuite/libgomp.dg/nestedfn-1.c: New test.
14222         * testsuite/libgomp.fortran/reduction6.f90: New test.
14223         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
14225 2005-10-23  Richard Henderson  <rth@redhat.com>
14227         * testsuite/libgomp.c++/ctor-1.C: New.
14228         * testsuite/libgomp.c++/ctor-2.C: New.
14229         * testsuite/libgomp.c++/ctor-3.C: New.
14230         * testsuite/libgomp.c++/ctor-4.C: New.
14231         * testsuite/libgomp.c++/ctor-5.C: New.
14232         * testsuite/libgomp.c++/ctor-6.C: New.
14233         * testsuite/libgomp.c++/ctor-7.C: New.
14234         * testsuite/libgomp.c++/ctor-8.C: New.
14235         * testsuite/libgomp.c++/ctor-9.C: New.
14237 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
14239         PR 24455
14240         * testsuite/libgomp.c++/pr24455-1.C: New test.
14241         * testsuite/libgomp.c++/pr24455.C: New test.
14242         * testsuite/libgomp.dg/pr24455-1.c: New test.
14243         * testsuite/libgomp.dg/pr24455.c: New test.
14245 2005-10-20  Richard Henderson  <rth@redhat.com>
14247         * testsuite/libgomp.c++/loop-6.C: New.
14248         * testsuite/libgomp.dg/loop-3.c: New.
14250 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
14252         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
14253         explicitly private.
14254         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
14255         explicitly shared.
14257 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
14259         * testsuite/libgomp.fortran/jacobi.f: New test.
14261 2005-10-19  Richard Henderson  <rth@redhat.com>
14263         * configure.tgt (i?86-linux): Default to with_arch instead of
14264         CFLAGS.  Add -mtune to match target_cpu.
14265         (x86_64-linux): Tune to i686.
14267         * fortran.c (omp_test_nest_lock_): Fix typo.
14269 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
14271         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
14272         gomp_ordered_sync): Do nothing if team->nthreads == 1.
14273         * testsuite/libgomp.dg/ordered-3.c: New test.
14275         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
14276         Remove volatile keyword.
14278         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
14279         in COMMON block to avoid warnings on 64-bit targets.
14281 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
14283         * testsuite/libgomp.dg/shared-3.c: New test.
14285 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
14287         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
14288         * testsuite/libgomp.fortran/reduction5.f90: New test.
14290 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
14292         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
14293         dg-options.
14294         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
14295         flush loop now that __sync_synchronize has proper memory barrier.
14296         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
14297         Add -ffixed-form to dg-options.
14299 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
14301         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
14302         from subdirectories.
14303         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
14304         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
14305         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
14306         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
14307         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
14308         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
14309         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
14310         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
14311         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
14312         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
14313         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
14314         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
14315         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
14316         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
14317         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
14318         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
14319         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
14320         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
14321         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
14322         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
14323         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
14324         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
14325         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
14326         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
14327         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
14329 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
14331         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
14332         lang_library_path exists.  Use find instead of glob to gather tests.
14333         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
14335 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
14337         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
14338         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
14339         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
14340         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
14341         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
14342         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
14343         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
14344         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
14345         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
14346         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
14347         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
14348         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
14349         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
14351 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
14353         * testsuite/libgomp.dg/vla-1.c: New test.
14355         * testsuite/libgomp.fortran/reference2.f90: New test.
14357         * testsuite/libgomp.fortran/character2.f90: Remove explicit
14358         declaration of omp_get_thread_num.
14359         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
14360         use omp_lib.
14362         * testsuite/libgomp.fortran/reduction1.f90: New test.
14363         * testsuite/libgomp.fortran/reduction2.f90: New test.
14364         * testsuite/libgomp.fortran/reduction3.f90: New test.
14365         * testsuite/libgomp.fortran/reduction4.f90: New test.
14367 2005-10-13  Richard Henderson  <rth@redhat.com>
14369         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
14370         * Makefile.in: Regenerate.
14371         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
14372         * libgomp.h: Include bar.h.
14373         (struct gomp_barrier): Remove.
14374         (struct gomp_team): Add barrier.  Replace master_barrier with
14375         master_release.  Replace threads with ordered_release.
14376         (struct gomp_thread): Replace barrier with release.
14377         * ordered.c (gomp_ordered_first): Update for ordered_release change.
14378         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
14379         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
14380         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
14381         (GOMP_single_copy_end): Likewise.
14382         * team.c (gomp_threads_dock): New.
14383         (gomp_barrier_init, gomp_barrier_destroy): Remove.
14384         (gomp_thread_start): Use gomp_barrier_wait.
14385         (new_team, free_team): Update for gomp_team changes.
14386         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
14387         (gomp_team_end): Use gomp_barrier_wait.
14388         (initialize_team): Update for gomp_thread changes.
14389         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
14390         (gomp_work_share_end_nowait): Use atomic ops when available.
14391         * config/linux/bar.c, config/linux/bar.h: New files.
14392         * config/posix/bar.c, config/posix/bar.h: New files.
14394 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
14396         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
14397         * testsuite/libgomp.dg/single-2.c: New test.
14399         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
14400         lang_link_flags): Unset, so that they aren't inherited from previously
14401         sourced *.exp.
14403         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
14405 2005-10-12  Richard Henderson  <rth@redhat.com>
14407         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
14408         (libgomp_init): Use lang_test_file, lang_library_path, and
14409         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
14411         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
14412         (lang_test_file, lang_link_flags): New.
14413         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
14415         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
14416         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
14417         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
14418         testsuite/libgomp.c++/parallel-1.C,
14419         testsuite/libgomp.c++/reduction-1.C,
14420         testsuite/libgomp.c++/reduction-2.C,
14421         testsuite/libgomp.c++/reduction-3.C,
14422         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
14423         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
14424         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
14425         New files, largely cribbed from the C testsuite.
14427 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
14429         * testsuite/libgomp.fortran/character1.f90: New test.
14430         * testsuite/libgomp.fortran/character2.f90: New test.
14432         * testsuite/libgomp.dg/nested-1.c: New test.
14433         * testsuite/libgomp.dg/nested-2.c: New test.
14434         * testsuite/libgomp.fortran/do1.f90: New test.
14435         * testsuite/libgomp.fortran/do2.f90: New test.
14437         * testsuite/libgomp.fortran/reference1.f90: New test.
14439 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
14441         * testsuite/libgomp.dg/reduction-1.c: New test.
14442         * testsuite/libgomp.dg/reduction-2.c: New test.
14443         * testsuite/libgomp.dg/reduction-3.c: New test.
14445 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
14447         * testsuite/libgomp.dg/atomic-1.c: New test.
14448         * testsuite/libgomp.dg/atomic-2.c: New test.
14450 2005-10-09  Richard Henderson  <rth@redhat.com>
14452         * critical.c (atomic_lock): New.
14453         (initialize_critical): Initialize it.
14454         (GOMP_atomic_start, GOMP_atomic_end): New.
14455         * libgomp.map: Export them.
14456         * libgomp_g.h: Declare them.
14458         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
14460 2005-10-02  Richard Henderson  <rth@redhat.com>
14462         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
14463         to XCFLAGS instead of CFLAGS.
14465 2005-09-30  Richard Henderson  <rth@redhat.com>
14467         * configure.ac: Determine whether -pthread or -lpthread is needed.
14468         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
14469         * Makefile.in, configure: Rebuild.
14471 2005-09-28  Richard Henderson  <rth@redhat.com>
14473         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
14474         * testsuite/libgomp.dg/omp-single-3.c: New test.
14476 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
14478         * testsuite/libgomp.dg/omp-single-2.c: New test.
14479         * testsuite/libgomp.dg/shared-2.c: Fix return code.
14481 2005-09-27  Richard Henderson  <rth@redhat.com>
14483         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
14484         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
14486 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
14488         * testsuite/libgomp.dg/omp-loop03.c: New test.
14490 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
14492         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
14494 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
14496         * testsuite/libgomp.dg/omp-single-1.c: New test.
14497         * testsuite/libgomp.dg/shared-1.c: Return 0.
14498         Add prototype for abort.
14499         * testsuite/libgomp.dg/shared-2.c: Likewise.
14501 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
14503         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
14504         constructs.
14506 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
14508         * testsuite/libgomp.dg/shared-1.c: New test.
14509         * testsuite/libgomp.dg/shared-2.c: New test.
14511 2005-09-24  Richard Henderson  <rth@redhat.com>
14513         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
14515 2005-09-24  Richard Henderson  <rth@redhat.com>
14517         * iter.c (gomp_iter_static_next): Round up when computing number
14518         of iterations.  Don't bother distributing a remainder equally.
14520         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
14521         Don't call srand.  Zero b before testing.
14522         (main): New.
14524 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
14526         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
14527         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
14529 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
14531         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
14532         without !$omp end do, followed immediately by subroutine end.
14534 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
14536         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
14538 2005-09-22  Richard Henderson  <rth@redhat.com>
14540         * critical.c (GOMP_critical_name_start): Change argument to void**.
14541         Reuse the pointer space if the mutex fits.
14542         (GOMP_critical_name_end): Likewise.
14543         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
14544         * libgomp_g.h (GOMP_critical_name_start): Update decl.
14545         (GOMP_critical_name_end): Likewise.
14546         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
14547         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
14549 2005-09-20  Richard Henderson  <rth@redhat.com>
14551         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
14552         (create_lock_lock): New.
14553         (initialize_critical): Initialize it.
14554         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
14555         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
14557 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
14559         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
14561 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
14563         * testsuite/libgomp.dg/omp-loop01.c: New test.
14564         * testsuite/libgomp.dg/omp-loop02.c: New test.
14566 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
14568         * configure.ac (AC_PROG_FC): Add.
14569         (USE_FORTRAN): New automake conditional.
14570         * configure: Rebuilt.
14571         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
14572         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
14573         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
14574         Add rules to build them.
14575         * Makefile.in: Rebuilt.
14576         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
14577         OMP_NEST_LOCK_KIND.
14578         * libgomp.map: Add Fortran wrappers.
14579         * libgomp_f.h.in: New file.
14580         * omp_lib.h.in: New file.
14581         * omp_lib.f90.in: New file.
14582         * fortran.c: New file.
14583         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
14584         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
14585         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
14586         libgfortran has been built.
14587         * testsuite/libgomp.fortran/fortran.exp: New file.
14588         * testsuite/libgomp.fortran/omp_cond1.f: New test.
14589         * testsuite/libgomp.fortran/omp_cond2.f: New test.
14590         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
14591         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
14592         * testsuite/libgomp.fortran/omp_hello.f: New test.
14593         * testsuite/libgomp.fortran/omp_orphan.f: New test.
14594         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
14595         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
14596         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
14597         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
14598         * testsuite/libgomp.fortran/omp_reduction.f: New test.
14599         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
14600         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
14602 2005-08-30  Richard Henderson  <rth@redhat.com>
14604         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
14605         function for when aliases are not usable.
14606         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
14607         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
14608         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
14609         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
14610         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
14611         GOMP_loop_ordered_guided_next): Likewise.
14612         * ordered.c (GOMP_ordered_start): Likewise.
14614 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
14616         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
14617         * testsuite/libgomp.dg/omp_hello.c: Fix return code
14618         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
14619         * testsuite/libgomp.dg/omp_orphan.c: Likewise
14620         * testsuite/libgomp.dg/omp_reduction.c: Likewise
14621         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
14622         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
14623         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
14624         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
14626 2005-07-07  Eric Christopher  <echristo@redhat.com>
14627             Diego Novillo  <dnovillo@redhat.com>
14629         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
14630         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
14631         up code.
14632         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
14633         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
14634         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
14635         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
14636         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
14637         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
14638         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
14640 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
14642         * TOPLEVEL.patch: Remove.
14644 2005-05-16  Richard Henderson  <rth@redhat.com>
14646         * configure.ac: Test for clock_gettime.
14647         * config.h.in, configure: Rebuild.
14648         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
14649         (omp_get_wtime): Use clock_gettime if available.
14650         (omp_get_wtick): Use clock_getres if available.
14652 2005-05-11  Richard Henderson  <rth@redhat.com>
14654         * config/linux/ia64/futex.h: New file.
14655         * configure.tgt: Use it.
14657         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
14659 2005-05-07  Richard Henderson  <rth@redhat.com>
14661         * config/linux/powerpc/futex.h: New file.
14662         * configure.tgt: Use it.
14664         * config/linux/i486/futex.h: Merge ...
14665         * config/linux/x86_64/futex.h: ... into ...
14666         * config/linux/x86/futex.h: ... here.
14667         * configure.tgt: Update to match.
14669 2005-05-06  Richard Henderson  <rth@redhat.com>
14671         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
14672         * config/linux/i486/futex.h: Likewise.
14673         * config/linux/x86_64/futex.h: Likewise.
14675         * config/linux/lock.c: New file.
14676         * config/linux/omp-lock.h: New file.
14678         * critical.c, env.h: Don't include omp.h
14679         * config/posix/lock.c: Include libgomp.h instead of omp.h.
14680         * config/posix/time.c: Likewise.
14681         * config/posix/omp-lock.h: New file.
14682         * libgomp.h: Include omp-lock.h and omp.h.
14683         * Makefile.am (nodist_include_HEADERS): New.
14684         (omp.h): New rule.
14685         * configure.ac (PERL): New.
14686         * mkomp_h.pl: New file.
14687         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
14688         with templates.
14689         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
14691         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
14692         build directory.  Re-add -march=i486 hack.
14694         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
14695         (libgomp_link_flags): Remove.
14696         (libgomp_initialized): Remove.
14697         (libgomp_init): Don't protect from reinitialization.  Copy code
14698         from libstdc++ for getting the multilib set correctly.
14700 2005-05-05  Richard Henderson  <rth@redhat.com>
14702         * config/linux/alpha/futex.h: New file.
14703         * configure.tgt (alpha*-*-linux*): Use it.
14705         * config/posix/mutex.c: New file.
14706         * config/posix/sem.c: Use libgomp.h.
14708         * configure.tgt (x86_64-linux): Also test CC for -m32.
14709         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
14711         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
14712         after $gccpath.
14714         * Makefile.am (SUBDIRS): New.
14715         (libgomp_la_LDFLAGS): Add -lpthread.
14716         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
14717         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
14719         * libgomp_g.h: New file.
14720         * libgomp.h: Split out all public declarations to libgomp_g.h.
14721         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
14722         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
14723         * config/linux/sem.h: Likewise.
14724         * config/posix/sem.h: Likewise.
14726         * Makefile.am (AM_LDFLAGS): New.
14727         (libgomp_version_script): Split out from ...
14728         (libgomp_la_LDFLAGS): ... here.
14729         (libgomp_version_info): New.
14730         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
14731         (LIBGOMP_ENABLE): New.
14732         (LIBGOMP_CHECK_LINKER_FEATURES): New.
14733         (LIBGOMP_ENABLE_SYMVERS): New.
14734         * configure.ac (AC_INIT): Version 1.0.
14735         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
14736         (enable-linux-futex): Likewise.  Rename from enable-futex.
14737         (libtool_VERSION): New.
14738         (LIBGOMP_ENABLE_SYMVERS): Use it.
14739         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
14740         * Makefile.in, aclocal.m4, configure: Rebuild.
14742         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
14743         (gomp_mutex_unlock_slow): Fix typo.
14744         * config/linux/sem.c: Similarly.
14745         (gomp_sem_post_slow): Fix typo.
14746         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
14747         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
14748         [__PIC__] (sys_futex0): Don't use tmp output in asm.
14750         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
14751         (libgomp_la_LDFLAGS): Add top_srcdir to path.
14752         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
14753         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
14754         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
14755         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
14756         LDFLAGS.  Pull enable_futex check to top-level.
14757         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
14758         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
14760         First attempt at real configury.
14761         * Makefile, config.h: Remove file.
14762         * Makefile.am, Makefile.in: New file.
14763         * acinclude.m4 aclocal.m4: New file.
14764         * configure.ac, configure.tgt, configure: New file.
14766         * config/posix/lock.c: Rename from sys-lock.c.
14767         * config/posix/mutex.h: Rename from sys-mutex.h.
14768         * config/posix/sem.c: Rename from sys-sem.c.
14769         * config/posix/sem.h: Rename from sys-sem.h.
14770         * config/posix/proc.c: Rename from sys-proc.c.
14771         * config/posix/time.c: Rename from sys-proc.c.
14773         * config/linux/mutex.c: New file.
14774         * config/linux/mutex.h: New file.
14775         * config/linux/sem.c: New file.
14776         * config/linux/sem.h: New file.
14777         * config/linux/i486/futex.h: New file.
14778         * config/linux/x86_64/futex.h: New file.
14780 2005-05-04  Richard Henderson  <rth@redhat.com>
14782         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
14783         * libgomp.h: Declare them.
14784         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
14785         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
14787 2005-05-04  Richard Henderson  <rth@redhat.com>
14789         * libgomp-1 code drop
14791 2005-05-04  Richard Henderson  <rth@redhat.com>
14793         * iter.c (gomp_iter_static_next): Return tri-state on 0.
14794         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
14795         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
14796         (gomp_iter_static_next): Update.
14797         (gomp_ordered_static_next): Update.
14798         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
14799         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
14800         totally empty range.
14801         (gomp_loop_ordered_static_next): Refine test for calling
14802         gomp_ordered_static_next.
14803         * testsuite/ordered-1.c: Add case for more threads than iterations.
14805         * iter.c (gomp_iter_runtime_next_locked): Remove.
14806         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
14807         gomp_loop_guided_start, gomp_loop_ordered_static_start,
14808         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
14809         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
14810         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
14811         gomp_loop_ordered_guided_next): Downcase name, make static, add
14812         an external alias with the old name.
14813         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
14814         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
14815         switch and call one of the above static functions.
14816         * libgomp.h: Update.
14818         * work.c (gomp_work_share_start): Lock the mutex for !first too.
14819         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
14820         GOMP_loop_guided_start, GOMP_loop_runtime_start,
14821         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
14822         GOMP_loop_ordered_guided_start): Update to match.
14823         * sections.c (GOMP_sections_start): Likewise.
14824         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
14826         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
14827         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
14828         Use bounds check instead of modulus.
14829         (gomp_ordered_sync): Split out of GOMP_ordered_start.
14830         (gomp_ordered_last): Don't sync with ordered_owner here.
14831         (gomp_ordered_next): Likewise.
14832         (gomp_ordered_static_loop_next): Likewise.
14833         * loop.c, libgomp.h: Update to match.
14835         * libgomp.h (GOMP_barrier): Declare.
14837         * testsuite/barrier-1.c: New file.
14838         * testsuite/critical-1.c: New file.
14839         * testsuite/ordered-2.c: New file.
14840         * testsuite/ordered-1.c: New file.
14841         * testsuite/sections-1.c: New file.
14842         * testsuite/single-1.c: New file.
14843         * testsuite/Makefile (TESTS): Add them.
14845 2005-05-04  Richard Henderson  <rth@redhat.com>
14847         * libgomp.h (struct gomp_work_share): Add ordered_owner.
14848         * loop.c (GOMP_loop_static_start): If not the startup thread,
14849         acquire the mutex to wait for initialization complete.
14850         (GOMP_loop_ordered_static_start): Likewise.
14851         (GOMP_loop_ordered_runtime_start): Likewise.
14852         (GOMP_loop_ordered_static_first): Remove.
14853         (GOMP_loop_ordered_dynamic_first): Remove.
14854         (GOMP_loop_ordered_guided_first): Remove.
14855         (GOMP_loop_ordered_runtime_first): Remove.
14856         * ordered.c (gomp_ordered_loop_first): Post to own release when
14857         we're the first thread.
14858         (gomp_ordered_loop_last): Wait on release if not owner.
14859         (gomp_ordered_loop_next): Likewise.
14860         (gomp_ordered_static_loop_init): New.
14861         (gomp_ordered_static_loop_next): Use ordered_owner.
14862         (GOMP_ordered_start): Likewise.
14863         * work.c (gomp_new_work_share): Initialize ordered_owner.
14865 2005-05-03  Richard Henderson  <rth@redhat.com>
14867         * Makefile (OPT): New.
14868         (CFLAGS): Use it.
14870         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
14871         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
14872         * libgomp.h, libgomp.map, NOTES: Update to match.
14874         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
14875         Add initialized and thr members.
14876         (gomp_thread_start): Pause when initially spawned to wait for
14877         the whole team to be created.
14878         (gomp_team_start): Release team members at the end.
14880         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
14881         (f_foo_1): Use GOMP_loop_end.
14882         (f_foo_2): Use GOMP_loop_end_nowait.
14884         * testsuite/loop-2.c: New file.
14885         * testsuite/Makefile (TESTS): Add it.
14887 2005-05-03  Richard Henderson  <rth@redhat.com>
14889         * iter.c (gomp_iter_static_next): Fix overflow check typo.
14890         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
14891         * team.c (new_team): Initialize oldest_live_gen to 1 if no
14892         initial work_share.
14894         * testsuite/Makefile: New file.
14895         * testsuite/loop-1.c: New file.
14897 2005-05-03  Richard Henderson  <rth@redhat.com>
14899         Initial implementation and checkin.
14901 Copyright (C) 2005-2021 Free Software Foundation, Inc.
14903 Copying and distribution of this file, with or without modification,
14904 are permitted in any medium without royalty provided the copyright
14905 notice and this notice are preserved.