Allow CONFIG_SHELL to override build-time shell in mkheaders
[official-gcc.git] / libgomp / ChangeLog
blob3c640c7350ba0bd4e20ee7db7808b2dbd8cbf769
1 2020-02-19  Tobias Burnus  <tobias@codesourcery.com>
3         * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
4         * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
5         (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
6         * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
7         (acc_set_device_num): Fix Fortran argument name, use same name for C.
8         (acc_get_property): Update Fortran interface to post-OpenACC 3.0
9         corrections; add note about the previous interface and named constant.
10         (OpenACC library and environment variables): Fix two typos.
11         * openacc.f90: Use for all procedures the argument names from the spec
12         as for …_h they are user visible.
13         (openacc_kinds): Rename acc_device_property to
14         acc_device_property_kinds and change value to int32 ; and update users.
15         Re-add acc_device_property for for backward compatibility.
16         (acc_get_property_string_h): Clean up as acc_device_property_kind
17         changed.
18         (acc_get_property_h): Likewise and return c_size_t instead of
19         acc_device_property.
20         (openacc): Also export acc_device_property_kinds.
21         (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
22         acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
23         handling; check against /= 0 instead of == 1 to match C.
24         * openacc_lib.h: Use for all procedures the argument names from the spec
25         as for …_h they are user visible. Place !GCC$ into the first column to
26         be active also for fixed-form souce form.
27         (acc_device_current, acc_device_property_kind, acc_device_property,
28         acc_property_memory, acc_property_free_memory, acc_property_name,
29         acc_property_vendor, acc_property_driver): New named constants.
30         (acc_get_property, acc_get_property_string): New generic interface.
32 2020-02-13  Frederik Harwath  <frederik@codesourcery.com>
34         PR libgomp/93481
35         * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
36         * target.c (gomp_load_plugin_for_device): Make "async_run" loading
37         optional.
38         (gomp_target_task_fn): Assert "devicep->async_run_func".
39         (clear_unsupported_flags): New function to remove unsupported flags
40         (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
41         (GOMP_target_ext): Apply clear_unsupported_flags to flags.
42         * testsuite/libgomp.c/target-33.c:
43         Remove xfail for offload_target_nvptx.
44         * testsuite/libgomp.c/target-34.c: Likewise.
46 2020-02-10  Frederik Harwath  <frederik@codesourcery.com>
48         * testsuite/libgomp.c/target-33.c: Add xfail for execution on
49         offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
50         * testsuite/libgomp.c/target-34.c: Likewise.
51         * testsuite/libgomp.c/target-link-1.c: Add xfail for
52         offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
54 2020-02-09  Jakub Jelinek  <jakub@redhat.com>
56         * testsuite/libgomp.c/target-38.c: New test.
58 2020-02-06  Jakub Jelinek  <jakub@redhat.com>
60         PR libgomp/93515
61         * testsuite/libgomp.c-c++-common/pr93515.c: New test.
63 2020-02-05  Tobias Burnus  <tobias@codesourcery.com>
65         * testsuite/lib/libgomp.exp
66         (check_effective_target_offload_target_nvptx): Pass flags as 'options'
67         and not as 'source' argument to libgomp_target_compile.
69 2020-02-03  Andrew Stubbs  <ams@codesourcery.com>
71         * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
72         (gcn_gfx801_s): Remove.
73         (isa_hsa_name): Remove gfx801.
74         (isa_gcc_name): Remove gfx801/carizzo.
75         (isa_code): Remove gfx801.
77 2020-02-03  Julian Brown  <julian@codesourcery.com>
78             Tobias Burnus  <tobias@codesourcery.com>
80         * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
81         and *_finalize variants; document acc_attach and acc_detach; update
82         references from OpenACC 2.0 to 2.6.
83         * openacc.f90 (openacc_version): Update to 201711.
84         * openacc_lib.h (openacc_version): Update to 201711.
85         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
86         openacc_version to 201711.
87         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
89 2020-01-31  Kwok Cheung Yeung  <kcy@codesourcery.com>
91         * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
92         and vgpr_count fields.
93         (struct kernel_info): Add a field for a hsa_kernel_description.
94         (run_kernel): Reduce the number of threads/workers if the requested
95         number would require too many VGPRs.
96         (init_basic_kernel_info): Initialize description field with
97         the hsa_kernel_description entry for the kernel.
99 2020-01-29  Tobias Burnus  <tobias@codesourcery.com>
101         PR bootstrap/93409
102         * plugin/configfrag.ac (enable_offload_targets): Skip
103         HSA and GCN plugin besides -m32 also for -mx32.
104         * configure: Regenerate.
106 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
108         * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
110 2020-01-29  Frederik Harwath  <frederik@codesourcery.com>
112         * plugin-gcn.c (struct agent_info): Add fields "name" and
113         "vendor_name" ...
114         (GOMP_OFFLOAD_init_device): ... and init from here.
115         (struct hsa_context_info): Add field "driver_version_s" ...
116         (init_hsa_contest): ... and init from here.
117         (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
118         implementation.
119         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
120         Enable test execution for amdgcn and host offloading targets.
121         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
122         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
123         (expect_device_properties): Split function into ...
124         (expect_device_string_properties): ... this new function ...
125         (expect_device_memory): ... and this new function.
126         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
127         Add test.
129 2020-01-28  Julian Brown  <julian@codesourcery.com>
131         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
132         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
133         component/non-component variable refs in a single directive.
134         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
136 2020-01-24  Maciej W. Rozycki  <macro@wdc.com>
138         * configure.ac: Handle `--with-toolexeclibdir='.
139         * Makefile.in: Regenerate.
140         * aclocal.m4: Regenerate.
141         * configure: Regenerate.
142         * testsuite/Makefile.in: Regenerate.
144 2020-01-24  Frederik Harwath  <frederik@codesourcery.com>
146         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
147         (expect_device_properties): Remove "expected_free_mem" argument,
148         change "expected_total_mem" argument type to size_t;
149         change types of acc_get_property results to size_t,
150         adapt format strings.
151         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
152         Use %zu instead of %zd to print size_t values.
153         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
154         rename to ...
155         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
156         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
157         rename to ...
158         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
160 2020-01-23  Andrew Stubbs  <ams@codesourcery.com>
162         * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
163         the device id.
165 2020-01-20  Andrew Stubbs  <ams@codesourcery.com>
167         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
168         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
169         Adjust test dimensions for amdgcn.
170         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
171         gang/worker/vector expectations dynamically.
172         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
173         (main): Likewise.
174         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
175         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
176         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
177         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
178         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
179         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
180         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
181         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
182         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
183         (acc_gang): Recognise acc_device_radeon.
184         (acc_worker): Likewise.
185         (acc_vector): Likewise.
186         (main): Set expectations for amdgcn.
187         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
188         (main): Adjust gang/worker/vector expectations dynamically.
189         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
190         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
191         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
192         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
193         for amdgcn.
195 2020-01-17  Andrew Stubbs  <ams@codesourcery.com>
197         * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
198         acc_device_radeon.
199         (openacc): Likewise.
200         * openacc.f90 (openacc_kinds): Likewise.
201         (openacc): Likewise.
202         * openacc.h (acc_device_t): Likewise.
203         * openacc_lib.h: Likewise.
204         * testsuite/lib/libgomp.exp
205         (check_effective_target_openacc_amdgcn_accel_present): Likewise.
206         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
207         (cb_compute_construct_end): Likewise.
208         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
209         (cb_enqueue_launch_start): Likewise.
210         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
211         (cb_enter_data_end): Likewise.
212         (cb_exit_data_start): Likewise.
213         (cb_exit_data_end): Likewise.
214         (cb_compute_construct_end): Likewise.
215         (cb_enqueue_launch_start): Likewise.
216         (cb_enqueue_launch_end): Likewise.
217         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
218         (main): Likewise.
220 2020-01-10  Thomas Schwinge  <thomas@codesourcery.com>
222         * libgomp-plugin.h (enum goacc_property): New.  Adjust all users
223         to use this instead of 'enum gomp_device_property'.
224         (GOMP_OFFLOAD_get_property): Rename to...
225         (GOMP_OFFLOAD_openacc_get_property): ... this.  Adjust all users.
226         * libgomp.h (struct gomp_device_descr): Move
227         'GOMP_OFFLOAD_openacc_get_property'...
228         (struct acc_dispatch_t): ... here.  Adjust all users.
229         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
231         * target.c (gomp_map_vars_internal)
232         <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
233         paths.
235 2020-01-10  Jakub Jelinek  <jakub@redhat.com>
237         PR libgomp/93219
238         * libgomp.h (gomp_print_string): Change return type from void to int.
239         * affinity-fmt.c (gomp_print_string): Likewise.  Return true if
240         not all characters have been written.
242 2020-01-08  Tobias Burnus  <tobias@codesourcery.com>
244         * libgomp.texi: Fix typos, use https.
246 2020-01-03  Tobias Burnus  <tobias@codesourcery.com>
248         * testsuite/libgomp.fortran/optional-map.f90: Add test for
249         unallocated/disassociated actual arguments to nonallocatable/nonpointer
250         dummy arguments; those are/shall be regarded as absent arguments.
251         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
252         * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
254 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
256         Update copyright years.
258         * libgomp.texi: Bump @copying's copyright year.
260 2019-12-31  Ayush Mittal  <ayush.m@samsung.com>
262         PR libgomp/93065
263         * oacc-init.c (goacc_runtime_deinitialize): New function.
265 2019-12-28  Jakub Jelinek  <jakub@redhat.com>
267         PR bootstrap/93074
268         * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
269         (cuDeviceTotalMem, cuMemGetInfo): Likewise.  Define to *_v2.
271 2019-12-22  Maciej W. Rozycki  <macro@codesourcery.com>
272             Frederik Harwath  <frederik@codesourcery.com>
273             Thomas Schwinge  <tschwinge@codesourcery.com>
275         * libgomp.h (gomp_device_descr): Add `get_property_func' member.
276         * libgomp-plugin.h (gomp_device_property_value): New union.
277         (gomp_device_property_value): New prototype.
278         * openacc.h (acc_device_t): Add `acc_device_current' enumeration
279         constant.
280         (acc_device_property_t): New enum.
281         (acc_get_property, acc_get_property_string): New prototypes.
282         * oacc-init.c (acc_get_device_type): Also assert that result
283         is not `acc_device_current'.
284         (get_property_any, acc_get_property, acc_get_property_string):
285         New functions.
286         * openacc.f90 (openacc_kinds): Add `acc_device_current' and
287         `acc_property_memory', `acc_property_free_memory',
288         `acc_property_name', `acc_property_vendor' and
289         `acc_property_driver' constants.  Add `acc_device_property' data
290         type.
291         (openacc_internal): Add `acc_get_property' and
292         `acc_get_property_string' interfaces.  Add `acc_get_property_h',
293         `acc_get_property_string_h', `acc_get_property_l' and
294         `acc_get_property_string_l'.
295         * oacc-host.c (host_get_property): New function.
296         (host_dispatch): Wire it.
297         * target.c (gomp_load_plugin_for_device): Handle `get_property'.
298         * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
299         `acc_get_property_string' and `acc_get_property_string_h_' symbols.
300         * libgomp.texi (OpenACC Runtime Library Routines): Add
301         `acc_get_property'.
302         (acc_get_property): New node.
303         * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
304         function (stub).
305         * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
306         * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
307         `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
308         calls.
309         (GOMP_OFFLOAD_get_property): New function.
310         (struct ptx_device): Add new field "name".
311         (cuda_driver_version_s): Add new static variable ...
312         (nvptx_init): ... and init from here.
314         * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
315         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
316         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
317         * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
318         with test helper functions.
320         * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
322 2019-12-22  Maciej W. Rozycki  <macro@wdc.com>
324         * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
325         variable.
327 2019-12-21  Thomas Schwinge  <thomas@codesourcery.com>
329         * target.c (gomp_map_vars_internal): Restore 'omp declare target
330         link' handling.
332 2019-12-19  Julian Brown  <julian@codesourcery.com>
334         * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
335         * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
336         * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
338 2019-12-19  Julian Brown  <julian@codesourcery.com>
339             Cesar Philippidis  <cesar@codesourcery.com>
341         * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
342         * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
343         * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
344         * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
345         * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
346         * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
347         * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
348         * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
349         * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
350         * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
351         * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
352         * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
353         * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
355 2019-12-19  Julian Brown  <julian@codesourcery.com>
357         * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
358         * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
359         * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
360         * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
361         * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
362         * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
363         * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
364         * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
365         * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
366         * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
367         * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
368         * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
370 2019-12-19  Julian Brown  <julian@codesourcery.com>
372         * libgomp.h (struct target_var_desc): Add do_detach flag.
373         * oacc-init.c (acc_shutdown_1): Free aux block if present.
374         * oacc-mem.c (find_group_last): Add SIZES parameter. Support
375         struct components.  Tidy up and add some new checks.
376         (goacc_enter_data_internal): Update call to find_group_last.
377         (goacc_exit_data_internal): Support detach operations and
378         GOMP_MAP_STRUCT.
379         (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
380         GOMP_MAP_FORCE_PRESENT in finalization detection code.  Handle
381         attach/detach in enter/exit data detection code.
382         * target.c (gomp_map_vars_existing): Initialise do_detach field of
383         tgt_var_desc.
384         (gomp_map_vars_internal): Support attach.
385         (gomp_unmap_vars_internal): Support detach.
387 2019-12-19  Julian Brown  <julian@codesourcery.com>
388             Thomas Schwinge  <thomas@codesourcery.com>
390         * libgomp.h (struct splay_tree_aux): Add attach_count field.
391         (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
392         * libgomp.map (OACC_2.6): New section. Add acc_attach,
393         acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
394         acc_detach_finalize_async.
395         * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
396         acc_detach, acc_detach_async, acc_detach_finalize,
397         acc_detach_finalize_async): New functions.
398         * openacc.h (acc_attach, acc_attach_async, acc_detach,
399         (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
400         prototypes.
401         * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
402         (gomp_remove_var_internal): Free attachment counts if present.
403         * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
404         * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
406 2019-12-19  Julian Brown  <julian@codesourcery.com>
407             Cesar Philippidis  <cesar@codesourcery.com>
409         * libgomp.h (gomp_map_val): Add prototype.
410         * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
411         open-coding device-address calculation.
412         * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
413         non-present case.
415 2019-12-19  Julian Brown  <julian@codesourcery.com>
417         * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
418         field for virtual_refcount.
419         (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
420         (gomp_free_memmap): Remove prototype.
421         * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
422         instead of calling gomp_free_memmap.
423         * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
424         dynamic_refcount.
425         (acc_unmap_data): Open code instead of forcing target_mem_desc's
426         to_free field to NULL then calling gomp_unmap_vars.  Handle
427         REFCOUNT_INFINITY on target blocks.
428         (goacc_enter_data): Rename to...
429         (goacc_enter_datum): ...this.  Remove MAPNUM parameter and special
430         handling for mapping groups.  Use virtual_refcount instead of
431         dynamic_refcount.  Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
432         map_map_vars_async call.  Re-do lookup for target pointer return value.
433         (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
434         renamed goacc_enter_datum function.
435         (goacc_exit_data): Rename to...
436         (goacc_exit_datum): ...this.  Update for virtual_refcount semantics.
437         (acc_delete, acc_delete_async, acc_delete_finalize,
438         acc_delete_finalize_async, acc_copyout, acc_copyout_async,
439         acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
440         goacc_exit_datum function.
441         (gomp_acc_remove_pointer, find_pointer): Remove functions.
442         (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
443         New functions.
444         (GOACC_enter_exit_data): Use goacc_enter_data_internal and
445         goacc_exit_data_internal helper functions.
446         * target.c (gomp_map_vars_internal): Handle
447         GOMP_MAP_VARS_OPENACC_ENTER_DATA.  Update for virtual_refcount
448         semantics.
449         (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
450         (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
451         virtual_refcount field instead of dynamic_refcount.
452         (gomp_free_memmap): Remove function.
453         * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
454         * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
455         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
457 2019-12-19  Julian Brown  <julian@codesourcery.com>
458             Thomas Schwinge  <thomas@codesourcery.com>
460         * libgomp.h (struct splay_tree_aux): New.
461         (struct splay_tree_key_s): Replace link_key field with aux pointer.
462         * target.c (gomp_map_vars_internal): Adjust for link_key being moved
463         to aux struct.
464         (gomp_remove_var_internal): Free aux block if present.
465         (gomp_load_image_to_device): Zero-initialise aux field instead of
466         link_key field.
467         (omp_target_associate_pointer): Zero-initialise aux field.
469 2019-12-18  Jakub Jelinek  <jakub@redhat.com>
471         PR middle-end/86416
472         * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
473         q or none.
474         * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
475         L or none.
477 2019-12-19  Julian Brown  <julian@codesourcery.com>
478             Maciej W. Rozycki  <macro@codesourcery.com>
479             Tobias Burnus  <tobias@codesourcery.com>
480             Thomas Schwinge  <thomas@codesourcery.com>
482         * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
483         * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
484         * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
485         * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
486         * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
487         * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
488         * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
489         * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
490         * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
492 2019-12-18  Thomas Schwinge  <thomas@codesourcery.com>
494         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
495         called...
496         (goacc_insert_pointer): ... from here, "present" case.
497         (goacc_insert_pointer): Inline function into...
498         (GOACC_enter_exit_data): ... here, and simplify.
500         * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
501         called...
502         (goacc_insert_pointer): ... from here, "not present" case.
504         * oacc-mem.c (goacc_remove_pointer): Refactor interface.  Adjust
505         all users.
507         * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
508         'goacc_enter_data', 'goacc_exit_data'.
510         * oacc-mem.c (delete_copyout): Refactor into...
511         (goacc_exit_data): ... this.  Adjust all users.
513         * oacc-mem.c (present_create_copy): Refactor into...
514         (goacc_enter_data): ... this.  Adjust all users.
516         * target.c (gomp_unmap_vars_internal): Add a safeguard to
517         'gomp_remove_var'.
519         * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
520         like 'GOMP_MAP_FROM'.
522         PR libgomp/92726
523         PR libgomp/92970
524         PR libgomp/92984
525         * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
526         fails.
527         (GOACC_enter_exit_data): Simplify accordingly.
528         * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
529         subsuming...
530         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
531         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
532         file.
533         * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
534         subsuming...
535         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
536         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
537         file.
538         * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
539         subsuming...
540         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
542         * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
543         'finalize' handling.
545         PR libgomp/92848
546         * oacc-mem.c (acc_map_data, present_create_copy)
547         (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
548         (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
549         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
550         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
551         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
552         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
553         * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
554         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
555         Remove "XFAIL"s.
557         * target.c (gomp_unmap_tgt): Make it 'static'.
558         * libgomp.h (gomp_unmap_tgt): Remove.
560 2019-12-18  Tobias Burnus  <tobias@codesourcery.com>
562         PR middle-end/86416
563         * testsuite/libgomp.c/pr86416-1.c: New.
564         * testsuite/libgomp.c/pr86416-2.c: New.
566 2019-12-17  Tobias Burnus  <tobias@codesourcery.com>
568         * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
569         all symbols as public except for the 'use …, only' imported symbol,
570         which is private.
571         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
572         all symbols from module openacc_kinds as PUBLIC
573         * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
574         fix comment typo.
575         * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
577 2019-12-13  Julian Brown  <julian@codesourcery.com>
579         PR libgomp/92881
581         * libgomp.h (gomp_remove_var_async): Add prototype.
582         * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
583         gomp_remove_var.
584         * target.c (gomp_unref_tgt): Change return type to bool, indicating
585         whether target_mem_desc was unmapped.
586         (gomp_unref_tgt_void): New.
587         (gomp_remove_var): Reimplement in terms of...
588         (gomp_remove_var_internal): ...this new helper function.
589         (gomp_remove_var_async): New, implemented using above helper function.
590         (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
591         gomp_unref_tgt.
593 2019-12-13  Andrew Stubbs  <ams@codesourcery.com>
595         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
596         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
597         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
598         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
599         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
600         Likewise.
601         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
602         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
604 2019-12-13  Tobias Burnus  <tobias@codesourcery.com>
606         * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
607         as public except for the 'use …, only' imported symbol, which is
608         private.
609         (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
610         all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
611         attributes for acc_copyout_finalize and acc_delete_finalize.
613 2019-12-11  Jakub Jelinek  <jakub@redhat.com>
615         PR fortran/92899
616         * testsuite/libgomp.fortran/atomic1.f90: New test.
618 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
620         PR libgomp/92843
621         * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
622         reference counting for structured 'REFCOUNT_INFINITY'.  Add some
623         assertions.
624         (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
625         * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
626         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
627         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
628         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
630         * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
631         * oacc-mem.c: ... here.
632         (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
633         'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
634         * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
635         Remove.
636         * libgomp_g.h: Update.
638         * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
639         * oacc-async.c: ... here.
640         * oacc-int.h (goacc_wait): Declare.
641         * libgomp_g.h: Update
643         PR libgomp/92854
644         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
645         New file.
646         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
647         Likewise.
648         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
649         Likewise.
650         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
651         Likewise.
652         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
653         Likewise.
654         * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
655         Likewise.
657 2019-12-11  Thomas Schwinge  <thomas@codesourcery.com>
658             Julian Brown  <julian@codesourcery.com>
660         * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
661         Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
663 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
665         * omp_lib.h.in: Fix spelling of function declaration
666         omp_get_cancell(l)ation.
667         * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
668         Fix typos.
669         * env.c: Fix comment typos.
670         * oacc-host.c: Likewise.
671         * ordered.c: Likewise.
672         * task.c: Likewise.
673         * team.c: Likewise.
674         * config/gcn/task.c: Likewise.
675         * config/gcn/team.c: Likewise.
676         * config/nvptx/task.c: Likewise.
677         * config/nvptx/team.c: Likewise.
678         * plugin/plugin-gcn.c: Likewise.
679         * testsuite/libgomp.fortran/jacobi.f: Likewise.
680         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
681         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
683 2019-12-11  Tobias Burnus  <tobias@codesourcery.com>
685         * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
686         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
687         unnecessary 'dg-additional-options "-w"'.
689 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
690             Julian Brown  <julian@codesourcery.com>
692         PR libgomp/92116
693         PR libgomp/92877
695         * oacc-mem.c (lookup_dev): Reimplement.  Adjust all users.
696         * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
697         Adjust all users.
698         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
699         Remove XFAIL.
700         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
701         Likewise.
702         * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
704 2019-12-09  Thomas Schwinge  <thomas@codesourcery.com>
706         PR libgomp/92503
707         * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
708         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
709         file.
710         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
711         Likewise.
712         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
713         Likewise.
714         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
715         Likewise.
716         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
717         Likewise.
718         * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
719         Likewise.
720         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
721         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
722         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
723         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
724         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
725         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
726         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
727         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
728         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
729         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
731         PR libgomp/92840
732         * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
733         (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
734         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
735         New file.
736         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
737         Likewise.
738         * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
739         Likewise.
740         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
741         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
743         PR libgomp/92511
744         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
745         this file...
746         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
747         this file...
748         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
749         file...
750         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
751         file...
752         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
753         ... with their content moved into, and extended in this new file.
754         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
755         New file.
756         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
757         Likewise.
758         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
759         Likewise.
760         * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
761         Likewise.
763         * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
765         PR libgomp/92854
766         * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
768         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
770         * target.c (gomp_exit_data): Use 'gomp_remove_var'.
772 2019-12-09  Tobias Burnus  <tobias@codesourcery.com>
774         * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
775         unique.
776         * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
777         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
778         * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
779         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
780         Ditto.
781         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
782         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
784 2019-12-06  Kwok Cheung Yeung  <kcy@codesourcery.com>
786         * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
788 2019-12-06  Tobias Burnus  <tobias@codesourcery.com>
789             Kwok Cheung Yeung <kcy@codesourcery.com>
791         * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
792         if input it a NULL pointer.
793         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
794         diagnostic of NULL pointer.
795         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
796         * testsuite/libgomp.fortran/optional-map.f90: New.
797         * testsuite/libgomp.fortran/use_device_addr-1.f90
798         (test_dummy_opt_callee_1_absent): New.
799         (test_dummy_opt_call_1): Call it.
800         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
801         * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
802         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
803         * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
804         * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
805         * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
806         * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
807         * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
808         * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
809         * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
810         * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
811         * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
812         * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
813         * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
814         * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
815         * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
817 2019-12-05  Tobias Burnus  <tobias@codesourcery.com>
819         * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
820         expect dg-output of 'Error termination.' for GCN.
821         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
822         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
824 2019-12-04  Jakub Jelinek  <jakub@redhat.com>
826         PR fortran/92756
827         * testsuite/libgomp.fortran/teams1.f90: New test.
828         * testsuite/libgomp.fortran/teams2.f90: New test.
830 2019-12-03  Frederik Harwath  <frederik@codesourcery.com>
832         * oacc-init.c (acc_known_device_type): Add function.
833         (unknown_device_type_error): Add function.
834         (name_of_acc_device_t): Change to call unknown_device_type_error
835         on unknown type.
836         (resolve_device): Use acc_known_device_type.
837         (acc_init): Fail if acc_device_t argument is not valid.
838         (acc_shutdown): Likewise.
839         (acc_get_num_devices): Likewise.
840         (acc_set_device_type): Likewise.
841         (acc_get_device_num): Likewise.
842         (acc_set_device_num): Likewise.
843         (acc_on_device): Add comment that argument validity is not checked.
845 2019-12-03  Andrew Stubbs  <ams@codesourcery.com>
847         * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
848         Recognize amdgcn.
849         (check_effective_target_openacc_amdgcn_accel_present): New proc.
850         (check_effective_target_openacc_amdgcn_accel_selected): New proc.
851         * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
852         * testsuite/libgomp.oacc-c/c.exp: Likewise.
853         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
855 2019-12-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
857         PR libgomp/91938
858         * configure.tgt: Avoid IE tls on *-*-musl*.
860 2019-11-29  Tobias Burnus  <tobias@codesourcery.com>
862         * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
863         adding a common-block test case.
865 2019-11-29  Jakub Jelinek  <jakub@redhat.com>
867         PR c++/60228
868         * testsuite/libgomp.c++/udr-20.C: New test.
869         * testsuite/libgomp.c++/udr-21.C: New test.
871 2019-11-27  Thomas Schwinge  <thomas@codesourcery.com>
873         * testsuite/lib/libgomp.exp
874         (check_effective_target_offload_target_nvptx): New proc.
875         * testsuite/libgomp.fortran/target-print-1.f90: Use it with
876         'dg-skip-if'.
877         * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
878         * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
879         * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
881 2019-11-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
883         * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
884         * testsuite/libgomp.c/pr39591-2.c: Likewise.
885         * testsuite/libgomp.c/pr39591-3.c: Likewise.
886         * testsuite/libgomp.c/private-1.c: Likewise.
887         * testsuite/libgomp.c/task-1.c: Likewise.
888         * testsuite/libgomp.c/task-5.c: Renamed err to serr.
890 2019-11-20  Julian Brown  <julian@codesourcery.com>
892         * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
893         aq->mutex here.
894         (queue_push_launch): Lock aq->mutex before calling
895         wait_for_queue_nonfull.
896         (queue_push_callback): Likewise.
897         (queue_push_asyncwait): Likewise.
898         (queue_push_placeholder): Likewise.
900 2019-11-20  Julian Brown  <julian@codesourcery.com>
902         * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
903         (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
904         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
905         return code.
907 2019-11-20  Julian Brown  <julian@codesourcery.com>
909         PR libgomp/92511
911         * oacc-mem.c (present_create_copy): Fix device pointer return value in
912         case of "present" subarray.  Use tgt->tgt_start instead of tgt->to_free
913         in non-present/create case.
914         (delete_copyout): Change error condition to fail only on copies outside
915         of mapped block.  Adjust error message accordingly.
916         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
917         * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
918         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
919         message.
920         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
921         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
922         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
924 2019-11-20  Maciej W. Rozycki  <macro@wdc.com>
926         * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
927         libatomic in build-tree testing.
929 2019-11-18  Maciej W. Rozycki  <macro@wdc.com>
931         * testsuite/Makefile.in: Regenerate.
933 2019-11-15  Andrew Stubbs  <ams@codesourcery.com>
935         * testsuite/libgomp.c/target-print-1.c: New file.
936         * testsuite/libgomp.fortran/target-print-1.f90: New file.
937         * testsuite/libgomp.oacc-c/print-1.c: New file.
938         * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
940 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
941             Kwok Cheung Yeung  <kcy@codesourcery.com>
942             Julian Brown  <julian@codesourcery.com>
943             Tom de Vries  <tom@codesourcery.com>
945         * plugin/Makefrag.am: Add amdgcn plugin support.
946         * plugin/configfrag.ac: Likewise.
947         * plugin/plugin-gcn.c: New file.
948         * configure: Regenerate.
949         * Makefile.in: Regenerate.
950         * testsuite/Makefile.in: Regenerate.
952 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
954         * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
955         and use team_malloc variants.
956         (gomp_gcn_exit_kernel): Use team_free.
957         * libgomp.h (TEAM_ARENA_SIZE): Define.
958         (TEAM_ARENA_START): Define.
959         (TEAM_ARENA_FREE): Define.
960         (TEAM_ARENA_END): Define.
961         (team_malloc): New function.
962         (team_malloc_cleared): New function.
963         (team_free): New function.
964         * team.c (gomp_new_team): Initialize and use team_malloc.
965         (free_team): Use team_free.
966         (gomp_free_thread): Use team_free.
967         (gomp_pause_host): Use team_free.
968         * work.c (gomp_init_work_share): Use team_malloc.
969         (gomp_fini_work_share): Use team_free.
971 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
972             Kwok Cheung Yeung  <kcy@codesourcery.com>
973             Julian Brown  <julian@codesourcery.com>
974             Tom de Vries  <tom@codesourcery.com>
976         * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
977         * Makefile.in: Regenerate.
978         * config.h.in (PLUGIN_GCN): Add new undef.
979         * config/accel/openacc.f90 (acc_device_gcn): New parameter.
980         * config/gcn/affinity-fmt.c: New file.
981         * config/gcn/bar.c: New file.
982         * config/gcn/bar.h: New file.
983         * config/gcn/doacross.h: New file.
984         * config/gcn/icv-device.c: New file.
985         * config/gcn/oacc-target.c: New file.
986         * config/gcn/simple-bar.h: New file.
987         * config/gcn/target.c: New file.
988         * config/gcn/task.c: New file.
989         * config/gcn/team.c: New file.
990         * config/gcn/time.c: New file.
991         * configure.ac: Add amdgcn*-*-*.
992         * configure: Regenerate.
993         * configure.tgt: Add amdgcn*-*-*.
994         * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
995         * libgomp.h (gcn_thrs): Add amdgcn variant.
996         (set_gcn_thrs): Likewise.
997         (gomp_thread): Likewise.
998         * oacc-int.h (goacc_thread): Likewise.
999         * oacc-target.c: New file.
1000         * openacc.f90 (acc_device_gcn): New parameter.
1001         * openacc.h (acc_device_t): Add acc_device_gcn.
1002         * team.c (gomp_free_pool_helper): Add amdgcn support.
1004 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
1005             Julian Brown  <julian@codesourcery.com>
1007         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
1008         parameter.
1009         * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
1010         queue constructor.
1011         * oacc-host.c (host_openacc_async_construct): Add device parameter.
1012         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
1013         device parameter.
1015 2019-11-13  Andrew Stubbs  <ams@codesourcery.com>
1017         * configure.tgt (nvptx*-*-*): Add "accel" directory.
1018         * config/nvptx/libgomp-plugin.c: Move ...
1019         * config/accel/libgomp-plugin.c: ... to here.
1020         * config/nvptx/lock.c: Move ...
1021         * config/accel/lock.c: ... to here.
1022         * config/nvptx/mutex.c: Move ...
1023         * config/accel/mutex.c: ... to here.
1024         * config/nvptx/mutex.h: Move ...
1025         * config/accel/mutex.h: ... to here.
1026         * config/nvptx/oacc-async.c: Move ...
1027         * config/accel/oacc-async.c: ... to here.
1028         * config/nvptx/oacc-cuda.c: Move ...
1029         * config/accel/oacc-cuda.c: ... to here.
1030         * config/nvptx/oacc-host.c: Move ...
1031         * config/accel/oacc-host.c: ... to here.
1032         * config/nvptx/oacc-init.c: Move ...
1033         * config/accel/oacc-init.c: ... to here.
1034         * config/nvptx/oacc-mem.c: Move ...
1035         * config/accel/oacc-mem.c: ... to here.
1036         * config/nvptx/oacc-plugin.c: Move ...
1037         * config/accel/oacc-plugin.c: ... to here.
1038         * config/nvptx/omp-lock.h: Move ...
1039         * config/accel/omp-lock.h: ... to here.
1040         * config/nvptx/openacc.f90: Move ...
1041         * config/accel/openacc.f90: ... to here.
1042         * config/nvptx/pool.h: Move ...
1043         * config/accel/pool.h: ... to here.
1044         * config/nvptx/proc.c: Move ...
1045         * config/accel/proc.c: ... to here.
1046         * config/nvptx/ptrlock.c: Move ...
1047         * config/accel/ptrlock.c: ... to here.
1048         * config/nvptx/ptrlock.h: Move ...
1049         * config/accel/ptrlock.h: ... to here.
1050         * config/nvptx/sem.c: Move ...
1051         * config/accel/sem.c: ... to here.
1052         * config/nvptx/sem.h: Move ...
1053         * config/accel/sem.h: ... to here.
1054         * config/nvptx/thread-stacksize.h: Move ...
1055         * config/accel/thread-stacksize.h: ... to here.
1057 2019-11-12  Maciej W. Rozycki  <macro@codesourcery.com>
1058             Tobias Burnus  <tobias@codesourcery.com>
1059             Frederik Harwath  <frederik@codesourcery.com>
1060             Thomas Schwinge  <thomas@codesourcery.com>
1062         libgomp/
1063         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
1064         * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
1065         * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
1067 2019-11-11  Tobias Burnus  <tobias@codesourcery.com>
1068             Kwok Cheung Yeung  <kcy@codesourcery.com>
1070         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
1071         * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
1073 2019-11-11  Thomas Schwinge  <thomas@codesourcery.com>
1075         * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
1077         * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
1078         run'.
1079         * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
1080         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
1082 2019-11-06  Thomas Schwinge  <thomas@codesourcery.com>
1084         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
1085         Add expected warnings about missing reduction clauses.
1086         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
1087         Likewise.
1088         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
1089         Likewise.
1090         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
1091         Likewise.
1093 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
1095         * testsuite/libgomp.fortran/pr66199-1.f90: Remove
1096         'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
1097         * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
1098         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1099         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1100         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1102 2019-11-04  Tobias Burnus  <tobias@codesourcery.com>
1104         PR fortran/92305
1105         * testsuite/libgomp.fortran/allocatable2.f90: Use
1106         unique numbers with 'stop'.
1107         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1108         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1109         * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
1110         * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
1111         * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
1113 2019-11-01  Tobias Burnus  <tobias@codesourcery.com>
1115         * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
1116         test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
1117         * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1118         * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
1119         * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
1120         * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
1122 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
1124         * testsuite/libgomp.fortran/target9.f90: New.
1126 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
1128         * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
1129         * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
1130         * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
1131         * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
1132         * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
1133         * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
1134         * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
1135         * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
1136         * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
1137         * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
1138         * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
1139         * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
1140         * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
1141         * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
1142         * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
1143         * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
1144         * testsuite/libgomp.fortran/associate1.f90: Ditto.
1145         * testsuite/libgomp.fortran/associate2.f90: Ditto.
1146         * testsuite/libgomp.fortran/associate3.f90: Ditto.
1147         * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
1148         * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
1149         * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
1150         * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
1151         * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
1152         * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
1153         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
1154         * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
1155         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
1156         * testsuite/libgomp.fortran/character1.f90: Ditto.
1157         * testsuite/libgomp.fortran/character2.f90: Ditto.
1158         * testsuite/libgomp.fortran/collapse1.f90: Ditto.
1159         * testsuite/libgomp.fortran/collapse2.f90: Ditto.
1160         * testsuite/libgomp.fortran/collapse3.f90: Ditto.
1161         * testsuite/libgomp.fortran/collapse4.f90: Ditto.
1162         * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
1163         * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
1164         * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
1165         * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
1166         * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
1167         * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
1168         * testsuite/libgomp.fortran/depend-1.f90: Ditto.
1169         * testsuite/libgomp.fortran/depend-2.f90: Ditto.
1170         * testsuite/libgomp.fortran/depend-3.f90: Ditto.
1171         * testsuite/libgomp.fortran/do1.f90: Ditto.
1172         * testsuite/libgomp.fortran/do2.f90: Ditto.
1173         * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
1174         * testsuite/libgomp.fortran/doacross1.f90: Ditto.
1175         * testsuite/libgomp.fortran/doacross2.f90: Ditto.
1176         * testsuite/libgomp.fortran/doacross3.f90: Ditto.
1177         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
1178         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
1179         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
1180         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
1181         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
1182         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
1183         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
1184         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
1185         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
1186         * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
1187         * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
1188         * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
1189         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
1190         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
1191         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
1192         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
1193         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
1194         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
1195         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
1196         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
1197         * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
1198         * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
1199         * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
1200         * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
1201         * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
1202         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
1203         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
1204         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
1205         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
1206         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
1207         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
1208         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
1209         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
1210         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
1211         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
1212         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
1213         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
1214         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
1215         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
1216         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
1217         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
1218         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
1219         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
1220         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
1221         * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
1222         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1223         * testsuite/libgomp.fortran/lib1.f90: Ditto.
1224         * testsuite/libgomp.fortran/lib4.f90: Ditto.
1225         * testsuite/libgomp.fortran/lock-1.f90: Ditto.
1226         * testsuite/libgomp.fortran/lock-2.f90: Ditto.
1227         * testsuite/libgomp.fortran/nested1.f90: Ditto.
1228         * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
1229         * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
1230         * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
1231         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1232         * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
1233         * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
1234         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1235         * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
1236         * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
1237         * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
1238         * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
1239         * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
1240         * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
1241         * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
1242         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1243         * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
1244         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1245         * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
1246         * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
1247         * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
1248         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
1249         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
1250         * testsuite/libgomp.fortran/pointer1.f90: Ditto.
1251         * testsuite/libgomp.fortran/pointer2.f90: Ditto.
1252         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1253         * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
1254         * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
1255         * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
1256         * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
1257         * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
1258         * testsuite/libgomp.fortran/pr28390.f: Ditto.
1259         * testsuite/libgomp.fortran/pr29629.f90: Ditto.
1260         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1261         * testsuite/libgomp.fortran/pr33880.f90: Ditto.
1262         * testsuite/libgomp.fortran/pr34020.f90: Ditto.
1263         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1264         * testsuite/libgomp.fortran/pr42162.f90: Ditto.
1265         * testsuite/libgomp.fortran/pr46753.f90: Ditto.
1266         * testsuite/libgomp.fortran/pr48894.f90: Ditto.
1267         * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
1268         * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
1269         * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
1270         * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
1271         * testsuite/libgomp.fortran/pr65597.f90: Ditto.
1272         * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
1273         * testsuite/libgomp.fortran/pr71014.f90: Ditto.
1274         * testsuite/libgomp.fortran/pr81304.f90: Ditto.
1275         * testsuite/libgomp.fortran/pr81841.f90: Ditto.
1276         * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
1277         * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
1278         * testsuite/libgomp.fortran/procptr1.f90: Ditto.
1279         * testsuite/libgomp.fortran/recursion1.f90: Ditto.
1280         * testsuite/libgomp.fortran/reduction1.f90: Ditto.
1281         * testsuite/libgomp.fortran/reduction2.f90: Ditto.
1282         * testsuite/libgomp.fortran/reduction3.f90: Ditto.
1283         * testsuite/libgomp.fortran/reduction4.f90: Ditto.
1284         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1285         * testsuite/libgomp.fortran/reduction6.f90: Ditto.
1286         * testsuite/libgomp.fortran/reference1.f90: Ditto.
1287         * testsuite/libgomp.fortran/reference2.f90: Ditto.
1288         * testsuite/libgomp.fortran/retval1.f90: Ditto.
1289         * testsuite/libgomp.fortran/retval2.f90: Ditto.
1290         * testsuite/libgomp.fortran/sharing1.f90: Ditto.
1291         * testsuite/libgomp.fortran/sharing2.f90: Ditto.
1292         * testsuite/libgomp.fortran/simd1.f90: Ditto.
1293         * testsuite/libgomp.fortran/simd2.f90: Ditto.
1294         * testsuite/libgomp.fortran/simd3.f90: Ditto.
1295         * testsuite/libgomp.fortran/simd4.f90: Ditto.
1296         * testsuite/libgomp.fortran/simd5.f90: Ditto.
1297         * testsuite/libgomp.fortran/simd6.f90: Ditto.
1298         * testsuite/libgomp.fortran/simd7.f90: Ditto.
1299         * testsuite/libgomp.fortran/stack.f90: Ditto.
1300         * testsuite/libgomp.fortran/strassen.f90: Ditto.
1301         * testsuite/libgomp.fortran/tabs1.f90: Ditto.
1302         * testsuite/libgomp.fortran/tabs2.f: Ditto.
1303         * testsuite/libgomp.fortran/target1.f90: Ditto.
1304         * testsuite/libgomp.fortran/target2.f90: Ditto.
1305         * testsuite/libgomp.fortran/target3.f90: Ditto.
1306         * testsuite/libgomp.fortran/target4.f90: Ditto.
1307         * testsuite/libgomp.fortran/target5.f90: Ditto.
1308         * testsuite/libgomp.fortran/target6.f90: Ditto.
1309         * testsuite/libgomp.fortran/target7.f90: Ditto.
1310         * testsuite/libgomp.fortran/target8.f90: Ditto.
1311         * testsuite/libgomp.fortran/task1.f90: Ditto.
1312         * testsuite/libgomp.fortran/task2.f90: Ditto.
1313         * testsuite/libgomp.fortran/task3.f90: Ditto.
1314         * testsuite/libgomp.fortran/task4.f90: Ditto.
1315         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1316         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1317         * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1318         * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1319         * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1320         * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
1321         * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
1322         * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
1323         * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
1324         * testsuite/libgomp.fortran/udr1.f90: Ditto.
1325         * testsuite/libgomp.fortran/udr10.f90: Ditto.
1326         * testsuite/libgomp.fortran/udr11.f90: Ditto.
1327         * testsuite/libgomp.fortran/udr12.f90: Ditto.
1328         * testsuite/libgomp.fortran/udr13.f90: Ditto.
1329         * testsuite/libgomp.fortran/udr14.f90: Ditto.
1330         * testsuite/libgomp.fortran/udr15.f90: Ditto.
1331         * testsuite/libgomp.fortran/udr2.f90: Ditto.
1332         * testsuite/libgomp.fortran/udr3.f90: Ditto.
1333         * testsuite/libgomp.fortran/udr4.f90: Ditto.
1334         * testsuite/libgomp.fortran/udr5.f90: Ditto.
1335         * testsuite/libgomp.fortran/udr6.f90: Ditto.
1336         * testsuite/libgomp.fortran/udr7.f90: Ditto.
1337         * testsuite/libgomp.fortran/udr8.f90: Ditto.
1338         * testsuite/libgomp.fortran/udr9.f90: Ditto.
1339         * testsuite/libgomp.fortran/vla1.f90: Ditto.
1340         * testsuite/libgomp.fortran/vla2.f90: Ditto.
1341         * testsuite/libgomp.fortran/vla3.f90: Ditto.
1342         * testsuite/libgomp.fortran/vla4.f90: Ditto.
1343         * testsuite/libgomp.fortran/vla5.f90: Ditto.
1344         * testsuite/libgomp.fortran/vla6.f90: Ditto.
1345         * testsuite/libgomp.fortran/vla7.f90: Ditto.
1346         * testsuite/libgomp.fortran/vla8.f90: Ditto.
1347         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1348         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1350 2019-10-30  Tobias Burnus  <tobias@codesourcery.com>
1352         * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
1353         * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
1354         Ditto; add 'dg-do run' for torture testing.
1355         * testsuite/libgomp.fortran/lastprivate1.f90:  Add 'dg-do run'.
1356         * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1357         * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1358         * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1359         * testsuite/libgomp.fortran/pr28390.f: Ditto.
1360         * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1361         * testsuite/libgomp.fortran/pr90779.f90: Ditto.
1362         * testsuite/libgomp.fortran/task2.f90: Ditto.
1363         * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1364         * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1365         * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1366         * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1367         * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1368         * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1370 2019-10-28  Tobias Burnus  <tobias@codesourcery.com>
1372         * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
1373         * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
1374         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
1375         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
1376         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
1377         * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
1378         * testsuite/libgomp.oacc-fortran/common-block-1.f90:
1379         Use 'stop' not abort().
1380         * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
1381         * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
1382         * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
1383         * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
1384         * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
1385         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
1386         * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
1387         * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
1388         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
1389         * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
1390         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
1391         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
1392         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
1393         * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
1394         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
1395         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
1396         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1397         Ditto.
1398         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1399         Ditto.
1400         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1401         Ditto.
1402         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1403         Ditto.
1404         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1405         Ditto.
1406         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
1407         Ditto.
1408         * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
1409         Ditto.
1410         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
1411         Ditto.
1412         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
1413         Ditto.
1414         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
1415         Ditto.
1416         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
1417         Ditto.
1418         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
1419         Ditto.
1420         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
1421         Ditto.
1422         * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
1423         Ditto.
1424         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
1425         * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
1426         * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
1427         * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
1428         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1429         Likewise and also add 'dg-do run'.
1430         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1431         Ditto.
1433 2019-10-25  Cesar Philippidis <cesar@codesourcery.com>
1434             Tobias Burnus  <tobias@codesourcery.com>
1436         * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
1437         * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
1438         * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
1440 2019-10-14  Jakub Jelinek  <jakub@redhat.com>
1442         PR libgomp/92081
1443         * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
1444         than 0.
1446 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
1448         * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
1449         * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
1451 2019-10-09  Thomas Schwinge  <thomas@codesourcery.com>
1453         PR middle-end/92036
1454         * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
1455         file.
1457 2019-10-09  Tobias Burnus  <tobias@codesourcery.com>
1459         PR testsuite/91884
1460         * testsuite/libgomp.fortran/fortran.exp: Conditionally
1461         add -lquadmath.
1462         * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
1464 2019-10-09  Jakub Jelinek  <jakub@redhat.com>
1466         PR libgomp/92028
1467         * target.c (gomp_map_vars_internal): Readd the previous
1468         GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
1469         though do that just in the !not_found_cnt case.
1471 2019-10-08  Tobias Burnus  <tobias@codesourcery.com>
1473         * gfortran.dg/gomp/target-simd.f90: New.
1475 2019-10-02  Julian Brown  <julian@codesourcery.com>
1476             Cesar Philippidis  <cesar@codesourcery.com>
1478         * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
1479         * target.c (FIELD_TGT_EMPTY): Define.
1480         (gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
1481         as switch instead of list of ifs.
1482         (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
1484 2019-10-02  Andreas Tobler  <andreast@gcc.gnu.org>
1486         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
1487         include. Replace alloca () with __builtin_alloca ().
1488         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
1490 2019-10-01  Jakub Jelinek  <jakub@redhat.com>
1492         * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
1493         * libgomp.h: Include <stdint.h> instead of "gstdint.h".
1494         * oacc-parallel.c: Don't include "libgomp_g.h".
1495         * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
1496         * plugin/plugin-nvptx.c: Don't include "gstdint.h".
1497         * aclocal.m4: Regenerated.
1498         * config.h.in: Regenerated.
1499         * configure: Regenerated.
1500         * Makefile.in: Regenerated.
1502 2019-09-30  Kwok Cheung Yeung  <kcy@codesourcery.com>
1504         * libgomp_g.h: Include stdint.h instead of gstdint.h.
1506 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
1508         * configure: Regenerate.
1510 2019-09-13  Tobias Burnus  <tobias@codesourcery.com>
1512         * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
1513         string is initialized.
1515 2019-09-06  Florian Weimer  <fweimer@redhat.com>
1517         * configure: Regenerate.
1519 2019-09-03  Chung-Lin Tang  <cltang@codesourcery.com>
1521         PR other/79543
1522         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
1523         scanning to conform to the GNU Coding Standards.
1524         * configure: Regenerate.
1526 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
1528         PR libgomp/91530
1529         * testsuite/libgomp.c/scan-21.c: New test.
1530         * testsuite/libgomp.c/scan-22.c: New test.
1532 2019-08-27  Jakub Jelinek  <jakub@redhat.com>
1534         PR libgomp/91530
1535         * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
1536         targets.
1537         * testsuite/libgomp.c/scan-12.c: Likewise.
1538         * testsuite/libgomp.c/scan-13.c: Likewise.
1539         * testsuite/libgomp.c/scan-14.c: Likewise.
1540         * testsuite/libgomp.c/scan-15.c: Likewise.
1541         * testsuite/libgomp.c/scan-16.c: Likewise.
1542         * testsuite/libgomp.c/scan-17.c: Likewise.
1543         * testsuite/libgomp.c/scan-18.c: Likewise.
1544         * testsuite/libgomp.c/scan-19.c: Likewise.
1545         * testsuite/libgomp.c/scan-20.c: Likewise.
1546         * testsuite/libgomp.c++/scan-9.C: Likewise.
1547         * testsuite/libgomp.c++/scan-10.C: Likewise.
1548         * testsuite/libgomp.c++/scan-11.C: Likewise.
1549         * testsuite/libgomp.c++/scan-12.C: Likewise.
1550         * testsuite/libgomp.c++/scan-14.C: Likewise.
1551         * testsuite/libgomp.c++/scan-15.C: Likewise.
1552         * testsuite/libgomp.c++/scan-13.C: Likewise.  Use sse2_runtime
1553         instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
1554         * testsuite/libgomp.c++/scan-16.C: Likewise.
1556 2019-08-17  Thomas Koenig  <tkoenig@gcc.gnu.org>
1558         PR fortran/91473
1559         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
1560         -std=legacy so invalid code in the test case is accepted.
1562 2019-08-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
1564         PR fortran/91422
1565         * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
1566         dimension.
1568 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
1570         * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
1571         perform the lookup in the first loop only if !not_found_cnt, otherwise
1572         perform lookups for it in the second loop guarded with
1573         if (not_found_cnt || has_firstprivate).
1574         * testsuite/libgomp.c/target-37.c: New test.
1575         * testsuite/libgomp.c++/target-22.C: New test.
1577 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
1579         * testsuite/libgomp.c/target-18.c (struct S): New type.
1580         (foo): Use use_device_addr clause instead of use_device_ptr clause
1581         where required by OpenMP 5.0, add further tests for both use_device_ptr
1582         and use_device_addr clauses.
1583         * testsuite/libgomp.c++/target-9.C (struct S): New type.
1584         (foo): Use use_device_addr clause instead of use_device_ptr clause
1585         where required by OpenMP 5.0, add further tests for both use_device_ptr
1586         and use_device_addr clauses.  Add t and u arguments.
1587         (main): Adjust caller.
1589 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
1591         * testsuite/libgomp.c++/loop-13.C: New test.
1592         * testsuite/libgomp.c++/loop-14.C: New test.
1593         * testsuite/libgomp.c++/loop-15.C: New test.
1595 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
1597         PR middle-end/91301
1598         * testsuite/libgomp.c++/for-27.C: New test.
1600 2019-07-23  Steven G. Kargl  <kargl@gcc.gnu.org>
1602         * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
1603         * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1605 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
1607         * testsuite/libgomp.c-c++-common/loop-1.c: New test.
1609 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
1611         * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
1612         * testsuite/libgomp.c++/scan-16.C: Likewise.
1614 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
1616         * testsuite/libgomp.c/scan-19.c: New test.
1617         * testsuite/libgomp.c/scan-20.c: New test.
1619         * testsuite/libgomp.c/scan-11.c: New test.
1620         * testsuite/libgomp.c/scan-12.c: New test.
1621         * testsuite/libgomp.c/scan-13.c: New test.
1622         * testsuite/libgomp.c/scan-14.c: New test.
1623         * testsuite/libgomp.c/scan-15.c: New test.
1624         * testsuite/libgomp.c/scan-16.c: New test.
1625         * testsuite/libgomp.c/scan-17.c: New test.
1626         * testsuite/libgomp.c/scan-18.c: New test.
1627         * testsuite/libgomp.c++/scan-9.C: New test.
1628         * testsuite/libgomp.c++/scan-10.C: New test.
1629         * testsuite/libgomp.c++/scan-11.C: New test.
1630         * testsuite/libgomp.c++/scan-12.C: New test.
1631         * testsuite/libgomp.c++/scan-13.C: New test.
1632         * testsuite/libgomp.c++/scan-14.C: New test.
1633         * testsuite/libgomp.c++/scan-15.C: New test.
1634         * testsuite/libgomp.c++/scan-16.C: New test.
1636 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
1638         * testsuite/libgomp.c/scan-9.c: New test.
1639         * testsuite/libgomp.c/scan-10.c: New test.
1641 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
1643         * testsuite/libgomp.c++/scan-1.C: New test.
1644         * testsuite/libgomp.c++/scan-2.C: New test.
1645         * testsuite/libgomp.c++/scan-3.C: New test.
1646         * testsuite/libgomp.c++/scan-4.C: New test.
1647         * testsuite/libgomp.c++/scan-5.C: New test.
1648         * testsuite/libgomp.c++/scan-6.C: New test.
1649         * testsuite/libgomp.c++/scan-7.C: New test.
1650         * testsuite/libgomp.c++/scan-8.C: New test.
1651         * testsuite/libgomp.c/scan-1.c: New test.
1652         * testsuite/libgomp.c/scan-2.c: New test.
1653         * testsuite/libgomp.c/scan-3.c: New test.
1654         * testsuite/libgomp.c/scan-4.c: New test.
1655         * testsuite/libgomp.c/scan-5.c: New test.
1656         * testsuite/libgomp.c/scan-6.c: New test.
1657         * testsuite/libgomp.c/scan-7.c: New test.
1658         * testsuite/libgomp.c/scan-8.c: New test.
1660 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
1662         * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
1663         * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
1664         Likewise.
1666         * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
1667         check.
1669 2019-06-18  Cesar Philippidis  <cesar@codesourcery.com>
1671         * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
1672         file.
1674 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
1676         PR fortran/90743
1677         * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
1678         case.
1679         * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
1680         * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
1681         * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
1682         * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
1684         PR testsuite/90861
1685         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
1687         PR middle-end/90862
1688         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
1690 2019-06-16  Tom de Vries  <tdevries@suse.de>
1692         PR tree-optimization/89376
1693         * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
1695 2019-06-15  Tom de Vries  <tdevries@suse.de>
1697         PR tree-optimization/89713
1698         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
1699         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
1701 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
1703         PR middle-end/90779
1704         * testsuite/libgomp.c/pr90779.c: New test.
1705         * testsuite/libgomp.fortran/pr90779.f90: New test.
1707 2019-06-15  Tom de Vries  <tdevries@suse.de>
1709         PR tree-optimization/90009
1710         * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
1712 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
1714         PR tree-optimization/89713
1715         * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
1717 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
1719         PR target/90811
1720         * testsuite/libgomp.c/pr90811.c: New test.
1722 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
1724         * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
1725         * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
1727 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
1729         * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
1730         * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
1731         * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
1732         * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
1734 2019-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1736         * configure.ac: Call AX_COUNT_CPUS.
1737         Substitute CPU_COUNT.
1738         * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
1739         count fallback.
1740         * aclocal.m4: Regenerate.
1741         * configure: Regenerate.
1742         * Makefile.in, testsuite/Makefile.in: Regenerate.
1744 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
1746         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
1747         to ...
1748         * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
1749         * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
1750         * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
1752 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
1754         * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
1756         * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
1758         PR libgomp/90641
1759         * work.c (gomp_init_work_share): Instead of aligning final ordered
1760         value to multiples of long long alignment, align to that the
1761         first part (ordered team ids) and if inline_ordered_team_ids
1762         is not on a long long alignment boundary within the structure,
1763         use __alignof__ (long long) - 1 pad size always.
1764         * loop.c (GOMP_loop_start): Fix *mem computation if
1765         inline_ordered_team_ids is not aligned on long long alignment boundary
1766         within the structure.
1767         * loop-ull.c (GOMP_loop_ull_start): Likewise.
1768         * sections.c (GOMP_sections2_start): Likewise.
1770 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
1772         * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
1773         * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
1775         PR libgomp/90585
1776         * plugin/plugin-hsa.c: Include gstdint.h.  Include inttypes.h only if
1777         HAVE_INTTYPES_H is defined.
1778         (print_uint64_t): New typedef.
1779         (PRIu64): Define if HAVE_INTTYPES_H is not defined.
1780         (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
1781         "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
1782         (release_kernel_dispatch): Likewise.  Cast shadow->debug to uintptr_t
1783         before casting to void *.
1784         * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
1785         * oacc-mem.c: Don't include config.h nor stdint.h.
1786         * target.c: Don't include config.h.
1787         * oacc-cuda.c: Likewise.
1788         * oacc-host.c: Don't include stdint.h.
1790 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
1792         PR libgomp/90527
1793         * alloc.c (_GNU_SOURCE): Define.
1795 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
1797         * acc_prof.h: New file.
1798         * oacc-profiling.c: Likewise.
1799         * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
1800         Add these, respectively.
1801         * Makefile.in: Regenerate.
1802         * env.c (initialize_env): Call goacc_profiling_initialize.
1803         * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
1804         (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
1805         * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
1806         (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
1807         * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
1808         acc_prof_register, acc_prof_unregister, and acc_register_library.
1809         (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
1810         GOMP_PLUGIN_goacc_thread.
1811         * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
1812         prof_callbacks_enabled members.
1813         (goacc_prof_enabled, goacc_profiling_initialize)
1814         (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
1815         (goacc_profiling_dispatch): Declare.
1816         (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
1817         (GOACC_PROFILING_SETUP_P): Define.
1818         * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
1819         (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
1820         OpenACC Profiling Interface.
1821         * oacc-cuda.c (acc_get_current_cuda_device)
1822         (acc_get_current_cuda_context, acc_get_cuda_stream)
1823         (acc_set_cuda_stream): Likewise.
1824         * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
1825         (acc_init, acc_set_device_type, acc_get_device_type)
1826         (acc_get_device_num, goacc_lazy_initialize): Likewise.
1827         * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
1828         (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
1829         (acc_unmap_data, present_create_copy, delete_copyout)
1830         (update_dev_host): Likewise.
1831         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
1832         (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
1833         Likewise.
1834         * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
1835         (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1836         Likewise.
1837         * libgomp.texi: Update.
1838         * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
1839         file.
1840         * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
1841         * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1842         Likewise.
1843         * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1844         Likewise.
1845         * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
1846         Likewise.
1847         * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
1848         Likewise.
1850 2019-05-13  Chung-Lin Tang <cltang@codesourcery.com>
1852         * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
1853         (struct goacc_asyncqueue_list): Likewise.
1854         (goacc_aq): Likewise.
1855         (goacc_aq_list): Likewise.
1856         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1857         (GOMP_OFFLOAD_openacc_async_test): Remove.
1858         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1859         (GOMP_OFFLOAD_openacc_async_wait): Remove.
1860         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1861         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1862         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1863         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1864         (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
1865         (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
1866         (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
1867         (GOMP_OFFLOAD_openacc_async_exec): Declare.
1868         (GOMP_OFFLOAD_openacc_async_construct): Declare.
1869         (GOMP_OFFLOAD_openacc_async_destruct): Declare.
1870         (GOMP_OFFLOAD_openacc_async_test): Declare.
1871         (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
1872         (GOMP_OFFLOAD_openacc_async_serialize): Declare.
1873         (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
1874         (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
1875         (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
1877         * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
1878         (gomp_acc_insert_pointer): Adjust declaration.
1879         (gomp_copy_host2dev): New declaration.
1880         (gomp_copy_dev2host): Likewise.
1881         (gomp_map_vars_async): Likewise.
1882         (gomp_unmap_tgt): Likewise.
1883         (gomp_unmap_vars_async): Likewise.
1884         (gomp_fini_device): Likewise.
1886         * oacc-async.c (get_goacc_thread): New function.
1887         (get_goacc_thread_device): New function.
1888         (lookup_goacc_asyncqueue): New function.
1889         (get_goacc_asyncqueue): New function.
1890         (acc_async_test): Adjust code to use new async design.
1891         (acc_async_test_all): Likewise.
1892         (acc_wait): Likewise.
1893         (acc_wait_async): Likewise.
1894         (acc_wait_all): Likewise.
1895         (acc_wait_all_async): Likewise.
1896         (goacc_async_free): New function.
1897         (goacc_init_asyncqueues): Likewise.
1898         (goacc_fini_asyncqueues): Likewise.
1899         * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
1900         design.
1901         (acc_set_cuda_stream): Likewise.
1902         * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
1903         (host_openacc_register_async_cleanup): Remove.
1904         (host_openacc_async_exec): New function.
1905         (host_openacc_async_test): Adjust parameters.
1906         (host_openacc_async_test_all): Remove.
1907         (host_openacc_async_wait): Remove.
1908         (host_openacc_async_wait_async): Remove.
1909         (host_openacc_async_wait_all): Remove.
1910         (host_openacc_async_wait_all_async): Remove.
1911         (host_openacc_async_set_async): Remove.
1912         (host_openacc_async_synchronize): New function.
1913         (host_openacc_async_serialize): New function.
1914         (host_openacc_async_host2dev): New function.
1915         (host_openacc_async_dev2host): New function.
1916         (host_openacc_async_queue_callback): New function.
1917         (host_openacc_async_construct): New function.
1918         (host_openacc_async_destruct): New function.
1919         (struct gomp_device_descr host_dispatch): Remove initialization of old
1920         interface, add initialization of new async sub-struct.
1921         * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
1922         (goacc_attach_host_thread_to_device): Remove old async code usage.
1923         * oacc-int.h (goacc_init_asyncqueues): New declaration.
1924         (goacc_fini_asyncqueues): Likewise.
1925         (goacc_async_copyout_unmap_vars): Likewise.
1926         (goacc_async_free): Likewise.
1927         (get_goacc_asyncqueue): Likewise.
1928         (lookup_goacc_asyncqueue): Likewise.
1929         * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
1930         design.
1931         (present_create_copy): Adjust code to use new async design.
1932         (delete_copyout): Likewise.
1933         (update_dev_host): Likewise.
1934         (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
1935         async design.
1936         (gomp_acc_remove_pointer): Adjust code to use new async design.
1937         * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
1938         design.
1939         (GOACC_enter_exit_data): Likewise.
1940         (goacc_wait): Likewise.
1941         (GOACC_update): Likewise.
1942         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
1943         when called, warn as obsolete in comment.
1944         * target.c (goacc_device_copy_async): New function.
1945         (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
1946         add goacc_device_copy_async case.
1947         (gomp_copy_dev2host): Likewise.
1948         (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
1949         (gomp_map_pointer): Likewise.
1950         (gomp_map_fields_existing): Likewise.
1951         (gomp_map_vars_internal): New always_inline function, renamed from
1952         gomp_map_vars.
1953         (gomp_map_vars): Implement by calling gomp_map_vars_internal.
1954         (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
1955         passing goacc_asyncqueue argument.
1956         (gomp_unmap_tgt): Remove static, add attribute_hidden.
1957         (gomp_unref_tgt): New function.
1958         (gomp_unmap_vars_internal): New always_inline function, renamed from
1959         gomp_unmap_vars.
1960         (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
1961         (gomp_unmap_vars_async): Implement by calling
1962         gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
1963         (gomp_fini_device): New function.
1964         (gomp_exit_data): Adjust gomp_copy_dev2host call.
1965         (gomp_load_plugin_for_device): Remove old interface, adjust to load
1966         new async interface.
1967         (gomp_target_fini): Adjust code to call gomp_fini_device.
1969         * plugin/plugin-nvptx.c (struct cuda_map): Remove.
1970         (struct ptx_stream): Remove.
1971         (struct nvptx_thread): Remove current_stream field.
1972         (cuda_map_create): Remove.
1973         (cuda_map_destroy): Remove.
1974         (map_init): Remove.
1975         (map_fini): Remove.
1976         (map_pop): Remove.
1977         (map_push): Remove.
1978         (struct goacc_asyncqueue): Define.
1979         (struct nvptx_callback): Define.
1980         (struct ptx_free_block): Define.
1981         (struct ptx_device): Remove null_stream, active_streams, async_streams,
1982         stream_lock, and next fields.
1983         (enum ptx_event_type): Remove.
1984         (struct ptx_event): Remove.
1985         (ptx_event_lock): Remove.
1986         (ptx_events): Remove.
1987         (init_streams_for_device): Remove.
1988         (fini_streams_for_device): Remove.
1989         (select_stream_for_async): Remove.
1990         (nvptx_init): Remove ptx_events and ptx_event_lock references.
1991         (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
1992         case.
1993         (nvptx_open_device): Add free_blocks initialization, remove
1994         init_streams_for_device call.
1995         (nvptx_close_device): Remove fini_streams_for_device call, add
1996         free_blocks destruct code.
1997         (event_gc): Remove.
1998         (event_add): Remove.
1999         (nvptx_exec): Adjust parameters and code.
2000         (nvptx_free): Likewise.
2001         (nvptx_host2dev): Remove.
2002         (nvptx_dev2host): Remove.
2003         (nvptx_set_async): Remove.
2004         (nvptx_async_test): Remove.
2005         (nvptx_async_test_all): Remove.
2006         (nvptx_wait): Remove.
2007         (nvptx_wait_async): Remove.
2008         (nvptx_wait_all): Remove.
2009         (nvptx_wait_all_async): Remove.
2010         (nvptx_get_cuda_stream): Remove.
2011         (nvptx_set_cuda_stream): Remove.
2012         (GOMP_OFFLOAD_alloc): Adjust code.
2013         (GOMP_OFFLOAD_free): Likewise.
2014         (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2015         (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
2016         (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2017         (GOMP_OFFLOAD_openacc_async_wait): Remove.
2018         (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2019         (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2020         (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2021         (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2022         (cuda_free_argmem): New function.
2023         (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
2024         (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
2025         (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
2026         (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
2027         (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
2028         (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
2029         (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
2030         (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
2031         (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
2032         (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
2033         (cuda_callback_wrapper): New function.
2034         (cuda_memcpy_sanity_check): New function.
2035         (GOMP_OFFLOAD_host2dev): Remove and re-implement.
2036         (GOMP_OFFLOAD_dev2host): Remove and re-implement.
2037         (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
2038         (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
2040 2019-05-07  Thomas Schwinge  <thomas@codesourcery.com>
2042         PR target/87835
2043         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
2045 2019-05-06  Thomas Schwinge  <thomas@codesourcery.com>
2047         * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
2049 2019-03-27  Kevin Buettner  <kevinb@redhat.com>
2051         * team.c (gomp_team_start): Initialize pool->threads[0].
2053 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
2055         * testsuite/libgomp.oacc-c++/c++.exp: Specify
2056         "-foffload=$offload_target".
2057         * testsuite/libgomp.oacc-c/c.exp: Likewise.
2058         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2059         * testsuite/lib/libgomp.exp
2060         (check_effective_target_openacc_nvidia_accel_configured): Remove,
2061         as (conceptually) merged into
2062         check_effective_target_openacc_nvidia_accel_selected.  Adjust all
2063         users.
2065         * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
2066         * testsuite/libgomp-test-support.exp.in: Adjust.
2067         * testsuite/lib/libgomp.exp: Likewise.  Don't populate
2068         openacc_device_types_s.
2069         (offload_target_to_openacc_device_type): New proc.
2070         * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
2071         * testsuite/libgomp.oacc-c/c.exp: Likewise.
2072         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2073         * Makefile.in: Regenerate.
2074         * configure: Likewise.
2075         * testsuite/Makefile.in: Likewise.
2077         * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
2078         instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
2079         instead of OFFLOAD_TARGETS.
2080         * target.c (gomp_target_init): Adjust.
2081         * testsuite/libgomp-test-support.exp.in: Likewise.
2082         * testsuite/lib/libgomp.exp: Likewise.  Populate
2083         openacc_device_types_s instead of offload_targets_s_openacc.
2084         (check_effective_target_openacc_nvidia_accel_selected)
2085         (check_effective_target_openacc_host_selected): Adjust.
2086         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2087         * testsuite/libgomp.oacc-c/c.exp: Likewise.
2088         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2089         * Makefile.in: Regenerate.
2090         * config.h.in: Likewise.
2091         * configure: Likewise.
2092         * testsuite/Makefile.in: Likewise.
2094         * testsuite/lib/libgomp.exp: Error out for unknown offload target.
2095         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.  Report if
2096         "offloading: supported, but hardware not accessible".
2097         * testsuite/libgomp.oacc-c/c.exp: Likewise.
2098         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2100 2019-02-19  Chung-Lin Tang <cltang@codesourcery.com>
2102         PR c/87924
2103         * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
2104         goacc_wait().
2105         (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
2106         and related adjustment.
2108 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
2110         PR c++/88988
2111         * testsuite/libgomp.c++/pr88988.C: New test.
2113 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
2115         PR middle-end/89002
2116         * testsuite/libgomp.c/pr89002.c: New test.
2118 2019-01-28  Richard Biener  <rguenther@suse.de>
2120         PR testsuite/89064
2121         PR tree-optimization/86865
2122         * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
2124 2019-01-24  Tom de Vries  <tdevries@suse.de>
2126         * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
2127         once instantiated_devices drops to 0.
2129 2019-01-23  Tom de Vries  <tdevries@suse.de>
2131         PR target/PR88946
2132         * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
2133         cuMemFree.
2134         (nvptx_exec): Don't call map_push if mapnum == 0.
2135         * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
2137 2019-01-23  Tom de Vries  <tdevries@suse.de>
2139         PR target/88941
2140         PR target/88939
2141         * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
2142         (map_fini): Remove "assert (!s->map->active)".
2143         * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
2145 2019-01-23  Tom de Vries  <tdevries@suse.de>
2147         PR target/87835
2148         * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
2149         * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
2151 2019-01-15  Tom de Vries  <tdevries@suse.de>
2153         PR target/80547
2154         * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
2155         New test.
2157 2019-01-12  Tom de Vries  <tdevries@suse.de>
2159         * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
2160         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
2161         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
2162         * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
2164 2019-01-12  Tom de Vries  <tdevries@suse.de>
2166         * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
2168 2019-01-12  Tom de Vries  <tdevries@suse.de>
2170         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
2171         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
2172         * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
2174 2019-01-12  Tom de Vries  <tdevries@suse.de>
2176         PR target/85486
2177         * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
2178         * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
2180 2019-01-12  Tom de Vries  <tdevries@suse.de>
2182         PR target/85381
2183         * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
2184         * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
2186 2019-01-12  Tom de Vries  <tdevries@suse.de>
2188         * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
2189         * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
2190         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
2192 2019-01-12  Tom de Vries  <tdevries@suse.de>
2194         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
2195         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
2196         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
2198 2019-01-12  Tom de Vries  <tdevries@suse.de>
2200         * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
2201         resources diagnostic.
2203 2019-01-12  Tom de Vries  <tdevries@suse.de>
2205         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
2206         vector length to be 128.
2207         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
2208         length 2097152 to be reduced to 1024 instead of 32.
2210 2019-01-11  Thomas Schwinge  <thomas@codesourcery.com>
2211             James Norris  <jnorris@codesourcery.com>
2213         * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
2214         Library Routines", and "Environment Variables".
2216 2019-01-11  Tom de Vries  <tdevries@suse.de>
2218         * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
2219         num_workers 16.
2221 2019-01-11  Tom de Vries  <tdevries@suse.de>
2223         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
2224         -foffload=-w.
2225         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
2226         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
2227         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
2228         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
2230 2019-01-11  Tom de Vries  <tdevries@suse.de>
2232         * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
2233         test.
2235 2019-01-10  Nathan Sidwell  <nathan@acm.org>
2236             Julian Brown  <julian@codesourcery.com>
2238         PR lto/71959
2239         * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
2240         * testsuite/libgomp.oacc-c++/pr71959.C: New.
2242 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2244         * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
2245         and paste code.
2247 2019-01-09  Sebastian Huber  <sebastian.huber@embedded-brains.de>
2249         * config/rtems/affinity-fmt.c: New file.  Include affinity-fmt.c,
2250         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2251         write.
2253 2019-01-09  Tom de Vries  <tdevries@suse.de>
2255         PR target/88756
2256         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
2257         #define instead of "const int".
2258         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
2259         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
2260         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
2261         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
2263 2019-01-09  Tom de Vries  <tdevries@suse.de>
2265         * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
2266         one worker.
2268 2019-01-07  Tom de Vries  <tdevries@suse.de>
2270         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
2271         GOMP_OPENACC_DIM argument.
2273 2019-01-03  Tom de Vries  <tdevries@suse.de>
2275         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
2276         * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
2278 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
2280         Update copyright years.
2282 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
2284         * libgomp.texi: Bump @copying's copyright year.
2286 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
2288         * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
2289         (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
2290         (GOACC_declare): Redefine the "device" argument to "flags".
2292 2018-12-28  Thomas Schwinge  <thomas@codesourcery.com>
2293             Cesar Philippidis  <cesar@codesourcery.com>
2295         * target.c (struct gomp_coalesce_chunk): New structure.
2296         (struct gomp_coalesce_buf): Update the chunks member to use that
2297         type.  Adjust all users.
2299 2018-12-19  Tom de Vries  <tdevries@suse.de>
2301         * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
2302         * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
2303         * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
2305 2018-12-19  Tom de Vries  <tdevries@suse.de>
2307         * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
2308         * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
2309         gcc/testsuite/gcc.dg/goacc.
2310         * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
2312 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
2313             Chung-Lin Tang  <cltang@codesourcery.com>
2315         * oacc-mem.c (acc_present_or_create): Remove definition and change
2316         to alias of acc_create.
2317         (acc_present_or_copyin): Remove definition and change to alias of
2318         acc_copyin.
2319         * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
2320         of acc_present_or_create.
2321         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
2322         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2323         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
2324         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
2325         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
2326         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
2327         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
2328         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2329         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2330         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2331         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2332         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2333         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2334         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2335         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2336         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2338 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
2340         PR libgomp/88495
2341         * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
2342         "identical parameters".
2343         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
2344         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
2346         PR libgomp/88484
2347         * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
2348         * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
2350         PR libgomp/88407
2351         * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
2352         (nvptx_wait_async): Unseen async-argument is a no-op.
2353         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
2354         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
2355         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2356         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2357         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
2358         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
2359         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this.  Update.
2360         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
2361         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this.  Update
2363         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
2364         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2366 2018-12-14  Chung-Lin Tang  <cltang@codesourcery.com>
2368         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
2369         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2370         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
2372 2018-12-14  Thomas Schwinge  <thomas@codesourcery.com>
2374         PR libgomp/88370
2375         * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
2376         (acc_set_cuda_stream): Clarify.
2377         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
2378         "async_valid_p".
2379         * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
2380         acc_async_sync".
2381         * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
2382         * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
2383         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
2384         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2386 2018-12-14  Tom de Vries  <tdevries@suse.de>
2388         * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
2389         * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
2390         * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
2391         * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
2392         * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
2394 2018-12-13  Tom de Vries  <tdevries@suse.de>
2396         * affinity-fmt.c (gomp_print_string): New function, factored out of ...
2397         (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
2398         * fortran.c (omp_display_affinity_): ... here.
2399         * libgomp.h (gomp_print_string): Declare.
2400         * config/nvptx/affinity-fmt.c: New file.  Include affinity-fmt.c,
2401         undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2402         write.
2404 2018-12-13  Jakub Jelinek  <jakub@redhat.com>
2406         PR libgomp/88460
2407         * testsuite/libgomp.c++/for-24.C (results): Include it in
2408         omp declare target region.
2409         (main): Use map (always, tofrom: results) instead of
2410         map (tofrom: results).
2412 2018-12-12  Jakub Jelinek  <jakub@redhat.com>
2414         PR fortran/88463
2415         * testsuite/libgomp.fortran/pr88463-1.f90: New test.
2416         * testsuite/libgomp.fortran/pr88463-2.f90: New test.
2418         * testsuite/libgomp.c-c++-common/for-16.c: New test.
2420 2018-12-12  Andreas Schwab  <schwab@suse.de>
2422         * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
2423         clobbered.
2425 2018-12-09  Thomas Koenig  <tkoenig@gcc.gnu.org>
2427         PR fortran/88411
2428         * testsuite/libgomp.fortran/async_io_8.f90: New test.
2430 2018-12-09  Thomas Schwinge  <thomas@codesourcery.com>
2431             Jakub Jelinek  <jakub@redhat.com>
2433         * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
2434         devicep->host2dev_func.
2436 2018-12-08  Jakub Jelinek  <jakub@redhat.com>
2438         PR libgomp/87995
2439         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
2440         tls_runtime effective target.
2441         (t): New threadprivate variable.
2442         (main): Set t in threads which execute iterations of the worksharing
2443         loop.  Propagate that to the task after the loop and don't abort
2444         if the current taskgroup hasn't been cancelled.
2446 2018-12-02  Jakub Jelinek  <jakub@redhat.com>
2448         * testsuite/libgomp.c/task-reduction-3.c: New test.
2450         * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
2452 2018-11-30  Cesar Philippidis  <cesar@codesourcery.com>
2454         PR libgomp/88288
2455         * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
2456         * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
2458 2018-11-30  Thomas Schwinge  <thomas@codesourcery.com>
2460         * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
2462 2018-10-19  Richard Biener  <rguenther@suse.de>
2464         PR tree-optimization/88182
2465         * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
2467 2018-11-26  Jakub Jelinek  <jakub@redhat.com>
2469         * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
2470         (RUNTEST): Don't define.
2471         (RUNTESTDEFAULTFLAGS): Add.
2472         (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
2473         (distclean-am): Depend on distclean-DEJAGNU.
2474         (check-am): If -j% option is present in MFLAGS and if
2475         `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
2476         (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
2477         * testsuite/Makefile.in: Regenerated.
2479 2018-11-26  Richard Biener  <rguenther@suse.de>
2481         PR tree-optimization/88182
2482         * testsuite/libgomp.c++/pr88182.C: New testcase.
2484 2018-11-20  Jakub Jelinek  <jakub@redhat.com>
2486         PR bootstrap/88106
2487         * config/mingw32/affinity-fmt.c: New file.
2489 2018-11-09  Jakub Jelinek  <jakub@redhat.com>
2491         * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
2492         (gomp_display_affinity): Use __builtin_choose_expr to handle
2493         properly handle argument having integral, or pointer or some other
2494         type.  If inttypes.h is available and PRIx64 is defined, use PRIx64
2495         with uint64_t type instead of %llx and unsigned long long.
2497         * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
2498         * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
2500 2018-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2502         * affinity.c: Include <string.h>, <stdio.h>.
2503         (gomp_display_affinity_place): Remove cpusetp.
2504         * teams.c: Include <limits.h>.
2506 2018-11-08  Jakub Jelinek  <jakub@redhat.com>
2508         * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
2509         in_reduction clause for s[0].
2511         * affinity.c (gomp_display_affinity_place): New function.
2512         * affinity-fmt.c: New file.
2513         * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
2514         * config/linux/affinity.c (gomp_display_affinity_place): New function.
2515         * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
2516         Move these functions to ...
2517         * config/nvptx/teams.c: ... here.  New file.
2518         * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
2519         New functions.
2520         * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
2521         functions.
2522         * configure.ac: Check for aligned_alloc, posix_memalign, memalign
2523         and _aligned_malloc.
2524         (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
2525         * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
2526         * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
2527         gomp_affinity_format_len): New variables.
2528         (parse_schedule): Parse monotonic and nonmonotonic modifiers in
2529         OMP_SCHEDULE variable.  Set GFS_MONOTONIC for monotonic schedules.
2530         (handle_omp_display_env): Display monotonic/nonmonotonic schedule
2531         modifiers.  Display (non-default) chunk sizes.  Print
2532         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
2533         (initialize_env): Don't call pthread_attr_setdetachstate.  Handle
2534         OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
2535         * fortran.c: Include stdio.h and string.h.
2536         (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
2537         (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
2538         (omp_set_affinity_format_, omp_get_affinity_format_,
2539         omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
2540         omp_pause_resource_all_): New functions.
2541         * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
2542         switch.
2543         * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
2544         functions to ...
2545         * teams.c: ... here.  New file.
2546         * libgomp_g.h: Include gstdint.h.
2547         (GOMP_loop_nonmonotonic_runtime_start,
2548         GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
2549         GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
2550         GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
2551         GOMP_parallel_loop_nonmonotonic_runtime,
2552         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2553         GOMP_loop_ull_nonmonotonic_runtime_start,
2554         GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
2555         GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
2556         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2557         GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
2558         GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
2559         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2560         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2561         GOMP_teams_reg): Declare.
2562         * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
2563         gomp_aligned_alloc uses fallback implementation.
2564         (gomp_aligned_alloc, gomp_aligned_free): Declare.
2565         (enum gomp_schedule_type): Add GFS_MONOTONIC.
2566         (struct gomp_doacross_work_share): Add extra field.
2567         (struct gomp_work_share): Add task_reductions field.
2568         (struct gomp_taskgroup): Add workshare and reductions fields.
2569         (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
2570         (gomp_thread_handle): New typedef.
2571         (gomp_display_affinity_place, gomp_set_affinity_format,
2572         gomp_display_string, gomp_display_affinity,
2573         gomp_display_affinity_thread): Declare.
2574         (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
2575         (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
2576         gomp_workshare_task_reduction_register): Declare.
2577         (gomp_team_start): Add taskgroup argument.
2578         (gomp_pause_host): Declare.
2579         (gomp_init_work_share, gomp_work_share_start): Change bool argument
2580         to size_t.
2581         (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
2582         * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
2583         GOMP_loop_ordered_start, GOMP_loop_doacross_start,
2584         GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2585         GOMP_loop_ull_doacross_start,
2586         GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2587         GOMP_loop_maybe_nonmonotonic_runtime_next,
2588         GOMP_loop_maybe_nonmonotonic_runtime_start,
2589         GOMP_loop_nonmonotonic_runtime_next,
2590         GOMP_loop_nonmonotonic_runtime_start,
2591         GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2592         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2593         GOMP_loop_ull_nonmonotonic_runtime_next,
2594         GOMP_loop_ull_nonmonotonic_runtime_start,
2595         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2596         GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
2597         GOMP_taskgroup_reduction_register,
2598         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2599         GOMP_teams_reg and GOMP_taskwait_depend.
2600         (OMP_5.0): Export omp_pause_resource{,_all}{,_},
2601         omp_{capture,display}_affinity{,_}, and
2602         omp_[gs]et_affinity_format{,_}.
2603         * loop.c: Include string.h.
2604         (GOMP_loop_runtime_next): Add ialias.
2605         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2606         (gomp_loop_static_start, gomp_loop_dynamic_start,
2607         gomp_loop_guided_start, gomp_loop_ordered_static_start,
2608         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2609         gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
2610         gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
2611         or gomp_doacross_init callers.
2612         (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
2613         GOMP_loop_doacross_start): New functions.
2614         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2615         GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
2616         Mask off GFS_MONOTONIC bit.
2617         (GOMP_loop_maybe_nonmonotonic_runtime_next,
2618         GOMP_loop_maybe_nonmonotonic_runtime_start,
2619         GOMP_loop_nonmonotonic_runtime_next,
2620         GOMP_loop_nonmonotonic_runtime_start,
2621         GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2622         GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
2623         functions.
2624         (gomp_parallel_loop_start): Pass NULL as taskgroup to
2625         gomp_team_start.
2626         * loop_ull.c: Include string.h.
2627         (GOMP_loop_ull_runtime_next): Add ialias.
2628         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2629         (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
2630         gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
2631         gomp_loop_ull_ordered_dynamic_start,
2632         gomp_loop_ull_ordered_guided_start,
2633         gomp_loop_ull_doacross_static_start,
2634         gomp_loop_ull_doacross_dynamic_start,
2635         gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
2636         and gomp_doacross_ull_init callers.
2637         (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2638         GOMP_loop_ull_doacross_start): New functions.
2639         (GOMP_loop_ull_runtime_start,
2640         GOMP_loop_ull_ordered_runtime_start,
2641         GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
2642         (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2643         GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2644         GOMP_loop_ull_nonmonotonic_runtime_next,
2645         GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
2646         * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
2647         * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
2648         (omp_pause_resource_t, omp_depend_t): New typedefs.
2649         (enum omp_lock_hint_t): Renamed to ...
2650         (enum omp_sync_hint_t): ... this.  Define omp_sync_hint_*
2651         enumerators using numbers and omp_lock_hint_* as their aliases.
2652         (omp_lock_hint_t): New typedef.  Rename to ...
2653         (omp_sync_hint_t): ... this.
2654         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
2655         omp_sync_hint_t instead of omp_lock_hint_t.
2656         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2657         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2658         Declare.
2659         (omp_target_is_present, omp_target_disassociate_ptr):
2660         Change first argument from void * to const void *.
2661         (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
2662         from void * to const void *.
2663         (omp_target_associate_ptr): Change first and second arguments from
2664         void * to const void *.
2665         * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
2666         omp_pause_hard): New parameters.
2667         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2668         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2669         New interfaces.
2670         * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
2671         omp_pause_hard): New parameters.
2672         (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2673         omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2674         New externals.
2675         * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
2676         EXTRA argument.  If not needed to prepare array, if extra is 0,
2677         clear ws->doacross, otherwise allocate just doacross structure and
2678         extra payload.  If array is needed, allocate also extra payload.
2679         (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
2680         GOMP_doacross_ull_wait): Handle doacross->array == NULL like
2681         doacross == NULL.
2682         * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
2683         gomp_team_start.
2684         (GOMP_parallel): Likewise.  Formatting fix.
2685         (GOMP_parallel_reductions): New function.
2686         (GOMP_cancellation_point): If taskgroup has workshare
2687         flag set, check cancelled of prev taskgroup if any.
2688         (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
2689         on prev taskgroup if any.
2690         * sections.c: Include string.h.
2691         (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2692         (GOMP_sections_start): Adjust gomp_work_share_start caller.
2693         (GOMP_sections2_start): New function.
2694         (GOMP_parallel_sections_start, GOMP_parallel_sections):
2695         Pass NULL as taskgroup to gomp_team_start.
2696         * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
2697         gomp_work_share_start callers.
2698         * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
2699         If taskgroup has workshare flag set, check cancelled on prev
2700         taskgroup if any.  Guard all cancellation tests with
2701         gomp_cancel_var test.
2702         (omp_target_is_present, omp_target_disassociate_ptr):
2703         Change ptr argument from void * to const void *.
2704         (omp_target_memcpy): Change src argument from void * to const void *.
2705         (omp_target_memcpy_rect): Likewise.
2706         (omp_target_memcpy_rect_worker): Likewise.  Use const char * casts
2707         instead of char * where needed.
2708         (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
2709         from void * to const void *.
2710         (omp_pause_resource, omp_pause_resource_all): New functions.
2711         * task.c (gomp_task_handle_depend): Handle new depend array format
2712         in addition to the old.  Handle mutexinoutset kinds the same as
2713         inout for now, handle unspecified kinds.
2714         (gomp_create_target_task): If taskgroup has workshare flag set, check
2715         cancelled on prev taskgroup if any.  Guard all cancellation tests with
2716         gomp_cancel_var test.  Handle new depend array format count in
2717         addition to the old.
2718         (GOMP_task): Likewise.  Adjust function comment.
2719         (gomp_task_run_pre): If taskgroup has workshare flag set, check
2720         cancelled on prev taskgroup if any.  Guard all cancellation tests with
2721         gomp_cancel_var test.
2722         (GOMP_taskwait_depend): New function.
2723         (gomp_task_maybe_wait_for_dependencies): Handle new depend array
2724         format in addition to the old.  Handle mutexinoutset kinds the same as
2725         inout for now, handle unspecified kinds.  Fix a function comment typo.
2726         (gomp_taskgroup_init): New function.
2727         (GOMP_taskgroup_start): Use it.
2728         (gomp_reduction_register, gomp_create_artificial_team,
2729         GOMP_taskgroup_reduction_register,
2730         GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2731         gomp_parallel_reduction_register,
2732         gomp_workshare_task_reduction_register,
2733         gomp_workshare_taskgroup_start,
2734         GOMP_workshare_task_reduction_unregister): New functions.
2735         * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
2736         check cancelled on prev taskgroup if any.  Guard all cancellation
2737         tests with gomp_cancel_var test.  Handle GOMP_TASK_FLAG_REDUCTION flag
2738         by calling GOMP_taskgroup_reduction_register.
2739         * team.c (gomp_thread_attr): Remove comment.
2740         (struct gomp_thread_start_data): Add handle field.
2741         (gomp_thread_start): Call pthread_detach.
2742         (gomp_new_team): Adjust gomp_init_work_share caller.
2743         (gomp_free_pool_helper): Call pthread_detach.
2744         (gomp_team_start): Add taskgroup argument, initialize implicit
2745         tasks' taskgroup field to that.  Don't call
2746         pthread_attr_setdetachstate.  Handle OMP_DISPLAY_AFFINITY env var.
2747         (gomp_team_end): Determine nesting by thr->ts.level != 0
2748         rather than thr->ts.team != NULL.
2749         (gomp_pause_pool_helper, gomp_pause_host): New functions.
2750         * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
2751         gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
2752         (gomp_init_work_share): Change ORDERED argument from bool to size_t,
2753         if more than 1 allocate also extra payload at the end of array.  Never
2754         keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
2755         (gomp_work_share_start): Change ORDERED argument from bool to size_t,
2756         return true instead of ws.
2757         * Makefile.in: Regenerated.
2758         * configure: Regenerated.
2759         * config.h.in: Regenerated.
2760         * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
2761         in some cases.
2762         * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
2763         * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
2764         * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
2765         * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
2766         * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
2767         * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
2768         * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
2769         * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
2770         * testsuite/libgomp.c-c++-common/for-10.c: New test.
2771         * testsuite/libgomp.c-c++-common/for-11.c: New test.
2772         * testsuite/libgomp.c-c++-common/for-12.c: New test.
2773         * testsuite/libgomp.c-c++-common/for-13.c: New test.
2774         * testsuite/libgomp.c-c++-common/for-14.c: New test.
2775         * testsuite/libgomp.c-c++-common/for-15.c: New test.
2776         * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
2777         define a different N(test), don't define N(f0) to N(f14), but instead
2778         define N(f20) to N(f34) using != comparisons.
2779         * testsuite/libgomp.c-c++-common/for-7.c: New test.
2780         * testsuite/libgomp.c-c++-common/for-8.c: New test.
2781         * testsuite/libgomp.c-c++-common/for-9.c: New test.
2782         * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
2783         * testsuite/libgomp.c-c++-common/pause-1.c: New test.
2784         * testsuite/libgomp.c-c++-common/pause-2.c: New test.
2785         * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
2786         * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
2787         * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
2788         * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
2789         * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
2790         * testsuite/libgomp.c-c++-common/simd-1.c: New test.
2791         * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
2792         * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
2793         * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
2794         * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
2795         * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
2796         * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
2797         * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
2798         * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
2799         * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
2800         * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
2801         * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
2802         * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
2803         * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
2804         * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
2805         * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
2806         * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
2807         * testsuite/libgomp.c++/depend-1.C: New test.
2808         * testsuite/libgomp.c++/depend-iterator-1.C: New test.
2809         * testsuite/libgomp.c++/depobj-1.C: New test.
2810         * testsuite/libgomp.c++/for-16.C: New test.
2811         * testsuite/libgomp.c++/for-21.C: New test.
2812         * testsuite/libgomp.c++/for-22.C: New test.
2813         * testsuite/libgomp.c++/for-23.C: New test.
2814         * testsuite/libgomp.c++/for-24.C: New test.
2815         * testsuite/libgomp.c++/for-25.C: New test.
2816         * testsuite/libgomp.c++/for-26.C: New test.
2817         * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
2818         * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
2819         * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
2820         * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
2821         * testsuite/libgomp.c++/task-reduction-10.C: New test.
2822         * testsuite/libgomp.c++/task-reduction-11.C: New test.
2823         * testsuite/libgomp.c++/task-reduction-12.C: New test.
2824         * testsuite/libgomp.c++/task-reduction-13.C: New test.
2825         * testsuite/libgomp.c++/task-reduction-14.C: New test.
2826         * testsuite/libgomp.c++/task-reduction-15.C: New test.
2827         * testsuite/libgomp.c++/task-reduction-16.C: New test.
2828         * testsuite/libgomp.c++/task-reduction-17.C: New test.
2829         * testsuite/libgomp.c++/task-reduction-18.C: New test.
2830         * testsuite/libgomp.c++/task-reduction-19.C: New test.
2831         * testsuite/libgomp.c/task-reduction-1.c: New test.
2832         * testsuite/libgomp.c++/task-reduction-1.C: New test.
2833         * testsuite/libgomp.c/task-reduction-2.c: New test.
2834         * testsuite/libgomp.c++/task-reduction-2.C: New test.
2835         * testsuite/libgomp.c++/task-reduction-3.C: New test.
2836         * testsuite/libgomp.c++/task-reduction-4.C: New test.
2837         * testsuite/libgomp.c++/task-reduction-5.C: New test.
2838         * testsuite/libgomp.c++/task-reduction-6.C: New test.
2839         * testsuite/libgomp.c++/task-reduction-7.C: New test.
2840         * testsuite/libgomp.c++/task-reduction-8.C: New test.
2841         * testsuite/libgomp.c++/task-reduction-9.C: New test.
2842         * testsuite/libgomp.c/teams-1.c: New test.
2843         * testsuite/libgomp.c/teams-2.c: New test.
2844         * testsuite/libgomp.c/thread-limit-4.c: New test.
2845         * testsuite/libgomp.c/thread-limit-5.c: New test.
2846         * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
2848 2018-11-06  Chung-Lin Tang <cltang@codesourcery.com>
2850         * oacc-mem.c (memcpy_tofrom_device): New function, combined from
2851         acc_memcpy_to/from_device functions, now with async parameter.
2852         (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
2853         (acc_memcpy_from_device): Likewise.
2854         (acc_memcpy_to_device_async): New API function.
2855         (acc_memcpy_from_device_async): Likewise.
2856         (present_create_copy): Add async parameter and async setting/unsetting.
2857         (acc_create): Adjust present_create_copy call.
2858         (acc_copyin): Likewise.
2859         (acc_present_or_create): Likewise.
2860         (acc_present_or_copyin): Likewise.
2861         (acc_create_async): New API function.
2862         (acc_copyin_async): New API function.
2863         (delete_copyout): Add async parameter and async setting/unsetting.
2864         (acc_delete): Adjust delete_copyout call.
2865         (acc_copyout): Likewise.
2866         (acc_delete_async): New API function.
2867         (acc_copyout_async): Likewise.
2868         (update_dev_host): Add async parameter and async setting/unsetting.
2869         (acc_update_device): Adjust update_dev_host call.
2870         (acc_update_self): Likewise.
2871         (acc_update_device_async): New API function.
2872         (acc_update_self_async): Likewise.
2873         * openacc.h (acc_copyin_async): Declare new API function.
2874         (acc_create_async): Likewise.
2875         (acc_copyout_async): Likewise.
2876         (acc_delete_async): Likewise.
2877         (acc_update_device_async): Likewise.
2878         (acc_update_self_async): Likewise.
2879         (acc_memcpy_to_device_async): Likewise.
2880         (acc_memcpy_from_device_async): Likewise.
2881         * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
2882         (acc_copyin_async_64_h): New subroutine.
2883         (acc_copyin_async_array_h): New subroutine.
2884         (acc_create_async_32_h): New subroutine.
2885         (acc_create_async_64_h): New subroutine.
2886         (acc_create_async_array_h): New subroutine.
2887         (acc_copyout_async_32_h): New subroutine.
2888         (acc_copyout_async_64_h): New subroutine.
2889         (acc_copyout_async_array_h): New subroutine.
2890         (acc_delete_async_32_h): New subroutine.
2891         (acc_delete_async_64_h): New subroutine.
2892         (acc_delete_async_array_h): New subroutine.
2893         (acc_update_device_async_32_h): New subroutine.
2894         (acc_update_device_async_64_h): New subroutine.
2895         (acc_update_device_async_array_h): New subroutine.
2896         (acc_update_self_async_32_h): New subroutine.
2897         (acc_update_self_async_64_h): New subroutine.
2898         (acc_update_self_async_array_h): New subroutine.
2899         * openacc.f90 (acc_copyin_async_32_h): New subroutine.
2900         (acc_copyin_async_64_h): New subroutine.
2901         (acc_copyin_async_array_h): New subroutine.
2902         (acc_create_async_32_h): New subroutine.
2903         (acc_create_async_64_h): New subroutine.
2904         (acc_create_async_array_h): New subroutine.
2905         (acc_copyout_async_32_h): New subroutine.
2906         (acc_copyout_async_64_h): New subroutine.
2907         (acc_copyout_async_array_h): New subroutine.
2908         (acc_delete_async_32_h): New subroutine.
2909         (acc_delete_async_64_h): New subroutine.
2910         (acc_delete_async_array_h): New subroutine.
2911         (acc_update_device_async_32_h): New subroutine.
2912         (acc_update_device_async_64_h): New subroutine.
2913         (acc_update_device_async_array_h): New subroutine.
2914         (acc_update_self_async_32_h): New subroutine.
2915         (acc_update_self_async_64_h): New subroutine.
2916         (acc_update_self_async_array_h): New subroutine.
2917         * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
2918         acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
2919         acc_delete_finalize_async*, acc_memcpy_from_device_async*,
2920         acc_memcpy_to_device_async*, acc_update_device_async*, and
2921         acc_update_self_async* entries.
2922         * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
2923         * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
2924         * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
2926 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
2928         PR bootstrap/82856
2929         * Makefile.am: Include multilib.am
2930         (AUTOMAKE_OPTIONS): Add info-in-builddir.
2931         (CLEANFILES): Remove libgomp.info.
2932         * configure.ac: Remove AC_PREREQ.
2933         * testsuite/Makefile.am (RUNTEST): Remove quotes.
2934         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
2935         Regenerate.
2937 2018-10-29  Joseph Myers  <joseph@codesourcery.com>
2938             Julian Brown  <julian@codesourcery.com>
2940         * testsuite/libgomp.oacc-c++/this.C: New.
2942 2018-09-18  Cesar Philippidis  <cesar@codesourcery.com>
2944         * plugin/plugin-nvptx.c (struct cuda_map): New.
2945         (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
2946         h_tail with (cuda_map *) map.
2947         (cuda_map_create): New function.
2948         (cuda_map_destroy): New function.
2949         (map_init): Update to use a linked list of cuda_map objects.
2950         (map_fini): Likewise.
2951         (map_pop): Likewise.
2952         (map_push): Likewise.  Return CUdeviceptr instead of void.
2953         (init_streams_for_device): Remove stales references to ptx_stream
2954         members.
2955         (select_stream_for_async): Likewise.
2956         (nvptx_exec): Update call to map_init.
2958 2018-09-09  Cesar Philippidis  <cesar@codesourcery.com>
2959             Julian Brown  <julian@codesourcery.com>
2961         PR middle-end/86336
2962         * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
2964 2018-08-21  Nicolas Koenig  <koenigni@gcc.gnu.org>
2965         Thomas Koenig <tkoenig@gcc.gnu.org>
2967         PR fortran/25829
2968         * testsuite/libgomp.fortran/async_io_1.f90: New test.
2969         * testsuite/libgomp.fortran/async_io_2.f90: New test.
2970         * testsuite/libgomp.fortran/async_io_3.f90: New test.
2971         * testsuite/libgomp.fortran/async_io_4.f90: New test.
2972         * testsuite/libgomp.fortran/async_io_5.f90: New test.
2973         * testsuite/libgomp.fortran/async_io_6.f90: New test.
2974         * testsuite/libgomp.fortran/async_io_7.f90: New test.
2976 2018-08-13  Cesar Philippidis  <cesar@codesourcery.com>
2977             Tom de Vries  <tdevries@suse.de>
2979         PR target/85590
2980         * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
2981         (cuOccupancyMaxPotentialBlockSize): Declare.
2982         * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
2983         CUDA_ONE_CALL_MAYBE_NULL.
2984         * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
2985         CUoccupancyB2DSize and declare
2986         cuOccupancyMaxPotentialBlockSize.
2987         (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
2988         default num_gangs and num_workers when the driver supports it.
2990 2018-08-08  Tom de Vries  <tdevries@suse.de>
2992         * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
2993         CUDA_ONE_CALL_MAYBE_NULL.
2994         * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
2995         (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
2996         (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
2997         are not found.
2999 2018-08-08  Tom de Vries  <tdevries@suse.de>
3001         * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
3002         * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
3003         present.
3005 2018-08-08  Tom de Vries  <tdevries@suse.de>
3007         * plugin/plugin-nvptx.c
3008         (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
3009         (nvptx_open_device): Use
3010         CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
3012 2018-08-08  Tom de Vries  <tdevries@suse.de>
3014         * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
3015         (cuGetErrorString): ... here.  Guard with CUDA_VERSION < 6000.
3017 2018-08-07  Tom de Vries  <tdevries@suse.de>
3019         * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
3020         (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
3021         (init_cuda_lib): Add new param to CUDA_ONE_CALL_1.  Add arg to
3022         corresponding call in CUDA_ONE_CALL.  Add def/undef of
3023         CUDA_ONE_CALL_MAYBE_NULL.
3024         (CUDA_CALL_EXISTS): Define.
3026 2018-08-07  Tom de Vries  <tdevries@suse.de>
3028         * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
3029         CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
3030         corresponding undefs right after.
3032 2018-08-04  Tom de Vries  <tdevries@suse.de>
3034         * plugin/configfrag.ac: For --without-cuda-driver, set
3035         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no.  Handle
3036         CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
3037         * configure: Regenerate.
3039 2018-08-02  Tom de Vries  <tdevries@suse.de>
3041         PR target/86660
3042         * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
3043         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
3044         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3045         Same.
3046         * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
3047         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
3048         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
3050 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
3051             Thomas Schwinge <thomas@codesourcery.com>
3053         * config/nvptx/oacc-parallel.c: Truncate.
3055 2018-08-01  Cesar Philippidis  <cesar@codesourcery.com>
3056             James Norris <jnorris@codesourcery.com>
3058         * plugin/plugin-nvptx.c (struct map): Removed.
3059         (map_init, map_pop): Remove use of struct map.
3060         (map_push): Likewise and change argument list.
3061         * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
3063 2018-08-01  Tom de Vries  <tdevries@suse.de>
3065         * plugin/cuda-lib.def: New file.  Factor out of ...
3066         * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
3067         (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
3068         using CUDA_CALLS.
3070 2018-07-31  Andre Vieira  <andre.simoesdiasvieira@arm.com>
3072         Revert 'AsyncI/O patch committed'.
3073         2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
3074                 Thomas Koenig <tkoenig@gcc.gnu.org>
3076         PR fortran/25829
3077         * testsuite/libgomp.fortran/async_io_1.f90: New test.
3078         * testsuite/libgomp.fortran/async_io_2.f90: New test.
3079         * testsuite/libgomp.fortran/async_io_3.f90: New test.
3080         * testsuite/libgomp.fortran/async_io_4.f90: New test.
3081         * testsuite/libgomp.fortran/async_io_5.f90: New test.
3082         * testsuite/libgomp.fortran/async_io_6.f90: New test.
3083         * testsuite/libgomp.fortran/async_io_7.f90: New test.
3085 2018-07-30  Tom de Vries  <tdevries@suse.de>
3087         * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
3088         (nvptx_exec): Ensure worker and vector default dims don't exceed
3089         targ_fn->max_threads_per_block.
3091 2018-07-30  Tom de Vries  <tdevries@suse.de>
3093         * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
3094         (nvptx_open_device): Init default_dims for device.
3095         (nvptx_exec): Use default_dims from device.
3097 2018-07-26  Jakub Jelinek  <jakub@redhat.com>
3099         PR testsuite/86660
3100         * testsuite/libgomp.c++/for-15.C (results): Include it in
3101         omp declare target region.
3102         (main): Use map (always, tofrom: results) instead of
3103         map (tofrom: results).
3105         PR middle-end/86660
3106         * testsuite/libgomp.c/pr86660.c: New test.
3108 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
3109             Tom de Vries  <tdevries@suse.de>
3111         * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
3112         sufficient resources to launch a kernel, and give a hint on how to fix
3113         it.
3115 2018-07-26  Cesar Philippidis  <cesar@codesourcery.com>
3116             Tom de Vries  <tdevries@suse.de>
3118         * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
3119         max_threads_per_block and max_threads_per_multiprocessor fields.
3120         (nvptx_open_device): Initialize new fields.
3121         (nvptx_exec): Use num_sms, and new fields.
3123 2018-07-26  Tom de Vries  <tdevries@suse.de>
3125         * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
3126         to correct locations.  Remove xfail.
3128 2018-07-26  Tom de Vries  <tdevries@suse.de>
3130         * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
3131         acc_wait.  Move acc_async_test calls to correct locations.  Remove
3132         xfail.
3134 2018-07-25  Nicolas Koenig  <koenigni@gcc.gnu.org>
3135         Thomas Koenig <tkoenig@gcc.gnu.org>
3137         PR fortran/25829
3138         * testsuite/libgomp.fortran/async_io_1.f90: New test.
3139         * testsuite/libgomp.fortran/async_io_2.f90: New test.
3140         * testsuite/libgomp.fortran/async_io_3.f90: New test.
3141         * testsuite/libgomp.fortran/async_io_4.f90: New test.
3142         * testsuite/libgomp.fortran/async_io_5.f90: New test.
3143         * testsuite/libgomp.fortran/async_io_6.f90: New test.
3144         * testsuite/libgomp.fortran/async_io_7.f90: New test.
3146 2018-07-17  Jakub Jelinek  <jakub@redhat.com>
3148         PR middle-end/86542
3149         * testsuite/libgomp.c++/pr86542.C: New test.
3151         PR middle-end/86539
3152         * testsuite/libgomp.c++/pr86539.C: New test.
3154 2018-07-11  Jakub Jelinek  <jakub@redhat.com>
3156         PR c++/86443
3157         * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
3158         (results): Make sure the variable is not inside declare target region.
3159         (qux): Remove unused function.
3161 2018-07-10  Jakub Jelinek  <jakub@redhat.com>
3163         PR c++/86443
3164         * testsuite/libgomp.c++/for-15.C: New test.
3166 2018-06-26  Jakub Jelinek  <jakub@redhat.com>
3168         PR c++/86291
3169         * testsuite/libgomp.c++/pr86291.C: New test.
3171 2018-06-24  Gerald Pfeifer  <gerald@pfeifer.com>
3173         * libgomp.texi (Top): Move www.openmp.org to https.
3174         (Enabling OpenMP): Ditto.
3175         (omp_get_active_level): Ditto.
3176         (omp_get_ancestor_thread_num): Ditto.
3177         (omp_get_cancellation): Ditto.
3178         (omp_get_default_device): Ditto.
3179         (omp_get_dynamic): Ditto.
3180         (omp_get_level): Ditto.
3181         (omp_get_max_active_levels): Ditto.
3182         (omp_get_max_task_priority): Ditto.
3183         (omp_get_max_threads): Ditto.
3184         (omp_get_nested): Ditto.
3185         (omp_get_num_devices): Ditto.
3186         (omp_get_num_procs): Ditto.
3187         (omp_get_num_teams): Ditto.
3188         (omp_get_num_threads): Ditto.
3189         (omp_get_proc_bind): Ditto.
3190         (omp_get_schedule): Ditto.
3191         (omp_get_team_num): Ditto.
3192         (omp_get_team_size): Ditto.
3193         (omp_get_thread_limit): Ditto.
3194         (omp_get_thread_num): Ditto.
3195         (omp_in_parallel): Ditto.
3196         (omp_in_final): Ditto.
3197         (omp_is_initial_device): Ditto.
3198         (omp_set_default_device): Ditto.
3199         (omp_set_dynamic): Ditto.
3200         (omp_set_max_active_levels): Ditto.
3201         (omp_set_nested): Ditto.
3202         (omp_set_num_threads): Ditto.
3203         (omp_set_schedule): Ditto.
3204         (omp_init_lock): Ditto.
3205         (omp_set_lock): Ditto.
3206         (omp_test_lock): Ditto.
3207         (omp_unset_lock): Ditto.
3208         (omp_destroy_lock): Ditto.
3209         (omp_init_nest_lock): Ditto.
3210         (omp_set_nest_lock): Ditto.
3211         (omp_test_nest_lock): Ditto.
3212         (omp_unset_nest_lock): Ditto.
3213         (omp_destroy_nest_lock): Ditto.
3214         (omp_get_wtick): Ditto.
3215         (omp_get_wtime): Ditto.
3216         (OMP_CANCELLATION): Ditto.
3217         (OMP_DISPLAY_ENV): Ditto.
3218         (OMP_DEFAULT_DEVICE): Ditto.
3219         (OMP_DYNAMIC): Ditto.
3220         (OMP_MAX_ACTIVE_LEVELS): Ditto.
3221         (OMP_MAX_TASK_PRIORITY): Ditto.
3222         (OMP_NESTED): Ditto.
3223         (OMP_NUM_THREADS): Ditto.
3224         (OMP_PROC_BIND): Ditto.
3225         (OMP_PLACES): Ditto.
3226         (OMP_STACKSIZE): Ditto.
3227         (OMP_SCHEDULE): Ditto.
3228         (OMP_THREAD_LIMIT): Ditto.
3229         (OMP_WAIT_POLICY): Ditto.
3231 2018-06-22  Cesar Philippidis  <cesar@codesourcery.com>
3232             James Norris  <jnorris@codesourcery.com>
3233             Julian Brown  <julian@codesourcery.com>
3234             Thomas Schwinge  <thomas@codesourcery.com>
3235             Tom de Vries  <tom@codesourcery.com>
3237         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
3238         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
3239         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
3240         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
3241         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3242         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3243         * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
3244         * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
3245         * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
3246         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
3247         Likewise.
3248         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
3249         Likewise.
3250         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
3251         Likewise.
3252         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
3253         Likewise.
3254         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
3255         Likewise.
3256         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
3257         Likewise.
3258         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3259         Likewise.
3260         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3261         Likewise.
3262         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3263         Likewise.
3264         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3265         Likewise.
3266         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3267         Likewise.
3268         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3269         Likewise.
3270         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3271         Likewise.
3272         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3273         Likewise.
3274         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3275         Likewise.
3276         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3277         Likewise.
3278         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3279         Likewise.
3280         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3281         Likewise.
3282         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3283         Likewise.
3284         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3285         Likewise.
3286         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3287         Likewise.
3288         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3289         Likewise.
3290         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3291         Likewise.
3292         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3293         Likewise.
3294         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3295         Likewise.
3296         * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3297         Likewise.
3298         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3299         Likewise.
3300         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
3301         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
3302         * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
3303         * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
3304         * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
3305         * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
3306         * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
3307         * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
3308         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
3309         Likewise.
3310         * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
3311         Likewise.
3312         * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
3313         * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
3314         * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
3315         Likewise.
3316         * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
3317         * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
3318         * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
3319         Likewise.
3320         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3321         Likewise.
3322         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3323         Likewise.
3324         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3325         Likewise.
3326         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3327         Likewise.
3328         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3329         Likewise.
3330         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3331         Likewise.
3332         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3333         Likewise.
3334         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3335         Likewise.
3336         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3337         Likewise.
3338         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3339         Likewise.
3340         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3341         Likewise.
3342         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3343         Likewise.
3344         * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3345         Likewise.
3346         * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3347         Likewise.
3348         * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
3349         * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
3350         * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
3351         * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
3352         * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
3353         * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
3354         * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
3356 2018-06-20  Chung-Lin Tang <cltang@codesourcery.com>
3357             Thomas Schwinge <thomas@codesourcery.com>
3358             Cesar Philippidis  <cesar@codesourcery.com>
3360         * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
3361         (gomp_acc_remove_pointer): Update declaration.
3362         (gomp_acc_declare_allocate): Declare.
3363         (gomp_remove_var): Declare.
3364         * libgomp.map (OACC_2.5): Define.
3365         * oacc-mem.c (acc_map_data): Update refcount.
3366         (acc_unmap_data): Likewise.
3367         (present_create_copy): Likewise.
3368         (acc_create): Add FLAG_PRESENT when calling present_create_copy.
3369         (acc_copyin): Likewise.
3370         (FLAG_FINALIZE): Define.
3371         (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
3372         (acc_delete_finalize): New function.
3373         (acc_delete_finalize_async): New function.
3374         (acc_copyout_finalize): New function.
3375         (acc_copyout_finalize_async): New function.
3376         (gomp_acc_insert_pointer): Update refcounts.
3377         (gomp_acc_remove_pointer): Return if data is not present on the
3378         accelerator.
3379         * oacc-parallel.c (find_pset): Rename to find_pointer.
3380         (find_pointer): Add support for GOMP_MAP_POINTER.
3381         (handle_ftn_pointers): New function.
3382         (GOACC_parallel_keyed): Update refcounts of variables.
3383         (GOACC_enter_exit_data): Add support for finalized data mappings.
3384         Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
3385         of fortran arrays.
3386         (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
3387         (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
3388         for GOMP_MAP_FORCE_FROM.
3389         * openacc.f90 (module openacc_internal): Add
3390         acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
3391         acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
3392         acc_copyout_finalize and acc_delete_finalize.
3393         (acc_copyout_finalize_32_h): New subroutine.
3394         (acc_copyout_finalize_64_h): New subroutine.
3395         (acc_copyout_finalize_array_h): New subroutine.
3396         (acc_delete_finalize_32_h): New subroutine.
3397         (acc_delete_finalize_64_h): New subroutine.
3398         (acc_delete_finalize_array_h): New subroutine.
3399         * openacc.h (acc_copyout_finalize): Declare.
3400         (acc_copyout_finalize_async): Declare.
3401         (acc_delete_finalize): Declare.
3402         (acc_delete_finalize_async): Declare.
3403         * openacc_lib.h (acc_copyout_finalize): New interface.
3404         (acc_delete_finalize): New interface.
3405         * target.c (gomp_map_vars): Update dynamic_refcount.
3406         (gomp_remove_var): New function.
3407         (gomp_unmap_vars): Use it.
3408         (gomp_unload_image_from_device): Likewise.
3409         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
3410         case to utilize OpenACC 2.5 data clause semantics.
3411         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3412         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3413         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3414         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3415         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3416         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3417         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3418         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3419         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3420         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
3421         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
3422         * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
3423         * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
3424         utilize OpenACC 2.5 data clause semantics.
3425         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3426         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3427         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3428         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3429         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3430         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3431         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3432         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3433         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3435 2018-05-21  Janus Weil  <janus@gcc.gnu.org>
3437         PR fortran/85841
3438         PR testsuite/85865
3439         * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
3440         * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
3441         * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
3442         * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
3443         * testsuite/libgomp.fortran/task2.f90: Ditto.
3444         * testsuite/libgomp.fortran/vla1.f90: Ditto.
3445         * testsuite/libgomp.fortran/vla2.f90: Ditto.
3446         * testsuite/libgomp.fortran/vla3.f90: Ditto.
3447         * testsuite/libgomp.fortran/vla4.f90: Ditto.
3448         * testsuite/libgomp.fortran/vla5.f90: Ditto.
3449         * testsuite/libgomp.fortran/vla6.f90: Ditto.
3450         * testsuite/libgomp.fortran/vla8.f90: Ditto.
3451         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
3452         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
3454 2018-05-18  Cesar Philippidis  <cesar@codesourcery.com>
3456         PR c++/85782
3457         * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
3459 2018-05-09  Tom de Vries  <tom@codesourcery.com>
3461         PR libgomp/82901
3462         * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
3463         to GOACC_enter_exit_data.
3465 2018-05-09  Tom de Vries  <tom@codesourcery.com>
3467         PR libgomp/83792
3468         * oacc-int.h (async_valid_stream_id_p, async_valid_p)
3469         (async_synchronous_p): New function.
3470         * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
3471         async_valid_p.
3472         * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
3473         async_valid_stream_id_p.
3474         * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
3475         * oacc-parallel.c (GOACC_parallel_keyed): Same.
3477 2018-05-07  Tom de Vries  <tom@codesourcery.com>
3479         PR testsuite/85677
3480         * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
3481         include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
3483 2018-05-03  Tom de Vries  <tom@codesourcery.com>
3485         PR testsuite/85106
3486         * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
3487         extra_tool_flags if it contains an -foffload=-fdump-* flag.
3488         * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
3489         * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
3491 2018-05-02  Tom de Vries  <tom@codesourcery.com>
3493         PR libgomp/85411
3494         * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
3495         GOMP_OPENACC_DIM ...
3496         * env.c (parse_gomp_openacc_dim): ... here.  New function.
3497         (initialize_env): Call parse_gomp_openacc_dim.
3498         (goacc_default_dims): Define.
3499         * libgomp.h (goacc_default_dims): Declare.
3500         * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
3501         * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
3502         * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
3503         GOMP_PLUGIN_acc_default_dim.
3504         * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
3505         * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
3507 2018-05-02  Tom de Vries  <tom@codesourcery.com>
3509         PR testsuite/83791
3510         * testsuite/libgomp.c++/udr-9.C: Update.
3511         * testsuite/libgomp.c++/atomic-16.C: Remove.
3512         * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
3513         * testsuite/libgomp.c++/loop-13.C: Remove.
3514         * testsuite/libgomp.c++/loop-14.C: Remove.
3515         * testsuite/libgomp.c++/loop-15.C: Remove.
3516         * testsuite/libgomp.c++/monotonic-1.C: Remove.
3517         * testsuite/libgomp.c++/monotonic-2.C: Remove.
3518         * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
3519         * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
3520         * testsuite/libgomp.c++/ordered-1.C: Remove.
3521         * testsuite/libgomp.c++/pr45784.C: Remove.
3522         * testsuite/libgomp.c++/pr64824.C: Remove.
3523         * testsuite/libgomp.c++/pr64868.C: Remove.
3524         * testsuite/libgomp.c++/pr66199-1.C: Remove.
3525         * testsuite/libgomp.c++/pr66199-2.C: Remove.
3526         * testsuite/libgomp.c++/pr66199-3.C: Remove.
3527         * testsuite/libgomp.c++/pr66199-4.C: Remove.
3528         * testsuite/libgomp.c++/pr66199-5.C: Remove.
3529         * testsuite/libgomp.c++/pr66199-6.C: Remove.
3530         * testsuite/libgomp.c++/pr66199-7.C: Remove.
3531         * testsuite/libgomp.c++/pr66199-8.C: Remove.
3532         * testsuite/libgomp.c++/pr66199-9.C: Remove.
3533         * testsuite/libgomp.c++/pr69389.C: Remove.
3534         * testsuite/libgomp.c++/simd10.C: Remove.
3535         * testsuite/libgomp.c++/simd11.C: Remove.
3536         * testsuite/libgomp.c++/simd12.C: Remove.
3537         * testsuite/libgomp.c++/simd13.C: Remove.
3538         * testsuite/libgomp.c++/target-1.C: Remove.
3539         * testsuite/libgomp.c++/target-3.C: Remove.
3540         * testsuite/libgomp.c++/target-4.C: Remove.
3541         * testsuite/libgomp.c++/target-5.C: Remove.
3542         * testsuite/libgomp.c++/taskgroup-1.C: Remove.
3543         * testsuite/libgomp.c++/taskloop-1.C: Remove.
3544         * testsuite/libgomp.c++/taskloop-2.C: Remove.
3545         * testsuite/libgomp.c++/taskloop-3.C: Remove.
3546         * testsuite/libgomp.c++/taskloop-4.C: Remove.
3547         * testsuite/libgomp.c++/udr-9.C: Remove.
3548         * testsuite/libgomp.c++/for-10.C: Remove.
3549         * testsuite/libgomp.c++/for-11.C: Remove.
3550         * testsuite/libgomp.c++/for-12.C: Remove.
3551         * testsuite/libgomp.c++/for-13.C: Remove.
3552         * testsuite/libgomp.c++/for-14.C: Remove.
3553         * testsuite/libgomp.c++/for-9.C: Remove.
3554         * testsuite/libgomp.c/atomic-18.c: Move ...
3555         * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
3556         * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
3557         * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
3558         * testsuite/libgomp.c/loop-13.c: Move ...
3559         * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
3560         * testsuite/libgomp.c/loop-14.c: Move ...
3561         * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
3562         * testsuite/libgomp.c/loop-15.c: Remove.
3563         * testsuite/libgomp.c-c++-common/loop-15.c: New test.
3564         * testsuite/libgomp.c/monotonic-1.c: Move ...
3565         * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
3566         * testsuite/libgomp.c/monotonic-2.c: Move ...
3567         * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
3568         * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
3569         * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
3570         * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
3571         * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
3572         * testsuite/libgomp.c/ordered-4.c: Move ...
3573         * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
3574         * testsuite/libgomp.c/pr45784.c: Move ...
3575         * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
3576         * testsuite/libgomp.c/pr64824.c: Move ...
3577         * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
3578         * testsuite/libgomp.c/pr64868.c: Move ...
3579         * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
3580         * testsuite/libgomp.c/pr66199-1.c: Move ...
3581         * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
3582         * testsuite/libgomp.c/pr66199-2.c: Move ...
3583         * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
3584         * testsuite/libgomp.c/pr66199-3.c: Move ...
3585         * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
3586         * testsuite/libgomp.c/pr66199-4.c: Move ...
3587         * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
3588         * testsuite/libgomp.c/pr66199-5.c: Move ...
3589         * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
3590         * testsuite/libgomp.c/pr66199-6.c: Move ...
3591         * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
3592         * testsuite/libgomp.c/pr66199-7.c: Move ...
3593         * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
3594         * testsuite/libgomp.c/pr66199-8.c: Move ...
3595         * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
3596         * testsuite/libgomp.c/pr66199-9.c: Move ...
3597         * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
3598         * testsuite/libgomp.c/pr69389.c: Move ...
3599         * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
3600         * testsuite/libgomp.c/simd-14.c: Move ...
3601         * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
3602         * testsuite/libgomp.c/simd-15.c: Move ...
3603         * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
3604         * testsuite/libgomp.c/simd-16.c: Move ...
3605         * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
3606         * testsuite/libgomp.c/simd-17.c: Move ...
3607         * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
3608         * testsuite/libgomp.c/target-1.c: Move ...
3609         * testsuite/libgomp.c-c++-common/target-1.c: ... here.
3610         * testsuite/libgomp.c/target-10.c: Move ...
3611         * testsuite/libgomp.c-c++-common/target-10.c: ... here.
3612         * testsuite/libgomp.c/target-13.c: Move ...
3613         * testsuite/libgomp.c-c++-common/target-13.c: ... here.
3614         * testsuite/libgomp.c/target-2.c: Move ...
3615         * testsuite/libgomp.c-c++-common/target-2.c: ... here.
3616         * testsuite/libgomp.c/taskgroup-1.c: Move ...
3617         * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
3618         * testsuite/libgomp.c/taskloop-1.c: Move ...
3619         * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
3620         * testsuite/libgomp.c/taskloop-2.c: Move ...
3621         * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
3622         * testsuite/libgomp.c/taskloop-3.c: Move ...
3623         * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
3624         * testsuite/libgomp.c/taskloop-4.c: Move ...
3625         * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
3626         * testsuite/libgomp.c/udr-1.c: Move ...
3627         * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
3628         * testsuite/libgomp.c/for-1.c: Move ...
3629         * testsuite/libgomp.c-c++-common/for-1.c: ... here.
3630         * testsuite/libgomp.c/for-1.h: Move ...
3631         * testsuite/libgomp.c-c++-common/for-1.h: ... here.
3632         * testsuite/libgomp.c/for-2.c: Move ...
3633         * testsuite/libgomp.c-c++-common/for-2.c: ... here.
3634         * testsuite/libgomp.c/for-2.h: Move ...
3635         * testsuite/libgomp.c-c++-common/for-2.h: ... here.
3636         * testsuite/libgomp.c/for-3.c: Move ...
3637         * testsuite/libgomp.c-c++-common/for-3.c: ... here.
3638         * testsuite/libgomp.c/for-4.c: Move ...
3639         * testsuite/libgomp.c-c++-common/for-4.c: ... here.
3640         * testsuite/libgomp.c/for-5.c: Move ...
3641         * testsuite/libgomp.c-c++-common/for-5.c: ... here.
3642         * testsuite/libgomp.c/for-6.c: Move ...
3643         * testsuite/libgomp.c-c++-common/for-6.c: ... here.
3645 2018-05-02  Tom de Vries  <tom@codesourcery.com>
3647         PR libgomp/82428
3648         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
3649         __builtin_goacc_parlevel_{id,size}.
3650         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
3651         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
3652         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
3653         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
3654         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
3655         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
3656         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
3657         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
3658         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
3659         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
3660         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
3661         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
3662         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
3663         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
3664         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
3665         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
3666         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
3667         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
3668         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
3669         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
3670         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
3671         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
3672         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
3674 2018-05-02  Tom de Vries  <tom@codesourcery.com>
3676         PR testsuite/85106
3677         * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
3679 2018-05-02  Tom de Vries  <tom@codesourcery.com>
3681         PR testsuite/85106
3682         * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
3684 2018-04-29  Julian Brown  <julian@codesourcery.com>
3685             Tom de Vries  <tom@codesourcery.com>
3687         PR testsuite/85527
3688         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
3689         arbitrary order for iterations of atomic subtract check.
3691 2018-04-28  Tom de Vries  <tom@codesourcery.com>
3693         PR testsuite/85527
3694         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
3695         atomic capture results obtained in parallel loop to an array, instead of
3696         to a scalar.
3698 2018-04-26  Tom de Vries  <tom@codesourcery.com>
3700         PR libgomp/84020
3701         * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
3702         * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
3703         (process_GOMP_NVPTX_JIT): New function.
3704         (link_ptx): Use process_GOMP_NVPTX_JIT.
3706 2018-04-26  Richard Biener <rguenther@suse.de>
3707             Tom de Vries  <tom@codesourcery.com>
3709         PR lto/85422
3710         * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
3712 2018-04-26  Tom de Vries  <tom@codesourcery.com>
3714         PR target/85519
3715         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3716         recursion depth from 25 to 23.
3717         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3719 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
3721         * configure: Regenerated.
3723 2018-04-20  Nathan Sidwell  <nathan@codesourcery.com>
3724             Tom de Vries  <tom@codesourcery.com>
3726         PR target/85445
3727         * testsuite/libgomp.oacc-c++/ref-1.C: New.
3729 2018-04-19  Thomas Schwinge  <thomas@codesourcery.com>
3731         PR libgomp/85463
3732         * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
3733         * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3734         * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3735         * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
3736         * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
3737         * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
3739         PR libfortran/85166
3740         * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
3741         abort".
3742         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3744 2018-04-19  Jakub Jelinek  <jakub@redhat.com>
3746         * configure: Regenerated.
3748 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
3750         PR jit/85384
3751         * configure: Regenerate.
3753 2018-04-16  Cesar Philippidis  <cesar@codesourcery.com>
3754             Tom de Vries  <tom@codesourcery.com>
3756         PR middle-end/84955
3757         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3758         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3760 2018-04-12  Thomas Koenig  <tkoenig@gcc.gnu.org>
3762         PR fortran/83064
3763         PR testsuite/85346
3764         * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
3765         test from gfortran.dg to here.
3767 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
3769         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
3770         * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
3772 2018-04-12  Cesar Philippidis  <cesar@codesourcery.com>
3774         PR middle-end/84955
3775         * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3776         * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3778 2018-04-05  Tom de Vries  <tom@codesourcery.com>
3780         PR target/85204
3781         * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
3783 2018-03-26  Tom de Vries  <tom@codesourcery.com>
3785         PR tree-optimization/85063
3786         * testsuite/libgomp.c/switch-conversion-2.c: New test.
3787         * testsuite/libgomp.c/switch-conversion.c: New test.
3788         * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
3789         * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
3791 2018-03-25  Thomas Koenig  <tkoenig@gcc.gnu.org>
3793         PR fortran/84381
3794         * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
3795         call abort by STOP n.
3796         * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
3797         * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
3798         * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
3799         * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
3800         * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
3801         * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
3802         * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
3803         * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
3804         * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
3805         * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
3806         * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
3807         * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
3808         * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
3809         * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
3810         * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
3811         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
3812         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
3813         * testsuite/libgomp.fortran/associate1.f90: Likewise.
3814         * testsuite/libgomp.fortran/associate2.f90: Likewise.
3815         * testsuite/libgomp.fortran/associate3.f90: Likewise.
3816         * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
3817         * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
3818         * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
3819         * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
3820         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
3821         * testsuite/libgomp.fortran/character1.f90: Likewise.
3822         * testsuite/libgomp.fortran/character2.f90: Likewise.
3823         * testsuite/libgomp.fortran/collapse1.f90: Likewise.
3824         * testsuite/libgomp.fortran/collapse2.f90: Likewise.
3825         * testsuite/libgomp.fortran/collapse3.f90: Likewise.
3826         * testsuite/libgomp.fortran/collapse4.f90: Likewise.
3827         * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
3828         * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
3829         * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
3830         * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
3831         * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
3832         * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
3833         * testsuite/libgomp.fortran/depend-1.f90: Likewise.
3834         * testsuite/libgomp.fortran/depend-2.f90: Likewise.
3835         * testsuite/libgomp.fortran/depend-3.f90: Likewise.
3836         * testsuite/libgomp.fortran/do1.f90: Likewise.
3837         * testsuite/libgomp.fortran/do2.f90: Likewise.
3838         * testsuite/libgomp.fortran/doacross1.f90: Likewise.
3839         * testsuite/libgomp.fortran/doacross2.f90: Likewise.
3840         * testsuite/libgomp.fortran/doacross3.f90: Likewise.
3841         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
3842         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
3843         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
3844         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
3845         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
3846         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
3847         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
3848         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
3849         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
3850         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
3851         * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
3852         * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
3853         * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
3854         * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
3855         * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
3856         * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
3857         * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
3858         * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
3859         * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
3860         * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
3861         * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
3862         * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
3863         * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
3864         * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
3865         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
3866         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
3867         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
3868         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
3869         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
3870         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
3871         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
3872         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
3873         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
3874         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
3875         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
3876         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
3877         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
3878         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
3879         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
3880         * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
3881         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
3882         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
3883         * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
3884         * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
3885         * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
3886         * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
3887         * testsuite/libgomp.fortran/lib1.f90: Likewise.
3888         * testsuite/libgomp.fortran/lib2.f: Likewise.
3889         * testsuite/libgomp.fortran/lib3.f: Likewise.
3890         * testsuite/libgomp.fortran/lib4.f90: Likewise.
3891         * testsuite/libgomp.fortran/lock-1.f90: Likewise.
3892         * testsuite/libgomp.fortran/lock-2.f90: Likewise.
3893         * testsuite/libgomp.fortran/nested1.f90: Likewise.
3894         * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
3895         * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
3896         * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
3897         * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
3898         * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
3899         * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
3900         * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
3901         * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
3902         * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
3903         * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
3904         * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
3905         * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
3906         * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
3907         * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
3908         * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
3909         * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
3910         * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
3911         * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
3912         * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
3913         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3914         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
3915         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
3916         * testsuite/libgomp.fortran/pointer1.f90: Likewise.
3917         * testsuite/libgomp.fortran/pointer2.f90: Likewise.
3918         * testsuite/libgomp.fortran/pr25162.f: Likewise.
3919         * testsuite/libgomp.fortran/pr25219.f90: Likewise.
3920         * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
3921         * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
3922         * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
3923         * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
3924         * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
3925         * testsuite/libgomp.fortran/pr28390.f: Likewise.
3926         * testsuite/libgomp.fortran/pr29629.f90: Likewise.
3927         * testsuite/libgomp.fortran/pr32550.f90: Likewise.
3928         * testsuite/libgomp.fortran/pr33880.f90: Likewise.
3929         * testsuite/libgomp.fortran/pr34020.f90: Likewise.
3930         * testsuite/libgomp.fortran/pr35130.f90: Likewise.
3931         * testsuite/libgomp.fortran/pr42162.f90: Likewise.
3932         * testsuite/libgomp.fortran/pr46753.f90: Likewise.
3933         * testsuite/libgomp.fortran/pr48894.f90: Likewise.
3934         * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
3935         * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
3936         * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
3937         * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
3938         * testsuite/libgomp.fortran/pr65597.f90: Likewise.
3939         * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
3940         * testsuite/libgomp.fortran/pr71014.f90: Likewise.
3941         * testsuite/libgomp.fortran/pr81304.f90: Likewise.
3942         * testsuite/libgomp.fortran/pr81841.f90: Likewise.
3943         * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
3944         * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
3945         * testsuite/libgomp.fortran/procptr1.f90: Likewise.
3946         * testsuite/libgomp.fortran/recursion1.f90: Likewise.
3947         * testsuite/libgomp.fortran/reduction1.f90: Likewise.
3948         * testsuite/libgomp.fortran/reduction2.f90: Likewise.
3949         * testsuite/libgomp.fortran/reduction3.f90: Likewise.
3950         * testsuite/libgomp.fortran/reduction4.f90: Likewise.
3951         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3952         * testsuite/libgomp.fortran/reduction6.f90: Likewise.
3953         * testsuite/libgomp.fortran/reference1.f90: Likewise.
3954         * testsuite/libgomp.fortran/reference2.f90: Likewise.
3955         * testsuite/libgomp.fortran/retval1.f90: Likewise.
3956         * testsuite/libgomp.fortran/retval2.f90: Likewise.
3957         * testsuite/libgomp.fortran/sharing1.f90: Likewise.
3958         * testsuite/libgomp.fortran/sharing2.f90: Likewise.
3959         * testsuite/libgomp.fortran/simd1.f90: Likewise.
3960         * testsuite/libgomp.fortran/simd2.f90: Likewise.
3961         * testsuite/libgomp.fortran/simd3.f90: Likewise.
3962         * testsuite/libgomp.fortran/simd4.f90: Likewise.
3963         * testsuite/libgomp.fortran/simd5.f90: Likewise.
3964         * testsuite/libgomp.fortran/simd6.f90: Likewise.
3965         * testsuite/libgomp.fortran/simd7.f90: Likewise.
3966         * testsuite/libgomp.fortran/stack.f90: Likewise.
3967         * testsuite/libgomp.fortran/strassen.f90: Likewise.
3968         * testsuite/libgomp.fortran/tabs1.f90: Likewise.
3969         * testsuite/libgomp.fortran/tabs2.f: Likewise.
3970         * testsuite/libgomp.fortran/target1.f90: Likewise.
3971         * testsuite/libgomp.fortran/target2.f90: Likewise.
3972         * testsuite/libgomp.fortran/target3.f90: Likewise.
3973         * testsuite/libgomp.fortran/target4.f90: Likewise.
3974         * testsuite/libgomp.fortran/target5.f90: Likewise.
3975         * testsuite/libgomp.fortran/target6.f90: Likewise.
3976         * testsuite/libgomp.fortran/target7.f90: Likewise.
3977         * testsuite/libgomp.fortran/target8.f90: Likewise.
3978         * testsuite/libgomp.fortran/task1.f90: Likewise.
3979         * testsuite/libgomp.fortran/task2.f90: Likewise.
3980         * testsuite/libgomp.fortran/task3.f90: Likewise.
3981         * testsuite/libgomp.fortran/task4.f90: Likewise.
3982         * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
3983         * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
3984         * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
3985         * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
3986         * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
3987         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3988         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3989         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3990         * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
3991         * testsuite/libgomp.fortran/udr1.f90: Likewise.
3992         * testsuite/libgomp.fortran/udr10.f90: Likewise.
3993         * testsuite/libgomp.fortran/udr11.f90: Likewise.
3994         * testsuite/libgomp.fortran/udr12.f90: Likewise.
3995         * testsuite/libgomp.fortran/udr13.f90: Likewise.
3996         * testsuite/libgomp.fortran/udr14.f90: Likewise.
3997         * testsuite/libgomp.fortran/udr15.f90: Likewise.
3998         * testsuite/libgomp.fortran/udr2.f90: Likewise.
3999         * testsuite/libgomp.fortran/udr3.f90: Likewise.
4000         * testsuite/libgomp.fortran/udr4.f90: Likewise.
4001         * testsuite/libgomp.fortran/udr5.f90: Likewise.
4002         * testsuite/libgomp.fortran/udr6.f90: Likewise.
4003         * testsuite/libgomp.fortran/udr7.f90: Likewise.
4004         * testsuite/libgomp.fortran/udr8.f90: Likewise.
4005         * testsuite/libgomp.fortran/udr9.f90: Likewise.
4006         * testsuite/libgomp.fortran/vla1.f90: Likewise.
4007         * testsuite/libgomp.fortran/vla2.f90: Likewise.
4008         * testsuite/libgomp.fortran/vla3.f90: Likewise.
4009         * testsuite/libgomp.fortran/vla4.f90: Likewise.
4010         * testsuite/libgomp.fortran/vla5.f90: Likewise.
4011         * testsuite/libgomp.fortran/vla6.f90: Likewise.
4012         * testsuite/libgomp.fortran/vla7.f90: Likewise.
4013         * testsuite/libgomp.fortran/vla8.f90: Likewise.
4014         * testsuite/libgomp.fortran/workshare1.f90: Likewise.
4015         * testsuite/libgomp.fortran/workshare2.f90: Likewise.
4016         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
4017         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
4018         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4019         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4020         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4021         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4022         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4023         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4024         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4025         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
4026         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4027         * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
4028         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
4029         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
4030         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
4031         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
4032         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
4033         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
4034         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
4035         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
4036         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
4037         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
4038         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
4039         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
4040         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
4041         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
4042         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4043         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
4044         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4045         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4046         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4047         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4048         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4049         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4050         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
4051         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
4052         * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
4053         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4054         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
4055         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4056         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
4057         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
4058         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
4059         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
4060         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
4061         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
4062         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
4063         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4064         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
4065         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
4066         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
4067         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4068         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
4069         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4070         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
4071         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4072         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4073         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
4074         * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
4075         * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
4076         * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
4077         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4078         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
4079         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
4080         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
4081         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4082         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4083         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
4084         * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4085         * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
4086         * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
4087         * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
4088         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4089         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
4090         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4091         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4092         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4093         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4094         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4095         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4096         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4097         * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
4098         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
4099         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4100         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4101         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
4102         * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
4103         * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4104         * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
4105         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
4106         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
4107         * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
4109 2018-03-20  Richard Biener  <rguenther@suse.de>
4111         * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
4112         parallelizable loop.
4114 2018-02-19  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
4116         PR target/84148
4117         * configure: Regenerate.
4119 2018-02-16  Jakub Jelinek  <jakub@redhat.com>
4121         PR fortran/84418
4122         * libgomp.fortran/pr84418-1.f90: New test.
4123         * libgomp.fortran/pr84418-2.f90: New test.
4125 2018-02-14  Jakub Jelinek  <jakub@redhat.com>
4127         PR fortran/84313
4128         * testsuite/libgomp.fortran/threadprivate4.f90: Add
4129         -std=f2003 -fall-intrinsics into dg-additional-options.
4131 2018-02-08  Martin Jambor  <mjambor@suse.cz>
4133         * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
4134         clonable.
4136 2018-02-08  Martin Jambor  <mjambor@suse.cz>
4138         * testsuite/libgomp.hsa.c/staticvar.c: New test.
4140 2018-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4142         * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
4143         [__cplusplus]: Declare extern "C".
4145 2018-02-07  Tom de Vries  <tom@codesourcery.com>
4147         PR libgomp/84217
4148         * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
4150 2018-01-29  Christoph Spiel  <cspiel@freenet.de>
4151             Jakub Jelinek  <jakub@redhat.com>
4153         PR libgomp/84096
4154         * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
4155         instead of omp_lock_t.
4157 2018-01-25  Tom de Vries  <tom@codesourcery.com>
4159         PR target/84028
4160         * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
4162 2018-01-24  Tom de Vries  <tom@codesourcery.com>
4164         PR target/83589
4165         * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
4167 2018-01-24  Tom de Vries  <tom@codesourcery.com>
4169         PR target/81352
4170         * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
4172 2018-01-19  Tom de Vries  <tom@codesourcery.com>
4173             Cesar Philippidis  <cesar@codesourcery.com>
4175         PR target/83920
4176         * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
4177         * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
4179 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
4181         Update copyright years.
4183         * libgomp.texi: Bump @copying's copyright year.
4185 2017-12-30  Tom de Vries  <tom@codesourcery.com>
4187         PR libgomp/83046
4188         * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
4189         * testsuite/libgomp.c-c++-common/pr83046.c: New test.
4191 2017-12-27  Tom de Vries  <tom@codesourcery.com>
4193         PR c++/83046
4194         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
4195         (test_nonstatic): Fix return type to workaround PR83046.
4197 2017-12-05  Jakub Jelinek  <jakub@redhat.com>
4199         PR testsuite/83281
4200         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
4201         j suffix instead of i.
4202         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
4203         Likewise.
4205 2017-12-01  Cesar Philippidis  <cesar@codesourcery.com>
4207         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
4208         call to acc_wait (1).
4210 2017-11-24  Jakub Jelinek  <jakub@redhat.com>
4212         PR fortran/81304
4213         * testsuite/libgomp.fortran/pr81304.f90: New test.
4215 2017-11-23  Jakub Jelinek  <jakub@redhat.com>
4217         PR fortran/81841
4218         * libgomp.fortran/pr81841.f90: New test.
4220 2017-11-22  Jakub Jelinek  <jakub@redhat.com>
4222         PR libgomp/83106
4223         * target.c (gomp_target_init): Compute lengths just once and
4224         use them in both malloc size and subsequent copying.
4226 2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
4228         * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
4229         * acinclude.m4: Add cet.m4.
4230         * configure: Regenerate.
4231         * Makefile.in: Likewise.
4232         * testsuite/Makefile.in: Likewise.
4234 2017-11-15  Tom de Vries  <tom@codesourcery.com>
4236         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
4237         from asyncwait-1.f90.  Rewrite into C.  Rewrite from float to int.
4238         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
4239         from asyncwait-2.f90.  Rewrite into C.  Rewrite from float to int.
4240         * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
4241         from asyncwait-3.f90.  Rewrite into C.  Rewrite from float to int.
4243 2017-11-14  Tom de Vries  <tom@codesourcery.com>
4245         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
4246         non-nvidia devices.
4248 2017-11-07  Jakub Jelinek  <jakub@redhat.com>
4250         PR c++/82835
4251         * testsuite/libgomp.c++/pr82835.C: New test.
4253 2017-11-06  Martin Liska  <mliska@suse.cz>
4255         * testsuite/libgomp.c++/loop-2.C: Return a value
4256         for functions with non-void return type, or change type to void,
4257         or add -Wno-return-type for test.
4258         * testsuite/libgomp.c++/loop-4.C: Likewise.
4259         * testsuite/libgomp.c++/parallel-1.C: Likewise.
4260         * testsuite/libgomp.c++/shared-1.C: Likewise.
4261         * testsuite/libgomp.c++/single-1.C: Likewise.
4262         * testsuite/libgomp.c++/single-2.C: Likewise.
4264 2017-10-31  Tom de Vries  <tom@codesourcery.com>
4266         * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
4267         "do {} while (false)".
4268         (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
4269         after HSA_DEBUG call.
4271 2017-10-28  Jakub Jelinek  <jakub@redhat.com>
4273         * target.c (struct gomp_coalesce_buf): New type.
4274         (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
4275         (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
4276         (gomp_copy_host2dev): Add CBUF argument, if copying into
4277         the cached ranges, memcpy into buffer instead of copying
4278         into device.
4279         (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
4280         Add CBUF argument, pass it through to other calls.
4281         (gomp_map_vars): Aggregate copies from host to device if small enough
4282         and with small enough gaps in between into memcpy into a buffer and
4283         fewer host to device copies from the buffer.
4284         (gomp_update): Adjust gomp_copy_host2dev caller.
4286 2017-10-17  Thomas Schwinge  <thomas@codesourcery.com>
4288         * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
4289         run" directive.
4290         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4291         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4292         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4293         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4295 2017-10-16  Tom de Vries  <tom@codesourcery.com>
4297         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
4298         openacc_nvidia_accel_selected.
4299         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
4300         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
4301         * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
4302         * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
4303         * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
4304         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
4305         openacc_nvidia_accel_selected. Skip for shared memory device.
4306         * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
4307         * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
4309 2017-10-09  Martin Jambor  <mjambor@suse.cz>
4311         PR hsa/82416
4312         * testsuite/libgomp.hsa.c/pr82416.c: New test.
4314 2017-10-07  Tom de Vries  <tom@codesourcery.com>
4316         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
4317         Remove acc_device_nvidia references.
4318         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
4319         Same.
4321 2017-10-05  Tom de Vries  <tom@codesourcery.com>
4323         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
4324         vector_length(32) clause from acc parallel directive.
4325         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
4327 2017-10-04  Tom de Vries  <tom@codesourcery.com>
4329         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
4330         (main): Reduce sum of arr elements.  Assert that hres is exactly
4331         representable in 32-bit floating point.
4332         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
4333         (main): Reduce sum of arr elements.  Assert that hres and hmres are
4334         exactly representable in 32-bit floating point.
4335         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
4337 2017-09-28  Tom de Vries  <tom@codesourcery.com>
4339         * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
4340         setting.
4341         * testsuite/libgomp.c++/pr69393.C: Same.
4342         * testsuite/libgomp.c++/taskloop-1.C: Same.
4343         * testsuite/libgomp.c++/taskloop-3.C: Same.
4344         * testsuite/libgomp.c++/taskloop-4.C: Same.
4345         * testsuite/libgomp.c/for-4.c: Same.
4346         * testsuite/libgomp.c/pr66199-3.c: Same.
4347         * testsuite/libgomp.c/pr66199-4.c: Same.
4348         * testsuite/libgomp.c/pr66199-6.c: Same.
4349         * testsuite/libgomp.c/taskloop-1.c: Same.
4350         * testsuite/libgomp.c/taskloop-3.c: Same.
4351         * testsuite/libgomp.c/taskloop-4.c: Same.
4352         * testsuite/libgomp.fortran/aligned1.f03: Same.
4353         * testsuite/libgomp.fortran/condinc1.f: Same.
4354         * testsuite/libgomp.fortran/condinc3.f90: Same.
4355         * testsuite/libgomp.fortran/crayptr1.f90: Same.
4356         * testsuite/libgomp.fortran/crayptr2.f90: Same.
4357         * testsuite/libgomp.fortran/crayptr3.f90: Same.
4358         * testsuite/libgomp.fortran/omp_cond1.f: Same.
4359         * testsuite/libgomp.fortran/omp_cond3.F90: Same.
4360         * testsuite/libgomp.fortran/pr66199-1.f90: Same.
4361         * testsuite/libgomp.fortran/pr66199-2.f90: Same.
4362         * testsuite/libgomp.fortran/recursion1.f90: Same.
4363         * testsuite/libgomp.fortran/target2.f90: Same.
4364         * testsuite/libgomp.fortran/target5.f90: Same.
4365         * testsuite/libgomp.fortran/task3.f90: Same.
4367 2017-09-28  Tom de Vries  <tom@codesourcery.com>
4369         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
4370         vector_length(32) clause from acc parallel directive.
4371         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
4373 2017-09-27  Tom de Vries  <tom@codesourcery.com>
4375         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
4376         Remove acc_device_nvidia references.
4378 2017-09-16  Tom de Vries  <tom@codesourcery.com>
4380         PR c/81875
4381         * testsuite/libgomp.c-c++-common/pr81875.c: New test.
4383 2017-09-14  Tom de Vries  <tom@codesourcery.com>
4385         * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
4386         * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
4387         * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
4388         * testsuite/libgomp.c/c.exp: Include test-cases from
4389         libgomp.c-c++-common.
4390         * testsuite/libgomp.c++/c++.exp: Same.  Force c++-mode compilation of .c
4391         files.
4393 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
4395         PR c++/81314
4396         * testsuite/libgomp.c++/pr81314.C: New test.
4398 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
4400         * libgomp.texi (Top): www.openacc.org now uses https.
4401         (Enabling OpenACC): Ditto.
4402         (acc_get_num_devices): Ditto.
4403         (acc_set_device_type): Ditto.
4404         (acc_get_device_type): Ditto.
4405         (acc_set_device_num): Ditto.
4406         (acc_get_device_num): Ditto.
4407         (acc_async_test): Ditto.
4408         (acc_async_test_all): Ditto.
4409         (acc_wait): Ditto.
4410         (acc_wait_all): Ditto.
4411         (acc_wait_all_async): Ditto.
4412         (acc_wait_async): Ditto.
4413         (acc_init): Ditto.
4414         (acc_shutdown): Ditto.
4415         (acc_on_device): Ditto.
4416         (acc_malloc): Ditto.
4417         (acc_free): Ditto.
4418         (acc_copyin): Ditto.
4419         (acc_present_or_copyin): Ditto.
4420         (acc_create): Ditto.
4421         (acc_present_or_create): Ditto.
4422         (acc_copyout): Ditto.
4423         (acc_delete): Ditto.
4424         (acc_update_device): Ditto.
4425         (acc_update_self): Ditto.
4426         (acc_map_data): Ditto.
4427         (acc_unmap_data): Ditto.
4428         (acc_deviceptr): Ditto.
4429         (acc_hostptr): Ditto.
4430         (acc_is_present): Ditto.
4431         (acc_memcpy_to_device): Ditto.
4432         (acc_memcpy_from_device): Ditto.
4433         (acc_get_current_cuda_device): Ditto.
4434         (acc_get_current_cuda_context): Ditto.
4435         (acc_get_cuda_stream): Ditto.
4436         (acc_set_cuda_stream): Ditto.
4437         (ACC_DEVICE_TYPE): Ditto.
4438         (ACC_DEVICE_NUM): Ditto.
4439         (OpenACC Library Interoperability): Ditto.
4441 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
4443         PR c/81687
4444         * testsuite/libgomp.c/pr81687-1.c: New test.
4445         * testsuite/libgomp.c/pr81687-2.c: New test.
4447 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
4449         PR c/69389
4450         * testsuite/libgomp.c/pr69389.c: New test.
4451         * testsuite/libgomp.c++/pr69389.C: New test.
4453 2017-08-07  Tom de Vries  <tom@codesourcery.com>
4455         PR middle-end/78266
4456         * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
4457         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
4459 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
4461         PR c/45784
4462         * testsuite/libgomp.c/pr45784.c: New test.
4463         * testsuite/libgomp.c++/pr45784.C: New test.
4465 2017-07-19  Tom de Vries  <tom@codesourcery.com>
4467         * testsuite/libgomp.oacc-c/vec.c: New test.
4469 2017-07-03  Tom de Vries  <tom@codesourcery.com>
4471         * plugin/plugin-hsa.c: Fix secure_getenv.h include.
4473 2017-06-27  Tom de Vries  <tom@codesourcery.com>
4475         * plugin/plugin-nvptx.c (notify_var): New function.
4476         (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
4478 2017-06-27  Tom de Vries  <tom@codesourcery.com>
4480         * env.c (parse_unsigned_long_1): Factor out of ...
4481         (parse_unsigned_long): ... here.
4482         (parse_int_1): Factor out of ...
4483         (parse_int): ... here.
4484         (parse_int_secure): New function.
4485         (initialize_env): Use parse_int_secure for GOMP_DEBUG.
4486         * secure_getenv.h: Factor out of ...
4487         * plugin/plugin-hsa.c: ... here.
4488         * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
4490 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
4492         PR c++/81130
4493         * testsuite/libgomp.c++/pr81130.C: New test.
4495 2017-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4497         * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
4498         default args.
4499         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
4500         dg-xfail-run-if default args.
4502 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4504         * testsuite/libgomp.c/pr39591-2.c: Fix test case.
4505         * testsuite/libgomp.c/pr39591-3.c: Likewise.
4507 2017-05-30  Jakub Jelinek  <jakub@redhat.com>
4509         PR libgomp/80822
4510         * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
4511         (gomp_affinity_init_level): Use it.  Always analyze the core and thread
4512         sibling lists, depending on level just pick up what CPUs to put
4513         together into a place vs. whether add multiple ordered places.
4515 2017-05-24  Thomas Schwinge  <thomas@codesourcery.com>
4517         * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
4518         * libgomp.map (OACC_2.0.1): Add these.
4519         * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
4520         for "acc_wait", and "acc_wait_all", respectively.
4521         * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
4522         for "acc_wait", and "acc_wait_all", respectively.
4523         * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
4524         * libgomp.texi (acc_wait, acc_wait_all): Update.
4525         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
4526         * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
4527         * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4529         * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
4530         acc_present_or_copyin and acc_present_or_create procedures,
4531         respectively.
4532         * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
4533         generally different variants of OpenACC Runtime Library functions.
4534         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4536         * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
4537         * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4539         * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
4540         of preprocessor definitions.
4541         * libgomp.h (strong_alias): Guard by "#ifdef
4542         HAVE_ATTRIBUTE_ALIAS".
4543         * oacc-mem.c: Provide "acc_pcreate" as alias for
4544         "acc_present_or_create", and "acc_pcopyin" as alias for
4545         "acc_present_or_copyin".
4546         * libgomp.map: New version "OACC_2.0.1".
4547         (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
4548         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
4549         its content into...
4550         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
4551         Extend testing.
4553         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
4554         when disabling nvptx offloading.
4556 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
4558         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
4559         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4560         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4562         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
4563         * testsuite/lib/libgomp.exp
4564         (check_effective_target_openacc_nvidia_accel_configured): New
4565         proc.
4566         * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
4567         (check_effective_target_c++): New procs.
4568         * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
4569         (check_effective_target_c++): Likewise.
4571 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
4573         PR middle-end/80809
4574         * testsuite/libgomp.c/pr80809-2.c: New test.
4575         * testsuite/libgomp.c/pr80809-3.c: New test.
4577         PR middle-end/80809
4578         * testsuite/libgomp.c/pr80809-1.c: New test.
4580         PR middle-end/80853
4581         * testsuite/libgomp.c/pr80853.c: New test.
4583 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
4585         * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
4586         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
4587         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4588         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4589         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4591         * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
4592         Debug output for failure.
4594 2017-05-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4596         * testsuite/lib/libgomp.exp: Load scanlang.exp.
4598 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
4600         PR bootstrap/80531
4601         * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
4602         bootstrap compare failures.
4604 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
4606         * testsuite/libgomp.c/target-36.c: New testcase.
4608 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
4610         * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
4611         instead of char.
4613 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
4615         PR libgomp/80394
4616         * testsuite/libgomp.c/pr80394.c: New test.
4618 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
4620         PR libgomp/79876
4621         * config/posix/thread-stacksize.h: New file.
4622         * config/darwin/thread-stacksize.h: New file.
4623         * config/nvptx/thread-stacksize.h: New file.
4624         * env.c: Include thread-stacksize.h.
4625         (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
4626         instead of 0.  Call pthread_attr_setstacksize even if
4627         GOMP_DEFAULT_STACKSIZE is non-zero.
4629 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
4631         * env.c (initialize_env): Initialize stacksize to 0.
4633 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
4635         PR c++/80029
4636         * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
4638 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
4640         PR c/79940
4641         * testsuite/libgomp.c/pr79940.c: New test.
4643 2017-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4645         * testsuite/libgomp.c/pr48591.c: Enable on all __float128
4646         targets.
4647         Add __float128 options.
4649 2017-02-11  John David Anglin  <danglin@gcc.gnu.org>
4651         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
4652         hppa*-*-* dg-skip-if directive.
4654 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
4656         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
4657         dg-skip-if directive into a comment.
4659 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
4660             Chung-Lin Tang  <cltang@codesourcery.com>
4662         * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
4663         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
4664         add additional case.
4665         * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
4666         "openacc_nvidia_accel_selected".
4667         * libgomp.oacc-fortran/nested-function-1.f90 (test2):
4668         Add num_workers(8) clause.
4670 2017-02-08  John David Anglin  <danglin@gcc.gnu.org>
4672         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
4673         hppa*-*-*.
4674         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
4675         include complex.h on hppa*-*-hpux*.
4676         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4678 2017-02-02  Thomas Schwinge  <thomas@codesourcery.com>
4680         * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
4682         * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
4683         GOMP_OFFLOAD_openacc_exec.  Adjust all users.
4684         (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
4685         GOMP_OFFLOAD_openacc_cuda_get_current_device.  Adjust all users.
4686         (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
4687         GOMP_OFFLOAD_openacc_cuda_get_current_context.  Adjust all users.
4688         (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
4689         GOMP_OFFLOAD_openacc_cuda_get_stream.  Adjust all users.
4690         (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
4691         GOMP_OFFLOAD_openacc_cuda_set_stream.  Adjust all users.
4693 2017-01-31  Thomas Schwinge  <thomas@codesourcery.com>
4695         * libgomp-plugin.h: #include <stdbool.h>.
4696         (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
4697         (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
4698         (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
4699         (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
4700         (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
4701         (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
4702         (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
4703         (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
4704         (GOMP_OFFLOAD_openacc_register_async_cleanup)
4705         (GOMP_OFFLOAD_openacc_async_test)
4706         (GOMP_OFFLOAD_openacc_async_test_all)
4707         (GOMP_OFFLOAD_openacc_async_wait)
4708         (GOMP_OFFLOAD_openacc_async_wait_async)
4709         (GOMP_OFFLOAD_openacc_async_wait_all)
4710         (GOMP_OFFLOAD_openacc_async_wait_all_async)
4711         (GOMP_OFFLOAD_openacc_async_set_async)
4712         (GOMP_OFFLOAD_openacc_create_thread_data)
4713         (GOMP_OFFLOAD_openacc_destroy_thread_data)
4714         (GOMP_OFFLOAD_openacc_get_current_cuda_device)
4715         (GOMP_OFFLOAD_openacc_get_current_cuda_context)
4716         (GOMP_OFFLOAD_openacc_get_cuda_stream)
4717         (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
4718         * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
4719         these.
4720         * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
4721         (GOMP_OFFLOAD_unload_image): Fix argument types.
4723 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
4725         * testsuite/lib/libgomp.exp
4726         (check_effective_target_hsa_offloading_selected_nocache): Fix up
4727         check_compile invocation.  Fix up removal of executable.  Drop
4728         bogus "2>&1" argument.
4730         * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
4731         directive.
4733 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
4734             Martin Jambor  <mjambor@suse.cz>
4736         * plugin/hsa.h: Moved to top level include.
4737         * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
4739 2017-01-21  Jakub Jelinek  <jakub@redhat.com>
4741         PR other/79046
4742         * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
4743         of cat to get version from BASE-VER file.
4744         * testsuite/Makefile.in: Regenerated.
4746 2017-01-19  Jakub Jelinek  <jakub@redhat.com>
4748         * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
4749         for _WIN64.
4751 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
4753         * plugin/hsa.h: Add GCC runtime library exception.
4754         * plugin/hsa_ext_finalize.h: Likewise.
4756         * plugin/configfrag.ac: For --without-cuda-driver don't initialize
4757         CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB.  If both
4758         CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
4759         cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
4760         plugin/include/cuda as include dir and -ldl instead of -lcuda as
4761         library to link ptx plugin against.
4762         * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
4763         (CUDA_CALLS): Define.
4764         (cuda_lib, cuda_lib_inited): New variables.
4765         (init_cuda_lib): New function.
4766         (CUDA_CALL_PREFIX): Define.
4767         (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
4768         (CUDA_CALL): Use FN instead of (FN).
4769         (CUDA_CALL_NOCHECK): Define.
4770         (cuda_error, fini_streams_for_device, select_stream_for_async,
4771         nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
4772         event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
4773         nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
4774         nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
4775         CUDA_CALL_NOCHECK.
4776         (nvptx_init): Call init_cuda_lib, if it fails, return false.  Use
4777         CUDA_CALL_NOCHECK.
4778         (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
4779         Use CUDA_CALL_NOCHECK.
4780         * plugin/cuda/cuda.h: New file.
4781         * config.h.in: Regenerated.
4782         * configure: Regenerated.
4784         PR other/79046
4785         * configure.ac: Add GCC_BASE_VER.
4786         * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
4787         get version from BASE-VER file.
4788         * testsuite/Makefile.in: Regenerated.
4789         * configure: Regenerated.
4790         * Makefile.in: Regenerated.
4792 2017-01-09  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4794         PR libgomp/60670
4795         * Makefile.am: Make fincludedir multilib-aware.
4796         * Makefile.in: Regenerate.
4798 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
4800         Update copyright years.
4802         * libgomp.texi: Bump @copying's copyright year.
4804 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4806         * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
4807         pthread_spinlock_t instead of gomp_mutex_t lock.
4808         (gomp_get_thread_pool): Likewise.
4809         (gomp_release_thread_pool): Likewise.
4810         * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
4811         Likewise.
4813 2016-12-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4815         * config/rtems/pool.h (gomp_get_thread_pool): Return proper
4816         thread pool in case nthreads == 1.
4818 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
4820         * config/nvptx/env.c: Delete.
4821         * icv.c: Move definitions of ICV variables back ...
4822         * env.c: ...here.  Do not compile environment-related functionality if
4823         LIBGOMP_OFFLOADED_ONLY is set.
4825 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
4827         * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
4828         (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
4829         * configure: Regenerate.
4830         * config.h.in: Likewise.
4832 2016-11-30  Alexander Monakov  <amonakov@ispras.ru>
4834         * Makefile.in: Regenerate with automake-1.11.6.
4835         * aclocal.m4: Likewise.
4836         * configure: Likewise.
4837         * testsuite/Makefile.in: Likewise.
4839 2016-11-28  Alexander Monakov  <amonakov@ispras.ru>
4841         * config/nvptx/critical.c: Delete to use generic implementation.
4843 2016-11-28  Jonas Hahnfeld  <Hahnfeld@itc.rwth-aachen.de>
4845         * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
4846         ../../affinity.c as fallback.
4847         * config/nvptx/affinity.c: Delete to use fallback implementation.
4849 2016-11-23  Alexander Monakov  <amonakov@ispras.ru>
4850             Jakub Jelinek  <jakub@redhat.com>
4851             Dmitry Melnik  <dm@ispras.ru>
4853         * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
4854         * Makefile.in. Regenerate.
4855         * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
4856         (LIBGOMP_USE_PTHREADS): ...here; new define.
4857         * configure: Regenerate.
4858         * config.h.in: Likewise.
4859         * config/posix/affinity.c: Move to...
4860         * affinity.c: ...here (new file).  Guard use of Pthreads-specific
4861         interface by LIBGOMP_USE_PTHREADS. 
4862         * critical.c: Split out GOMP_atomic_{start,end} into...
4863         * atomic.c: ...here (new file).
4864         * env.c: Split out ICV definitions into...
4865         * icv.c: ...here (new file) and...
4866         * icv-device.c: ...here. New file.
4867         * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
4868         (gomp_destroy_lock_30): Ditto.
4869         (gomp_set_lock_30): Ditto.
4870         (gomp_unset_lock_30): Ditto.
4871         (gomp_test_lock_30): Ditto.
4872         (gomp_init_nest_lock_30): Ditto.
4873         (gomp_destroy_nest_lock_30): Ditto.
4874         (gomp_set_nest_lock_30): Ditto.
4875         (gomp_unset_nest_lock_30): Ditto.
4876         (gomp_test_nest_lock_30): Ditto.
4877         * lock.c: New.
4878         * config/nvptx/lock.c: New.
4879         * config/nvptx/bar.c: New.
4880         * config/nvptx/bar.h: New.
4881         * config/nvptx/doacross.h: New.
4882         * config/nvptx/error.c: New.
4883         * config/nvptx/icv-device.c: New.
4884         * config/nvptx/mutex.h: New.
4885         * config/nvptx/pool.h: New.
4886         * config/nvptx/proc.c: New.
4887         * config/nvptx/ptrlock.h: New.
4888         * config/nvptx/sem.h: New.
4889         * config/nvptx/simple-bar.h: New.
4890         * config/nvptx/target.c: New.
4891         * config/nvptx/task.c: New.
4892         * config/nvptx/team.c: New.
4893         * config/nvptx/time.c: New.
4894         * config/posix/simple-bar.h: New.
4895         * libgomp.h: Guard pthread.h inclusion.  Include simple-bar.h.
4896         (gomp_num_teams_var): Declare.
4897         (struct gomp_thread_pool): Change threads_dock member to
4898         gomp_simple_barrier_t.
4899         [__nvptx__] (gomp_thread): New implementation.
4900         (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
4901         (gomp_thread_destructor): Ditto.
4902         (gomp_init_thread_affinity): Ditto.
4903         * team.c: Guard uses of Pthreads-specific interfaces by
4904         LIBGOMP_USE_PTHREADS.  Adjust all uses of threads_dock.
4905         (gomp_free_thread) [__nvptx__]: Do not call 'free'.
4906         * config/nvptx/alloc.c: Delete.
4907         * config/nvptx/barrier.c: Ditto.
4908         * config/nvptx/fortran.c: Ditto.
4909         * config/nvptx/iter.c: Ditto.
4910         * config/nvptx/iter_ull.c: Ditto.
4911         * config/nvptx/loop.c: Ditto.
4912         * config/nvptx/loop_ull.c: Ditto.
4913         * config/nvptx/ordered.c: Ditto.
4914         * config/nvptx/parallel.c: Ditto.
4915         * config/nvptx/priority_queue.c: Ditto.
4916         * config/nvptx/sections.c: Ditto.
4917         * config/nvptx/single.c: Ditto.
4918         * config/nvptx/splay-tree.c: Ditto.
4919         * config/nvptx/work.c: Ditto.
4920         * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
4921         -foffload=-lgfortran in addition to -lgfortran.
4922         * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
4923         * plugin/plugin-nvptx.c: Include <limits.h>.
4924         (struct targ_fn_descriptor): Add new fields.
4925         (struct ptx_device): Ditto.  Set them...
4926         (nvptx_open_device): ...here.
4927         (nvptx_adjust_launch_bounds): New.
4928         (nvptx_host2dev): Allow NULL 'nvthd'.
4929         (nvptx_dev2host): Ditto.
4930         (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
4931         (link_ptx): Adjust log sizes.
4932         (nvptx_host2dev): Allow NULL 'nvthd'.
4933         (nvptx_dev2host): Ditto.
4934         (nvptx_set_clocktick): New.  Use it...
4935         (GOMP_OFFLOAD_load_image): ...here.  Set new targ_fn_descriptor
4936         fields.
4937         (GOMP_OFFLOAD_dev2dev): New.
4938         (nvptx_adjust_launch_bounds): New.
4939         (nvptx_stacks_size): New.
4940         (nvptx_stacks_alloc): New.
4941         (nvptx_stacks_free): New.
4942         (GOMP_OFFLOAD_run): New.
4943         (GOMP_OFFLOAD_async_run): New (stub).
4945 2016-11-23  Martin Jambor  <mjambor@suse.cz>
4947         * testsuite/libgomp.hsa.c/bits-insns.c: New test.
4948         * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
4949         * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4951 2016-11-23  Martin Liska  <mliska@suse.cz>
4952             Martin Jambor  <mjambor@suse.cz>
4954         * plugin/hsa.h: New file.
4955         * plugin/hsa_ext_finalize.h: New file.
4956         * plugin/configfrag.ac: Remove hsa-kmt-lib test.  Added checks for
4957         header file unistd.h, and functions secure_getenv, __secure_getenv,
4958         getuid, geteuid, getgid and getegid.
4959         * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
4960         -D_GNU_SOURCE.
4961         * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
4962         Handle various cases of secure_getenv presence, add an implementation
4963         when we can test effective UID and GID.
4964         (struct hsa_runtime_fn_info): New structure.
4965         (hsa_runtime_fn_info hsa_fns): New variable.
4966         (hsa_runtime_lib): Likewise.
4967         (support_cpu_devices): Likewise.
4968         (init_enviroment_variables): Load newly introduced ENV
4969         variables.
4970         (hsa_warn): Call hsa run-time functions via hsa_fns structure.
4971         (hsa_fatal): Likewise.
4972         (DLSYM_FN): New macro.
4973         (init_hsa_runtime_functions): New function.
4974         (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
4975         structure.  Depending on environment, also allow CPU devices.
4976         (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
4977         (get_kernarg_memory_region): Likewise.
4978         (GOMP_OFFLOAD_init_device): Likewise.
4979         (destroy_hsa_program): Likewise.
4980         (init_basic_kernel_info): New function.
4981         (GOMP_OFFLOAD_load_image): Use it.
4982         (create_and_finalize_hsa_program): Call hsa run-time functions via
4983         hsa_fns structure.
4984         (create_single_kernel_dispatch): Likewise.
4985         (release_kernel_dispatch): Likewise.
4986         (init_single_kernel): Likewise.
4987         (parse_target_attributes): Allow up multiple HSA grid dimensions.
4988         (get_group_size): New function.
4989         (run_kernel): Likewise.
4990         (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
4991         (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
4992         structure.
4993         * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
4994         * testsuite/libgomp-test-support.exp.in: Likewise.
4995         * Makefile.in: Regenerated.
4996         * aclocal.m4: Likewise.
4997         * config.h.in: Likewise.
4998         * configure: Likewise.
4999         * testsuite/Makefile.in: Likewise.
5001 2016-11-15  Martin Jambor  <mjambor@suse.cz>
5002             Alexander Monakov  <amonakov@ispras.ru>
5004         * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
5005         mapping clauses to target constructs.
5006         * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
5008 2016-11-15  Matthias Klose  <doko@ubuntu.com>
5010         * configure: Regenerate.
5012 2016-11-10  Jakub Jelinek  <jakub@redhat.com>
5014         * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
5015         * omp_lib.h.in (openmp_version): Likewise.
5016         * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
5017         of 201307.
5018         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
5020         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
5021         (fib_wrapper): Add map(from: x) clause.
5022         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
5023         (e_53_2): Likewise.
5024         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
5025         (accum): Add map(tmp) clause.
5026         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
5027         (accum): Add map(tofrom: tmp) clause.
5028         * testsuite/libgomp.fortran/examples-4/target_data-3.f90
5029         (gramSchmidt): Likewise.
5030         * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
5031         map(tofrom: sum) clause.
5032         * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
5033         map (alloc: a, l) clause.  Add defaultmap(tofrom: scalar) clause.
5034         * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
5035         only allowed on the loop iterator.
5036         * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
5037         * testsuite/libgomp.fortran/taskloop2.f90: New test.
5038         * testsuite/libgomp.fortran/taskloop4.f90: New test.
5039         * testsuite/libgomp.fortran/doacross1.f90: New test.
5040         * testsuite/libgomp.fortran/doacross3.f90: New test.
5041         * testsuite/libgomp.fortran/taskloop1.f90: New test.
5042         * testsuite/libgomp.fortran/taskloop3.f90: New test.
5043         * testsuite/libgomp.fortran/doacross2.f90: New test.
5044         * testsuite/libgomp.c/doacross-1.c (main): Add missing
5045         #pragma omp atomic read.
5046         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5047         * testsuite/libgomp.c/doacross-3.c (main): Likewise.
5049 2016-11-02  Cesar Philippidis  <cesar@codesourcery.com>
5050             Nathan Sidwell  <nathan@acm.org>
5052         * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
5053         to determine default geometry.
5054         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
5055         dimension.
5057 2016-11-01  Jakub Jelinek  <jakub@redhat.com>
5059         * hashtab.h: Use standard GPLv3 with runtime exception
5060         boilerplate.
5062 2016-10-27  Aldy Hernandez  <aldyh@redhat.com>
5064         * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
5065         size when allocating new thread.
5067 2016-09-14  Marek Polacek  <polacek@redhat.com>
5069         * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
5071 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
5073         PR fortran/71014
5074         * testsuite/libgomp.fortran/pr71014.f90: New test.
5076 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
5078         PR middle-end/70895
5079         * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
5080         firstprivate clauses.
5081         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
5082         copy clauses.
5083         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5084         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
5085         * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
5086         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
5087         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5088         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
5089         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5090         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
5091         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5092         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5093         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5094         * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
5096 2016-08-14  Chung-Lin Tang  <cltang@codesourcery.com>
5098         PR fortran/70598
5099         * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
5101 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
5103         PR c++/58706
5104         * testsuite/libgomp.c++/pr58706.C: New test.
5106 2016-08-04  Thomas Schwinge  <thomas@codesourcery.com>
5108         * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
5109         * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
5110         * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
5111         Likewise.
5112         * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
5113         * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
5114         Likewise.
5115         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
5117         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
5118         test, and don't hardcode -O0.
5120 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
5122         * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
5124 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
5126         * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
5127         test.
5129 2016-07-03  H.J. Lu  <hongjiu.lu@intel.com>
5131         PR middle-end/71734
5132         * testsuite/libgomp.fortran/pr71734-1.f90: New test.
5133         * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
5135 2016-07-01  Jakub Jelinek  <jakub@redhat.com>
5137         PR fortran/71717
5138         * testsuite/libgomp.fortran/associate3.f90: New test.
5140 2016-06-17  Jakub Jelinek  <jakub@redhat.com>
5142         * testsuite/libgomp.c++/target-21.C: New test.
5144 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
5146         * testsuite/libgomp.c++/target-20.C: New test.
5148 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
5149             Cesar Philippidis  <cesar@codesourcery.com>
5151         PR middle-end/71373
5152         * libgomp.oacc-c/nested-function-1.c: New file.
5153         * libgomp.oacc-c/nested-function-2.c: Likewise.
5154         * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
5155         * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
5156         * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
5158 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
5160         PR c/71381
5161         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
5162         "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
5163         * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
5165 2016-06-03  Chung-Lin Tang  <cltang@codesourcery.com>
5167         * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
5168         * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
5170 2016-06-01  Cesar Philippidis  <cesar@codesourcery.com>
5172         PR c/70688
5173         * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
5175 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
5177         * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
5178         instead of invalid schedule(static, 0).
5179         * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5181 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
5183         * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
5184         * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
5185         parameter, use to set async stream around call to gomp_unmap_vars,
5186         call gomp_unmap_vars() with 'do_copyfrom' set to true.
5187         * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
5188         (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
5189         events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
5190         (event_add): Add int parameter, initialize 'val' field when
5191         adding new ptx_event struct.
5192         (nvptx_evec): Adjust event_add() call arguments.
5193         (nvptx_host2dev): Likewise.
5194         (nvptx_dev2host): Likewise.
5195         (nvptx_wait_async): Likewise.
5196         (nvptx_wait_all_async): Likewise.
5197         (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
5198         pass to event_add() call.
5199         * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
5200         parameter.
5201         * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
5202         call openacc.register_async_cleanup_func() hook.
5203         * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
5204         * target.c (gomp_copy_from_async): Delete function.
5205         (gomp_map_vars): Remove async_refcount.
5206         (gomp_unmap_vars): Likewise.
5207         (gomp_load_image_to_device): Likewise.
5208         (omp_target_associate_ptr): Likewise.
5209         * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
5210         (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
5211         (gomp_copy_from_async): Remove.
5213 2016-05-26  Chung-Lin Tang  <cltang@codesourcery.com>
5215         * target.c (gomp_device_copy): New function.
5216         (gomp_copy_host2dev): Likewise.
5217         (gomp_copy_dev2host): Likewise.
5218         (gomp_free_device_memory): Likewise.
5219         (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
5220         (gomp_map_pointer): Likewise.
5221         (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
5222         NULL value from alloc_func plugin hook.
5223         (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
5224         (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
5225         (gomp_unmap_vars): Likewise.
5226         (gomp_update): Adjust to call gomp_copy_dev2host and
5227         gomp_copy_host2dev functions.
5228         (gomp_unload_image_from_device): Handle false value from
5229         unload_image_func plugin hook.
5230         (gomp_init_device): Handle false value from init_device_func
5231         plugin hook.
5232         (gomp_exit_data): Adjust to call gomp_copy_dev2host.
5233         (omp_target_free): Adjust to call gomp_free_device_memory.
5234         (omp_target_memcpy): Handle return values from host2dev_func,
5235         dev2host_func, and dev2dev_func plugin hooks.
5236         (omp_target_memcpy_rect_worker): Likewise.
5237         (gomp_target_fini): Handle false value from fini_device_func
5238         plugin hook.
5239         * libgomp.h (struct gomp_device_descr): Adjust return type of
5240         init_device_func, fini_device_func, unload_image_func, free_func,
5241         dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
5242         * oacc-init.c (acc_shutdown_1): Handle false value from
5243         fini_device_func plugin hook.
5244         * oacc-host.c (host_init_device): Change return type to bool.
5245         (host_fini_device): Likewise.
5246         (host_unload_image): Likewise.
5247         (host_free): Likewise.
5248         (host_dev2host): Likewise.
5249         (host_host2dev): Likewise.
5250         * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
5251         (acc_memcpy_to_device): Likewise.
5252         (acc_memcpy_from_device): Likewise.
5253         (delete_copyout): Add libfnname parameter, handle free_func
5254         hook fatal error case.
5255         (acc_delete): Adjust delete_copyout call.
5256         (acc_copyout): Likewise.
5257         (update_dev_host): Move gomp_mutex_unlock to after
5258         host2dev/dev2host hook calls.
5260         * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
5261         to 'hsa_error_msg', for clarity.
5262         (hsa_fatal): Likewise.
5263         (hsa_error): New function.
5264         (init_hsa_context): Change return type to bool, adjust to return
5265         false on error.
5266         (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
5267         return value.
5268         (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
5269         return false on error.
5270         (get_agent_info): Adjust to return NULL on error.
5271         (destroy_hsa_program): Change return type to bool, adjust to
5272         return false on error.
5273         (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
5274         (destroy_module): Change return type to bool, adjust to
5275         return false on error.
5276         (GOMP_OFFLOAD_unload_image): Likewise.
5277         (GOMP_OFFLOAD_fini_device): Likewise.
5278         (GOMP_OFFLOAD_alloc): Change to return NULL when called.
5279         (GOMP_OFFLOAD_free): Change to return false when called.
5280         (GOMP_OFFLOAD_dev2host): Likewise.
5281         (GOMP_OFFLOAD_host2dev): Likewise.
5282         (GOMP_OFFLOAD_dev2dev): Likewise.
5284         * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
5285         (CUDA_CALL): Likewise.
5286         (CUDA_CALL_ASSERT): Likewise.
5287         (map_init): Change return type to bool, use CUDA_CALL* macros.
5288         (map_fini): Likewise.
5289         (init_streams_for_device): Change return type to bool, adjust
5290         call to map_init.
5291         (fini_streams_for_device): Change return type to bool, adjust
5292         call to map_fini.
5293         (select_stream_for_async): Release stream_lock before calls to
5294         GOMP_PLUGIN_fatal, adjust call to map_init.
5295         (nvptx_init): Use CUDA_CALL* macros.
5296         (nvptx_attach_host_thread_to_device): Change return type to bool,
5297         use CUDA_CALL* macros.
5298         (nvptx_open_device): Use CUDA_CALL* macros.
5299         (nvptx_close_device): Change return type to bool, use CUDA_CALL*
5300         macros.
5301         (nvptx_get_num_devices): Use CUDA_CALL* macros.
5302         (link_ptx): Change return type to bool, use CUDA_CALL* macros.
5303         (nvptx_exec): Use CUDA_CALL* macros.
5304         (nvptx_alloc): Use CUDA_CALL* macros.
5305         (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
5306         (nvptx_host2dev): Likewise.
5307         (nvptx_dev2host): Likewise.
5308         (nvptx_wait): Use CUDA_CALL* macros.
5309         (nvptx_wait_async): Likewise.
5310         (nvptx_wait_all): Likewise.
5311         (nvptx_wait_all_async): Likewise.
5312         (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
5313         use CUDA_CALL* macros, adjust call to map_fini.
5314         (GOMP_OFFLOAD_init_device): Change return type to bool,
5315         adjust code accordingly.
5316         (GOMP_OFFLOAD_fini_device): Likewise.
5317         (GOMP_OFFLOAD_load_image): Adjust calls to
5318         nvptx_attach_host_thread_to_device/link_ptx to handle errors,
5319         use CUDA_CALL* macros.
5320         (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
5321         return code.
5322         (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
5323         (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
5324         handle error return.
5325         (GOMP_OFFLOAD_dev2host): Likewise.
5326         (GOMP_OFFLOAD_host2dev): Likewise.
5327         (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
5328         (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
5330 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
5332         * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
5333         (acc_free): Likewise.
5334         (acc_memcpy_to_device): Likewise.
5335         (acc_memcpy_from_device): Likewise.
5336         (acc_deviceptr): Likewise.
5337         (acc_hostptr): Likewise.
5338         (acc_is_present): Likewise.
5339         (acc_map_data): Likewise.
5340         (acc_unmap_data): Likewise.
5341         (present_create_copy): Likewise.
5342         (delete_copyout): Likewise.
5343         (update_dev_host): Likewise.
5344         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
5345         * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
5346         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
5347         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5348         * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
5349         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
5350         it only runs on nvptx targets.
5351         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5352         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5353         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5354         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5355         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5356         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5357         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5358         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5359         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5360         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5361         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5362         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5363         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5364         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5365         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5366         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5367         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5368         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5369         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5370         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5371         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5372         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5373         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5375 2016-05-23  Martin Jambor  <mjambor@suse.cz>
5377         * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
5379 2016-05-17  Chung-Lin Tang  <cltang@codesourcery.com>
5381         * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
5382         to gomp_init_targets_once.
5383         (acc_set_device_type): Remove !cached_base_dev condition on call to
5384         gomp_init_targets_once, move call to before acc_device_lock acquire,
5385         to avoid deadlock.
5386         (acc_get_device_num): Remove !cached_base_dev condition on call to
5387         gomp_init_targets_once.
5388         (acc_set_device_num): Likewise.
5390 2016-05-16  Martin Jambor  <mjambor@suse.cz>
5392         * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
5394 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
5396         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
5397         expected partitioning.
5399 2016-04-29  Cesar Philippidis  <cesar@codesourcery.com>
5401         PR middle-end/70626
5402         * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
5403         * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
5404         * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
5406 2016-04-21  Alexander Monakov  <amonakov@ispras.ru>
5408         * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
5409         non-fatal.
5411 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
5413         PR middle-end/70680
5414         * testsuite/libgomp.c/pr70680-1.c: New test.
5415         * testsuite/libgomp.c/pr70680-2.c: New test.
5417 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
5419         * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
5420         pass parameter variables to subroutines.
5422 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
5424         PR middle-end/70643
5425         * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
5427 2016-04-13  Cesar Philippidis  <cesar@codesourcery.com>
5429         PR testsuite/68242
5430         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
5431         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5433 2016-04-12  Thomas Schwinge  <thomas@codesourcery.com>
5435         * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
5436         GOACC_parallel_keyed, restore GOACC_parallel prototype, new
5437         GOACC_declare prototype.
5439         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
5440         Merge this file, and...
5441         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
5442         ... this file, and...
5443         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
5444         ... this file, and...
5445         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
5446         ... this file, and...
5447         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
5448         ... this file, and...
5449         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
5450         ... this file, and...
5451         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
5452         ... this file, and...
5453         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
5454         ... this file, and...
5455         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
5456         ... this file, and...
5457         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
5458         ... this file, and...
5459         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
5460         ... this file, and...
5461         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
5462         ... this file, and...
5463         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
5464         ... this file into...
5465         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
5466         file.
5468         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
5469         Make failure observable.
5471 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
5473         * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
5474         field.
5475         * target.c (gomp_target_fallback_firstprivate,
5476         gomp_target_unshare_firstprivate): Removed.
5477         (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
5478         before waiting for dependencies.
5479         (gomp_target_task_fn): Don't copy firstprivate vars here.
5480         * task.c (GOMP_PLUGIN_target_task_completion): Don't free
5481         firstprivate_copies here.
5482         (gomp_create_target_task): Don't initialize firstprivate_copies field.
5483         * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
5484         explicit/implicit firstprivate.
5486 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
5488         PR lto/70289
5489         PR ipa/70348
5490         PR tree-optimization/70373
5491         PR middle-end/70533
5492         PR middle-end/70534
5493         PR middle-end/70535
5494         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
5495         test.
5496         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
5497         test.
5498         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
5499         test.
5500         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
5501         test.
5502         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
5503         test.
5504         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
5505         test.
5506         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
5507         test.
5508         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
5509         test.
5510         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
5511         test.
5512         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
5513         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
5514         * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
5515         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
5516         test.
5517         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
5518         test.
5519         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
5520         test.
5521         * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
5522         test.
5523         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
5524         coverage.
5525         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5526         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5527         * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
5528         * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
5529         * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
5530         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
5531         coverage.
5532         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5533         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5534         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5535         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5536         * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
5537         * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
5538         * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
5539         * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
5540         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
5541         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5542         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5543         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5544         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5545         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5546         * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
5548 2016-03-30  Thomas Schwinge  <thomas@codesourcery.com>
5549             James Norris  <jnorris@codesourcery.com>
5550             Nathan Sidwell  <nathan@codesourcery.com>
5551             Julian Brown  <julian@codesourcery.com>
5552             Cesar Philippidis  <cesar@codesourcery.com>
5553             Chung-Lin Tang  <cltang@codesourcery.com>
5554             Tom de Vries  <tom@codesourcery.com>
5556         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
5557         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
5558         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
5559         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
5560         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5561         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
5562         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
5563         * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5564         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
5565         XFAIL.
5566         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5567         Incorporate...
5568         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
5569         file.
5570         * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
5571         * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
5572         * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
5573         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
5574         Likewise.
5575         * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5576         Likewise.
5577         * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5578         * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
5579         * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5580         * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5581         * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
5582         * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5583         * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
5584         * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
5585         * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5586         * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
5587         Likewise.
5588         * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
5589         * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5590         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
5591         file...
5592         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
5593         file into...
5594         * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
5595         file.  Update.
5596         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
5597         file.
5598         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
5599         Likewise.
5600         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
5601         * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
5602         ... this new file.  Update.
5603         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
5604         * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
5605         ... this new file.  Update.
5606         * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
5607         file.  Incorporate...
5608         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
5609         file, and...
5610         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
5611         file, and...
5612         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
5613         file.
5614         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
5616 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
5618         * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
5619         set-torture-options.
5621 2016-03-24  Thomas Schwinge  <thomas@codesourcery.com>
5623         * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
5624         gcc-dg-runtest.
5625         * testsuite/libgomp.oacc-c/c.exp: Likewise.
5626         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
5627         -fno-builtin-acc_on_device instead of -O0.
5628         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
5629         -O0.
5630         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5631         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
5632         Likewise.
5633         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5634         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5635         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5636         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5637         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5638         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5639         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5640         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5641         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5642         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5643         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5644         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5645         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5646         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5647         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5648         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5649         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5650         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
5651         Don't specify -O2.
5652         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
5653         Likewise.
5654         * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
5655         Likewise.
5657 2016-03-24  Martin Liska  <mliska@suse.cz>
5659         * plugin/plugin-hsa.c (packet_store_release): New function
5660         that is taken from the HSA runtime manual.
5661         (GOMP_OFFLOAD_run): Use the function.
5663 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
5665         PR c++/70376
5666         * testsuite/libgomp.c++/pr70376.C: New test.
5668 2016-03-23  Tom de Vries  <tom@codesourcery.com>
5670         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
5671         initialization of lresult and lvresult.
5672         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
5674 2016-03-23  James Norris  <jnorris@codesourcery.com>
5675             Daichi Fukuoka <dc-fukuoka@sgi.com>
5677         PR libgomp/69414
5678         * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
5679         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
5680         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
5681         * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
5683 2016-03-23  Martin Liska  <mliska@suse.cz>
5685         PR hsa/70337
5686         * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
5687         argument just in case a dispatched kernel uses that argument.
5689 2016-03-16  Thomas Schwinge  <thomas@codesourcery.com>
5691         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
5692         -ftree-parallelize-loops/-fopenacc changes.
5693         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
5694         Likewise.
5695         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5696         Likewise.
5697         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
5698         Likewise.
5699         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
5700         Likewise.
5701         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
5702         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
5704 2016-03-13  Thomas Schwinge  <thomas@codesourcery.com>
5706         * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
5707         always_ld_library_path the path to libgcc_s.
5709 2016-03-10  Cesar Philippidis  <cesar@codesourcery.com>
5711         PR testsuite/70009
5712         * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
5714 2016-03-09  Tom de Vries  <tom@codesourcery.com>
5716         * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
5717         * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
5718         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5719         Same.
5720         * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
5721         * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
5722         * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
5723         * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
5725 2016-03-07  Martin Jambor  <mjambor@suse.cz>
5727         * testsuite/lib/libgomp.exp
5728         (check_effective_target_hsa_offloading_selected_nocache): New.
5729         (check_effective_target_hsa_offloading_selected): Likewise.
5730         * testsuite/libgomp.hsa.c/c.exp: Likewise.
5731         * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
5732         * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5733         * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5734         * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5735         * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5736         * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5737         * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5738         * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5739         * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
5740         * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
5741         * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
5742         * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
5743         * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
5744         * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
5745         * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
5746         * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
5748 2016-03-07  Martin Jambor  <mjambor@suse.cz>
5750         * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
5751         non-shared memory accelerators.
5752         * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
5753         * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
5754         * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
5755         * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
5756         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
5757         * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
5758         * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
5759         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
5760         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
5762 2016-03-07  Martin Jambor  <mjambor@suse.cz>
5764         * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
5765         ALWAYS_CFLAGS.
5767 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
5769         PR libgomp/69555
5770         * testsuite/libgomp.c++/pr69555-1.C: New test.
5771         * testsuite/libgomp.c++/pr69555-2.C: New test.
5773 2016-02-26  Keith McDaniel <k.allen.mcdaniel@gmail.com>
5774             Martin Jambor  <mjambor@suse.cz>
5776         * testsuite/lib/libgomp.exp
5777         (check_effective_target_offload_device_shared_as): New proc.
5778         * testsuite/libgomp.c++/declare_target-1.C: New test.
5780 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
5782         PR driver/68463
5783         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
5785 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
5787         * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
5788         * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
5789         dims.
5790         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
5791         -ftree-parallelize-loops/-fopenacc changes.
5792         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
5793         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
5794         Likewise.
5795         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
5796         Likewise.
5797         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
5798         Likewise.
5799         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
5800         Likewise.
5801         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
5802         Likewise.
5803         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
5804         Likewise.
5805         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
5806         Likewise.
5807         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
5808         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
5809         Likewise.
5810         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
5811         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
5812         Likewise.
5813         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
5814         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
5815         Likewise.
5817 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
5819         * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
5821 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
5823         PR driver/69805
5824         * testsuite/libgomp.c/pr69805.c: New test.
5826 2016-02-16  Tom de Vries  <tom@codesourcery.com>
5828         PR lto/67709
5829         * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
5831 2016-02-09  Tom de Vries  <tom@codesourcery.com>
5833         PR tree-optimization/69599
5834         * testsuite/libgomp.c/omp-nested-3.c: New test.
5835         * testsuite/libgomp.c/pr46032-2.c: New test.
5836         * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
5837         * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
5839 2016-02-09  Tom de Vries  <tom@codesourcery.com>
5841         PR lto/69707
5842         * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
5844 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
5846         * testsuite/libgomp.c/target-31.c: Fix testcase.
5848 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
5850         * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
5851         clause.
5852         * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
5853         * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
5854         reduction and map clauses.
5855         * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
5857 2016-02-02  James Norris  <jnorris@codesourcery.com>
5859         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
5861 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
5863         * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
5864         * oacc-parallel.c (GOACC_host_data): Remove function definition.
5866         * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
5867         cases.
5869         * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
5870         variables.
5871         * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
5872         (hsa_kmt_lib): Set variables.
5873         * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
5874         always_ld_library_path.
5875         * Makefile.in: Regenerate.
5876         * configure: Likewise.
5877         * testsuite/Makefile.in: Likewise.
5879         * plugin/configfrag.ac (offload_additional_options)
5880         (offload_additional_lib_paths): Don't amend for hsa offloading.
5881         * configure: Regenerate.
5883         * plugin/configfrag.ac: Don't configure for offloading target if
5884         we don't build the corresponding plugin.
5885         * configure: Regenerate.
5887 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
5889         * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
5890         * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
5892 2016-01-26  Tom de Vries  <tom@codesourcery.com>
5894         PR tree-optimization/69110
5895         * testsuite/libgomp.c/pr69110.c: New test.
5897 2016-01-25  Richard Biener  <rguenther@suse.de>
5899         PR lto/69393
5900         * testsuite/libgomp.c++/pr69393.C: New testcase.
5902 2016-01-22  Ilya Verbin  <ilya.verbin@intel.com>
5904         * target.c (gomp_get_target_fn_addr): Allow host fallback if target
5905         function wasn't mapped to the device with non-shared memory.
5907 2016-01-20  Ilya Verbin  <ilya.verbin@intel.com>
5909         * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
5911 2016-01-19  Martin Jambor  <mjambor@suse.cz>
5912             Martin Liska  <mliska@suse.cz>
5914         * plugin/Makefrag.am: Add HSA plugin requirements.
5915         * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
5916         (HSA_RUNTIME_LIB): Likewise.
5917         (HSA_RUNTIME_CPPFLAGS): Likewise.
5918         (HSA_RUNTIME_INCLUDE): New substitution.
5919         (HSA_RUNTIME_LIB): Likewise.
5920         (HSA_RUNTIME_LDFLAGS): Likewise.
5921         (hsa-runtime): New configure option.
5922         (hsa-runtime-include): Likewise.
5923         (hsa-runtime-lib): Likewise.
5924         (PLUGIN_HSA): New substitution variable.
5925         Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
5926         configure options.
5927         (PLUGIN_HSA_CPPFLAGS): Likewise.
5928         (PLUGIN_HSA_LDFLAGS): Likewise.
5929         (PLUGIN_HSA_LIBS): Likewise.
5930         Check that we have access to HSA run-time.
5931         * libgomp-plugin.h (offload_target_type): New element
5932         OFFLOAD_TARGET_TYPE_HSA.
5933         * libgomp.h (gomp_target_task): New fields firstprivate_copies and
5934         args.
5935         (bool gomp_create_target_task): Updated.
5936         (gomp_device_descr): Extra parameter of run_func and async_run_func,
5937         new field can_run_func.
5938         * libgomp_g.h (GOMP_target_ext): Update prototype.
5939         * oacc-host.c (host_run): Added a new parameter args.
5940         * target.c (calculate_firstprivate_requirements): New function.
5941         (copy_firstprivate_data): Likewise.
5942         (gomp_target_fallback_firstprivate): Use them.
5943         (gomp_target_unshare_firstprivate): New function.
5944         (gomp_get_target_fn_addr): Allow returning NULL for shared memory
5945         devices.
5946         (GOMP_target): Do host fallback for all shared memory devices.  Do not
5947         pass any args to plugins.
5948         (GOMP_target_ext): Introduce device-specific argument parameter args.
5949         Allow host fallback if device shares memory.  Do not remap data if
5950         device has shared memory.
5951         (gomp_target_task_fn): Likewise.  Also treat shared memory devices
5952         like host fallback for mappings.
5953         (GOMP_target_data): Treat shared memory devices like host fallback.
5954         (GOMP_target_data_ext): Likewise.
5955         (GOMP_target_update): Likewise.
5956         (GOMP_target_update_ext): Likewise.  Also pass NULL as args to
5957         gomp_create_target_task.
5958         (GOMP_target_enter_exit_data): Likewise.
5959         (omp_target_alloc): Treat shared memory devices like host fallback.
5960         (omp_target_free): Likewise.
5961         (omp_target_is_present): Likewise.
5962         (omp_target_memcpy): Likewise.
5963         (omp_target_memcpy_rect): Likewise.
5964         (omp_target_associate_ptr): Likewise.
5965         (gomp_load_plugin_for_device): Also load can_run.
5966         * task.c (GOMP_PLUGIN_target_task_completion): Free
5967         firstprivate_copies.
5968         (gomp_create_target_task): Accept new argument args and store it to
5969         ttask.
5970         * plugin/plugin-hsa.c: New file.
5972 2016-01-18  Tom de Vries  <tom@codesourcery.com>
5974         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
5975         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
5976         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
5977         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
5978         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
5979         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
5980         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
5981         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
5982         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
5983         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
5984         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
5985         Same.
5986         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
5987         Same.
5988         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
5989         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
5990         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
5991         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
5992         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
5993         * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
5994         * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
5995         * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
5996         Same.
5997         * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
5999 2016-01-15  Jakub Jelinek  <jakub@redhat.com>
6001         * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
6003 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
6005         * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
6007 2016-01-12  James Norris  <jnorris@codesourcery.com>
6009         * libgomp.texi: Updates for OpenACC.
6011 2016-01-11  Alexander Monakov  <amonakov@ispras.ru>
6013         * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
6015 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
6017         PR fortran/66680
6018         * testsuite/libgomp.fortran/pr66680.f90: New test.
6020 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
6022         PR middle-end/68960
6023         * testsuite/libgomp.c/pr68960.c: New test.
6025 2016-01-06  Nathan Sidwell  <nathan@acm.org>
6027         * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
6028         * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
6030 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
6032         Update copyright years.
6034         * libgomp.texi: Bump @copying's copyright year.
6036 2015-12-31  Nathan Sidwell  <nathan@acm.org>
6038         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
6039         dg-additional-options syntax.
6040         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6041         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6042         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
6043         * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6044         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
6045         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6046         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6047         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6048         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6049         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
6050         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6051         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6052         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6053         * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6054         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6055         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6056         * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6057         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6059 2015-12-15  Ilya Verbin  <ilya.verbin@intel.com>
6061         * libgomp.h (REFCOUNT_LINK): Define.
6062         (struct splay_tree_key_s): Add link_key.
6063         * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
6064         Replace target address of the pointer with target address of newly
6065         mapped object in the splay tree.  Set link pointer on target to the
6066         device address of the mapped object.
6067         (gomp_unmap_vars): Restore target address of the pointer in the splay
6068         tree for REFCOUNT_LINK objects after unmapping.
6069         (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
6070         declare target link" objects.
6071         (gomp_unload_image_from_device): Replace j with i.  Force unmap of all
6072         "omp declare target link" objects, which were mapped for the image.
6073         (gomp_exit_data): Restore target address of the pointer in the splay
6074         tree for REFCOUNT_LINK objects after unmapping.
6075         * testsuite/libgomp.c/target-link-1.c: New file.
6077 2015-12-14  Ilya Verbin  <ilya.verbin@intel.com>
6079         * libgomp.h (gomp_device_state): New enum.
6080         (struct gomp_device_descr): Replace is_initialized with state.
6081         (gomp_fini_device): Remove declaration.
6082         * oacc-host.c (host_dispatch): Use state instead of is_initialized.
6083         * oacc-init.c (acc_init_1): Use state instead of is_initialized.
6084         (acc_shutdown_1): Likewise.  Inline gomp_fini_device.
6085         (acc_set_device_type): Use state instead of is_initialized.
6086         (acc_set_device_num): Likewise.
6087         * target.c (resolve_device): Use state instead of is_initialized.
6088         Do not initialize finalized device.
6089         (gomp_map_vars): Do nothing if device is finalized.
6090         (gomp_unmap_vars): Likewise.
6091         (gomp_update): Likewise.
6092         (GOMP_offload_register_ver): Use state instead of is_initialized.
6093         (GOMP_offload_unregister_ver): Likewise.
6094         (gomp_init_device): Likewise.
6095         (gomp_unload_device): Likewise.
6096         (gomp_fini_device): Remove.
6097         (gomp_get_target_fn_addr): Do nothing if device is finalized.
6098         (GOMP_target): Go to host fallback if device is finalized.
6099         (GOMP_target_ext): Likewise.
6100         (gomp_exit_data): Do nothing if device is finalized.
6101         (gomp_target_task_fn): Go to host fallback if device is finalized.
6102         (gomp_target_fini): New static function.
6103         (gomp_target_init): Use state instead of is_initialized.
6104         Call gomp_target_fini at exit.
6106 2015-12-09  Tom de Vries  <tom@codesourcery.com>
6108         PR tree-optimization/68716
6109         * testsuite/libgomp.c/omp-nested-2.c: New test.
6111 2015-12-02  Thomas Schwinge  <thomas@codesourcery.com>
6113         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
6114         target openacc_nvidia_accel_selected.
6115         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
6116         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
6117         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
6118         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
6120 2015-12-01  Julian Brown  <julian@codesourcery.com>
6121             James Norris  <James_Norris@mentor.com>
6123         * oacc-parallel.c (GOACC_host_data): New function.
6124         * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
6125         * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
6126         * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
6127         * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
6128         * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
6129         * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
6130         * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
6132 2015-11-30  James Norris  <jnorris@codesourcery.com>
6133             Cesar Philippidis  <cesar@codesourcery.com>
6135         libgomp/
6136         * libgomp.oacc-fortran/routine-5.f90: New test.
6137         * libgomp.oacc-fortran/routine-7.f90: New test.
6138         * libgomp.oacc-fortran/routine-9.f90: New test.
6140 2015-11-30  Tom de Vries  <tom@codesourcery.com>
6142         PR tree-optimization/46032
6143         * testsuite/libgomp.c/pr46032.c: New test.
6145 2015-11-27  Jakub Jelinek  <jakub@redhat.com>
6147         PR libgomp/68579
6148         * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
6149         (gomp_create_target_task): Call it before freeing
6150         GOMP_TARGET_TASK_DATA tasks.
6152         PR c/63326
6153         * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
6154         in between case label and OpenMP standalone directives.
6155         * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
6157 2015-11-26  David Edelsohn  <dje.gcc@gmail.com>
6159         * configure: Regenerate.
6161 2015-11-26  Jakub Jelinek  <jakub@redhat.com>
6163         * testsuite/libgomp.c/target-35.c: New test.
6165 2015-11-22  James Norris  <jnorris@codesourcery.com>
6166             Cesar Philippidis  <cesar@codesourcery.com>
6168         * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
6169         * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
6170         * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
6171         * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
6172         * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
6174 2015-11-20  Jakub Jelinek  <jakub@redhat.com>
6176         PR middle-end/68221
6177         * testsuite/libgomp.c/reduction-11.c: Remove xfail.
6178         * testsuite/libgomp.c/reduction-12.c: Likewise.
6179         * testsuite/libgomp.c++/reduction-11.C: Likewise.
6180         * testsuite/libgomp.c++/reduction-12.C: Likewise.
6182 2015-11-19  Nathan Sidwell  <nathan@codesourcery.com>
6184         * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
6185         * libgomp.oacc-c-c++-common/reduction-flt.c: New.
6186         * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
6187         * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
6188         * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
6189         and fix.
6190         * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6191         * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6193 2015-11-18  Nathan Sidwell  <nathan@codesourcery.com>
6195         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
6196         worker & gang cases.
6197         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
6199 2015-11-17  Cesar Philippidis  <cesar@codesourcery.com>
6201         * config/nvptx/priority_queue.c: New file.
6203 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
6205         * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
6206         sections.
6208 2015-11-14  Jakub Jelinek  <jakub@redhat.com>
6209             Aldy Hernandez  <aldyh@redhat.com>
6210             Ilya Verbin  <ilya.verbin@intel.com>
6212         * ordered.c (gomp_doacross_init, GOMP_doacross_post,
6213         GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
6214         GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
6215         iterators or IV by chunk size.
6216         * parallel.c (gomp_resolve_num_threads): Don't assume that
6217         if thr->ts.team is non-NULL, then pool must be non-NULL.
6218         * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
6219         * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
6220         GOMP_PLUGIN_target_task_completion.
6221         * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
6222         * Makefile.in: Regenerate.
6223         * libgomp.h: Shuffle prototypes and forward definitions around so
6224         priority queues can be defined.
6225         (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
6226         (enum gomp_target_task_state): New enum.
6227         (struct gomp_target_task): Add state, tgt, task and team fields.
6228         (gomp_create_target_task): Change return type to bool, add
6229         state argument.
6230         (gomp_target_task_fn): Change return type to bool.
6231         (struct gomp_device_descr): Add async_run_func.
6232         (struct gomp_task): Remove children, next_child, prev_child,
6233         next_queue, prev_queue, next_taskgroup, prev_taskgroup.
6234         Add pnode field.
6235         (struct gomp_taskgroup): Remove children.
6236         Add taskgroup_queue.
6237         (struct gomp_team): Change task_queue type to a priority queue.
6238         (splay_compare): Define inline.
6239         (priority_queue_offset): New.
6240         (priority_node_to_task): New.
6241         (task_to_priority_node): New.
6242         * oacc-mem.c: Do not include splay-tree.h.
6243         * priority_queue.c: New file.
6244         * priority_queue.h: New file.
6245         * splay-tree.c: Do not include splay-tree.h.
6246         (splay_tree_foreach_internal): New.
6247         (splay_tree_foreach): New.
6248         * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
6249         (splay_tree_callback): Define typedef.
6250         * target.c (splay_compare): Move to libgomp.h.
6251         (GOMP_target): Don't adjust *thr in any way around running offloaded
6252         task.
6253         (GOMP_target_ext): Likewise.  Handle target nowait.
6254         (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
6255         return value from gomp_create_target_task, if false, fallthrough
6256         as if no dependencies exist.
6257         (gomp_target_task_fn): Change return type to bool, return true
6258         if the task should have another part scheduled later.  Handle
6259         target nowait.
6260         (gomp_load_plugin_for_device): Initialize async_run.
6261         * task.c (gomp_init_task): Initialize children_queue.
6262         (gomp_clear_parent_in_list): New.
6263         (gomp_clear_parent_in_tree): New.
6264         (gomp_clear_parent): Handle priorities.
6265         (GOMP_task): Likewise.
6266         (priority_queue_move_task_first,
6267         gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
6268         New functions.
6269         (gomp_create_target_task): Use priority queues.  Change return type
6270         to bool, add state argument, return false if for async
6271         {{enter,exit} data,update} constructs no dependencies need to be
6272         waited for, handle target nowait.  Set task->fn to NULL instead of
6273         gomp_target_task_fn.
6274         (verify_children_queue): Remove.
6275         (priority_list_upgrade_task): New.
6276         (priority_queue_upgrade_task): New.
6277         (verify_task_queue): Remove.
6278         (priority_list_downgrade_task): New.
6279         (priority_queue_downgrade_task): New.
6280         (gomp_task_run_pre): Use priority queues.
6281         Abstract code out to priority_queue_downgrade_task.
6282         (gomp_task_run_post_handle_dependers): Use priority queues.
6283         (gomp_task_run_post_remove_parent): Likewise.
6284         (gomp_task_run_post_remove_taskgroup): Likewise.
6285         (gomp_barrier_handle_tasks): Likewise.  Handle target nowait target
6286         tasks specially.
6287         (GOMP_taskwait): Likewise.
6288         (gomp_task_maybe_wait_for_dependencies): Likewise.  Abstract code to
6289         priority-queue_upgrade_task.
6290         (GOMP_taskgroup_start): Use priority queues.
6291         (GOMP_taskgroup_end): Likewise.  Handle target nowait target tasks
6292         specially.  If taskgroup is NULL, and thr->ts.level is 0, act as a
6293         barrier.
6294         * taskloop.c (GOMP_taskloop): Handle priorities.
6295         * team.c (gomp_new_team): Call priority_queue_init.
6296         (free_team): Call priority_queue_free.
6297         (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
6298         team created for target nowait in implicit parallel region.
6299         (gomp_team_start): For nested check, test thr->ts.level instead of
6300         thr->ts.team != NULL.
6301         * testsuite/libgomp.c/doacross-3.c: New test.
6302         * testsuite/libgomp.c/ordered-5.c: New test.
6303         * testsuite/libgomp.c/priority.c: New test.
6304         * testsuite/libgomp.c/target-31.c: New test.
6305         * testsuite/libgomp.c/target-32.c: New test.
6306         * testsuite/libgomp.c/target-33.c: New test.
6307         * testsuite/libgomp.c/target-34.c: New test.
6309 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
6311         * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
6313         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
6314         loop is sequential.
6316 2015-11-13  Nathan Sidwell  <nathan@codesourcery.com>
6318         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
6319         * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
6321 2015-11-12  James Norris  <jnorris@codesourcery.com>
6322             Joseph Myers  <joseph@codesourcery.com>
6324         * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
6325         * oacc-parallel.c (GOACC_declare): New function.
6326         * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
6327         * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
6328         * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
6329         * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
6330         * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
6332 2015-11-12  Nathan Sidwell  <nathan@codesourcery.com>
6334         * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
6336 2015-11-1  Nathan Sidwell  <nathan@codesourcery.com>
6338         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
6339         * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
6341 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
6343         * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
6344         inadvertent commit.
6346 2015-11-09  Nathan Sidwell  <nathan@codesourcery.com>
6348         * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
6349         * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
6350         * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
6351         * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
6352         * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
6354 2015-11-06  Thomas Schwinge  <thomas@codesourcery.com>
6356         * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
6357         * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6359 2015-11-05  Jakub Jelinek  <jakub@redhat.com>
6360             Ilya Verbin  <ilya.verbin@intel.com>
6362         * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
6363         GOMP_loop_nonmonotonic_dynamic_start,
6364         GOMP_loop_nonmonotonic_guided_next,
6365         GOMP_loop_nonmonotonic_guided_start,
6366         GOMP_loop_ull_nonmonotonic_dynamic_next,
6367         GOMP_loop_ull_nonmonotonic_dynamic_start,
6368         GOMP_loop_ull_nonmonotonic_guided_next,
6369         GOMP_loop_ull_nonmonotonic_guided_start,
6370         GOMP_parallel_loop_nonmonotonic_dynamic,
6371         GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
6372         (GOMP_target_41): Renamed to ...
6373         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
6374         arguments.
6375         (GOMP_target_data_41): Renamed to ...
6376         (GOMP_target_data_ext): ... this.
6377         (GOMP_target_update_41): Renamed to ...
6378         (GOMP_target_update_ext): ... this.
6379         * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
6380         GOMP_target_data_ext and GOMP_target_update_ext instead of
6381         GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
6382         Export GOMP_loop_nonmonotonic_dynamic_next,
6383         GOMP_loop_nonmonotonic_dynamic_start,
6384         GOMP_loop_nonmonotonic_guided_next,
6385         GOMP_loop_nonmonotonic_guided_start,
6386         GOMP_loop_ull_nonmonotonic_dynamic_next,
6387         GOMP_loop_ull_nonmonotonic_dynamic_start,
6388         GOMP_loop_ull_nonmonotonic_guided_next,
6389         GOMP_loop_ull_nonmonotonic_guided_start,
6390         GOMP_parallel_loop_nonmonotonic_dynamic and
6391         GOMP_parallel_loop_nonmonotonic_guided.
6392         * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
6393         GOMP_parallel_loop_nonmonotonic_guided,
6394         GOMP_loop_nonmonotonic_dynamic_start,
6395         GOMP_loop_nonmonotonic_guided_start,
6396         GOMP_loop_nonmonotonic_dynamic_next,
6397         GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
6398         * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
6399         GOMP_loop_ull_nonmonotonic_guided_start,
6400         GOMP_loop_ull_nonmonotonic_dynamic_next,
6401         GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
6402         * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
6403         functions.
6404         (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER.  For
6405         GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
6406         Use gomp_map_val function.
6407         (gomp_target_fallback_firstprivate): New static function.
6408         (GOMP_target_41): Renamed to ...
6409         (GOMP_target_ext): ... this.  Add num_teams and thread_limit
6410         arguments.  Move firstprivate fallback handling into a new
6411         function.
6412         (GOMP_target_data_41): Renamed to ...
6413         (GOMP_target_data_ext): ... this.
6414         (GOMP_target_update_41): Renamed to ...
6415         (GOMP_target_update_ext): ... this.
6416         (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
6417         gomp_map_0len_lookup instead of gomp_map_lookup.
6418         (omp_target_is_present): Use gomp_map_0len_lookup instead of
6419         gomp_map_lookup.
6420         * testsuite/libgomp.c/target-28.c: Likewise.
6421         * testsuite/libgomp.c/monotonic-1.c: New test.
6422         * testsuite/libgomp.c/monotonic-2.c: New test.
6423         * testsuite/libgomp.c/nonmonotonic-1.c: New test.
6424         * testsuite/libgomp.c/nonmonotonic-2.c: New test.
6425         * testsuite/libgomp.c/pr66199-5.c: New test.
6426         * testsuite/libgomp.c/pr66199-6.c: New test.
6427         * testsuite/libgomp.c/pr66199-7.c: New test.
6428         * testsuite/libgomp.c/pr66199-8.c: New test.
6429         * testsuite/libgomp.c/pr66199-9.c: New test.
6430         * testsuite/libgomp.c/reduction-11.c: New test.
6431         * testsuite/libgomp.c/reduction-12.c: New test.
6432         * testsuite/libgomp.c/reduction-13.c: New test.
6433         * testsuite/libgomp.c/reduction-14.c: New test.
6434         * testsuite/libgomp.c/reduction-15.c: New test.
6435         * testsuite/libgomp.c/target-12.c (main): Adjust for
6436         omp_target_is_present change for one-past-last element.
6437         * testsuite/libgomp.c/target-17.c (foo): Drop tests where
6438         the same var is both mapped and privatized.
6439         * testsuite/libgomp.c/target-19.c (foo): Adjust for different
6440         handling of zero-length array sections.
6441         * testsuite/libgomp.c/target-28.c: New test.
6442         * testsuite/libgomp.c/target-29.c: New test.
6443         * testsuite/libgomp.c/target-30.c: New test.
6444         * testsuite/libgomp.c/target-teams-1.c: New test.
6445         * testsuite/libgomp.c++/member-6.C: New test.
6446         * testsuite/libgomp.c++/member-7.C: New test.
6447         * testsuite/libgomp.c++/monotonic-1.C: New test.
6448         * testsuite/libgomp.c++/monotonic-2.C: New test.
6449         * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
6450         * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
6451         * testsuite/libgomp.c++/pr66199-3.C: New test.
6452         * testsuite/libgomp.c++/pr66199-4.C: New test.
6453         * testsuite/libgomp.c++/pr66199-5.C: New test.
6454         * testsuite/libgomp.c++/pr66199-6.C: New test.
6455         * testsuite/libgomp.c++/pr66199-7.C: New test.
6456         * testsuite/libgomp.c++/pr66199-8.C: New test.
6457         * testsuite/libgomp.c++/pr66199-9.C: New test.
6458         * testsuite/libgomp.c++/reduction-11.C: New test.
6459         * testsuite/libgomp.c++/reduction-12.C: New test.
6460         * testsuite/libgomp.c++/target-13.C: New test.
6461         * testsuite/libgomp.c++/target-14.C: New test.
6462         * testsuite/libgomp.c++/target-15.C: New test.
6463         * testsuite/libgomp.c++/target-16.C: New test.
6464         * testsuite/libgomp.c++/target-17.C: New test.
6465         * testsuite/libgomp.c++/target-18.C: New test.
6466         * testsuite/libgomp.c++/target-19.C: New test.
6468 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
6470         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
6471         and reduction copy.
6472         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6473         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6474         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6475         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6476         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6477         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6478         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6479         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6480         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6481         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
6482         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6483         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6484         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6485         * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
6487 2015-11-04  Nathan Sidwell  <nathan@codesourcery.com>
6489         * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
6490         * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
6491         * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
6492         * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
6493         * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
6494         * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
6495         * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
6496         * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
6498 2015-11-03  Nathan Sidwell  <nathan@codesourcery.com>
6500         * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
6501         * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
6502         (GOMP_OFFLOAD_openacc_parallel): Likewise.
6503         * oacc-host.c (host_openacc_exec): Likewise.
6504         * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
6506 2015-11-03  Julian Brown  <julian@codesourcery.com>
6507             Thomas Schwinge  <thomas@codesourcery.com>
6509         * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
6510         * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6511         * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
6512         Likewise.
6513         * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
6514         * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
6516 2015-11-03  James Norris  <jnorris@codesourcery.com>
6518         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
6519         file.
6520         * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
6521         Likewise.
6522         * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
6523         * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
6524         * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
6525         * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
6526         * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
6528 2015-10-29  Nathan Sidwell  <nathan@codesourcery.com>
6530         * openacc.h (enum acc_device_t): Reformat. Ensure layout
6531         compatibility.
6532         (enum acc_async_t): Reformat.
6533         (acc_on_device): Declare compatible with builtin and provide C++
6534         wrapper.
6535         * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
6537 2015-10-29  Thomas Schwinge  <thomas@codesourcery.com>
6538             Cesar Philippidis  <cesar@codesourcery.com>
6540         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
6541         * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
6542         ... this.  Add a description of the test at the top of the file.
6543         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
6544         * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
6545         ... this.  Add a description of the test at the top of the file.
6547 2015-10-28  Nathan Sidwell  <nathan@codesourcery.com>
6549         * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
6550         * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
6551         * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
6552         * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
6553         * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
6554         * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
6556 2015-10-27  Nathan Sidwell  <nathan@codesourcery.com>
6558         * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
6559         dimensions.
6561 2015-10-27  Thomas Schwinge  <thomas@codesourcery.com>
6563         PR testsuite/68063
6564         * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
6566 2015-10-27  James Norris  <jnorris@codesourcery.com>
6568         * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
6569         * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
6571 2015-10-26  Thomas Schwinge  <thomas@codesourcery.com>
6573         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
6574         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6576         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
6577         acc_device_nvidia usage.
6578         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6579         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6580         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6582         * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
6583         * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
6585         PR libgomp/66518
6586         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
6588         PR libgomp/65437
6589         PR libgomp/66518
6590         * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
6591         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
6593 2015-10-23  Tom de Vries  <tom@codesourcery.com>
6595         PR testsuite/68063
6596         * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
6598 2015-10-20  Nathan Sidwell  <nathan@codesourcery.com>
6600         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
6601         vector_length.
6602         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6604 2015-10-14  Ilya Verbin  <ilya.verbin@intel.com>
6605             Aleksander Ivanushenko  <aleksander.ivanushenko@intel.com>
6607         * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
6608         to 0 when mapnum is 0.
6610 2015-10-14  Sebastian Huber  <sebastian.huber@embedded-brains.de>
6612         * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
6613         Cast to int from int32_t.
6615 2015-10-13  Jakub Jelinek  <jakub@redhat.com>
6616             Aldy Hernandez  <aldyh@redhat.com>
6617             Ilya Verbin  <ilya.verbin@intel.com>
6619         * config/linux/affinity.c (omp_get_place_num_procs,
6620         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6621         * config/linux/doacross.h: New file.
6622         * config/posix/affinity.c (omp_get_place_num_procs,
6623         omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6624         * config/posix/doacross.h: New file.
6625         * env.c: Include gomp-constants.h.
6626         (struct gomp_task_icv): Rename run_sched_modifier to
6627         run_sched_chunk_size.
6628         (gomp_max_task_priority_var): New variable.
6629         (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
6630         (handle_omp_display_env): Change _OPENMP value from 201307 to
6631         201511.  Print OMP_MAX_TASK_PRIORITY.
6632         (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
6633         (omp_set_schedule, omp_get_schedule): Rename modifier argument to
6634         chunk_size and run_sched_modifier to run_sched_chunk_size.
6635         (omp_get_max_task_priority, omp_get_initial_device,
6636         omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
6637         omp_get_partition_place_nums): New functions.
6638         * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
6639         omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
6640         to chunk_size.
6641         (omp_get_num_places_, omp_get_place_num_procs_,
6642         omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
6643         omp_get_place_proc_ids_8_, omp_get_place_num_,
6644         omp_get_partition_num_places_, omp_get_partition_place_nums_,
6645         omp_get_partition_place_nums_8_, omp_get_initial_device_,
6646         omp_get_max_task_priority_): New functions.
6647         * libgomp_g.h (GOMP_loop_doacross_static_start,
6648         GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
6649         GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
6650         GOMP_loop_ull_doacross_dynamic_start,
6651         GOMP_loop_ull_doacross_guided_start,
6652         GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
6653         GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
6654         GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
6655         GOMP_target_data_41, GOMP_target_update_41,
6656         GOMP_target_enter_exit_data): New prototypes.
6657         (GOMP_task): Add prototype argument.
6658         * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
6659         (struct gomp_doacross_work_share): New type.
6660         (struct gomp_work_share): Add doacross field.
6661         (struct gomp_task_icv): Rename run_sched_modifier to
6662         run_sched_chunk_size.
6663         (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
6664         GOMP_TASK_UNDEFERRED.  Add comments.
6665         (struct gomp_task_depend_entry): Add comments.
6666         (struct gomp_task): Likewise.
6667         (struct gomp_taskgroup): Likewise.
6668         (struct gomp_target_task): New type.
6669         (struct gomp_team): Add comment.
6670         (gomp_get_place_proc_ids_8, gomp_doacross_init,
6671         gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
6672         gomp_create_target_task, gomp_target_task_fn): New prototypes.
6673         (struct target_var_desc): New type.
6674         (struct target_mem_desc): Adjust comment.  Use struct
6675         target_var_desc instead of splay_tree_key for list.
6676         (REFCOUNT_INFINITY): Define.
6677         (struct splay_tree_key_s): Remove copy_from field.
6678         (struct gomp_device_descr): Add dev2dev_func field.
6679         (enum gomp_map_vars_kind): New enum.
6680         (gomp_map_vars): Add one argument.
6681         * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
6682         omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
6683         omp_get_place_num_procs, omp_get_place_num_procs_,
6684         omp_get_place_num_procs_8_, omp_get_place_proc_ids,
6685         omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
6686         omp_get_place_num_, omp_get_partition_num_places,
6687         omp_get_partition_num_places_, omp_get_partition_place_nums,
6688         omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
6689         omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
6690         omp_target_free, omp_target_is_present, omp_target_memcpy,
6691         omp_target_memcpy_rect, omp_target_associate_ptr and
6692         omp_target_disassociate_ptr.
6693         (GOMP_4.0.2): Renamed to ...
6694         (GOMP_4.5): ... this.  Export GOMP_target_41, GOMP_target_data_41,
6695         GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
6696         GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
6697         GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6698         GOMP_loop_doacross_static_start, GOMP_doacross_post,
6699         GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
6700         GOMP_loop_ull_doacross_guided_start,
6701         GOMP_loop_ull_doacross_runtime_start,
6702         GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
6703         GOMP_doacross_ull_wait.
6704         * libgomp.texi: Document omp_get_max_task_priority.
6705         Rename modifier argument to chunk_size for omp_set_schedule and
6706         omp_get_schedule.  Document OMP_MAX_TASK_PRIORITY env var.
6707         * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
6708         to run_sched_chunk_size renaming.
6709         (GOMP_loop_ordered_runtime_start): Likewise.
6710         (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
6711         gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6712         GOMP_parallel_loop_runtime_start): New functions.
6713         (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
6714         to run_sched_chunk_size renaming.
6715         (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
6716         GOMP_loop_doacross_guided_start): New functions or aliases.
6717         * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
6718         run_sched_modifier to run_sched_chunk_size renaming.
6719         (GOMP_loop_ull_ordered_runtime_start): Likewise.
6720         (gomp_loop_ull_doacross_static_start,
6721         gomp_loop_ull_doacross_dynamic_start,
6722         gomp_loop_ull_doacross_guided_start,
6723         GOMP_loop_ull_doacross_runtime_start): New functions.
6724         (GOMP_loop_ull_doacross_static_start,
6725         GOMP_loop_ull_doacross_dynamic_start,
6726         GOMP_loop_ull_doacross_guided_start): New functions or aliases.
6727         * oacc-mem.c (acc_map_data, present_create_copy,
6728         gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
6729         to gomp_map_vars.
6730         (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
6731         * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
6732         instead of false to gomp_map_vars.
6733         (GOACC_parallel_keyed): Likewise.  Use copy_from from target_var_desc.
6734         * omp.h.in (omp_lock_hint_t): New type.
6735         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6736         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6737         omp_get_place_num, omp_get_partition_num_places,
6738         omp_get_partition_place_nums, omp_get_initial_device,
6739         omp_get_max_task_priority, omp_target_alloc, omp_target_free,
6740         omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
6741         omp_target_associate_ptr, omp_target_disassociate_ptr): New
6742         prototypes.
6743         * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
6744         (omp_lock_hint_none, omp_lock_hint_uncontended,
6745         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6746         omp_lock_hint_speculative): New parameters.
6747         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6748         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6749         omp_get_place_num, omp_get_partition_num_places,
6750         omp_get_partition_place_nums, omp_get_initial_device,
6751         omp_get_max_task_priority): New interfaces.
6752         (omp_set_schedule, omp_get_schedule): Rename modifier argument
6753         to chunk_size.
6754         * omp_lib.h.in (omp_lock_hint_kind): New parameter.
6755         (omp_lock_hint_none, omp_lock_hint_uncontended,
6756         omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6757         omp_lock_hint_speculative): New parameters.
6758         (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6759         omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6760         omp_get_place_num, omp_get_partition_num_places,
6761         omp_get_partition_place_nums, omp_get_initial_device,
6762         omp_get_max_task_priority): New functions and subroutines.
6763         * ordered.c: Include stdarg.h and string.h.
6764         (MAX_COLLAPSED_BITS): Define.
6765         (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
6766         gomp_doacross_ull_init, GOMP_doacross_ull_post,
6767         GOMP_doacross_ull_wait): New functions.
6768         * target.c: Include errno.h.
6769         (resolve_device): If device is not initialized, call
6770         gomp_init_device on it.
6771         (gomp_map_lookup): New function.
6772         (gomp_map_vars_existing): Add tgt_var argument, fill it in.
6773         Don't bump refcount if REFCOUNT_INFINITY.  Handle
6774         GOMP_MAP_ALWAYS_TO_P.
6775         (get_kind): Rename is_openacc argument to short_mapkind.
6776         (gomp_map_pointer): Use gomp_map_lookup.
6777         (gomp_map_fields_existing): New function.
6778         (gomp_map_vars): Rename is_openacc argument to short_mapkind
6779         and is_target to pragma_kind.  Handle GOMP_MAP_VARS_ENTER_DATA,
6780         handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
6781         GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
6782         Adjust for tgt->list changed type and copy_from living in there.
6783         (gomp_copy_from_async): Adjust for tgt->list changed type and
6784         copy_from living in there.
6785         (gomp_unmap_vars): Likewise.
6786         (gomp_update): Likewise.  Rename is_openacc argument to
6787         short_mapkind.  Don't fail if object is not mapped.
6788         (gomp_load_image_to_device): Initialize refcount to
6789         REFCOUNT_INFINITY.
6790         (gomp_target_fallback): New function.
6791         (gomp_get_target_fn_addr): Likewise.
6792         (GOMP_target): Adjust gomp_map_vars caller, use
6793         gomp_get_target_fn_addr and gomp_target_fallback.
6794         (GOMP_target_41): New function.
6795         (gomp_target_data_fallback): New function.
6796         (GOMP_target_data): Use it, adjust gomp_map_vars caller.
6797         (GOMP_target_data_41): New function.
6798         (GOMP_target_update): Adjust gomp_update caller.
6799         (GOMP_target_update_41): New function.
6800         (gomp_exit_data, GOMP_target_enter_exit_data,
6801         gomp_target_task_fn, omp_target_alloc, omp_target_free,
6802         omp_target_is_present, omp_target_memcpy,
6803         omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
6804         omp_target_associate_ptr, omp_target_disassociate_ptr,
6805         gomp_load_plugin_for_device): New functions.
6806         * task.c: Include gomp-constants.h.  Include taskloop.c
6807         twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
6808         (gomp_task_handle_depend): New function.
6809         (GOMP_task): Use it.  Add priority argument.  Use
6810         gomp-constant.h constants instead of hardcoded numbers.
6811         Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
6812         (gomp_create_target_task): New function.
6813         (verify_children_queue, verify_taskgroup_queue,
6814         verify_task_queue): New functions.
6815         (gomp_task_run_pre): Call verify_*_queue functions.
6816         If an upcoming tied task is about to leave the sibling or
6817         taskgroup queues in an invalid state, adjust appropriately.
6818         Remove taskgroup argument.  Add comments.
6819         (gomp_task_run_post_handle_dependers): Add comments.
6820         (gomp_task_run_post_remove_parent): Likewise.
6821         (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
6822         (GOMP_taskwait): Likewise.  Add comments.
6823         (gomp_task_maybe_wait_for_dependencies): Fix scheduling
6824         problem such that the first non parent_depends_on task does not
6825         end up at the end of the children queue.
6826         (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
6827         GOMP_TASK_UNDEFERRED.
6828         (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
6829         * taskloop.c: New file.
6830         * testsuite/lib/libgomp.exp
6831         (check_effective_target_offload_device_nonshared_as): New proc.
6832         * testsuite/libgomp.c/affinity-2.c: New test.
6833         * testsuite/libgomp.c/doacross-1.c: New test.
6834         * testsuite/libgomp.c/doacross-2.c: New test.
6835         * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
6836         Add map clause to target.
6837         * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
6838         * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
6839         * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
6840         * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
6841         * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
6842         Likewise.
6843         * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
6844         * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
6845         * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
6846         * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
6847         not defined.  Use those where needed.
6848         * testsuite/libgomp.c/for-4.c: New test.
6849         * testsuite/libgomp.c/for-5.c: New test.
6850         * testsuite/libgomp.c/for-6.c: New test.
6851         * testsuite/libgomp.c/linear-1.c: New test.
6852         * testsuite/libgomp.c/ordered-4.c: New test.
6853         * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
6854         only allowed on the loop iterator.
6855         * testsuite/libgomp.c/pr66199-3.c: New test.
6856         * testsuite/libgomp.c/pr66199-4.c: New test.
6857         * testsuite/libgomp.c/reduction-7.c: New test.
6858         * testsuite/libgomp.c/reduction-8.c: New test.
6859         * testsuite/libgomp.c/reduction-9.c: New test.
6860         * testsuite/libgomp.c/reduction-10.c: New test.
6861         * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
6862         map(tofrom:s).
6863         * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
6864         * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
6865         * testsuite/libgomp.c/target-11.c: New test.
6866         * testsuite/libgomp.c/target-12.c: New test.
6867         * testsuite/libgomp.c/target-13.c: New test.
6868         * testsuite/libgomp.c/target-14.c: New test.
6869         * testsuite/libgomp.c/target-15.c: New test.
6870         * testsuite/libgomp.c/target-16.c: New test.
6871         * testsuite/libgomp.c/target-17.c: New test.
6872         * testsuite/libgomp.c/target-18.c: New test.
6873         * testsuite/libgomp.c/target-19.c: New test.
6874         * testsuite/libgomp.c/target-20.c: New test.
6875         * testsuite/libgomp.c/target-21.c: New test.
6876         * testsuite/libgomp.c/target-22.c: New test.
6877         * testsuite/libgomp.c/target-23.c: New test.
6878         * testsuite/libgomp.c/target-24.c: New test.
6879         * testsuite/libgomp.c/target-25.c: New test.
6880         * testsuite/libgomp.c/target-26.c: New test.
6881         * testsuite/libgomp.c/target-27.c: New test.
6882         * testsuite/libgomp.c/taskloop-1.c: New test.
6883         * testsuite/libgomp.c/taskloop-2.c: New test.
6884         * testsuite/libgomp.c/taskloop-3.c: New test.
6885         * testsuite/libgomp.c/taskloop-4.c: New test.
6886         * testsuite/libgomp.c++/ctor-13.C: New test.
6887         * testsuite/libgomp.c++/doacross-1.C: New test.
6888         * testsuite/libgomp.c++/examples-4/declare_target-2.C:
6889         Replace offload_device with offload_device_nonshared_as.
6890         * testsuite/libgomp.c++/for-12.C: New test.
6891         * testsuite/libgomp.c++/for-13.C: New test.
6892         * testsuite/libgomp.c++/for-14.C: New test.
6893         * testsuite/libgomp.c++/linear-1.C: New test.
6894         * testsuite/libgomp.c++/member-1.C: New test.
6895         * testsuite/libgomp.c++/member-2.C: New test.
6896         * testsuite/libgomp.c++/member-3.C: New test.
6897         * testsuite/libgomp.c++/member-4.C: New test.
6898         * testsuite/libgomp.c++/member-5.C: New test.
6899         * testsuite/libgomp.c++/ordered-1.C: New test.
6900         * testsuite/libgomp.c++/reduction-5.C: New test.
6901         * testsuite/libgomp.c++/reduction-6.C: New test.
6902         * testsuite/libgomp.c++/reduction-7.C: New test.
6903         * testsuite/libgomp.c++/reduction-8.C: New test.
6904         * testsuite/libgomp.c++/reduction-9.C: New test.
6905         * testsuite/libgomp.c++/reduction-10.C: New test.
6906         * testsuite/libgomp.c++/reference-1.C: New test.
6907         * testsuite/libgomp.c++/simd14.C: New test.
6908         * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
6909         * testsuite/libgomp.c++/target-5.C: New test.
6910         * testsuite/libgomp.c++/target-6.C: New test.
6911         * testsuite/libgomp.c++/target-7.C: New test.
6912         * testsuite/libgomp.c++/target-8.C: New test.
6913         * testsuite/libgomp.c++/target-9.C: New test.
6914         * testsuite/libgomp.c++/target-10.C: New test.
6915         * testsuite/libgomp.c++/target-11.C: New test.
6916         * testsuite/libgomp.c++/target-12.C: New test.
6917         * testsuite/libgomp.c++/taskloop-1.C: New test.
6918         * testsuite/libgomp.c++/taskloop-2.C: New test.
6919         * testsuite/libgomp.c++/taskloop-3.C: New test.
6920         * testsuite/libgomp.c++/taskloop-4.C: New test.
6921         * testsuite/libgomp.c++/taskloop-5.C: New test.
6922         * testsuite/libgomp.c++/taskloop-6.C: New test.
6923         * testsuite/libgomp.c++/taskloop-7.C: New test.
6924         * testsuite/libgomp.c++/taskloop-8.C: New test.
6925         * testsuite/libgomp.c++/taskloop-9.C: New test.
6926         * testsuite/libgomp.fortran/affinity1.f90: New test.
6927         * testsuite/libgomp.fortran/affinity2.f90: New test.
6929 2015-10-13  Tom de Vries  <tom@codesourcery.com>
6931         PR tree-optimization/67476
6932         * testsuite/libgomp.c/autopar-3.c: New test.
6933         * testsuite/libgomp.c/autopar-4.c: New test.
6934         * testsuite/libgomp.c/autopar-5.c: New test.
6935         * testsuite/libgomp.c/autopar-6.c: New test.
6936         * testsuite/libgomp.c/autopar-7.c: New test.
6937         * testsuite/libgomp.c/autopar-8.c: New test.
6939 2015-10-12  James Norris  <jnorris@codesourcery.com>
6941         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
6942         initializer.
6944 2015-10-09  David Malcolm  <dmalcolm@redhat.com>
6946         * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
6947         using load_gcc_lib.
6949 2015-10-02  Thomas Schwinge  <thomas@codesourcery.com>
6951         * oacc-ptx.h: Remove file, moving its content into...
6952         * config/nvptx/fortran.c: ... here...
6953         * config/nvptx/oacc-init.c: ..., here...
6954         * config/nvptx/oacc-parallel.c: ..., and here.
6955         * config/nvptx/openacc.f90: New file.
6956         * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
6957         (link_ptx): Don't link in predefined bits of PTX code.
6959 2015-09-30  Nathan Sidwell  <nathan@codesourcery.com>
6960             Bernd Schmidt <bernds@codesourcery.com>
6962         * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
6963         (struct targ_ptx_obj): New.
6964         (nvptx_tdata): Move earlier, change data format.
6965         (link_ptx): Take targ_ptx_obj ptr and count.  Allow multiple
6966         objects.
6967         (GOMP_OFFLOAD_load_image): Adjust.
6969 2015-09-30  Thomas Schwinge  <thomas@codesourcery.com>
6971         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
6972         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6973         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6974         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6975         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6976         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6977         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6978         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6979         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6980         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6981         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6982         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6983         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6984         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6985         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6986         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6987         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6988         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6989         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6990         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6991         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6992         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6993         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6994         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6995         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6996         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6997         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6998         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6999         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7000         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7001         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7002         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7003         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7004         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7005         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7006         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7007         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7008         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7009         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7010         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7011         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7012         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7013         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7014         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7015         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7016         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7017         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7018         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7019         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7020         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7021         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7022         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7023         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7024         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7025         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7026         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7027         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7028         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7029         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7030         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7031         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7032         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7033         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7035 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
7037         * oacc-init.c (acc_on_device): Force optimization level.
7039 2015-09-29  Nathan Sidwell  <nathan@codesourcery.com>
7041         * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
7042         (cuda_errlist): Delete.
7043         (cuda_error): Reimplement.
7045 2015-09-28  Nathan Sidwell  <nathan@codesourcery.com>
7047         * libgomp.h (acc_dispatch_t): Replace separate geometry args with
7048         array.
7049         * libgomp.map (GOACC_parallel_keyed): New.
7050         * oacc-parallel.c (goacc_wait): Take pointer to va_list.  Adjust
7051         all callers.
7052         (GOACC_parallel_keyed): New interface.  Lose geometry arguments
7053         and take keyed varargs list.  Adjust call to exec_func.
7054         (GOACC_parallel): Force host fallback.
7055         * libgomp_g.h (GOACC_parallel): Remove.
7056         (GOACC_parallel_keyed): Declare.
7057         * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
7058         (struct targ_gn_descriptor): Replace name field with launch field.
7059         (nvptx_exec): Lose separate geometry args, take array.  Process
7060         dynamic dimensions and adjust.
7061         (struct nvptx_tdata): Replace fn_names field with fn_descs.
7062         (GOMP_OFFLOAD_load_image): Adjust for change in function table
7063         data.
7064         (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
7065         passing.
7066         * oacc-host.c (host_openacc_exec): Adjust for change in dimension
7067         passing.
7069 2015-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
7071         PR libgomp/67141
7072         * oacc-int.h (goacc_host_init): Add declaration.
7073         * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
7074         * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
7076 2015-09-08  Aditya Kumar  <hiraditya@msn.com>
7077             Sebastian Pop  <s.pop@samsung.com>
7079         * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
7080         match o/p.
7081         * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
7082         * testsuite/libgomp.graphite/force-parallel-4.c: Same.
7083         * testsuite/libgomp.graphite/force-parallel-5.c: Same.
7084         * testsuite/libgomp.graphite/force-parallel-7.c: Same.
7085         * testsuite/libgomp.graphite/force-parallel-8.c: Same.
7087 2015-09-03  Jakub Jelinek  <jakub@redhat.com>
7089         * configure.tgt: Add missing ;; in between nvptx and rtems
7090         snippets.
7092 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7094         * config/posix/pool.h (gomp_adjust_thread_attr): New.
7095         * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
7096         (gomp_thread_pool_reservoir): Add priority member.
7097         * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
7098         priority.
7099         (parse_thread_pools): Likewise.
7100         * team.c (gomp_team_start): Call configuration provided
7101         gomp_adjust_thread_attr(). Destroy thread attributes if
7102         necessary.
7103         * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
7105 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7107         * config/posix/pool.h: New.
7108         * config/rtems/pool.h: Likewise.
7109         * config/rtems/proc.c: Likewise.
7110         * libgomp.h (gomp_thread_destructor): Declare.
7111         * team.c: Include configuration provided "pool.h".
7112         (gomp_get_thread_pool): Define in configuration.
7113         (gomp_team_end): Call configuration defined
7114         gomp_release_thread_pool().
7116 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7118         * config/rtems/bar.c: New.
7119         * config/rtems/bar.h: Likewise.
7120         * config/rtems/mutex.c: Likewise.
7121         * config/rtems/mutex.h: Likewise.
7122         * config/rtems/sem.c: Likewise.
7123         * config/rtems/sem.h: Likewise.
7124         * configure.ac (*-*-rtems*): Check that Newlib provides a proper
7125         <sys/lock.h> header file.
7126         * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
7127         supported by Newlib.
7128         * configure: Regenerate.
7130 2015-09-03  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7132         * team.c (gomp_new_thread_pool): Delete and move content to ...
7133         (gomp_get_thread_pool): ... new function.  Allocate and
7134         initialize thread pool on demand.
7135         (get_last_team): Use gomp_get_thread_pool().
7136         (gomp_team_start): Delete thread pool initialization.
7138 2015-09-03  Tom de Vries  <tom@codesourcery.com>
7140         PR tree-optimization/65637
7141         * testsuite/libgomp.c/autopar-2.c: New test.
7143 2015-08-29  Tom de Vries  <tom@codesourcery.com>
7145         PR tree-optimization/46193
7146         * testsuite/libgomp.c/pr46193.c: New test.
7148 2015-08-24  Nathan Sidwell  <nathan@codesourcery.com>
7150         libgomp/
7151         * libgomp.map: Add 4.0.2 version.
7152         * target.c (offload_image_descr): Add version field.
7153         (gomp_load_image_to_device): Add version argument.  Adjust plugin
7154         call.  Improve load mismatch diagnostic.
7155         (gomp_unload_image_from_device): Add version argument.  Adjust plugin
7156         call.
7157         (GOMP_offload_regster): Make stub function, move bulk to ...
7158         (GOMP_offload_register_ver): ... here.  Process version argument.
7159         (GOMP_offload_unregister): Make stub function, move bulk to ...
7160         (GOMP_offload_unregister_ver): ... here.  Process version argument.
7161         (gomp_init_device): Process version field.
7162         (gomp_unload_device): Process version field.
7163         (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
7164         macros.  Check plugin version.
7165         * libgomp.h (gomp_device_descr): Add version function field.  Adjust
7166         loader and unloader types.
7167         * oacc-host.c: Include gomp-constants.h.
7168         (host_version): New.
7169         (host_load_image, host_unload_image): Adjust.
7170         (host_dispatch): Add host_version.
7171         * plugin/plugin-nvptx.c: Include gomp-constants.h.
7172         (GOMP_OFFLOAD_version): New.
7173         (GOMP_OFFLOAD_load_image): Add version arg and check it.
7174         (GOMP_OFFLOAD_unload_image): Likewise.
7175         * plugin/plugin-host.c: Include gomp-constants.h.
7176         (GOMP_OFFLOAD_version): New.
7177         (GOMP_OFFLOAD_load_image): Add version arg.
7178         (GOMP_OFFLOAD_unload_image): Likewise.
7180 2015-08-24  Tom de Vries  <tom@codesourcery.com>
7182         PR tree-optimization/65468
7183         * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
7185 2015-08-24  Tom de Vries  <tom@codesourcery.com>
7187         PR tree-optimization/65468
7188         * testsuite/libgomp.c/static-chunk-size-one.c: New test.
7190 2015-08-24  Joost VandeVondele  <vondele@gnu.gcc.org>
7192         PR libgomp/66761
7193         PR libgomp/67303
7194         * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
7195         (gomp_iter_guided_next): Idem.
7196         * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
7197         (gomp_iter_ull_guided_next): Idem.
7198         * config/linux/wait.h (do_spin): Idem.
7200 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
7202         * libgomp-plugin.h (enum offload_target_type): Remove
7203         OFFLOAD_TARGET_TYPE_HOST_NONSHM.
7204         * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
7205         * openacc.h (enum acc_device_t): Likewise.
7206         * openacc_lib.h: Likewise.
7207         * oacc-init.c (name_of_acc_device_t): Don't handle it.
7208         (acc_on_device): Just use __builtin_acc_on_device.
7209         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
7210         of acc_on_device builtin.
7211         * plugin/plugin-host.h: Remove file.
7212         * plugin/plugin-host.c: Likewise, but salvage some content into...
7213         * oacc-host.c: ... this file.
7214         * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
7215         * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
7216         * Makefile.in: Regenerate.
7217         * configure: Likewise.
7218         * testsuite/lib/libgomp.exp
7219         (check_effective_target_openacc_host_nonshm_selected): Remove.
7220         * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
7221         ACC_DEVICE_TYPE=host_nonshm.
7222         * testsuite/libgomp.oacc-c/c.exp: Likewise.
7223         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7224         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
7225         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7226         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7227         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7229 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
7230             Jakub Jelinek  <jakub@redhat.com>
7232         * config/nvptx/affinity.c: New file.
7233         * config/nvptx/alloc.c: Likewise.
7234         * config/nvptx/bar.c: Likewise.
7235         * config/nvptx/barrier.c: Likewise.
7236         * config/nvptx/critical.c: Likewise.
7237         * config/nvptx/env.c: Likewise.
7238         * config/nvptx/error.c: Likewise.
7239         * config/nvptx/fortran.c: Likewise.
7240         * config/nvptx/iter.c: Likewise.
7241         * config/nvptx/iter_ull.c: Likewise.
7242         * config/nvptx/libgomp-plugin.c: Likewise.
7243         * config/nvptx/lock.c: Likewise.
7244         * config/nvptx/loop.c: Likewise.
7245         * config/nvptx/loop_ull.c: Likewise.
7246         * config/nvptx/mutex.c: Likewise.
7247         * config/nvptx/oacc-async.c: Likewise.
7248         * config/nvptx/oacc-cuda.c: Likewise.
7249         * config/nvptx/oacc-host.c: Likewise.
7250         * config/nvptx/oacc-init.c: Likewise.
7251         * config/nvptx/oacc-mem.c: Likewise.
7252         * config/nvptx/oacc-parallel.c: Likewise.
7253         * config/nvptx/oacc-plugin.c: Likewise.
7254         * config/nvptx/omp-lock.h: Likewise.
7255         * config/nvptx/ordered.c: Likewise.
7256         * config/nvptx/parallel.c: Likewise.
7257         * config/nvptx/proc.c: Likewise.
7258         * config/nvptx/ptrlock.c: Likewise.
7259         * config/nvptx/sections.c: Likewise.
7260         * config/nvptx/sem.c: Likewise.
7261         * config/nvptx/single.c: Likewise.
7262         * config/nvptx/splay-tree.c: Likewise.
7263         * config/nvptx/target.c: Likewise.
7264         * config/nvptx/task.c: Likewise.
7265         * config/nvptx/team.c: Likewise.
7266         * config/nvptx/time.c: Likewise.
7267         * config/nvptx/work.c: Likewise.
7268         * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
7269         * configure: Regenerate.
7270         * configure.tgt (config_path): Set to "nvptx" for target
7271         nvptx*-*-*.
7273 2015-08-10  Thomas Schwinge  <thomas@codesourcery.com>
7275         * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
7277 2015-08-03  Nathan Sidwell  <nathan@codesourcery.com>
7279         * plugin/plugin-nvptx.c: Don't include dlfcn.h.
7280         (cuda_errlist): Constify.
7281         (errmsg):  Move into ...
7282         (cuda_error): ... here.  Make smaller.
7283         (_XSTR, _STR): Delete.
7284         (cuda_synames): Delete.
7285         (verify_device_library): Delete.
7286         (nvptx_init): Don't call it.
7288 2015-07-28  Tom de Vries  <tom@codesourcery.com>
7290         * testsuite/libgomp.c/uns-outer-4.c: New test.
7292 2015-07-24  Cesar Philippidis  <cesar@codesourcery.com>
7294         * testsuite/libgomp.c/pr66714.c: New test.
7296 2015-07-22  Maxim Blumenthal  <maxim.blumenthal@intel.com>
7298         PR libgomp/66950
7299         * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
7300         (fib_ref): New function.
7301         (fib): Correct corner cases in the recursion.
7302         (main): Replace the non-simd loop with fib_ref call.
7303         * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
7304         subroutine.
7305         (fibonacci): Lower the parameter N to 30.  Correct accordingly check
7306         for the last array element value.  Replace the non-simd loop with
7307         fib_ref call.  Remove redundant b_ref array.  Remove the comparison
7308         of the last array element with according Fibonacci sequence element.
7309         (fib): Correct corner cases in the recursion.
7311 2015-07-21  Nathan Sidwell  <nathan@codesourcery.com>
7313         * target.c (gomp_offload_image_to_device): Rename to ...
7314         (gomp_load_image_to_device): ... here.
7315         (GOMP_offload_register): Adjust call.
7316         (gomp_init_device): Likewise.
7317         (gomp_unload_image_from_device): New.  Broken out of ...
7318         (GOMP_offload_unregister): ... here.  Call it.
7319         (gomp_unload_device): New.
7320         * libgomp.h (gomp_unload_device): Declare.
7321         * oacc-init.c (acc_shutdown_1): Unload from device before deleting
7322         mem maps.
7324 2015-07-20  Nathan Sidwell  <nathan@codesourcery.com>
7326         * oacc-parallel.c (GOACC_parallel): Move variadic handling into
7327         wait=-specific if.
7328         (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
7329         !=0 condition.
7330         (goacc_waits): Move !num_waits handling to ...
7331         (GOACC_wait): ... here, the only caller that might have zero waits.
7333         * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
7334         (struct ptx_image_data): Move earlier, add fns field.
7335         (struct ptx_device): Add images and image_lock fields.
7336         (ptx_images, ptx_image_lock): Delete.
7337         (nvptx_open_device): Initialize images and image_lock fields.
7338         (nvptx_close_device): Destroy image_lock.
7339         (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
7340         (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
7341         fields.
7343 2015-07-17  Nathan Sidwell  <nathan@codesourcery.com>
7345         * target.c (GOMP_offload_register): Use int for device type arg.
7346         (GOMP_offload_unregister): Likewise.
7348         * target.c (struct_offload_image_descr): Constify host_table.
7349         (gomp_offload_image_to_device): Likewise.
7350         (GOMP_offload_register, GOMP_offload_unregister): Likewise.
7352         * libgomp.h (gomp_device_descr): Constify target data arguments.
7353         * target.c (struct offload_image_descr): Constify target_data.
7354         (gomp_offload_image_to_device): Likewise.
7355         (GOMP_offload_register): Likewise.
7356         (GOMP_offload_unregister): Likewise.
7357         * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
7358         GOMP_OFFLOAD_unload_image): Constify target data.
7359         * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
7360         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
7362 2015-07-16  Nathan Sidwell  <nathan@codesourcery.com>
7364         * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
7365         Workaround driver library const error.
7366         (struct nvptx_tdata, nvptx_tdata_t): New.
7367         (GOMP_OFFLOAD_load_image): Use struct for target_data's real
7368         type.
7370 2015-07-15  Maxim Blumenthal  <maxim.blumenthal@intel.com>
7372         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
7373         of EPS parameter from integer to real.
7374         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
7375         type of EPS parameter from integer to real.
7377 2015-07-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7379         * team.c (get_last_team): New.
7380         (gomp_new_team): Recycle last non-nested team if possible.
7381         (gomp_team_end): Move team work share list free lock destruction
7382         to ...
7383         (free_team): ... here.
7385 2015-07-14  Maxim Blumenthal  <maxim.blumenthal@intel.com>
7387         * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
7388         and ref from int to double.  Replaced their comparison with
7389         an inequality of their difference and EPS.
7390         * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
7391         comparison of pri and a reference number with an inequality of their
7392         difference and EPS.
7393         * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
7394         the comparison of sum and sum_ref with an inequality of their
7395         difference and EPS.
7396         * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
7397         the comparison of pri and a reference number with an inequality of
7398         their difference and EPS.
7400 2015-07-13  Maxim Blumenthal  <maxim.blumenthal@intel.com>
7402         * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
7403         * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
7404         * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
7405         * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
7406         * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
7407         * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
7408         * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
7409         * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
7410         * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
7411         * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
7412         * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
7413         * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
7414         (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
7415         variables.
7416         (vec_mult): Likewise.  Add #pragma omp taskwait.
7417         (main): Adjust caller.
7418         * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
7419         * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
7420         * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
7421         * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
7422         * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
7423         * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
7424         * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
7425         * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
7426         * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
7427         * testsuite/libgomp.c/examples-4/device-1.c: ...this.
7428         * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
7429         * testsuite/libgomp.c/examples-4/device-2.c: ...this.
7430         * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
7431         * testsuite/libgomp.c/examples-4/device-3.c: ...this.
7432         * testsuite/libgomp.c/examples-4/simd-1.c: New file.
7433         * testsuite/libgomp.c/examples-4/simd-2.c: New file.
7434         * testsuite/libgomp.c/examples-4/simd-3.c: New file.
7435         * testsuite/libgomp.c/examples-4/simd-4.c: New file.
7436         * testsuite/libgomp.c/examples-4/simd-5.c: New file.
7437         * testsuite/libgomp.c/examples-4/simd-6.c: New file.
7438         * testsuite/libgomp.c/examples-4/simd-7.c: New file.
7439         * testsuite/libgomp.c/examples-4/simd-8.c: New file.
7440         * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
7441         * testsuite/libgomp.c/examples-4/target-1.c: ...this.
7442         * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
7443         * testsuite/libgomp.c/examples-4/target-2.c: ...this.
7444         * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
7445         * testsuite/libgomp.c/examples-4/target-3.c: ...this.
7446         * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
7447         * testsuite/libgomp.c/examples-4/target-4.c: ...this.
7448         * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
7449         * testsuite/libgomp.c/examples-4/target-5.c: ...this.
7450         * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
7451         * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
7452         * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
7453         * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
7454         * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
7455         * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
7456         * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
7457         * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
7458         * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
7459         * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
7460         * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
7461         * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
7462         * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
7463         * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
7464         * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
7465         * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
7466         * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
7467         * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
7468         * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
7469         * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
7470         * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
7471         * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
7472         * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
7473         * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
7474         * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
7475         * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
7476         * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
7477         * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
7478         * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
7479         * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
7480         * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
7481         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
7482         * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
7483         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
7484         * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
7485         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
7486         * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
7487         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
7488         * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
7489         (vec_mult): Add !$omp taskwait.
7490         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
7491         * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
7492         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
7493         * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
7494         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
7495         * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
7496         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
7497         * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
7498         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
7499         * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
7500         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
7501         * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
7502         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
7503         * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
7504         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
7505         * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
7506         * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
7507         * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
7508         * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
7509         * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
7510         * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
7511         * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
7512         * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
7513         * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
7514         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
7515         * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
7516         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
7517         * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
7518         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
7519         * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
7520         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
7521         * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
7522         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
7523         * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
7524         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
7525         * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
7526         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
7527         * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
7528         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
7529         * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
7530         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
7531         * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
7532         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
7533         * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
7534         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
7535         * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
7536         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
7537         * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
7538         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
7539         * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
7540         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
7541         * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
7542         * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
7543         * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
7544         * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
7545         * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
7546         * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
7547         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
7548         * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
7549         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
7550         * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
7551         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
7552         * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
7553         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
7554         * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
7555         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
7556         * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
7558 2015-07-10  Tom de Vries  <tom@codesourcery.com>
7560         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
7561         * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
7563 2015-07-08  Thomas Schwinge  <thomas@codesourcery.com>
7565         PR libgomp/65099
7566         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
7567         in a 64-bit configuration.
7568         * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
7569         offloading testing if no such device is available.
7570         * testsuite/libgomp.oacc-c/c.exp: Likewise.
7571         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7573 2015-07-08  Tom de Vries  <tom@codesourcery.com>
7575         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
7576         second call to f.
7577         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7579 2015-07-07  Tom de Vries  <tom@codesourcery.com>
7581         PR tree-optimization/66642
7582         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
7583         iteration count case.
7584         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
7585         function, factor out of ...
7586         (main): ... here.  Test low iteration count case.
7588 2015-07-06  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7590         * libgomp.h (gomp_thread_pool): Comment last_team field.
7592 2015-07-02  Uros Bizjak  <ubizjak@gmail.com>
7594         * testsuite/libgomp.c++/pr66702-1.C: Require
7595         vect_simd_clones effective target.
7596         * testsuite/libgomp.c++/pr66702-2.C: Ditto.
7598 2015-06-30  Tom de Vries  <tom@codesourcery.com>
7600         * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7601         already set.  Use DEFAULT_CFLAGS in dg-runtest.
7602         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
7603         "-O2".
7605 2015-06-30  Tom de Vries  <tom@codesourcery.com>
7607         * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7608         already set.  Use DEFAULT_CFLAGS in dg-runtest.
7609         * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
7610         * testsuite/libgomp.c++/pr64824.C: Same.
7611         * testsuite/libgomp.c++/pr64868.C: Same.
7612         * testsuite/libgomp.c++/pr66199-1.C: Same.
7613         * testsuite/libgomp.c++/pr66199-2.C: Same.
7614         * testsuite/libgomp.c++/target-2.C: Same.
7615         * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
7616         -std=<standard> option.
7617         * testsuite/libgomp.c++/udr-11.C: Same.
7618         * testsuite/libgomp.c++/udr-12.C: Same.
7619         * testsuite/libgomp.c++/udr-13.C: Same.
7620         * testsuite/libgomp.c++/udr-14.C: Same.
7621         * testsuite/libgomp.c++/udr-15.C: Same.
7622         * testsuite/libgomp.c++/udr-16.C: Same.
7623         * testsuite/libgomp.c++/udr-17.C: Same.
7624         * testsuite/libgomp.c++/udr-18.C: Same.
7625         * testsuite/libgomp.c++/udr-19.C: Same.
7626         * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
7627         * testsuite/libgomp.c++/simd-1.C: Same.
7628         * testsuite/libgomp.c++/simd-2.C: Same.
7629         * testsuite/libgomp.c++/simd-3.C: Same.
7630         * testsuite/libgomp.c++/simd-4.C: Same.
7631         * testsuite/libgomp.c++/simd-5.C: Same.
7632         * testsuite/libgomp.c++/simd-6.C: Same.
7633         * testsuite/libgomp.c++/simd-7.C: Same.
7634         * testsuite/libgomp.c++/simd-8.C: Same.
7635         * testsuite/libgomp.c++/simd-9.C: Same.
7636         * testsuite/libgomp.c++/simd10.C: Same.
7637         * testsuite/libgomp.c++/simd11.C: Same.
7638         * testsuite/libgomp.c++/simd12.C: Same.
7639         * testsuite/libgomp.c++/simd13.C: Same.
7641 2015-06-30  Jakub Jelinek  <jakub@redhat.com>
7643         PR middle-end/66702
7644         * testsuite/libgomp.c++/pr66702-1.C: New test.
7645         * testsuite/libgomp.c++/pr66702-2.C: New test.
7647 2015-06-30  Tom de Vries  <tom@codesourcery.com>
7649         * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
7650         * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
7651         * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
7652         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
7654 2015-06-30  Tom de Vries  <tom@codesourcery.com>
7656         PR tree-optimization/66652
7657         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
7658         using restrict pointers.
7659         (main): Add arguments to calls to f.
7660         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7662 2015-06-23  Andreas Tobler  <andreast@gcc.gnu.org>
7664         * configure.ac: Fix check for header <sys/sysctl.h>.
7665         * configure: Regenerate.
7666         * config.h.in: Likewise.
7668 2015-06-23  Tom de Vries  <tom@codesourcery.com>
7670         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
7671         abort.
7672         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
7674 2015-06-19  Thomas Schwinge  <thomas@codesourcery.com>
7676         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
7677         acc_device_nvidia.
7679         PR libgomp/66518
7680         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
7681         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7683 2015-06-15  Tom de Vries  <tom@codesourcery.com>
7685         * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2".  Use
7686         dg-additional-options for any remaining options.
7687         * testsuite/libgomp.c/atomic-2.c: Same.
7688         * testsuite/libgomp.c/atomic-4.c: Same.
7689         * testsuite/libgomp.c/atomic-5.c: Same.
7690         * testsuite/libgomp.c/atomic-6.c: Same.
7691         * testsuite/libgomp.c/autopar-1.c: Same.
7692         * testsuite/libgomp.c/copyin-1.c: Same.
7693         * testsuite/libgomp.c/copyin-2.c: Same.
7694         * testsuite/libgomp.c/copyin-3.c: Same.
7695         * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
7696         * testsuite/libgomp.c/nestedfn-5.c: Same.
7697         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
7698         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
7699         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
7700         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7701         * testsuite/libgomp.c/pr32362-1.c: Same.
7702         * testsuite/libgomp.c/pr32362-2.c: Same.
7703         * testsuite/libgomp.c/pr32362-3.c: Same.
7704         * testsuite/libgomp.c/pr39591-1.c: Same.
7705         * testsuite/libgomp.c/pr39591-2.c: Same.
7706         * testsuite/libgomp.c/pr39591-3.c: Same.
7707         * testsuite/libgomp.c/pr58392.c: Same.
7708         * testsuite/libgomp.c/pr58756.c: Same.
7709         * testsuite/libgomp.c/simd-1.c: Same.
7710         * testsuite/libgomp.c/simd-10.c: Same.
7711         * testsuite/libgomp.c/simd-11.c: Same.
7712         * testsuite/libgomp.c/simd-12.c: Same.
7713         * testsuite/libgomp.c/simd-13.c: Same.
7714         * testsuite/libgomp.c/simd-14.c: Same.
7715         * testsuite/libgomp.c/simd-15.c: Same.
7716         * testsuite/libgomp.c/simd-2.c: Same.
7717         * testsuite/libgomp.c/simd-3.c: Same.
7718         * testsuite/libgomp.c/simd-4.c: Same.
7719         * testsuite/libgomp.c/simd-5.c: Same.
7720         * testsuite/libgomp.c/simd-6.c: Same.
7721         * testsuite/libgomp.c/simd-7.c: Same.
7722         * testsuite/libgomp.c/simd-8.c: Same.
7723         * testsuite/libgomp.c/simd-9.c: Same.
7725 2015-06-15  Tom de Vries  <tom@codesourcery.com>
7727         * testsuite/libgomp.c/pr35625.c: Fix typo.
7729 2015-06-15  Tom de Vries  <tom@codesourcery.com>
7731         * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
7732         in dg-options.
7733         * testsuite/libgomp.c/atomic-3.c: Same.
7734         * testsuite/libgomp.c/debug-1.c: Same.
7735         * testsuite/libgomp.c/nqueens-1.c: Same.
7736         * testsuite/libgomp.c/pr26171.c: Same.
7737         * testsuite/libgomp.c/pr48591.c: Same.
7738         * testsuite/libgomp.c/pr64824.c: Same.
7739         * testsuite/libgomp.c/pr64868.c: Same.
7740         * testsuite/libgomp.c/pr66133.c: Same.
7741         * testsuite/libgomp.c/pr66199-1.c: Same.
7742         * testsuite/libgomp.c/pr66199-2.c: Same.
7743         * testsuite/libgomp.c/target-8.c: Same.
7745 2015-06-15  Tom de Vries  <tom@codesourcery.com>
7747         * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
7748         -std={gnu99,c99}.
7749         * testsuite/libgomp.c/for-1.c: Same.
7750         * testsuite/libgomp.c/for-2.c: Same.
7751         * testsuite/libgomp.c/for-3.c: Same.
7752         * testsuite/libgomp.c/pr35625.c: Same.
7753         * testsuite/libgomp.c/pr39154.c: Same.
7754         * testsuite/libgomp.c/simd-16.c: Same.
7755         * testsuite/libgomp.c/simd-17.c: Same.
7757 2015-06-13  Tom de Vries  <tom@codesourcery.com>
7759         * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
7761 2015-06-13  Tom de Vries  <tom@codesourcery.com>
7763         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
7764         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7765         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
7766         (N): Define.
7767         (main): Use N instead of hardcoded constants.
7769 2015-06-05  Tom de Vries  <tom@codesourcery.com>
7771         merge from gomp4 branch:
7772         2015-05-28  Tom de Vries  <tom@codesourcery.com>
7774         PR tree-optimization/65443
7775         * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
7776         * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
7777         * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
7779 2015-05-29  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7781         * testsuite/libgomp.graphite/bounds.c: Adjust for
7782         cleanup-tree-dump removal.
7783         * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
7784         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7785         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7786         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7787         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7788         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7789         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7790         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7791         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7792         * testsuite/libgomp.graphite/pr41118.c: Likewise.
7794 2015-05-28  Uros Bizjak  <ubizjak@gmail.com>
7796         * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
7797         (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
7798         (futex_wake) [!__x86_64__]: Ditto.
7800 2015-05-28  Julian Brown  <julian@codesourcery.com>
7802         * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
7803         function comment. Only call gomp_fatal if new argument is true.
7804         (acc_dev_num_out_of_range): New function.
7805         (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
7806         acc_dev_num_out_of_range as appropriate.
7807         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7808         (acc_get_device_num, acc_set_device_num): Update calls to
7809         resolve_device.
7810         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
7811         output.
7813 2015-05-28  Julian Brown  <julian@codesourcery.com>
7815         PR libgomp/65742
7816         * oacc-init.c (plugin/plugin-host.h): Include.
7817         (acc_on_device): Check whether we're in an offloaded region for
7818         host_nonshm
7819         plugin. Don't use __builtin_acc_on_device.
7820         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
7821         nonshm_exec flag in thread-local data.
7822         (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
7823         data for host_nonshm plugin.
7824         (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
7825         for host_nonshm plugin.
7826         * plugin/plugin-host.h: New.
7828 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
7830         * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
7832 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
7834         * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
7835         Declare as int.
7836         (FUTEX_PRIVATE_FLAG): Remove L suffix.
7837         * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
7838         Declare as int.
7840 2015-05-27  Uros Bizjak  <ubizjak@gmail.com>
7842         * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
7844 2015-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
7846         * target.c (gomp_map_pointer): New function abstracting out
7847         GOMP_MAP_POINTER handling.
7848         (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
7849         gomp_map_pointer().
7851 2015-05-19  Jakub Jelinek  <jakub@redhat.com>
7853         PR middle-end/66199
7854         * testsuite/libgomp.c/pr66199-1.c: New test.
7855         * testsuite/libgomp.c/pr66199-2.c: New test.
7856         * testsuite/libgomp.c++/pr66199-1.C: New test.
7857         * testsuite/libgomp.c++/pr66199-2.C: New test.
7858         * testsuite/libgomp.fortran/pr66199-1.f90: New test.
7859         * testsuite/libgomp.fortran/pr66199-2.f90: New test.
7861 2015-05-19  Julian Brown  <julian@codesourcery.com>
7863         * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
7864         on cuInit failure.
7866 2015-05-13  Jakub Jelinek  <jakub@redhat.com>
7868         PR middle-end/66133
7869         * testsuite/libgomp.c/pr66133.c: New test.
7871 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
7873         * Makefile.in: Regenerated with automake-1.11.6.
7874         * aclocal.m4: Likewise.
7875         * config.h.in: Likewise.
7876         * configure: Likewise.
7877         * testsuite/Makefile.in: Likewise.
7879 2015-05-08  Jason Merrill  <jason@redhat.com>
7881         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
7882         _Complex.
7884         * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
7886 2015-05-06  Julian Brown  <julian@codesourcery.com>
7888         * oacc-init.c (acc_device_lock): Add explanatory comment.
7889         (resolve_device): Add comment about locking requirement.
7890         (acc_init_1, acc_shutdown_1): Likewise. Add locking around
7891         gomp_init_device and gomp_fini_device calls.
7892         (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7893         (acc_get_device_num, acc_set_device_num): Add locking around
7894         resolve_device and gomp_init_device calls.
7896 2015-05-06  Julian Brown  <julian@codesourcery.com>
7898         * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
7899         goacc_thread_lock on error paths.
7900         * oacc-mem.c (lookup_host): Remove locking from function. Note
7901         locking requirement for caller in function comment.
7902         (lookup_dev): Likewise.
7903         (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
7904         (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
7905         (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7906         Add locking.
7908 2015-05-05  Thomas Schwinge  <thomas@codesourcery.com>
7910         PR testsuite/65205
7911         PR libgomp/65993
7912         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
7913         don't expect "0x" prefix for "%p" format specifier, don't expect
7914         "(nil)" for NULL pointer.
7915         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7916         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7917         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7918         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7919         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7920         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7921         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7922         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7923         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7924         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7925         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7926         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7927         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7928         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7929         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7930         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7931         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7932         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7933         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7934         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7935         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7936         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7937         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7938         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7939         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7940         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7941         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7942         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7943         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
7944         accurately specify what we're looking for.
7945         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7946         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7947         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7948         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7949         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7951 2015-04-30  James Norris  <jnorris@codesourcery.com>
7953         PR testsuite/65205
7954         * testsuite/lib/libgomp.exp
7955         (check_effective_target_openacc_host_selected)
7956         (check_effective_target_openacc_host_nonshm_selected): New
7957         procedures.
7958         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
7959         dg-shouldfail.
7960         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7961         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7962         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7963         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7964         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7965         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7966         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7967         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7968         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7969         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7970         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7971         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7972         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7973         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7974         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7975         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7976         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7977         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7978         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7979         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7980         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7981         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7982         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7983         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7984         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7985         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7986         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7987         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7988         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7989         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7990         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7991         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7992         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7993         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7994         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7995         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7996         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7997         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7998         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7999         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8000         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8001         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8002         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8004 2015-04-08  Julian Brown  <julian@codesourcery.com>
8006         * libgomp.h (target_mem_desc: Remove mem_map field.
8007         (acc_dispatch_t): Remove open_device_func, close_device_func,
8008         get_device_num_func, set_device_num_func, target_data members.
8009         Change create_thread_data_func argument to device number instead of
8010         generic pointer.
8011         * oacc-async.c (assert.h): Include.
8012         (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
8013         (acc_wait_all, acc_wait_all_async): Use current host thread's
8014         active device, not base_dev.
8015         * oacc-cuda.c (acc_get_current_cuda_device)
8016         (acc_get_current_cuda_context, acc_get_cuda_stream)
8017         (acc_set_cuda_stream): Likewise.
8018         * oacc-host.c (host_dispatch): Don't set open_device_func,
8019         close_device_func, get_device_num_func or set_device_num_func.
8020         * oacc-init.c (base_dev, init_key): Remove.
8021         (cached_base_dev): New.
8022         (name_of_acc_device_t): New.
8023         (acc_init_1): Initialise default-numbered device, not zeroth.
8024         (acc_shutdown_1): Close all devices of a given type.
8025         (goacc_destroy_thread): Don't use base_dev.
8026         (lazy_open, lazy_init, lazy_init_and_open): Remove.
8027         (goacc_attach_host_thread_to_device): New.
8028         (acc_init): Reimplement with goacc_attach_host_thread_to_device.
8029         (acc_get_num_devices): Don't use base_dev.
8030         (acc_set_device_type): Reimplement.
8031         (acc_get_device_type): Don't use base_dev.
8032         (acc_get_device_num): Tweak logic.
8033         (acc_set_device_num): Likewise.
8034         (acc_on_device): Use acc_get_device_type.
8035         (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
8036         (goacc_lazy_initialize): Reimplement with acc_init and
8037         goacc_attach_host_thread_to_device.
8038         * oacc-int.h (goacc_thread): Add base_dev field.
8039         (base_dev): Remove extern declaration.
8040         (goacc_attach_host_thread_to_device): Add prototype.
8041         * oacc-mem.c (acc_malloc): Use current thread's device instead of
8042         base_dev.
8043         (acc_free): Likewise.
8044         (acc_memcpy_to_device): Likewise.
8045         (acc_memcpy_from_device): Likewise.
8046         * oacc-parallel.c (select_acc_device): Remove. Replace calls with
8047         goacc_lazy_initialize (throughout).
8048         (GOACC_parallel): Use tgt_offset to locate target functions.
8049         * target.c (gomp_map_vars): Don't set tgt->mem_map.
8050         (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
8051         (gomp_load_plugin_for_device): Remove open_device, close_device,
8052         get_device_num, set_device_num openacc hook initialisation. Don't set
8053         openacc.target_data.
8054         * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
8055         (GOMP_OFFLOAD_openacc_close_device)
8056         (GOMP_OFFLOAD_openacc_get_device_num)
8057         (GOMP_OFFLOAD_openacc_set_device_num): Remove.
8058         (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
8059         to int.
8060         * plugin/plugin-nvptx.c (ptx_inited): Remove.
8061         (instantiated_devices, ptx_dev_lock): New.
8062         (struct ptx_image_data): New.
8063         (ptx_devices, ptx_images, ptx_image_lock): New.
8064         (fini_streams_for_device): Reorder cuStreamDestroy call.
8065         (nvptx_get_num_devices): Remove forward declaration.
8066         (nvptx_init): Change return type to bool.
8067         (nvptx_fini): Remove.
8068         (nvptx_attach_host_thread_to_device): New.
8069         (nvptx_open_device): Return struct ptx_device* instead of void*.
8070         (nvptx_close_device): Change argument type to struct ptx_device*,
8071         return type to void.
8072         (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
8073         (kernel_target_data, kernel_host_table): Remove static globals.
8074         (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
8075         (GOMP_OFFLOAD_init_device): Reimplement.
8076         (GOMP_OFFLOAD_fini_device): Likewise.
8077         (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
8078         (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
8079         (GOMP_OFFLOAD_host2dev): Use ORD argument.
8080         (GOMP_OFFLOAD_openacc_open_device)
8081         (GOMP_OFFLOAD_openacc_close_device)
8082         (GOMP_OFFLOAD_openacc_set_device_num)
8083         (GOMP_OFFLOAD_openacc_get_device_num): Remove.
8084         (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
8085         (device number).
8087         testsuite/
8088         * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
8090 2015-04-06  Ilya Verbin  <ilya.verbin@intel.com>
8092         * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
8093         * libgomp.h (struct gomp_memory_mapping): Remove.
8094         (struct target_mem_desc): Change type of mem_map from
8095         gomp_memory_mapping * to splay_tree_s *.
8096         (struct gomp_device_descr): Remove register_image_func, get_table_func.
8097         Add load_image_func, unload_image_func.
8098         Change type of mem_map from gomp_memory_mapping to splay_tree_s.
8099         Remove offload_regions_registered.
8100         (gomp_init_tables): Remove.
8101         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8102         to splay_tree_s *.
8103         * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
8104         * oacc-host.c (host_dispatch): Do not initialize register_image_func,
8105         get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
8106         offload_regions_registered.
8107         Initialize load_image_func, unload_image_func, mem_map.root.
8108         (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
8109         * oacc-init.c (lazy_open): Don't call gomp_init_tables.
8110         (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
8111         * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
8112         gomp_memory_mapping *.  Use dev's lock and splay_tree.
8113         (lookup_dev): Use dev's lock.
8114         (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
8115         (acc_is_present): Likewise.
8116         (acc_map_data): Likewise.
8117         (acc_unmap_data): Likewise.  Use dev's lock.
8118         (present_create_copy): Likewise.
8119         (delete_copyout): Pass dev to lookup_host instead of mem_map.
8120         (update_dev_host): Likewise.
8121         (gomp_acc_remove_pointer): Likewise.  Use dev's lock.
8122         * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
8123         * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
8124         (GOMP_OFFLOAD_get_table): Remove
8125         (GOMP_OFFLOAD_load_image): New function.
8126         (GOMP_OFFLOAD_unload_image): New function.
8127         * target.c (register_lock): New mutex for offload image registration.
8128         (num_devices): Do not guard with PLUGIN_SUPPORT.
8129         (gomp_realloc_unlock): New static function.
8130         (gomp_map_vars_existing): Add device descriptor argument.  Unlock mutex
8131         before gomp_fatal.
8132         (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
8133         Pass devicep to gomp_map_vars_existing.  Unlock mutex before gomp_fatal.
8134         (gomp_copy_from_async): Use dev's lock and splay_tree instead of
8135         mem_map's.
8136         (gomp_unmap_vars): Likewise.
8137         (gomp_update): Remove gomp_memory_mapping argument.  Use dev's lock and
8138         splay_tree instead of mm's.  Unlock mutex before gomp_fatal.
8139         (gomp_offload_image_to_device): New static function.
8140         (GOMP_offload_register): Add mutex lock.
8141         Call gomp_offload_image_to_device for all initialized devices.
8142         Replace gomp_realloc with gomp_realloc_unlock.
8143         (GOMP_offload_unregister): New function.
8144         (gomp_init_tables): Replace with gomp_init_device.  Replace a call to
8145         get_table_func from the plugin with calls to init_device_func and
8146         gomp_offload_image_to_device.
8147         (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8148         to splay_tree_s *.
8149         (GOMP_target): Do not call gomp_init_tables.  Use dev's lock and
8150         splay_tree instead of mem_map's.  Unlock mutex before gomp_fatal.
8151         (GOMP_target_data): Do not call gomp_init_tables.
8152         (GOMP_target_update): Likewise.  Remove argument from gomp_update.
8153         (gomp_load_plugin_for_device): Replace register_image and get_table
8154         with load_image and unload_image in DLSYM ().
8155         (gomp_register_images_for_device): Remove function.
8156         (gomp_target_init): Do not initialize current_device.mem_map.*,
8157         current_device.offload_regions_registered.
8158         Remove call to gomp_register_images_for_device.
8159         Do not free offload_images and num_offload_images.
8161 2015-03-30  Jakub Jelinek  <jakub@redhat.com>
8163         PR fortran/65597
8164         * testsuite/libgomp.fortran/pr65597.f90: New test.
8166 2015-03-27  Tom de Vries  <tom@codesourcery.com>
8168         PR testsuite/65594
8169         * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
8170         (init, check): New function.
8171         (foo): Change return type to void.
8172         (main): Call init and check.
8174 2015-03-27  Tom de Vries  <tom@codesourcery.com>
8176         PR testsuite/65594
8177         * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
8178         (foo): Use M for non-inner loops to scale down test-case.
8180 2015-03-25  Kai Tietz  <ktietz@redhat.com>
8182         PR libgomp/64972
8183         * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
8184         (GOACC_data_start): Likewise.
8185         * target.c (gomp_map_vars): Likewise.
8187 2015-03-21  John David Anglin  <danglin@gcc.gnu.org>
8189         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
8190         hppa*-*-hpux*.
8192 2015-03-19  Jakub Jelinek  <jakub@redhat.com>
8194         * testsuite/libgomp.c/target-10.c: New test.
8195         * testsuite/libgomp.c++/target-4.C: New test.
8197 2015-03-13  Ilya Verbin  <ilya.verbin@intel.com>
8199         * testsuite/libgomp.fortran/declare-target-1.f90: New test.
8200         * testsuite/libgomp.fortran/declare-target-2.f90: New file.
8202 2015-03-13  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8204         * configure.tgt (*-*-rtems*): Use local-exec TLS model.
8205         * configure.ac (*-*-rtems*): Assume Pthread is supported.
8206         (pthread.h): Check for this header file.
8207         * configure: Regenerate.
8209 2015-02-25  Tom de Vries  <tom@codesourcery.com>
8211         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
8212         (check_reduction_op, check_reduction_macro, max, min):
8213         Declare.
8214         (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
8215         function.
8216         (main): Use new functions.
8218 2015-02-18  Ilya Tocar  <ilya.tocar@intel.com>
8220         * target.c (gomp_load_plugin_for_device): Use const char * instead of
8221         char * for variables holding dlerror return values.
8222         (DLSYM_OPT): Ditto.
8224 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
8226         * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
8228 2015-02-17  Thomas Schwinge  <thomas@codesourcery.com>
8229             Cesar Philippidis  <cesar@codesourcery.com>
8231         * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
8232         GOACC_ctaid, and GOACC_nctaid routines.
8234 2015-02-11  Jakub Jelinek  <jakub@redhat.com>
8236         PR c/64824
8237         * testsuite/libgomp.c/atomic-18.c: New test.
8238         * testsuite/libgomp.c++/atomic-16.C: New test.
8240 2015-02-04  Jakub Jelinek  <jakub@redhat.com>
8242         PR c/64824
8243         PR c/64868
8244         * testsuite/libgomp.c/pr64824.c: New test.
8245         * testsuite/libgomp.c/pr64868.c: New test.
8246         * testsuite/libgomp.c++/pr64824.C: New test.
8247         * testsuite/libgomp.c++/pr64868.C: New test.
8249 2015-02-01  David Edelsohn  <dje.gcc@gmail.com>
8251         PR libgomp/64635
8252         * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
8253         Link with -lpthread.
8254         * config/aix/plugin-suffix.h: Delete.
8256 2015-01-28  Jack Howarth  <howarth.at.gcc@gmail.com>
8258         PR libgomp/64635
8259         * configure.tgt (*-*-aix*): Use config_path "aix posix".
8260         (*-*-darwin*): Use config_path "bsd darwin posix".
8261         (*-*-hpux*): Use config_path "hpux posix".
8262         * target.c: Add include of plugin-suffix.h and use
8263         SONAME_SUFFIX macro.
8264         * config/aix/plugin-suffix.h: New file.
8265         * config/darwin/plugin-suffix.h: New file.
8266         * config/hpux/plugin-suffix.h: New file.
8267         * config/posix/plugin-suffix.h: New file.
8269 2015-01-23  Jakub Jelinek  <jakub@redhat.com>
8271         PR middle-end/64734
8272         * libgomp.c/pr64734.c: New test.
8274 2015-01-23  Tom de Vries  <tom@codesourcery.com>
8276         PR libgomp/64672
8277         * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
8279 2015-01-23  Tom de Vries  <tom@codesourcery.com>
8281         PR libgomp/64707
8282         * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
8283         dg-options.
8285 2015-01-19  Thomas Schwinge  <thomas@codesourcery.com>
8287         PR libgomp/64625
8288         * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
8289         (GOACC_parallel, GOACC_update): Remove const_void *offload_table
8290         formal parameter.  Update all users.
8291         * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
8292         Document unused formal parameter.
8294 2015-01-16  Thomas Schwinge  <thomas@codesourcery.com>
8296         * oacc-parallel.c: Don't include <alloca.h>.
8297         (GOACC_parallel): Use gomp_alloca instead of alloca.
8299 2015-01-16  Gerald Pfeifer  <gerald@pfeifer.com>
8301         * target.c (num_devices): Guard with PLUGIN_SUPPORT.
8303 2015-01-15  Thomas Schwinge  <thomas@codesourcery.com>
8304             James Norris  <jnorris@codesourcery.com>
8305             Tom de Vries  <tom@codesourcery.com>
8306             Julian Brown  <julian@codesourcery.com>
8307             Cesar Philippidis  <cesar@codesourcery.com>
8308             Nathan Sidwell  <nathan@codesourcery.com>
8309             Tobias Burnus  <burnus@net-b.de>
8311         * Makefile.am (search_path): Add $(top_srcdir)/../include.
8312         (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
8313         oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
8314         oacc-async.c, oacc-plugin.c, oacc-cuda.c.
8315         [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
8316         Include $(top_srcdir)/plugin/Makefrag.am.
8317         (nodist_libsubinclude_HEADERS): Add openacc.h.
8318         [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
8319         openacc.f90, openacc.mod, openacc_kinds.mod.
8320         (omp_lib.mod): Generalize into...
8321         (%.mod): ... this new rule.
8322         (openacc_kinds.mod, openacc.mod): New rules.
8323         * plugin/configfrag.ac: New file.
8324         * configure.ac: Move plugin/offloading support into it.  Include
8325         it.  Instantiate testsuite/libgomp-test-support.pt.exp.
8326         * plugin/Makefrag.am: New file.
8327         * testsuite/Makefile.am (OFFLOAD_TARGETS)
8328         (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
8329         export.
8330         (libgomp-test-support.exp): New rule.
8331         (all-local): Depend on it.
8332         * Makefile.in: Regenerate.
8333         * testsuite/Makefile.in: Regenerate.
8334         * config.h.in: Likewise.
8335         * configure: Likewise.
8336         * configure.tgt: Harden shell syntax.
8337         * env.c: Include "oacc-int.h".
8338         (parse_acc_device_type): New function.
8339         (gomp_debug_var, goacc_device_type, goacc_device_num): New
8340         variables.
8341         (initialize_env): Initialize those.  Call
8342         goacc_runtime_initialize.
8343         * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
8344         (gomp_fatal): Call gomp_vfatal.
8345         * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
8346         (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
8347         (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
8348         (splay_tree_node, splay_tree, splay_tree_key)
8349         (struct target_mem_desc, struct splay_tree_key_s)
8350         (struct gomp_memory_mapping, struct acc_dispatch_t)
8351         (struct gomp_device_descr, gomp_acc_insert_pointer)
8352         (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
8353         (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
8354         (gomp_free_memmap, gomp_fini_device): New declarations.
8355         (gomp_vdebug, gomp_debug): New macros.
8356         Include "splay-tree.h".
8357         * libgomp.map (OACC_2.0): New symbol version.  Use for
8358         acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
8359         acc_set_device_type_h_, acc_get_device_type,
8360         acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
8361         acc_get_device_num, acc_get_device_num_h_, acc_async_test,
8362         acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
8363         acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
8364         acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
8365         acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
8366         acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
8367         acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
8368         acc_copyin_array_h_, acc_present_or_copyin,
8369         acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
8370         acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
8371         acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
8372         acc_present_or_create_32_h_, acc_present_or_create_64_h_,
8373         acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
8374         acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
8375         acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
8376         acc_update_device, acc_update_device_32_h_,
8377         acc_update_device_64_h_, acc_update_device_array_h_,
8378         acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
8379         acc_update_self_array_h_, acc_map_data, acc_unmap_data,
8380         acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
8381         acc_is_present_64_h_, acc_is_present_array_h_,
8382         acc_memcpy_to_device, acc_memcpy_from_device,
8383         acc_get_current_cuda_device, acc_get_current_cuda_context,
8384         acc_get_cuda_stream, acc_set_cuda_stream.
8385         (GOACC_2.0): New symbol version.  Use for GOACC_data_end,
8386         GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
8387         GOACC_update, GOACC_wait, GOACC_get_thread_num,
8388         GOACC_get_num_threads.
8389         (GOMP_PLUGIN_1.0): New symbol version.  Use for
8390         GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
8391         GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
8392         GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
8393         GOMP_PLUGIN_acc_thread.
8394         * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
8395         environment variable.
8396         * libgomp_g.h (GOACC_data_start, GOACC_data_end)
8397         (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
8398         (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
8399         * splay-tree.h (splay_tree_lookup, splay_tree_insert)
8400         (splay_tree_remove): New declarations.
8401         (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
8402         (splay_tree_remove, splay_tree_lookup): Move into...
8403         * splay-tree.c: ... this new file.
8404         * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
8405         (splay_tree_node, splay_tree, splay_tree_key)
8406         (struct target_mem_desc, struct splay_tree_key_s)
8407         (struct gomp_device_descr): Don't declare.
8408         (num_devices_openmp): New variable.
8409         (gomp_get_num_devices ): Use it.
8410         (gomp_init_targets_once): New function.
8411         (gomp_get_num_devices ): Use it.
8412         (get_kind, gomp_copy_from_async, gomp_free_memmap)
8413         (gomp_fini_device, gomp_register_image_for_device): New functions.
8414         (gomp_map_vars): Add devaddrs parameter.
8415         (gomp_update): Add mm parameter.
8416         (gomp_init_device): Move most of it into...
8417         (gomp_init_tables): ... this new function.
8418         (gomp_register_images_for_device): Remove function.
8419         (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
8420         Make them hidden instead of static.
8421         (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
8422         (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
8423         (GOMP_target_end_data, GOMP_target_update)
8424         (gomp_load_plugin_for_device, gomp_target_init): Update for
8425         OpenACC changes.
8426         * oacc-async.c: New file.
8427         * oacc-cuda.c: Likewise.
8428         * oacc-host.c: Likewise.
8429         * oacc-init.c: Likewise.
8430         * oacc-int.h: Likewise.
8431         * oacc-mem.c: Likewise.
8432         * oacc-parallel.c: Likewise.
8433         * oacc-plugin.c: Likewise.
8434         * oacc-plugin.h: Likewise.
8435         * oacc-ptx.h: Likewise.
8436         * openacc.f90: Likewise.
8437         * openacc.h: Likewise.
8438         * openacc_lib.h: Likewise.
8439         * plugin/plugin-host.c: Likewise.
8440         * plugin/plugin-nvptx.c: Likewise.
8441         * libgomp-plugin.c: Likewise.
8442         * libgomp-plugin.h: Likewise.
8443         * libgomp_target.h: Remove file after merging content into the
8444         former file.  Update all users.
8445         * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
8446         (offload_targets_s, offload_targets_s_openacc): New variables.
8447         (check_effective_target_openacc_nvidia_accel_present)
8448         (check_effective_target_openacc_nvidia_accel_selected): New
8449         procedures.
8450         (libgomp_init): Update for OpenACC changes.
8451         * testsuite/libgomp-test-support.exp.in: New file.
8452         * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
8453         * testsuite/libgomp.oacc-c/c.exp: Likewise.
8454         * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8455         * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
8456         * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
8457         * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
8458         * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
8459         * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
8460         * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8461         * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
8462         * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
8463         * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
8464         * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
8465         * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8466         * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
8467         * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8468         * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8469         * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8470         * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8471         * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8472         * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
8473         * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8474         * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8475         * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
8476         * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8477         * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8478         * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8479         * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8480         * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8481         * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8482         * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8483         * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8484         * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8485         * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
8486         * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
8487         * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8488         * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
8489         * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8490         * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
8491         * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8492         * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8493         * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8494         * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8495         * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8496         * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8497         * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
8498         * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8499         * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8500         * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8501         * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8502         * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8503         * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8504         * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8505         * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8506         * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8507         * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8508         * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8509         * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8510         * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8511         * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
8512         * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8513         * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
8514         * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8515         * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8516         * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8517         * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
8518         * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
8519         * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8520         * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8521         * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8522         * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
8523         * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8524         * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8525         * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8526         * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
8527         * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
8528         * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8529         * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8530         * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
8531         * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
8532         * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
8533         * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
8534         * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8535         * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8536         * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8537         * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
8538         * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
8539         * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8540         * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8541         * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
8542         * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
8543         * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
8544         * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
8545         * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8546         * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8547         * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8548         * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8549         * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
8550         * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8551         * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8552         * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
8553         * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
8554         * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
8555         * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8556         * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
8557         * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
8558         * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
8559         * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
8560         * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
8561         * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8562         * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
8563         * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8564         * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8565         * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
8566         * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8567         * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8568         * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
8569         * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8570         * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
8571         * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
8572         * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
8573         * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
8574         * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
8575         * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
8576         * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8577         * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
8578         * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8579         * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
8580         * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
8581         * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
8582         * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
8583         * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
8584         * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8585         * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
8586         * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
8587         * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8588         * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8589         * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8590         * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8591         * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
8592         Likewise.
8593         * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
8594         * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
8595         * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
8596         * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8597         * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
8598         * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8599         * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8600         * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8601         * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8602         * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8603         * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8604         * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8605         * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8606         * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
8607         * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8608         * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
8609         * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
8610         * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
8611         * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
8612         * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
8613         * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
8614         * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8615         * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8616         * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
8617         * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
8618         * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
8619         * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8620         * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8621         * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8622         * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8623         * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8624         * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8625         * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8626         * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8627         * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
8628         * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
8629         * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
8630         * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
8631         * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
8632         * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
8633         * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
8634         * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
8635         * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
8636         * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
8637         * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
8638         * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8639         * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
8640         * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
8641         * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
8642         * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8643         * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8644         * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8645         * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8646         * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8647         * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
8648         * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
8649         * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
8650         * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
8651         * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
8652         * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
8654 2015-01-10  Thomas Schwinge  <thomas@codesourcery.com>
8655             Julian Brown  <julian@codesourcery.com>
8656             David Malcolm  <dmalcolm@redhat.com>
8658         * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
8659         to "GNU Offloading and Multi Processing Runtime Library".  Change
8660         all users.
8661         * configure: Regenerate.
8662         * libgomp.texi: Update.
8664 2015-01-08  Thomas Schwinge  <thomas@codesourcery.com>
8666         * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
8667         "$tgt_dir/lib32".
8668         * configure: Regenerate.
8670         * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
8671         "intelmic" in $offload_targets.
8673 2015-01-05  Jakub Jelinek  <jakub@redhat.com>
8675         Update copyright years.
8677         * libgomp.texi: Bump @copying's copyright year.
8679 2014-12-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8681         * testsuite/lib/libgomp.exp: Load target-utils.exp.
8682         Move load of target-supports.exp earlier.
8684 2014-12-10  Ilya Verbin  <ilya.verbin@intel.com>
8686         * testsuite/libgomp.c/target-9.c: New test.
8688 2014-12-09  Varvara Rainchik  <varvara.rainchik@intel.com>
8690         * config.h.in: Regenerate.
8691         * configure: Regenerate.
8692         * configure.ac: Add GCC_CHECK_EMUTLS.
8693         * libgomp.h: Add check for USE_EMUTLS: this case
8694         is equal to HAVE_TLS.
8695         * team.c: Likewise.
8697 2014-12-03  Uros Bizjak  <ubizjak@gmail.com>
8699         * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
8701 2014-11-28  Andrey Turetskiy  <andrey.turetskiy@intel.com>
8702             Ilya Verbin  <ilya.verbin@intel.com>
8704         * testsuite/libgomp.c/target-critical-1.c: New test.
8706 2014-11-26  Jakub Jelinek  <jakub@redhat.com>
8708         * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
8709         to dg-options unless expensive testing is on.
8710         (TESTITERS): Define to N if not defined.
8711         (main): Use TESTITERS instead of N.
8712         * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
8713         dg-additional-options depending on whether expensive testing is on.
8714         * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
8715         Decrease N to 100000 and CHUNKSZ to 10000.
8717 2014-11-24  Jakub Jelinek  <jakub@redhat.com>
8719         PR fortran/63938
8720         * testsuite/libgomp.fortran/pr63938-1.f90: New test.
8721         * testsuite/libgomp.fortran/pr63938-2.f90: New test.
8723 2014-11-21  Steve Ellcey  <sellcey@imgtec.com>
8725         * config/linux/mips/futex.h (SYS_futex): Define if not already done.
8727 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
8729         PR bootstrap/63784
8730         * configure: Regenerated.
8732 2014-11-19  Uros Bizjak  <ubizjak@gmail.com>
8734         * testsuite/libgomp.c/examples-4/e.53.5.c: Require
8735         vect_simd_clones effective target.
8736         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8738 2014-11-14  Jakub Jelinek  <jakub@redhat.com>
8740         * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
8741         of 32 as block_size.
8742         * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
8743         instead of 32 as block_size.
8745 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
8746             Ilya Verbin  <ilya.verbin@intel.com>
8748         * Makefile.in: Regenerate.
8749         * configure: Regenerate.
8750         * configure.ac: Set up offload_additional_options,
8751         offload_additional_lib_paths and offload_targets.
8752         * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
8753         OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
8754         * testsuite/Makefile.in: Regenerate.
8755         * testsuite/lib/libgomp.exp (libgomp_init): Append
8756         offload_additional_lib_paths to LD_LIBRARY_PATH.  Append
8757         offload_additional_options to ALWAYS_CFLAGS.  Append liboffloadmic
8758         build directory to LD_LIBRARY_PATH for intelmic offload targets.
8760 2014-11-13  Andrey Turetskiy  <andrey.turetskiy@intel.com>
8761             Ilya Verbin  <ilya.verbin@intel.com>
8762             Kirill Yukhin  <kirill.yukhin@intel.com>
8763             Ilya Tocar  <ilya.tocar@intel.com>
8765         * testsuite/lib/libgomp.exp
8766         (check_effective_target_offload_device): New.
8767         * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
8768         * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
8769         * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
8770         * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
8771         * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
8772         * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
8773         * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
8774         * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
8775         * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
8776         * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
8777         * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
8778         * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
8779         * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
8780         * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
8781         * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
8782         * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
8783         * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
8784         * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
8785         * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
8786         * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
8787         * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
8788         * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
8789         * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
8790         * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
8791         * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
8792         * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
8793         * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
8794         * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
8795         * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
8796         * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
8797         * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
8798         * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
8799         * testsuite/libgomp.c/target-7.c: Fix test.
8800         * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
8801         * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
8802         * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
8803         * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
8804         * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
8805         * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
8806         * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
8807         * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
8808         * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
8809         * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
8810         * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
8811         * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
8812         * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
8813         * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
8814         * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
8815         * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
8816         * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
8817         * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
8818         * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8819         * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
8820         * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
8821         * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
8822         * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
8823         * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
8824         * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
8825         * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
8826         * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
8827         * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
8828         * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
8829         * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
8830         * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
8832 2014-11-13  Jakub Jelinek  <jakub@redhat.com>
8833             Ilya Verbin  <ilya.verbin@intel.com>
8834             Thomas Schwinge  <thomas@codesourcery.com>
8835             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8837         * libgomp.map (GOMP_4.0.1): New symbol version.
8838         Add GOMP_offload_register.
8839         * libgomp_target.h: New file.
8840         * splay-tree.h: New file.
8841         * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
8842         (gomp_target_init): New forward declaration.
8843         (gomp_is_initialized): New static variable.
8844         (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
8845         (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
8846         New structures.
8847         (offload_images, num_offload_images, devices, num_devices): New static
8848         variables.
8849         (splay_compare): New static function.
8850         (struct gomp_device_descr): New structure.
8851         (gomp_get_num_devices): Call gomp_target_init.
8852         (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
8853         (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
8854         (GOMP_offload_register): New function.
8855         (GOMP_target): Arrange for host callback to be performed in a separate
8856         initial thread and contention group, inheriting ICVs from
8857         gomp_global_icv etc.  Call gomp_map_vars and gomp_unmap_vars.
8858         Add device initialization and lookup for target function in splay tree.
8859         (GOMP_target_data): Add device initialization and call gomp_map_vars.
8860         (GOMP_target_end_data): Call gomp_unmap_vars.
8861         (GOMP_target_update): Add device initialization and call gomp_update.
8862         (gomp_load_plugin_for_device, gomp_register_images_for_device)
8863         (gomp_target_init): New static functions.
8865 2014-11-13  Bernd Schmidt  <bernds@codesourcery.com>
8866             Thomas Schwinge  <thomas@codesourcery.com>
8867             Ilya Verbin  <ilya.verbin@intel.com>
8868             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8870         * config.h.in: Regenerate.
8871         * configure: Regenerate.
8872         * configure.ac: Check for libdl, required for plugin support.
8873         (PLUGIN_SUPPORT): Define if plugins are supported.
8874         (enable_offload_targets): Support Intel MIC targets.
8875         (OFFLOAD_TARGETS): List of target names suitable for offloading.
8877 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8879         PR target/63610
8880         * configure: Regenerate.
8882 2014-11-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8884         * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
8886 2014-10-06  Marek Polacek  <polacek@redhat.com>
8888         * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
8889         * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
8890         * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
8891         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8893 2014-10-06  Marek Polacek  <polacek@redhat.com>
8895         * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
8896         * testsuite/libgomp.c/nqueens-1.c: Likewise.
8897         * testsuite/libgomp.c/pr26943-3.c: Likewise.
8898         * testsuite/libgomp.c/pr26943-4.c: Likewise.
8899         * testsuite/libgomp.c/pr36802-2.c: Likewise.
8900         * testsuite/libgomp.c/pr36802-3.c: Likewise.
8901         * testsuite/libgomp.c/thread-limit-1.c: Likewise.
8902         * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8903         * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
8904         * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
8905         * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
8906         * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
8907         * testsuite/libgomp.c/omp-single-1.c: Likewise.
8908         * testsuite/libgomp.c/omp-single-2.c: Likewise.
8909         * testsuite/libgomp.c/omp_matvec.c: Likewise.
8910         * testsuite/libgomp.c/omp_workshare3.c: Likewise.
8911         * testsuite/libgomp.c/omp_workshare4.c: Likewise.
8912         * testsuite/libgomp.c/shared-1.c: Fix defaulting to int.  Fix implicit
8913         declarations.
8915 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
8917         PR libgomp/61200
8918         * testsuite/libgomp.c/pr61200.c: New test.
8920 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
8922         PR c++/63248
8923         * testsuite/libgomp.c++/pr63248.C: New test.
8925 2014-08-04  Jakub Jelinek  <jakub@redhat.com>
8927         * task.c (GOMP_taskgroup_end): If taskgroup->num_children
8928         is not zero, but taskgroup->children is NULL and there are
8929         any task->children, schedule those instead of waiting.
8930         * testsuite/libgomp.c/depend-6.c: New test.
8931         * testsuite/libgomp.c/depend-7.c: New test.
8932         * testsuite/libgomp.c/depend-8.c: New test.
8933         * testsuite/libgomp.c/depend-9.c: New test.
8934         * testsuite/libgomp.c/depend-10.c: New test.
8936 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
8938         * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
8939         (struct gomp_taskwait): New type.
8940         (struct gomp_task): Add taskwait and parent_depends_on, remove
8941         in_taskwait and taskwait_sem fields.
8942         (gomp_finish_task): Don't destroy taskwait_sem.
8943         * task.c (gomp_init_task): Don't init in_taskwait, instead init
8944         taskwait and parent_depends_on.
8945         (GOMP_task): For if (0) tasks with depend clause that depend on
8946         earlier tasks don't defer them, instead call
8947         gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
8948         Initialize redundant_out field, for redundant out entries just
8949         move them at the end of linked list instead of removing them
8950         completely, and set redundant_out flag instead of redundant.
8951         (gomp_task_run_pre): Update last_parent_depends_on if scheduling
8952         that task.
8953         (gomp_task_run_post_handle_dependers): If parent is in
8954         gomp_task_maybe_wait_for_dependencies and newly runnable task
8955         is not parent_depends_on, queue it in parent->children linked
8956         list after all runnable tasks with parent_depends_on set.
8957         Adjust for addition of taskwait indirection.
8958         (gomp_task_run_post_remove_parent): If parent is in
8959         gomp_task_maybe_wait_for_dependencies and task to be removed
8960         is parent_depends_on, decrement n_depend and if needed awake
8961         parent.  Adjust for addition of taskwait indirection.
8962         (GOMP_taskwait): Adjust for addition of taskwait indirection.
8963         (gomp_task_maybe_wait_for_dependencies): New function.
8964         * testsuite/libgomp.c/depend-5.c: New test.
8966 2014-07-13  Tobias Burnus  <burnus@net-b.de>
8968         * testsuite/libgomp.fortran/pr34020.f90: Make compile
8969         with TS 18508/Fortran 2015.
8971 2014-07-06  Marek Polacek  <polacek@redhat.com>
8973         PR c/6940
8974         * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
8976 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
8978         * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
8979         matches regex $lang_source_re, add $lang_include_flags to options.
8980         * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
8981         * testsuite/libgomp.c++/c++.exp: Likewise.
8982         * testsuite/libgomp.fortran/fortran.exp: Likewise.  Set lang_source_re
8983         and lang_include_flags instead of adding -fintrinsic-modules-path= to
8984         ALWAYS_CFLAGS.
8985         * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
8987 2014-07-03  Thomas Schwinge  <thomas@codesourcery.com>
8989         * testsuite/libgomp.fortran/fortran.exp: Explain
8990         gfortran-dg-runtest usage.
8992 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
8994         * testsuite/libgomp.fortran/simd5.f90: New test.
8995         * testsuite/libgomp.fortran/simd6.f90: New test.
8996         * testsuite/libgomp.fortran/simd7.f90: New test.
8998 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
9000         * testsuite/libgomp.c/for-2.c: Define SC to static for
9001         #pragma omp for simd testing.
9002         * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
9003         (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
9004         SC macro.
9005         * testsuite/libgomp.c/simd-14.c: New test.
9006         * testsuite/libgomp.c/simd-15.c: New test.
9007         * testsuite/libgomp.c/simd-16.c: New test.
9008         * testsuite/libgomp.c/simd-17.c: New test.
9009         * testsuite/libgomp.c++/for-10.C: Define SC to static for
9010         #pragma omp for simd testing.
9011         * testsuite/libgomp.c++/simd10.C: New test.
9012         * testsuite/libgomp.c++/simd11.C: New test.
9013         * testsuite/libgomp.c++/simd12.C: New test.
9014         * testsuite/libgomp.c++/simd13.C: New test.
9016         * testsuite/libgomp.fortran/aligned1.f03: New test.
9017         * testsuite/libgomp.fortran/nestedfn5.f90: New test.
9018         * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
9019         tasks with !$omp parallel !$omp single.
9020         * testsuite/libgomp.fortran/target8.f90: New test.
9021         * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
9022         not to use trim in the combiner, instead call elemental function.
9023         (fn): New elemental function.
9024         * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
9025         Make elemental.
9026         * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
9027         omp_in): Likewise.
9028         * testsuite/libgomp.fortran/udr12.f90: New test.
9029         * testsuite/libgomp.fortran/udr13.f90: New test.
9030         * testsuite/libgomp.fortran/udr14.f90: New test.
9031         * testsuite/libgomp.fortran/udr15.f90: New test.
9033 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
9035         * omp_lib.f90.in (openmp_version): Set to 201307.
9036         * omp_lib.h.in (openmp_version): Likewise.
9037         * testsuite/libgomp.c/target-8.c: New test.
9038         * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
9039         and inbranch clauses.
9040         * testsuite/libgomp.fortran/depend-3.f90: New test.
9041         * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
9042         openmp_version.
9043         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9044         * testsuite/libgomp.fortran/target1.f90: New test.
9045         * testsuite/libgomp.fortran/target2.f90: New test.
9046         * testsuite/libgomp.fortran/target3.f90: New test.
9047         * testsuite/libgomp.fortran/target4.f90: New test.
9048         * testsuite/libgomp.fortran/target5.f90: New test.
9049         * testsuite/libgomp.fortran/target6.f90: New test.
9050         * testsuite/libgomp.fortran/target7.f90: New test.
9052 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
9054         PR fortran/60928
9055         * testsuite/libgomp.fortran/allocatable9.f90: New test.
9056         * testsuite/libgomp.fortran/allocatable10.f90: New test.
9057         * testsuite/libgomp.fortran/allocatable11.f90: New test.
9058         * testsuite/libgomp.fortran/allocatable12.f90: New test.
9059         * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
9060         * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
9061         * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
9062         * testsuite/libgomp.fortran/associate1.f90: New test.
9063         * testsuite/libgomp.fortran/associate2.f90: New test.
9064         * testsuite/libgomp.fortran/procptr1.f90: New test.
9066 2014-06-06  Jakub Jelinek  <jakub@redhat.com>
9068         * testsuite/libgomp.fortran/simd1.f90: New test.
9069         * testsuite/libgomp.fortran/udr1.f90: New test.
9070         * testsuite/libgomp.fortran/udr2.f90: New test.
9071         * testsuite/libgomp.fortran/udr3.f90: New test.
9072         * testsuite/libgomp.fortran/udr4.f90: New test.
9073         * testsuite/libgomp.fortran/udr5.f90: New test.
9074         * testsuite/libgomp.fortran/udr6.f90: New test.
9075         * testsuite/libgomp.fortran/udr7.f90: New test.
9076         * testsuite/libgomp.fortran/udr8.f90: New test.
9077         * testsuite/libgomp.fortran/udr9.f90: New test.
9078         * testsuite/libgomp.fortran/udr10.f90: New test.
9079         * testsuite/libgomp.fortran/udr11.f90: New test.
9081 2014-05-27  Uros Bizjak  <ubizjak@gmail.com>
9083         * testsuite/libgomp.fortran/declare-simd-1.f90: Require
9084         vect_simd_clones effective target.
9085         * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
9087 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
9089         PR middle-end/61252
9090         * testsuite/libgomp.c++/simd-9.C: New test.
9092 2014-05-18  Uros Bizjak  <ubizjak@gmail.com>
9094         * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
9095         (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
9096         texts according to their @menu entry positions.
9098 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
9100         * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
9101         * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
9102         * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
9103         * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
9104         * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
9105         * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
9106         * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
9107         * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
9108         * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
9109         * testsuite/libgomp.fortran/depend-1.f90: New test.
9110         * testsuite/libgomp.fortran/depend-2.f90: New test.
9111         * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
9112         * testsuite/libgomp.fortran/simd1.f90: New test.
9113         * testsuite/libgomp.fortran/simd2.f90: New test.
9114         * testsuite/libgomp.fortran/simd3.f90: New test.
9115         * testsuite/libgomp.fortran/simd4.f90: New test.
9116         * testsuite/libgomp.fortran/taskgroup1.f90: New test.
9118 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
9120         * testsuite/libgomp.c/simd-10.c: New test.
9121         * testsuite/libgomp.c/simd-11.c: New test.
9122         * testsuite/libgomp.c/simd-12.c: New test.
9123         * testsuite/libgomp.c/simd-13.c: New test.
9125 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
9127         * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
9128         atomic type clauses in any order and optional comma in between.
9129         * testsuite/libgomp.c++/atomic-15.C: Likewise.
9130         * testsuite/libgomp.c/atomic-17.c: Likewise.
9132         * testsuite/libgomp.c/simd-7.c: New test.
9133         * testsuite/libgomp.c/simd-8.c: New test.
9134         * testsuite/libgomp.c/simd-9.c: New test.
9135         * testsuite/libgomp.c/loop-16.c: New test.
9137 2014-04-02  Richard Henderson  <rth@redhat.com>
9139         * config/linux/futex.h (futex_wait): Get error value from errno.
9140         (futex_wake): Likewise.
9142 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
9144         PR c++/60331
9145         * testsuite/libgomp.c++/udr-11.C: New test.
9146         * testsuite/libgomp.c++/udr-12.C: New test.
9147         * testsuite/libgomp.c++/udr-13.C: New test.
9148         * testsuite/libgomp.c++/udr-14.C: New test.
9149         * testsuite/libgomp.c++/udr-15.C: New test.
9150         * testsuite/libgomp.c++/udr-16.C: New test.
9151         * testsuite/libgomp.c++/udr-17.C: New test.
9152         * testsuite/libgomp.c++/udr-18.C: New test.
9153         * testsuite/libgomp.c++/udr-19.C: New test.
9155 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
9157         Update copyright years
9159 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
9161         * hashtab.h: Use the standard form for the copyright notice.
9163 2014-01-02  Tobias Burnus  <burnus@net-b.de>
9165         * libgomp.texi: Bump @copying's copyright year.
9167 2013-12-17  Andreas Tobler  <andreast@gcc.gnu.org>
9169         * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
9170         alloca () with __builtin_alloca ().
9171         * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
9172         * testsuite/libgomp.c/lock-3.c: Likewise.
9173         * testsuite/libgomp.c/pr48591.c: Likewise.
9175 2013-12-17  Jakub Jelinek  <jakub@redhat.com>
9177         PR testsuite/59534
9178         * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
9179         comparisons.
9181 2013-12-16  Jakub Jelinek  <jakub@redhat.com>
9183         PR libgomp/58756
9184         * testsuite/libgomp.c/pr58756.c: New test.
9186 2013-12-12  Jakub Jelinek  <jakub@redhat.com>
9188         PR libgomp/59467
9189         * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
9190         !$omp parallel.
9192 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
9194         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
9195         ALWAYS_CFLAGS.
9196         * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
9197         * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
9198         * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
9199         * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
9200         Likewise.
9202         * libgomp_g.h: Include <stddef.h> for size_t.
9204         * libgomp.spec.in: Update comment about libgomp's dependencies.
9205         * configure.ac: Likewise.
9206         * configure: Regenerate.
9208 2013-10-16  Tobias Burnus  <burnus@net-b.de>
9210         * libgomp.texi: (Runtime Library Routines): Update references for
9211         OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
9212         omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
9213         omp_get_team_num, omp_is_initial_device, omp_set_default_device.
9214         (Environment Variables): Update references for OpenMP 4.0. Add
9215         OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
9216         Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
9217         order.
9219 2013-10-14  Jakub Jelinek  <jakub@redhat.com>
9221         * env.c (parse_bind_var): Initialize value to avoid
9222         (false positive) warning.
9224 2013-10-12  Jakub Jelinek  <jakub@redhat.com>
9226         PR libgomp/58691
9227         * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
9228         to check variable.
9229         (gomp_init_num_threads): Move i variable declaration into
9230         #ifdef CPU_ALLOC_SIZE block.
9231         * config/linux/affinity.c (gomp_affinity_init_level): Test
9232         gomp_places_list_len == 0 rather than gomp_places_list == 0
9233         when checking for topology reading error.
9234         * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
9235         * env.c (parse_affinity): Add ignore argument, if true, don't populate
9236         gomp_places_list, only parse env var and always return false.
9237         (parse_places_var): Likewise.  Don't check gomp_global_icv.bind_var.
9238         (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
9239         vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
9240         and either of these variables were parsed correctly into a places
9241         list.
9243 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
9244             Jakub Jelinek  <jakub@redhat.com>
9246         * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
9247         of 5 loopfn matches.
9248         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9249         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9250         * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
9251         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9252         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9253         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9254         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9255         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9257 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
9259         * Makefile.am (omp_lib.mod): Streamline rule.
9260         * Makefile.in: Regenerate.
9262         * libgomp.texi (Runtime Library Routines): C linkage, don't throw
9263         exceptions.
9265         * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
9266         * testsuite/libgomp.fortran/lib1.f90: Likewise.
9267         * testsuite/libgomp.fortran/lib2.f: Likewise.
9268         * testsuite/libgomp.fortran/lib3.f: Likewise.
9270         * configure.ac: Typo fix.
9271         * configure: Regenerate.
9273         * testsuite/libgomp.fortran/openmp_version-1.f: New file.
9274         * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9276         * omp.h.in: Don't touch the user's namespace.
9278 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
9279             Tobias Burnus  <burnus@net-b.de>
9280             Richard Henderson  <rth@redhat.com>
9282         * target.c: New file.
9283         * Makefile.am (libgomp_la_SOURCES): Add target.c.
9284         * Makefile.in: Regenerated.
9285         * libgomp_g.h (GOMP_task): Add depend argument.
9286         (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9287         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9288         GOMP_target_end_data, GOMP_target_update, GOMP_teams,
9289         GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9290         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9291         GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
9292         GOMP_taskgroup_start, GOMP_taskgroup_end,
9293         GOMP_parallel_sections): New prototypes.
9294         * fortran.c (omp_is_initial_device): Add ialias_redirect.
9295         (omp_is_initial_device_): New function.
9296         (ULP, STR1, STR2, ialias_redirect): Removed.
9297         (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
9298         omp_set_default_device_8_, omp_get_default_device_,
9299         omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
9300         functions.
9301         * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9302         GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9303         GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
9304         @@GOMP_4.0.
9305         (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
9306         omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
9307         omp_set_default_device, omp_set_default_device_,
9308         omp_set_default_device_8_, omp_get_default_device,
9309         omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
9310         omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
9311         omp_get_team_num_): Export @@OMP_4.0.
9312         * team.c (struct gomp_thread_start_data): Add place field.
9313         (gomp_thread_start): Clear thr->thread_pool and
9314         thr->task before returning.  Use gomp_team_barrier_wait_final
9315         instead of gomp_team_barrier_wait.  Initialize thr->place.
9316         (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
9317         team_cancelled and task_queued_count fields.
9318         (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
9319         before calling pthread_exit.
9320         (gomp_free_thread): No longer static.  Use
9321         gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
9322         (gomp_team_start): Add flags argument.  Set
9323         thr->thread_pool->threads_busy to nthreads immediately after creating
9324         new pool.  Use gomp_managed_threads_lock instead of
9325         gomp_remaining_threads_lock.  Handle OpenMP 4.0 affinity.
9326         (gomp_team_end): Use gomp_managed_threads_lock instead of
9327         gomp_remaining_threads_lock.  Use gomp_team_barrier_wait_final instead
9328         of gomp_team_barrier_wait.  If team->team_cancelled, call
9329         gomp_fini_workshare on ws chain starting at team->work_shares_to_free
9330         rather than thr->ts.work_share.
9331         (initialize_team): Don't call gomp_sem_init here.
9332         * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
9333         caller.
9334         (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
9335         * env.c (gomp_global_icv): Add default_device_var, target_data and
9336         bind_var initializers.
9337         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9338         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9339         gomp_places_list_len): New variables.
9340         (parse_bind_var, parse_one_place, parse_places_var): New functions.
9341         (parse_affinity): Rewritten to construct OMP_PLACES list with unit
9342         sized places.
9343         (gomp_cancel_var): New global variable.
9344         (parse_int): New function.
9345         (handle_omp_display_env): New function.
9346         (initialize_env): Use it.  Initialize default_device_var.
9347         Parse OMP_CANCELLATION env var.  Use parse_bind_var to parse
9348         OMP_PROC_BIND instead of parse_boolean.  Use parse_places_var for
9349         OMP_PLACES parsing.  Don't call parse_affinity if OMP_PLACES has
9350         been successfully parsed (and call gomp_init_affinity in that case).
9351         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9352         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9353         omp_get_team_num, omp_is_initial_device): New functions.
9354         * libgomp.h: Include stdlib.h.
9355         (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
9356         Define.
9357         (struct target_mem_desc): Forward declare.
9358         (struct gomp_task_icv): Add default_device_var, target_data, bind_var
9359         and thread_limit_var fields.
9360         (gomp_get_num_devices): New prototype.
9361         (gomp_cancel_var): New extern decl.
9362         (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
9363         team_cancelled and task_queued_count fields.  Add comments about
9364         task_{,queued_,running_}count.
9365         (gomp_cancel_kind): New enum.
9366         (gomp_work_share_end_cancel): New prototype.
9367         (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
9368         copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
9369         and depend fields.
9370         (struct gomp_taskgroup): New type.
9371         (struct gomp_task_depend_entry,
9372         struct gomp_dependers_vec): New types.
9373         (gomp_finish_task): Free depend_hash if non-NULL.
9374         (struct gomp_team_state): Add place_partition_off
9375         and place_partition_len fields.
9376         (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9377         gomp_places_list_len): New extern decls.
9378         (struct gomp_thread): Add place field.
9379         (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9380         (gomp_init_thread_affinity): Add place argument.
9381         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9382         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9383         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9384         gomp_affinity_init_level, gomp_affinity_print_place): New
9385         prototypes.
9386         (gomp_team_start): Add flags argument.
9387         (gomp_thread_limit_var, gomp_remaining_threads_count,
9388         gomp_remaining_threads_lock): Remove.
9389         (gomp_managed_threads_lock): New variable.
9390         (struct gomp_thread_pool): Add threads_busy field.
9391         (gomp_free_thread): New prototype.
9392         * task.c: Include hashtab.h.
9393         (hash_entry_type): New typedef.
9394         (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
9395         (gomp_init_task): Clear dependers, depend_hash, depend_count,
9396         copy_ctors_done and taskgroup fields.
9397         (GOMP_task): Add depend argument, handle depend clauses.  If
9398         gomp_team_barrier_cancelled or if it's taskgroup has been
9399         cancelled, don't queue or start new tasks.  Set copy_ctors_done
9400         field if needed.  Initialize taskgroup field.  If copy_ctors_done
9401         and already cancelled, don't discard the task.  If taskgroup is
9402         non-NULL, enqueue the task into taskgroup queue.  Increment
9403         num_children field in taskgroup.  Increment task_queued_count.
9404         (gomp_task_run_pre, gomp_task_run_post_remove_parent,
9405         gomp_task_run_post_remove_taskgroup): New inline functions.
9406         (gomp_task_run_post_handle_depend_hash,
9407         gomp_task_run_post_handle_dependers,
9408         gomp_task_run_post_handle_depend): New functions.
9409         (GOMP_taskwait): Use them.  If more than one new tasks
9410         have been queued, wake other threads if needed.
9411         (gomp_barrier_handle_tasks): Likewise.  If
9412         gomp_team_barrier_cancelled, don't start any new tasks, just free
9413         all tasks.
9414         (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
9415         * omp_lib.f90.in
9416         (omp_proc_bind_kind, omp_proc_bind_false,
9417         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9418         omp_proc_bind_spread): New params.
9419         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9420         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9421         omp_get_team_num, omp_is_initial_device): New interfaces.
9422         (omp_get_dynamic, omp_get_nested, omp_in_parallel,
9423         omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
9424         omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
9425         omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
9426         omp_get_team_size, omp_get_active_level, omp_in_final): Remove
9427         useless use omp_lib_kinds.
9428         * omp.h.in (omp_proc_bind_t): New typedef.
9429         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9430         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9431         omp_get_team_num, omp_is_initial_device): New prototypes.
9432         * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
9433         through to gomp_team_start.
9434         (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
9435         GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
9436         Adjust gomp_parallel_loop_start callers.
9437         (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9438         GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9439         GOMP_loop_end_cancel): New functions.
9440         (GOMP_parallel_end): Add ialias_redirect.
9441         * hashtab.h: New file.
9442         * libgomp.texi (Environment Variables): Minor cleanup,
9443         update section refs to OpenMP 4.0rc2.
9444         (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
9445         environment variables.
9446         * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
9447         team->work_shares_to_free to thr->ts.work_share before calling
9448         free_work_share.
9449         (gomp_work_share_end_cancel): New function.
9450         * config/linux/proc.c: Include errno.h.
9451         (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
9452         (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
9453         sizeof (cpu_set_t) to determine number of iterations.  Fix up check
9454         extern decl.  Use CPU_COUNT_S if available, or CPU_COUNT if
9455         gomp_cpuset_size is sizeof (cpu_set_t).
9456         (gomp_init_num_threads): Initialize gomp_cpuset_size,
9457         gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
9458         of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
9459         to pthread_getaffinity_np.  Free and clear gomp_cpusetp if it didn't
9460         contain any logical CPUs.
9461         (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
9462         is NULL.  Use gomp_cpusetp instead of &cpuset and pass
9463         gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
9464         pthread_getaffinity_np.  Check gomp_places_list instead of
9465         gomp_cpu_affinity.  Adjust gomp_cpuset_popcount caller.
9466         * config/linux/bar.c (gomp_barrier_wait_end,
9467         gomp_barrier_wait_last): Use BAR_* defines.
9468         (gomp_team_barrier_wait_end): Likewise.  Clear BAR_CANCELLED
9469         from state where needed.  Set work_share_cancelled to 0 on last
9470         thread.
9471         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
9472         gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
9473         functions.
9474         * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
9475         Add cpusetsize argument.
9476         (gomp_cpuset_size, gomp_cpusetp): Declare.
9477         * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
9478         (affinity_counter): Remove.
9479         (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
9480         if CPU_ALLOC_SIZE isn't defined.
9481         (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
9482         silently create OMP_PLACES=threads, if it is non-NULL afterwards,
9483         bind current thread to the first place.
9484         (gomp_init_thread_affinity): Rewritten.  Add place argument, just
9485         pthread_setaffinity_np to gomp_places_list[place].
9486         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9487         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9488         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9489         gomp_affinity_init_level, gomp_affinity_print_place): New functions.
9490         * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9491         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9492         (gomp_barrier_t): Add awaited_final field.
9493         (gomp_barrier_init): Initialize awaited_final field.
9494         (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
9495         gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
9496         prototypes.
9497         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.  Use BAR_*
9498         defines.
9499         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
9500         gomp_team_barrier_cancelled): New inline functions.
9501         (gomp_barrier_last_thread,
9502         gomp_team_barrier_set_task_pending,
9503         gomp_team_barrier_clear_task_pending,
9504         gomp_team_barrier_set_waiting_for_tasks,
9505         gomp_team_barrier_waiting_for_tasks,
9506         gomp_team_barrier_done): Use BAR_* defines.
9507         * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
9508         (gomp_barrier_wait_end): Use BAR_* defines.
9509         (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
9510         Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
9511         Use BAR_* defines.
9512         (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
9513         gomp_team_barrier_cancel): New functions.
9514         * config/posix/affinity.c (gomp_init_thread_affinity): Add place
9515         argument.
9516         (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9517         gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9518         gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9519         gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
9520         * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9521         BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9522         (gomp_barrier_t): Add cancellable field.
9523         (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
9524         gomp_team_barrier_cancel): New prototypes.
9525         (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
9526         (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
9527         gomp_team_barrier_cancelled): New inline functions.
9528         (gomp_barrier_wait_start, gomp_barrier_last_thread,
9529         gomp_team_barrier_set_task_pending,
9530         gomp_team_barrier_clear_task_pending,
9531         gomp_team_barrier_set_waiting_for_tasks,
9532         gomp_team_barrier_waiting_for_tasks,
9533         gomp_team_barrier_done): Use BAR_* defines.
9534         * barrier.c (GOMP_barrier_cancel): New function.
9535         * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
9536         omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9537         omp_proc_bind_spread): New params.
9538         (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9539         omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9540         omp_get_team_num, omp_is_initial_device): New externals.
9541         * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
9542         New functions.
9543         (gomp_resolve_num_threads): Adjust for thread_limit now being in
9544         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
9545         infinity.  If not nested, just return minimum of max_num_threads
9546         and icv->thread_limit_var and if thr->thread_pool, set threads_busy
9547         to the returned value.  Otherwise, don't update atomically
9548         gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
9549         (GOMP_parallel_end): Adjust for thread_limit now being in
9550         icv->thread_limit_var.  Use UINT_MAX instead of ULONG_MAX as
9551         infinity.  Adjust threads_busy in the pool rather than
9552         gomp_remaining_threads_count.  Remember team->nthreads and call
9553         gomp_team_end before adjusting threads_busy, if not nested
9554         afterwards, just set it to 1 non-atomically.  Add ialias.
9555         (GOMP_parallel_start): Adjust gomp_team_start caller.
9556         * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
9557         * testsuite/libgomp.c/affinity-1.c: New test.
9558         * testsuite/libgomp.c/atomic-15.c: New test.
9559         * testsuite/libgomp.c/atomic-16.c: New test.
9560         * testsuite/libgomp.c/atomic-17.c: New test.
9561         * testsuite/libgomp.c/cancel-for-1.c: New test.
9562         * testsuite/libgomp.c/cancel-for-2.c: New test.
9563         * testsuite/libgomp.c/cancel-parallel-1.c: New test.
9564         * testsuite/libgomp.c/cancel-parallel-2.c: New test.
9565         * testsuite/libgomp.c/cancel-parallel-3.c: New test.
9566         * testsuite/libgomp.c/cancel-sections-1.c: New test.
9567         * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
9568         * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
9569         * testsuite/libgomp.c/depend-1.c: New test.
9570         * testsuite/libgomp.c/depend-2.c: New test.
9571         * testsuite/libgomp.c/depend-3.c: New test.
9572         * testsuite/libgomp.c/depend-4.c: New test.
9573         * testsuite/libgomp.c/for-1.c: New test.
9574         * testsuite/libgomp.c/for-1.h: New file.
9575         * testsuite/libgomp.c/for-2.c: New test.
9576         * testsuite/libgomp.c/for-2.h: New file.
9577         * testsuite/libgomp.c/for-3.c: New test.
9578         * testsuite/libgomp.c/pr58392.c: New test.
9579         * testsuite/libgomp.c/simd-1.c: New test.
9580         * testsuite/libgomp.c/simd-2.c: New test.
9581         * testsuite/libgomp.c/simd-3.c: New test.
9582         * testsuite/libgomp.c/simd-4.c: New test.
9583         * testsuite/libgomp.c/simd-5.c: New test.
9584         * testsuite/libgomp.c/simd-6.c: New test.
9585         * testsuite/libgomp.c/target-1.c: New test.
9586         * testsuite/libgomp.c/target-2.c: New test.
9587         * testsuite/libgomp.c/target-3.c: New test.
9588         * testsuite/libgomp.c/target-4.c: New test.
9589         * testsuite/libgomp.c/target-5.c: New test.
9590         * testsuite/libgomp.c/target-6.c: New test.
9591         * testsuite/libgomp.c/target-7.c: New test.
9592         * testsuite/libgomp.c/taskgroup-1.c: New test.
9593         * testsuite/libgomp.c/thread-limit-1.c: New test.
9594         * testsuite/libgomp.c/thread-limit-2.c: New test.
9595         * testsuite/libgomp.c/thread-limit-3.c: New test.
9596         * testsuite/libgomp.c/udr-1.c: New test.
9597         * testsuite/libgomp.c/udr-2.c: New test.
9598         * testsuite/libgomp.c/udr-3.c: New test.
9599         * testsuite/libgomp.c++/affinity-1.C: New test.
9600         * testsuite/libgomp.c++/atomic-10.C: New test.
9601         * testsuite/libgomp.c++/atomic-11.C: New test.
9602         * testsuite/libgomp.c++/atomic-12.C: New test.
9603         * testsuite/libgomp.c++/atomic-13.C: New test.
9604         * testsuite/libgomp.c++/atomic-14.C: New test.
9605         * testsuite/libgomp.c++/atomic-15.C: New test.
9606         * testsuite/libgomp.c++/cancel-for-1.C: New test.
9607         * testsuite/libgomp.c++/cancel-for-2.C: New test.
9608         * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
9609         * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
9610         * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
9611         * testsuite/libgomp.c++/cancel-sections-1.C: New test.
9612         * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
9613         * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
9614         * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
9615         * testsuite/libgomp.c++/cancel-test.h: New file.
9616         * testsuite/libgomp.c++/for-9.C: New test.
9617         * testsuite/libgomp.c++/for-10.C: New test.
9618         * testsuite/libgomp.c++/for-11.C: New test.
9619         * testsuite/libgomp.c++/simd-1.C: New test.
9620         * testsuite/libgomp.c++/simd-2.C: New test.
9621         * testsuite/libgomp.c++/simd-3.C: New test.
9622         * testsuite/libgomp.c++/simd-4.C: New test.
9623         * testsuite/libgomp.c++/simd-5.C: New test.
9624         * testsuite/libgomp.c++/simd-6.C: New test.
9625         * testsuite/libgomp.c++/simd-7.C: New test.
9626         * testsuite/libgomp.c++/simd-8.C: New test.
9627         * testsuite/libgomp.c++/target-1.C: New test.
9628         * testsuite/libgomp.c++/target-2.C: New test.
9629         * testsuite/libgomp.c++/target-2-aux.cc: New file.
9630         * testsuite/libgomp.c++/target-3.C: New test.
9631         * testsuite/libgomp.c++/taskgroup-1.C: New test.
9632         * testsuite/libgomp.c++/udr-1.C: New test.
9633         * testsuite/libgomp.c++/udr-2.C: New test.
9634         * testsuite/libgomp.c++/udr-3.C: New test.
9635         * testsuite/libgomp.c++/udr-4.C: New test.
9636         * testsuite/libgomp.c++/udr-5.C: New test.
9637         * testsuite/libgomp.c++/udr-6.C: New test.
9638         * testsuite/libgomp.c++/udr-7.C: New test.
9639         * testsuite/libgomp.c++/udr-8.C: New test.
9640         * testsuite/libgomp.c++/udr-9.C: New test.
9642 2013-09-20  Jakub Jelinek  <jakub@redhat.com>
9644         PR testsuite/57605
9645         * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
9646         ALWAYS_CFLAGS.
9648 2013-09-20  Alan Modra  <amodra@gmail.com>
9650         * configure: Regenerate.
9652 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
9654         * testsuite/libgomp.c/sections-2.c: New test.
9656 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9658         * testsuite/libgomp.fortran/strassen.f90:
9659         Add dg-skip-if aarch64_tiny.
9661 2013-06-20  Iain Sandoe  <iain@codesourcery.com>
9662             Cesar Philippidis  <cesar@codesourcery.com>
9664         * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
9665         Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
9666         * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
9667         * testsuite/libgomp.fortran/fortran.exp: Likewise.
9668         * testsuite/libgomp.graphite/graphite.exp: Likewise.
9669         * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
9670         Use dg-runtest rather than gfortran-dg-runtest.
9672 2013-06-10  Thomas Schwinge  <thomas@codesourcery.com>
9674         * testsuite/libgomp.c/icv-2.c: Extend current handling of
9675         Linux-based x86 systems to cover all GNU systems.
9676         * testsuite/libgomp.c/lock-3.c: Likewise.
9677         * testsuite/libgomp.c/pr48591.c: Likewise.
9679 2013-06-06  Thomas Schwinge  <thomas@codesourcery.com>
9681         * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
9682         GNU/Hurd, as done for Linux-based systems.
9684         * config/posix/ptrlock.h: Fix comment.
9686 2013-05-27  Tobias Burnus  <burnus@net-b.de>
9688         PR fortran/57423
9689         * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
9690         omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
9691         omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
9692         omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
9693         omp_destroy_nest_lock): Correct arguments to match the one in
9694         the OpenMP spec.
9695         * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
9696         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
9697         omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
9698         omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
9700 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
9702         * testsuite/libgomp.c/loop-13.c: New test.
9703         * testsuite/libgomp.c/loop-14.c: New test.
9704         * testsuite/libgomp.c/loop-15.c: New test.
9705         * testsuite/libgomp.c++/loop-13.C: New test.
9706         * testsuite/libgomp.c++/loop-14.C: New test.
9707         * testsuite/libgomp.c++/loop-15.C: New test.
9709 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
9711         PR middle-end/56217
9712         * testsuite/libgomp.c++/pr56217.C: New test.
9714 2013-02-01  Alan Modra  <amodra@gmail.com>
9716         * task.c (GOMP_task, GOMP_taskwait): Comment.
9718 2013-01-31  Dmitry Vyukov  <dvyukov@gcc.gnu.org>
9719             Joost VandeVondele  <Joost.VandeVondele@mat.ethz.ch>
9721         PR libgomp/55561
9722         * config/linux/wait.h (do_spin): Use atomic load for addr.
9723         * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
9724         for intptr and ptrlock.
9725         * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
9726         for ptrlock.
9728 2013-01-22  Alan Modra  <amodra@gmail.com>
9730         PR libgomp/51376
9731         PR libgomp/56073
9732         * task.c (GOMP_task): Revert 2011-12-09 change.
9733         (GOMP_taskwait): Likewise.  Instead use atomic load with acquire
9734         barrier to read task->children..
9735         (gomp_barrier_handle_tasks): ..and matching atomic store with
9736         release barrier here when setting parent->children to NULL.
9738 2013-01-16  Jakub Jelinek  <jakub@redhat.com>
9739             Tobias Burnus  <burnus@net-b.de>
9741         PR driver/55884
9742         * testsuite/libgomp.fortran/fortran.exp: Use
9743         -fintrinsic-modules-path= instead of
9744         -fintrinsic-modules-path.
9746 2013-01-14  Richard Sandiford  <rdsandiford@googlemail.com>
9748         Update copyright years.
9750 2012-12-19  Tobias Burnus  <burnus@net-b.de>
9752         * testsuite/libgomp.fortran/fortran.exp: Set
9753         -fintrinsic-modules-path.
9755 2012-12-19  Tobias Burnus  <burnus@net-b.de>
9757         * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
9758         from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
9760 2012-11-21  Jakub Jelinek  <jakub@redhat.com>
9762         PR libgomp/55411
9763         * team.c (gomp_free_thread): Decrease gomp_managed_threads
9764         if pool had any threads_used.
9766 2012-11-07  Jack Howarth <howarth@bromo.med.uc.edu>
9768         * testsuite/libgomp.c++/pr24455.C: Use
9769         -Wl,-undefined,dynamic_lookup on darwin.
9771 2012-11-07  David Edelsohn  <dje.gcc@gmail.com>
9773         * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
9775 2012-10-24  Dominique d'Humieres  <dominiq@lps.ens.fr>
9777         * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
9779 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
9780             Jim MacArthur  <jim.macarthur@arm.com>
9781             Marcus Shawcroft  <marcus.shawcroft@arm.com>
9782             Nigel Stephens  <nigel.stephens@arm.com>
9783             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9784             Richard Earnshaw  <rearnsha@arm.com>
9785             Sofiane Naci  <sofiane.naci@arm.com>
9786             Stephen Thomas  <stephen.thomas@arm.com>
9787             Tejas Belagod  <tejas.belagod@arm.com>
9788             Yufeng Zhang  <yufeng.zhang@arm.com>
9790         * configure.tgt: Add AArch64.
9792 2012-10-04  Jason Merrill  <jason@redhat.com>
9794         * testsuite/libgomp.c++/tls-init1.C: New.
9796 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
9798         * configure: Regenerated.
9800 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
9802         * config/linux/mips/futex.h (sys_futex0): Change to static
9803         function with noinline, nomips16 attributes under MIPS16. Adjust
9804         asm statement to place 'li v0,SYS_futex' immediately before
9805         syscall insn.
9807 2012-07-04  Sandra Loosemore <sandra@codesourcery.com>
9809         * libgomp.texi (Library Index): Renamed from "Index" to prevent
9810         conflict with index.html on case-insensitive file systems.
9812 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
9814         * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
9815         * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
9817 2012-07-02  Richard Guenther  <rguenther@suse.de>
9818             Michael Matz  <matz@suse.de>
9819             Tobias Grosser <tobias@grosser.es>
9820             Sebastian Pop <sebpop@gmail.com>
9822         * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
9823         * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9824         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9825         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9827 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
9829         * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
9831 2012-06-22  Richard Guenther  <rguenther@suse.de>
9833         Merge from graphite branch
9834         2012-01-13  Tobias Grosser  <tobias@grosser.es>
9836         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9837         * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9839 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
9841         PR middle-end/53580
9842         * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
9843         use GOMP_barrier () call instead.
9844         * testsuite/libgomp.c/pr26943-3.c: Likewise.
9845         * testsuite/libgomp.c/pr26943-4.c: Likewise.
9846         * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
9847         call GOMP_barrier instead.
9848         * testsuite/libgomp.fortran/vla5.f90: Likewise.
9850 2012-06-06  Jakub Jelinek  <jakub@redhat.com>
9852         PR libgomp/52993
9853         * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
9854         argument to memset call.
9856 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
9858         * configure: Regenerated.
9860 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9862         * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
9864 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
9866         PR bootstrap/52812
9867         * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
9869 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
9871         PR middle-end/52547
9872         * testsuite/libgomp.c/pr52547.c: New test.
9874 2012-03-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
9876         * testsuite/lib/libgomp.exp: load fortran-modules.exp
9878 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9880         * configure.tgt (mips-sgi-irix6*): Remove.
9882 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9884         * configure.tgt (alpha*-dec-osf*): Remove.
9886         * config/osf/sem.h: Remove.
9887         * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
9889 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
9891         * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
9893 2012-02-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9895         PR libstdc++/52188
9896         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
9897         Remove ENABLE_SYMVERS_SOL2.
9898         * configure: Regenerate.
9899         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
9900         (PREPROCESS): New variable.
9901         (libgomp.ver): New target.
9902         [LIBGOMP_BUILD_VERSIONED_SHLIB &&
9903         LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
9904         LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
9905         Use libgomp.ver.
9906         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
9907         * Makefile.in: Regenerate.
9909 2012-02-14  Walter Lee  <walt@tilera.com>
9911         * configure.tgt: Handle tilegx and tilepro.
9912         * config/linux/tile/futex.h: New file.
9914 2012-02-08  Richard Guenther  <rguenther@suse.de>
9916         PR tree-optimization/46886
9917         * testsuite/libgomp.c/pr46886.c: New testcase.
9919 2012-01-25  Matthias Klose  <doko@ubuntu.com>
9921         * config/linux/arm: Remove empty directory.
9922         * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
9924 2011-12-09  Alan Modra  <amodra@gmail.com>
9926         PR libgomp/51376
9927         * task.c (GOMP_taskwait): Don't access task->children outside of
9928         task_lock mutex region.
9929         (GOMP_task): Likewise.
9931 2011-12-06  Jakub Jelinek  <jakub@redhat.com>
9933         PR libgomp/51132
9934         * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
9935         to file scope.
9936         * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9937         * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9938         * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9939         * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9940         * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9942 2011-12-02  Alan Modra  <amodra@gmail.com>
9944         * config/linux/affinity.c: Use atomic rather than sync builtin.
9945         * config/linux/lock.c: Likewise.
9946         * config/linux/ptrlock.h: Likewise.
9947         * config/linux/ptrlock.c: Likewise.
9948         * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
9949         * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
9950         * config/linux/futex.h (atomic_write_barrier): Delete unused function.
9951         * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
9952         * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
9953         * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
9954         * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
9955         * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
9956         * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
9957         * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
9959 2011-11-30  Alan Modra  <amodra@gmail.com>
9961         PR libgomp/51298
9962         * config/linux/bar.h: Use atomic rather than sync builtins.
9963         * config/linux/bar.c: Likewise.  Add missing acquire
9964         synchronisation on generation field.
9965         * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
9966         double unlock.
9968 2011-11-30  Alan Modra  <amodra@gmail.com>
9970         * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
9971         * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
9972         * config/linux/mutex.h: Use atomic rather than sync builtins.
9973         * config/linux/mutex.c: Likewise.  Comment.  Use -1 for waiting state.
9974         * config/linux/omp-lock.h: Comment fix.
9975         * config/linux/arm/mutex.h: Delete.
9976         * config/linux/powerpc/mutex.h: Delete.
9977         * config/linux/ia64/mutex.h: Delete.
9978         * config/linux/mips/mutex.h: Delete.
9980 2011-11-30  Alan Modra  <amodra@gmail.com>
9982         PR libgomp/51249
9983         * config/linux/sem.h: Rewrite.
9984         * config/linux/sem.c: Rewrite.
9986 2011-11-28  Richard Henderson  <rth@redhat.com>
9988         * libgomp.h (enum memmodel): New.
9990 2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
9992         * configure: Regenerate.
9994 2011-10-10  Matthias Klose  <doko@ubuntu.com>
9996         * config/posix95: Remove empty directory.
9998 2011-08-26  Jakub Jelinek  <jakub@redhat.com>
10000         * testsuite/libgomp.fortran/threadprivate4.f90: New test.
10002 2011-08-19  Jakub Jelinek  <jakub@redhat.com>
10004         PR fortran/49792
10005         * testsuite/libgomp.fortran/pr49792-1.f90: New test.
10006         * testsuite/libgomp.fortran/pr49792-2.f90: New test.
10008 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10010         * config/posix95/lock.c, posix95/omp-lock.h: Remove.
10012 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10014         PR libgomp/49965
10015         * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
10017 2011-08-03  Uros Bizjak  <ubizjak@gmail.com>
10019         * config/linux/proc.h: New.
10020         * config/linux/proc.c: Include "proc.h".  Do not include <sched.h>.
10021         (gomp_cpuset_popcount): Rename from cpuset_popcount.  No more static.
10022         (gomp_init_num_threads): Update call to cpuset_popcount.
10023         (get_num_procs): Ditto.
10024         * config/linux/affinity.c (gomp_init_affinity): Call
10025         gomp_cpuset_popcount.
10027 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
10029         PR fortran/42041
10030         PR fortran/46752
10031         * omp.h.in (omp_in_final): New prototype.
10032         * omp_lib.f90.in (omp_in_final): New interface.
10033         (omp_integer_kind, omp_logical_kind): Remove
10034         and replace all its uses in the module with 4.
10035         (openmp_version): Change to 201107.
10036         * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
10037         omp_sched_guided, omp_sched_auto): Use omp_sched_kind
10038         kind for the parameters.
10039         (omp_in_final): New external.
10040         (openmp_version): Change to 201107.
10041         * task.c (omp_in_final): New function.
10042         (gomp_init_task): Initialize final_task.
10043         (GOMP_task): Remove unused attribute from flags.  Handle final
10044         tasks.
10045         (GOMP_taskyield): New function.
10046         (omp_in_final): Return true if if (false) or final (true) task
10047         or descendant of final (true).
10048         * fortran.c (omp_in_final_): New function.
10049         * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
10050         (GOMP_3.0): Export GOMP_taskyield.
10051         * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
10052         variables.
10053         (parse_unsigned_long_list): New function.
10054         (initialize_env): Use it for OMP_NUM_THREADS.  Call parse_boolean
10055         with "OMP_PROC_BIND".  If OMP_PROC_BIND=true, call gomp_init_affinity
10056         even if parse_affinity returned false.
10057         * config/linux/affinity.c (gomp_init_affinity): Handle
10058         gomp_cpu_affinity_len == 0.
10059         * libgomp_g.h (GOMP_taskyield): New prototype.
10060         * libgomp.h (struct gomp_task): Add final_task field.
10061         (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
10062         * team.c (gomp_team_start): Override new task's nthreads_var icv
10063         if list form OMP_NUM_THREADS has been used and it has value for
10064         the new nesting level.
10066         * testsuite/libgomp.c/atomic-11.c: New test.
10067         * testsuite/libgomp.c/atomic-12.c: New test.
10068         * testsuite/libgomp.c/atomic-13.c: New test.
10069         * testsuite/libgomp.c/atomic-14.c: New test.
10070         * testsuite/libgomp.c/reduction-6.c: New test.
10071         * testsuite/libgomp.c/task-5.c: New test.
10072         * testsuite/libgomp.c++/atomic-2.C: New test.
10073         * testsuite/libgomp.c++/atomic-3.C: New test.
10074         * testsuite/libgomp.c++/atomic-4.C: New test.
10075         * testsuite/libgomp.c++/atomic-5.C: New test.
10076         * testsuite/libgomp.c++/atomic-6.C: New test.
10077         * testsuite/libgomp.c++/atomic-7.C: New test.
10078         * testsuite/libgomp.c++/atomic-8.C: New test.
10079         * testsuite/libgomp.c++/atomic-9.C: New test.
10080         * testsuite/libgomp.c++/task-8.C: New test.
10081         * testsuite/libgomp.c++/reduction-4.C: New test.
10082         * testsuite/libgomp.fortran/allocatable7.f90: New test.
10083         * testsuite/libgomp.fortran/allocatable8.f90: New test.
10084         * testsuite/libgomp.fortran/crayptr3.f90: New test.
10085         * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
10086         * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
10087         * testsuite/libgomp.fortran/pointer1.f90: New test.
10088         * testsuite/libgomp.fortran/pointer2.f90: New test.
10089         * testsuite/libgomp.fortran/task4.f90: New test.
10091 2011-08-02  Tobias Burnus  <burnus@net-b.de>
10093         * libgomp.texi: Update OpenMP spec references to 3.1.
10094         (omp_in_final,OMP_PROC_BIND): New sections.
10095         (OMP_NUM_THREADS): Document that the value can be now a list.
10096         (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
10098 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
10100         * config/linux/x86/futex.h: Check __x86_64__ instead of
10101         __LP64__.
10103 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
10105         PR middle-end/49897
10106         PR middle-end/49898
10107         * testsuite/libgomp.c/pr49897-1.c: New test.
10108         * testsuite/libgomp.c/pr49897-2.c: New test.
10109         * testsuite/libgomp.c/pr49898-1.c: New test.
10110         * testsuite/libgomp.c/pr49898-2.c: New test.
10112 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
10114         * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
10115         for ia32 instead of ilp32.
10117         * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
10118         * testsuite/libgomp.c/atomic-6.c: Likewise.
10120 2011-07-23  Sebastian Pop  <sebastian.pop@amd.com>
10122         * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
10123         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
10125 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10127         PR libgomp/45351
10128         * config/osf/sem.h: New file.
10129         * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
10131 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10133         PR target/49541
10134         * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
10135         ldflags.
10137 2011-07-15  Jakub Jelinek  <jakub@redhat.com>
10139         * config/linux/wait.h (do_spin): New inline, largely copied
10140         from do_wait, just don't do futex_wait here, instead return true if
10141         it should be done.
10142         (do_wait): Implement using do_spin.
10143         * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
10144         to prototype.
10145         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10146         __sync_bool_compare_and_swap, pass the oldval to
10147         gomp_mutex_lock_slow.
10148         * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
10149         If all mutex contenders are just spinning and not sleeping, don't
10150         change state to 2 unnecessarily.  Optimize the loop when state has
10151         already become 2 to use just one atomic operation per loop instead
10152         of two.
10153         * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
10154         to prototype.
10155         (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10156         __sync_bool_compare_and_swap, pass the oldval to
10157         gomp_mutex_lock_slow.
10159 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
10161         PR libgomp/49490
10162         * iter.c (gomp_iter_static_next): For chunk size 0
10163         only use n ceil/ nthreads size for the first
10164         n % nthreads threads in the team instead of
10165         all threads except for the last few ones which
10166         get less work or none at all.
10167         * iter_ull.c (gomp_iter_ull_static_next): Likewise.
10168         * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
10169         chunk argument, set run_sched_modifier to 0 for static
10170         resp. 1 for other kinds.  If chunk argument is 0
10171         and not static, set value to 1.
10173 2011-05-19  Jakub Jelinek  <jakub@redhat.com>
10175         PR c++/49043
10176         * testsuite/libgomp.c++/pr49043.C: New test.
10178         PR c++/48869
10179         * testsuite/libgomp.c++/pr48869.C: New test.
10181 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
10183         PR fortran/48894
10184         * fortran.c: Include limits.h.
10185         (TO_INT): Define.
10186         (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
10187         *set.
10188         (omp_set_num_threads_8_, omp_set_schedule_8_,
10189         omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
10190         omp_get_team_size_8_): Use TO_INT macro.
10191         * testsuite/libgomp.fortran/pr48894.f90: New test.
10193 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
10195         PR middle-end/48591
10196         * testsuite/libgomp.c/pr48591.c: New test.
10198 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10200         PR bootstrap/48135
10201         * acinclude.m4 (enable_symvers): Handle --disable-symvers.
10202         * configure: Regenerate.
10204 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
10206         PR fortran/47886
10207         * testsuite/libgomp.fortran/task3.f90: New test.
10209 2011-02-24  Tobias Burnus  <burnus@net-b.de>
10211         * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
10213 2011-02-23  Jakub Jelinek  <jakub@redhat.com>
10215         PR libgomp/47854
10216         * libgomp.texi (omp_get_wtime): Don't say time in the past
10217         must be Unix Epoch.
10219 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
10221         PR libgomp/47804
10222         * testsuite/libgomp.fortran/fortran.exp: Check for both
10223         libquadmath.a and libquadmath.${shlib_ext}.  If neither exists,
10224         but $blddir != "", still append ${blddir}/${lang_library_path}
10225         to ld_library_path.
10227 2011-02-16  Tobias Burnus  <burnus@net-b.de>
10229         PR libgomp/47758
10230         * testsuite/libgomp.fortran/fortran.exp: Check for the existence
10231         of libquadmath.a before adding its libpath to ldflags.
10233 2011-02-14  Jakub Jelinek  <jakub@redhat.com>
10235         PR libgomp/47731
10236         * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
10237         to FUTEX_WAIT futex syscall.
10238         * config/linux/wait.h: Include <futex.h> instead of "futex.h".
10240 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10242         * configure: Regenerate.
10244 2011-01-20  Benjamin Kosnik  <bkoz@redhat.com>
10246         PR libstdc++/36104
10247         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
10249 2011-01-16  Gerald Pfeifer
10251         * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
10253 2010-12-14  Jakub Jelinek  <jakub@redhat.com>
10255         PR fortran/46874
10256         * libgomp.fortran/allocatable6.f90: New test.
10258 2010-12-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10260         * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
10261         * configure: Regenerate.
10263 2010-12-06  Dave Korn  <dave.korn.cygwin@gmail.com>
10265         PR target/40125
10266         PR lto/46695
10267         * configure.ac: Invoke ACX_LT_HOST_FLAGS.
10268         * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
10269         * aclocal.m4: Regenerate.
10270         * configure: Regenerate.
10271         * Makefile.in: Regenerate.
10272         * testsuite/Makefile.in: Regenerate.
10274 2010-12-02  Jakub Jelinek  <jakub@redhat.com>
10276         PR fortran/46753
10277         * libgomp.fortran/pr46753.f90: New test.
10279         PR libgomp/43706
10280         * env.c (initialize_env): Default to spin count 300000
10281         instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
10282         is specified.
10284         PR libgomp/45240
10285         * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
10286         at the end if sync builtins aren't supported.
10288 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10290         * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
10292 2010-12-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10294         * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
10296 2010-11-24  Iain Sandoe  <iains@gcc.gnu.org>
10298         * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
10300 2010-11-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10301             Tobias Burnus  <burnus@net-b.de>
10303         PR fortran/32049
10304         * configure.ac:
10305         * configure: Regenerate.
10307 2010-10-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10309         * config/linux/futex.h: New.
10310         * config/linux/arm/mutex.h: New.
10311         * configure.tgt (arm*-*-linux*): Add config path.
10313 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
10315         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10317 2010-09-23  Tobias Burnus  <burnus@net-b.de>
10319         * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
10320         Change Fortran datatype to LOGICAL.
10321         (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
10322         omp_unset_nested_lock): Use intent(inout) instead of intent(out).
10324 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10326         * configure: Regenerate.
10328 2010-07-26  Jakub Jelinek  <jakub@redhat.com>
10330         * libgomp.texi: Add function keyword to a couple of Fortran
10331         interfaces, use integer instead of int for Fortran.
10333 2010-07-26  Aldy Hernandez  <aldyh@redhat.com>
10335         * libgomp.texi: Fix spelling and pasto problems throughout.
10336         Adjust prototypes to match code.
10338 2010-07-24  Tobias Burnus  <burnus@net-b.de>
10340         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
10341         silence -fwhole-file warning.
10343 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10345         * configure.tgt (*-*-solaris2.[56]*): Removed.
10347 2010-07-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10349         * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
10350         Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
10351         LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
10352         (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
10353         targetting solaris2*.
10354         * configure: Regenerate.
10355         * config.h.in: Regenerate.
10357         * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
10358         libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
10359         Add libgomp_version_dep.
10360         [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
10361         versioning.
10362         [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
10363         (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
10364         * Makefile.in: Regenerate.
10366         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
10367         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10368         * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
10369         to common block, protected by
10370         HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10372 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
10374         * libgomp.texi: Move to GFDL version 1.3.  Update copyright years.
10376 2010-06-09  Iain Sandoe  <iains@gcc.gnu.org>
10378         PR bootstrap/43170
10379         * configure: Regenerate.
10381 2010-05-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10383         PR other/43620
10384         * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
10385         * configure: Regenerate.
10386         * Makefile.in: Regenerate.
10387         * testsuite/Makefile.in: Regenerate.
10389 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
10391         PR c/43893
10392         * testsuite/libgomp.c/pr43893.c: New test.
10393         * testsuite/libgomp.c++/pr43893.C: New test.
10395 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
10397         PR middle-end/43570
10398         * testsuite/libgomp.fortran/vla8.f90: New test.
10400 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
10402         PR libgomp/43706
10403         * config/linux/affinity.c (gomp_init_affinity): Decrease
10404         gomp_available_cpus if affinity mask confines the process to fewer
10405         CPUs.
10406         * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
10407         non-NULL, just return gomp_available_cpus.
10409         PR libgomp/43569
10410         * sections.c (gomp_sections_init): Initialize ws->mode.
10412 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
10414         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
10415         not unused bar variable.
10416         * configure: Regenerate.
10418 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10420         * Makefile.in: Regenerate.
10421         * aclocal.m4: Regenerate.
10422         * testsuite/Makefile.in: Regenerate.
10424 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
10426         PR libgomp/42942
10427         * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
10428         (initialize_env): Adjust callers.
10429         (omp_set_max_active_levels): Set gomp_max_active_levels_var even
10430         when the argument is 0.
10432         * testsuite/libgomp.c/pr42942.c: New test.
10434 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
10436         PR middle-end/42644
10437         PR middle-end/42130
10438         * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10439         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
10441 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10443         * testsuite/libgomp.c++/task-1.C: Renamed err to e.
10444         * testsuite/libgomp.c++/task-6.C: Likewise.
10446 2010-01-28  Steve Ellcey  <sje@cup.hp.com>
10448         * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
10450 2010-01-26  Paolo Bonzini  <bonzini@gnu.org>
10452         * configure.ac: Test for executability of _the first word_ of GFORTRAN.
10453         * configure: Regenerate.
10455 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
10457         PR fortran/42866
10458         * testsuite/libgomp.fortran/allocatable5.f90: New test.
10460 2010-01-20  Paolo Bonzini  <bonzini@gnu.org>
10462         * configure.ac: Test for executability of GFORTRAN.
10463         * configure: Regenerate.
10465 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10467         * configure: Regenerate.
10469 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
10471         PR libgomp/42602
10472         * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
10474 2010-01-03  Richard Guenther  <rguenther@suse.de>
10476         * testsuite/libgomp.fortran/recursion1.f90: New testcase.
10478 2009-12-23  Sebastian Pop  <sebpop@gmail.com>
10480         * testsuite/libgomp.graphite/pr4118.c: New.
10482 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
10484         * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
10485         for darwin, protect the test with require-effective-target tls_runtime.
10486         * testsuite/libgomp.fortran/pr32550.f90: Ditto.
10488 2009-12-22  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
10490         PR target/41605
10491         * testsuite/lib/libgomp.exp: Provide -B options to allow for
10492         link spec %s substitutions for static libraries.
10494 2009-12-18  Jack Howarth <howarth@bromo.med.uc.edu>
10496         PR testsuite/42135
10497         * libgomp.graphite/force-parallel-2.c: Reduce array size.
10499 2009-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10501         * Makefile.in: Regenerate.
10502         * configure: Regenerate.
10503         * testsuite/Makefile.in: Regenerate.
10505 2009-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
10507         * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
10508         settings for LC_ALL and LANG.
10510 2009-11-25  Jakub Jelinek  <jakub@redhat.com>
10512         PR fortran/42162
10513         * testsuite/libgomp.fortran/pr42162.f90: New test.
10515 2009-11-13  Jakub Jelinek  <jakub@redhat.com>
10517         PR middle-end/42029
10518         * testsuite/libgomp.c/pr42029.c: New test.
10520 2009-10-26  Jakub Jelinek  <jakub@redhat.com>
10522         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
10523         *s.  Accept ld version without text in ()s.
10524         * configure: Regenerated.
10526 2009-10-22  Razya Ladelsky  <razya@il.ibm.com>
10528         * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
10530 2009-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10532         PR libgomp/41418
10533         * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
10534         or a hyphen (happens with fortran language disabled).
10535         * configure: Regenerate.
10537 2009-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10539         * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
10540         use sed script portable to Solaris /bin/sed for extracting ld
10541         version.
10542         * configure: Regenerate.
10544 2009-09-17  Alexander Monakov  <amonakov@ispras.ru>
10546         * testsuite/libgomp.graphite/bounds.c: New test.
10548 2009-09-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10550         * Makefile.am (libgomp_la_LINK): New.
10551         * Makefile.in: Regenerate.
10553 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10555         * configure.ac (AC_PREREQ): Bump to 2.64.
10557 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10559         * Makefile.am (install-html, install-pdf): Remove.
10560         * Makefile.in: Regenerate.
10562         * Makefile.in: Regenerate.
10563         * aclocal.m4: Regenerate.
10564         * config.h.in: Regenerate.
10565         * configure: Regenerate.
10566         * testsuite/Makefile.in: Regenerate.
10568 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10570         * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
10571         * Makefile.in: Regenerate.
10573 2009-08-20  Dave Korn  <dave.korn.cygwin@gmail.com>
10575         * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
10576         * Makefile.in: Regenerate.
10578 2009-08-19  Tobias Burnus  <burnus@net-b.de>
10580         PR fortran/41102
10581         omp_lib.h.in: Fix -std=f95 errors.
10583 2009-08-14  David Edelsohn  <edelsohn@gnu.org>
10585         * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
10586         * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
10587         * testsuite/libgomp.graphite/graphite.exp: New.
10589 2009-08-05  Andreas Tobler  <a.tobler@schweiz.org>
10591         * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
10592         only build.
10594 2009-08-04  David Daney  <ddaney@caviumnetworks.com>
10596         * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
10597         needed memory barrier semantics.
10598         * config/linux/mips/mutex.h: New file.
10600 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10602         * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
10604 2009-07-16  Joseph Myers  <joseph@codesourcery.com>
10606         * configure: Regenerate.
10608 2009-07-11  Richard Sandiford  <rdsandiford@googlemail.com>
10610         PR testsuite/40699
10611         PR testsuite/40707
10612         PR testsuite/40709
10613         * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
10614         * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
10615         testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
10617 2009-07-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
10619         * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
10620         options when choosing a multilib.
10622 2009-06-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
10624         * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
10625         ld_library_path.  Use add_path.  Add just find_libgcc_s to
10626         ld_library_path, not every libgcc multilib directory.
10627         * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
10628         gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
10629         * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
10630         Use add_path.
10631         * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
10633 2009-06-09  Nathan Froyd  <froydnj@codesourcery.com>
10635         * Makefile.am (LTLDFLAGS): Define.
10636         (LINK): Define.
10637         * Makefile.in: Regenerate.
10639 2009-05-27  Janne Blomqvist  <jb@gcc.gnu.org>
10641         PR fortran/39718
10642         * testsuite/libgomp.fortran/fortran.exp: Don't link with
10643         libgfortranbegin, check existence of libgfortran.a instead of
10644         libgfortranbegin.a.
10646 2009-05-20  Jakub Jelinek  <jakub@redhat.com>
10648         PR libgomp/40174
10649         * team.c (gomp_thread_start): Destroy thr->release semaphore.
10650         (gomp_free_pool_helper): Likewise.
10652 2009-04-20  Vasilis Liaskovitis  <vliaskov@gmail.com>
10653             Jakub Jelinek  <jakub@redhat.com>
10655         PR fortran/35423
10656         * testsuite/libgomp.fortran/workshare2.f90: New test.
10658 2009-04-09  Nick Clifton  <nickc@redhat.com>
10660         * iter.c: Change copyright header to refer to version 3 of the
10661         GNU General Public License with version 3.1 of the GCC Runtime
10662         Library Exception and to point readers at the COPYING3 and
10663         COPYING3.RUNTIME files and the FSF's license web page.
10664         * alloc.c: Likewise.
10665         * barrier.c: Likewise.
10666         * config/bsd/proc.c: Likewise.
10667         * config/linux/affinity.c: Likewise.
10668         * config/linux/alpha/futex.h: Likewise.
10669         * config/linux/bar.c: Likewise.
10670         * config/linux/bar.h: Likewise.
10671         * config/linux/ia64/futex.h: Likewise.
10672         * config/linux/ia64/mutex.h: Likewise.
10673         * config/linux/lock.c: Likewise.
10674         * config/linux/mips/futex.h: Likewise.
10675         * config/linux/mutex.c: Likewise.
10676         * config/linux/mutex.h: Likewise.
10677         * config/linux/powerpc/futex.h: Likewise.
10678         * config/linux/proc.c: Likewise.
10679         * config/linux/ptrlock.c: Likewise.
10680         * config/linux/ptrlock.h: Likewise.
10681         * config/linux/s390/futex.h: Likewise.
10682         * config/linux/sem.c: Likewise.
10683         * config/linux/sem.h: Likewise.
10684         * config/linux/sparc/futex.h: Likewise.
10685         * config/linux/wait.h: Likewise.
10686         * config/linux/x86/futex.h: Likewise.
10687         * config/mingw32/proc.c: Likewise.
10688         * config/mingw32/time.c: Likewise.
10689         * config/posix/affinity.c: Likewise.
10690         * config/posix/bar.c: Likewise.
10691         * config/posix/bar.h: Likewise.
10692         * config/posix/lock.c: Likewise.
10693         * config/posix/mutex.h: Likewise.
10694         * config/posix/proc.c: Likewise.
10695         * config/posix/ptrlock.h: Likewise.
10696         * config/posix/sem.c: Likewise.
10697         * config/posix/sem.h: Likewise.
10698         * config/posix/time.c: Likewise.
10699         * config/posix95/lock.c: Likewise.
10700         * critical.c: Likewise.
10701         * env.c: Likewise.
10702         * error.c: Likewise.
10703         * fortran.c: Likewise.
10704         * iter_ull.c: Likewise.
10705         * libgomp.h: Likewise.
10706         * libgomp_f.h.in: Likewise.
10707         * libgomp_g.h: Likewise.
10708         * loop.c: Likewise.
10709         * loop_ull.c: Likewise.
10710         * omp.h.in: Likewise.
10711         * omp_lib.f90.in: Likewise.
10712         * omp_lib.h.in: Likewise.
10713         * ordered.c: Likewise.
10714         * parallel.c: Likewise.
10715         * sections.c: Likewise.
10716         * single.c: Likewise.
10717         * task.c: Likewise.
10718         * team.c: Likewise.
10719         * work.c: Likewise.
10721 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
10723         * testsuite/config/default.exp: Change copyright header to refer to
10724         version 3 of the GNU General Public License and to point readers
10725         at the COPYING3 file and the FSF's license web page.
10727 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
10729         PR middle-end/39573
10730         * libgomp.c++/pr39573.C: New test.
10732 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
10734         PR other/39591
10735         * testsuite/libgomp.c/pr39591-1.c: New test.
10736         * testsuite/libgomp.c/pr39591-2.c: New test.
10737         * testsuite/libgomp.c/pr39591-3.c: New test.
10739 2009-03-25  Uros Bizjak  <ubizjak@gmail.com>
10741         * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
10742         * testsuite/libgomp.c/atomic-6.c: Ditto.
10744 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
10746         PR c/39495
10747         * testsuite/libgomp.c/loop-12.c: New test.
10748         * testsuite/libgomp.c/loop-11.c: New test.
10749         * testsuite/libgomp.c++/loop-11.C: New test.
10750         * testsuite/libgomp.c++/loop-12.C: New test.
10751         * testsuite/libgomp.c++/for-8.C: New test.
10753 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10755         * configure: Regenerate.
10757 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
10759         PR middle-end/39154
10760         * testsuite/libgomp.c/pr39154.c: New test.
10762 2009-01-30  Ian Lance Taylor  <iant@google.com>
10764         * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
10765         libgomp_ld_is_gold.  Get gold version number.
10766         (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
10767         * configure: Rebuild.
10769 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
10771         * testsuite/lib/libgomp.exp: Add -B option for targets that
10772         use libgfortran.a%s in their specs.
10774 2009-01-07  Jakub Jelinek  <jakub@redhat.com>
10776         PR libgomp/38086
10777         * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
10778         * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
10779         HAVE_AS_SYMVER_DIRECTIVE is not defined.
10780         * configure: Regenerated.
10781         * config.h.in: Likewise.
10783 2008-12-28  Jakub Jelinek  <jakub@redhat.com>
10785         PR c++/38650
10786         * testsuite/libgomp.c/pr38650.c: New test.
10787         * testsuite/libgomp.c++/pr38650.C: New test.
10789 2008-12-27  Jakub Jelinek  <jakub@redhat.com>
10791         * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
10793 2008-12-26  Uros Bizjak  <ubizjak@gmail.com>
10795         * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
10797 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10799         * configure: Regenerate.
10801 2008-12-08  Jakub Jelinek  <jakub@redhat.com>
10803         PR middle-end/36802
10804         * testsuite/libgomp.c/pr36802-1.c: New test.
10805         * testsuite/libgomp.c/pr36802-2.c: New test.
10806         * testsuite/libgomp.c/pr36802-3.c: New test.
10808 2008-12-01  Janis Johnson  <janis187@us.ibm.com>
10810         PR libgomp/38270
10811         * config/linux/powerpc/mutex.h: New.
10813 2008-12-01  Jakub Jelinek  <jakub@redhat.com>
10815         PR c++/38257
10816         * testsuite/libgomp.c++/for-7.C: New test.
10818         PR c++/38348
10819         * testsuite/libgomp.c++/for-6.C: New test.
10821 2008-11-26  Janis Johnson  <janis187@us.ibm.com>
10823         PR testsuite/28870
10824         * testsuite/lib/libgomp.exp: Include new timeout library files.
10825         (libgomp_target_compile): Set timeout value from new proc.
10827 2008-11-13  Steve Ellcey  <sje@cup.hp.com>
10829         PR libgomp/37938
10830         * config/linux/ia64/mutex.h: New.
10832 2008-11-04  Tobias Burnus  <burnus@net-b.de>
10834         PR libgomp/37935
10835         * libgomp.texi (Runtime library routines, environment variables):
10836         Update for OpenMP version 3.0.
10838 2008-09-26  Peter O'Gorman  <pogma@thewrittenword.com>
10839             Steve Ellcey  <sje@cup.hp.com>
10841         * configure: Regenerate for new libtool.
10842         * Makefile.in: Ditto.
10843         * testsuite/Makefile.in: Ditto.
10845 2008-09-19  Jakub Jelinek  <jakub@redhat.com>
10846             Andreas Tobler  <a.tobler@schweiz.org>
10848         * config/bsd/proc.c: New file.
10849         * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
10850         * configure.ac: Check for header <sys/sysctl.h>
10851         * configure: Regenerate.
10852         * config.h.in: Likewise.
10854 2008-09-05  Janis Johnson  <janis187@us.ibm.com>
10856         * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
10858 2008-08-31  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
10860         * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
10861         * Makefile.in: Regenerated.
10862         * testsuite/Makefile.in: Regenerated.
10864 2008-08-21  Nathan Froyd  <froydnj@codesourcery.com>
10866         * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
10867         depend on blddir if blddir exists.
10868         (libgomp_target_compile): Likewise.
10869         * testsuite/libgomp.c++/c++.exp: Likewise.
10870         * testsuite/libgomp.fortran/fortran.exp: Likewise.
10872 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10874         * libgomp.texi: Update to GFDL 1.2.  Update copyright years.
10875         Do not list GPL as Invariant Section.
10877 2008-07-28  Ilie Garbacea  <ilie@mips.com>
10878             Chao-ying Fu  <fu@mips.com>
10880         * configure.tgt: Enable futex for MIPS.
10881         * config/linux/mips/futex.h: New file.
10883 2008-07-16  Jakub Jelinek  <jakub@redhat.com>
10885         * team.c (gomp_team_end): Free team immediately if it has
10886         just one thread.
10888 2008-07-08  David Edelsohn  <edelsohn@gnu.org>
10890         * testsuite/libgomp.c++/c++.exp: Append multilib library path.
10891         * testsuite/libgomp.fortran/fortran.exp: Same.
10892         * testsuite/libgomp.c/c.exp: Same.
10893         * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
10894         directory to library path first.
10896 2008-06-29  Krister Walfridsson  <krister.walfridsson@gmail.com>
10898         * env.c (parse_stacksize): Add cast to avoid warning.
10899         (parse_spincount): Likewise.
10901 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
10903         * testsuite/libgomp.c/loop-10.c: New test.
10904         * libgomp.c/loop-3.c (main): Add lastprivate clause.
10905         * libgomp.c++/loop-6.C (main): Likewise.
10907         PR debug/36617
10908         * testsuite/libgomp.c/debug-1.c: New test.
10910 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
10912         * testsuite/libgomp.c/nqueens-1.c: New test.
10914         PR c++/36523
10915         * testsuite/libgomp.c++/task-7.C: New function.
10917 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10919         * configure: Regenerate.
10921 2008-06-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10923         * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
10924         mutex when HAVE_SYNC_BUILTINS isn't defined.
10926 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10928         * libgomp.texi (omp_test_lock): Fix typo.
10930 2008-06-12  Tobias Burnus  <burnus@net-b.de>
10932         * omp_lib.f90.in: Add "implicit none".
10934 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
10936         PR middle-end/36506
10937         * testsuite/libgomp.c/reduction-5.c: New test.
10939 2008-06-11  Jakub Jelinek  <jakub@redhat.com>
10941         * libgomp.h (struct gomp_task): Add in_tied_task field.
10942         * task.c (gomp_init_task): Initialize it.
10943         (GOMP_task): Likewise.  Call gomp_team_barrier_set_task_pending
10944         unconditionally.  Don't call gomp_team_barrier_wake if
10945         current task is implicit or if(0) from implicit and number of
10946         running tasks is equal to nthreads - 1.
10948         PR libgomp/36471
10949         * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
10950         omp_get_team_size_8): Fix pastos.
10952         PR libgomp/36469
10953         * configure.ac: Add AC_CHECK_FUNCS (strtoull).
10954         * configure: Regenerated.
10955         * config.h.in: Regenerated.
10956         * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
10957         defined.
10959 2008-06-06  Andreas Tobler  <a.tobler@schweiz.org>
10961         PR bootstrap/36452
10962         * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
10963         (GOMP_loop_ull_dynamic_start): Likewise.
10964         (GOMP_loop_ull_guided_start): Likewise.
10965         (GOMP_loop_ull_ordered_static_start): Likewise.
10966         (GOMP_loop_ull_ordered_dynamic_start): Likewise.
10967         (GOMP_loop_ull_ordered_guided_start): Likewise.
10969 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
10970             Richard Henderson  <rth@redhat.com>
10971             Ulrich Drepper  <drepper@redhat.com>
10972             Jakob Blomer  <jakob.blomer@ira.uka.de>
10974         * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
10975         Substitute also OMP_*LOCK_25*.
10976         * configure: Regenerated.
10977         * config.h.in: Regenerated.
10978         * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
10979         ptrlock.c and task.c.
10980         * Makefile.in: Regenerated.
10981         * testsuite/Makefile.in: Regenerated.
10982         * task.c: New file.
10983         * loop_ull.c: New file.
10984         * iter_ull.c: New file.
10985         * libgomp.h: Include ptrlock.h.
10986         (enum gomp_task_kind): New type.
10987         (struct gomp_team): Add task_lock, task_queue, task_count,
10988         task_running_count, single_count fields.  Add
10989         work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
10990         Remove work_share_lock, generation_mask,
10991         oldest_live_gen, num_live_gen and init_work_shares fields, add
10992         work work_share_list_alloc, work_share_list_free and work_share_chunk
10993         fields.  Change work_shares from pointer to pointers into an array.
10994         Change ordered_release field into gomp_sem_t ** from flexible array
10995         member.  Add implicit_task and initial_work_shares fields.
10996         Move close to the end of the struct.
10997         (struct gomp_team_state): Add single_count, last_work_share,
10998         active_level and level fields, remove work_share_generation.
10999         (gomp_barrier_handle_tasks): New prototype.
11000         (gomp_finish_task): New inline function.
11001         (struct gomp_work_share): Move chunk_size, end, incr into
11002         transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
11003         next_ll fields.  Reshuffle fields.  Add next_alloc,
11004         next_ws, next_free and inline_ordered_team_ids fields, change
11005         ordered_team_ids into pointer from flexible array member.
11006         Add mode field.  Put lock and next into a different cache line
11007         from most of the write-once fields.
11008         (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
11009         gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
11010         gomp_iter_ull_guided_next): New prototypes.
11011         (gomp_new_icv): New prototype.
11012         (struct gomp_thread): Add thread_pool and task fields.
11013         (struct gomp_thread_pool): New type.
11014         (gomp_new_team): New prototype.
11015         (gomp_team_start): Change type of last argument.
11016         (gomp_new_work_share): Removed.
11017         (gomp_init_work_share, gomp_fini_work_share): New prototypes.
11018         (gomp_work_share_init_done): New static inline.
11019         (gomp_throttled_spin_count_var, gomp_available_cpus,
11020         gomp_managed_threads): New extern decls.
11021         (gomp_init_task): New prototype.
11022         (gomp_spin_count_var): New extern var decl.
11023         (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
11024         or no alias support, or if not PIC.
11025         (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
11026         gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
11027         gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
11028         gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
11029         gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
11030         gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
11031         gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
11032         gomp_test_nest_lock_25): New prototypes.
11033         (omp_lock_symver, strong_alias): Define.
11034         (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
11035         decls.
11036         (gomp_end_task): New.
11037         (struct gomp_task_icv, gomp_global_icv): New.
11038         (gomp_thread_limit_var, gomp_max_active_levels_var): New.
11039         (struct gomp_task): New.
11040         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11041         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11042         (gomp_icv): New.
11043         (gomp_schedule_type): Reorder enum to match
11044         omp_sched_t.
11045         * team.c (struct gomp_thread_start_data): Add thread_pool and task
11046         fields.
11047         (gomp_thread_start): Add gomp_team_barrier_wait call.
11048         For non-nested case remove clearing of docked thread thr fields.
11049         Use pool fields instead of global gomp_* variables.  Use
11050         gomp_barrier_wait_last when needed.  Initialize ts.active_level.
11051         Create tasks for each member thread.
11052         (free_team): Only destroy team barrier, task_lock here and free it.
11053         (gomp_free_thread): Free last_team if non-NULL.
11054         (gomp_team_end): Call gomp_team_barrier_wait instead of
11055         gomp_barrier_wait.  For nested case call one extra
11056         gomp_barrier_wait.  Move here some destruction from free_team.
11057         Call free_team on pool->last_team if any, rather than freeing
11058         current team.  Destroy work_share_list_free_lock ifndef
11059         HAVE_SYNC_BUILTINS.
11060         (gomp_new_icv): New function.
11061         (gomp_threads, gomp_threads_size, gomp_threads_used,
11062         gomp_threads_dock): Removed.
11063         (gomp_thread_destructor): New variable.
11064         (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
11065         functions.
11066         (gomp_team_start): Create new pool if current thread doesn't have
11067         one.  Use pool fields instead of global gomp_* variables.
11068         Initialize thread_pool field for new threads.  Clear single_count.
11069         Change last argument from ws to team, don't create
11070         new team, set ts.work_share to &team->work_shares[0] and clear
11071         ts.last_work_share.  Don't clear ts.work_share_generation.
11072         If number of threads changed, adjust atomically gomp_managed_threads.
11073         Use gomp_init_task instead of gomp_new_task,
11074         set thr->task to the corresponding implicit_task array entry.
11075         Create tasks for each member thread.  Initialize ts.level.
11076         (initialize_team): Call pthread_key_create on
11077         gomp_thread_destructor.
11078         (team_destructor): New function.
11079         (new_team): Removed.
11080         (gomp_new_team): New function.
11081         (free_team): Free gomp_work_share blocks chained through next_alloc,
11082         instead of freeing work_shares and destroying work_share_lock.
11083         (gomp_team_end): Call gomp_fini_work_share.  If number of threads
11084         changed, adjust atomically gomp_managed_threads.  Use gomp_end_task.
11085         * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
11086         of gomp_barrier_wait.
11087         * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
11088         instead of gomp_barrier_wait.  Call gomp_work_share_init_done
11089         if gomp_work_share_start returned true.  Don't unlock ws->lock.
11090         (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
11091         of gomp_barrier_wait.
11092         (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS.  Call
11093         gomp_work_share_init_done if gomp_work_share_start returned true.
11094         Don't unlock ws->lock.
11095         * work.c: Include stddef.h.
11096         (free_work_share): Use work_share_list_free_lock instead
11097         of atomic chaining ifndef HAVE_SYNC_BUILTINS.  Add team argument.
11098         Call gomp_fini_work_share and then either free ws if orphaned, or
11099         put it into work_share_list_free list of the current team.
11100         (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
11101         functions.
11102         (gomp_work_share_start, gomp_work_share_end,
11103         gomp_work_share_end_nowait): Rewritten.
11104         * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
11105         (openmp_version): Set to 200805.
11106         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11107         omp_sched_guided, omp_sched_auto): New parameters.
11108         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11109         omp_set_max_active_levels, omp_get_max_active_levels,
11110         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11111         omp_get_active_level): New interfaces.
11112         * omp_lib.h.in (openmp_version): Set to 200805.
11113         (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11114         omp_sched_guided, omp_sched_auto): New parameters.
11115         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11116         omp_set_max_active_levels, omp_get_max_active_levels,
11117         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11118         omp_get_active_level): New externals.
11119         * loop.c: Include limits.h.
11120         (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
11121         GFS_AUTO.
11122         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
11123         Likewise.  Use gomp_icv.
11124         (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
11125         ts.static_trip here.
11126         (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
11127         gomp_work_share_init_done after gomp_loop_init.  Don't unlock ws->lock.
11128         (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
11129         gomp_work_share_init_done after gomp_loop_init.  If HAVE_SYNC_BUILTINS,
11130         don't unlock ws->lock, otherwise lock it.
11131         (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
11132         gomp_work_share_init_done after gomp_loop_init.  Lock ws->lock.
11133         (gomp_parallel_loop_start): Call gomp_new_team instead of
11134         gomp_new_work_share.  Call gomp_loop_init on &team->work_shares[0].
11135         Adjust gomp_team_start caller.  Pass 0 as second argument to
11136         gomp_resolve_num_threads.
11137         (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
11138         If adding ws->chunk_size nthreads + 1 times after end won't
11139         overflow, set ws->mode to 1.
11140         * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
11141         GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
11142         GOMP_loop_ull_ordered_static_start,
11143         GOMP_loop_ull_ordered_dynamic_start,
11144         GOMP_loop_ull_ordered_guided_start,
11145         GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
11146         GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
11147         GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
11148         GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
11149         GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
11150         prototypes.
11151         * libgomp.map: Export lock routines also @@OMP_2.0.
11152         (GOMP_loop_ordered_dynamic_first,
11153         GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
11154         GOMP_loop_ordered_static_first): Remove.
11155         (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
11156         GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
11157         GOMP_loop_ull_ordered_dynamic_next,
11158         GOMP_loop_ull_ordered_dynamic_start,
11159         GOMP_loop_ull_ordered_guided_next,
11160         GOMP_loop_ull_ordered_guided_start,
11161         GOMP_loop_ull_ordered_runtime_next,
11162         GOMP_loop_ull_ordered_runtime_start,
11163         GOMP_loop_ull_ordered_static_next,
11164         GOMP_loop_ull_ordered_static_start,
11165         GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
11166         GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
11167         GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
11168         (omp_set_schedule, omp_get_schedule,
11169         omp_get_thread_limit, omp_set_max_active_levels,
11170         omp_get_max_active_levels, omp_get_level,
11171         omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
11172         omp_set_schedule_, omp_set_schedule_8_,
11173         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11174         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11175         omp_get_max_active_levels_, omp_get_level_,
11176         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11177         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11178         New exports @@OMP_3.0.
11179         * omp.h.in (omp_sched_t): New type.
11180         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11181         omp_set_max_active_levels, omp_get_max_active_levels,
11182         omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11183         omp_get_active_level): New prototypes.
11184         * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
11185         gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
11186         gomp_thread_limit_var, gomp_remaining_threads_count,
11187         gomp_remaining_threads_lock): New variables.
11188         (parse_spincount): New function.
11189         (initialize_env): Call gomp_init_num_threads unconditionally.
11190         Initialize gomp_available_cpus.  Call parse_spincount,
11191         initialize gomp_{,throttled_}spin_count_var
11192         depending on presence and value of OMP_WAIT_POLICY and
11193         GOMP_SPINCOUNT env vars.  Handle GOMP_BLOCKTIME env var.
11194         Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
11195         OMP_THREAD_LIMIT, OMP_STACKSIZE env vars.  Handle unit specification
11196         for GOMP_STACKSIZE.  Initialize gomp_remaining_threads_count and
11197         gomp_remaining_threads_lock if needed.  Use gomp_global_icv.
11198         (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11199         gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11200         (gomp_global_icv): New.
11201         (parse_schedule): Use it.  Parse "auto".
11202         (omp_set_num_threads): Use gomp_icv.
11203         (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
11204         Likewise.
11205         (omp_get_max_threads): Move from parallel.c.
11206         (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11207         omp_set_max_active_levels, omp_get_max_active_levels): New functions,
11208         add ialias.
11209         (parse_stacksize, parse_wait_policy): New functions.
11210         * fortran.c: Rewrite lock wrappers, if symbol versioning provide
11211         both wrappers for compatibility and new locks.
11212         (omp_set_schedule, omp_get_schedule,
11213         omp_get_thread_limit, omp_set_max_active_levels,
11214         omp_get_max_active_levels, omp_get_level,
11215         omp_get_ancestor_thread_num, omp_get_team_size,
11216         omp_get_active_level): New ialias_redirect.
11217         (omp_set_schedule_, omp_set_schedule_8_,
11218         omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11219         omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11220         omp_get_max_active_levels_, omp_get_level_,
11221         omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11222         omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11223         New functions.
11224         * parallel.c: Include limits.h.
11225         (gomp_resolve_num_threads): Add count argument.  Rewritten.
11226         (GOMP_parallel_start): Call gomp_new_team and pass that as last
11227         argument to gomp_team_start.  Pass 0 as second argument to
11228         gomp_resolve_num_threads.
11229         (GOMP_parallel_end): Decrease gomp_remaining_threads_count
11230         if gomp_thread_limit_var != ULONG_MAX.
11231         (omp_in_parallel): Implement using ts.active_level.
11232         (omp_get_max_threads): Move to env.c.
11233         (omp_get_level, omp_get_ancestor_thread_num,
11234         omp_get_team_size, omp_get_active_level): New functions,
11235         add ialias.
11236         * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
11237         after gomp_sections_init.  If HAVE_SYNC_BUILTINS, call
11238         gomp_iter_dynamic_next instead of the _locked variant and don't take
11239         lock around it, otherwise acquire it before calling
11240         gomp_iter_dynamic_next_locked.
11241         (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
11242         gomp_iter_dynamic_next instead of the _locked variant and don't take
11243         lock around it.
11244         (GOMP_parallel_sections_start): Call gomp_new_team instead of
11245         gomp_new_work_share.  Call gomp_sections_init on &team->work_shares[0].
11246         Adjust gomp_team_start caller.  Pass count as second argument to
11247         gomp_resolve_num_threads, don't adjust num_threads after the call.
11248         Use gomp_icv.
11249         * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
11250         ws->chunk_size by incr.
11251         (gomp_iter_dynamic_next): Likewise.  If ws->mode, use more efficient
11252         code.
11253         * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
11254         types.
11255         (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
11256         (omp_check_defines): Check even the compat defines.
11257         * config/linux/ptrlock.c: New file.
11258         * config/linux/ptrlock.h: New file.
11259         * config/linux/wait.h: New file.
11260         * config/posix/ptrlock.c: New file.
11261         * config/posix/ptrlock.h: New file.
11262         * config/linux/bar.h (gomp_team_barrier_wait,
11263         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11264         (gomp_team_barrier_set_task_pending,
11265         gomp_team_barrier_clear_task_pending,
11266         gomp_team_barrier_set_waiting_for_tasks,
11267         gomp_team_barrier_waiting_for_tasks,
11268         gomp_team_barrier_done): New inlines.
11269         (gomp_barrier_t): Rewritten.
11270         (gomp_barrier_state_t): New typedef.
11271         (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
11272         gomp_barrier_wait_start): Rewritten.
11273         (gomp_barrier_wait_end): Change second argument to
11274         gomp_barrier_state_t.
11275         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11276         inlines.
11277         * config/linux/bar.c: Include wait.h instead of libgomp.h and
11278         futex.h.
11279         (gomp_barrier_wait_end): Rewritten.
11280         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11281         gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
11282         * config/posix/bar.h (gomp_barrier_t): Add generation field.
11283         (gomp_barrier_state_t): New typedef.
11284         (gomp_team_barrier_wait,
11285         gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11286         (gomp_barrier_wait_start): Or all but low 2 bits from generation
11287         into the return value.  Return gomp_barrier_state_t.
11288         (gomp_team_barrier_set_task_pending,
11289         gomp_team_barrier_clear_task_pending,
11290         gomp_team_barrier_set_waiting_for_tasks,
11291         gomp_team_barrier_waiting_for_tasks,
11292         gomp_team_barrier_done): New inlines.
11293         (gomp_barrier_wait_end): Change second argument to
11294         gomp_barrier_state_t.
11295         (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11296         inlines.
11297         * config/posix/bar.c (gomp_barrier_init): Clear generation field.
11298         (gomp_barrier_wait_end): Change second argument to
11299         gomp_barrier_state_t.
11300         (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11301         gomp_team_barrier_wake): New functions.
11302         * config/linux/mutex.c: Include wait.h instead of libgomp.h and
11303         futex.h.
11304         (gomp_futex_wake, gomp_futex_wait): New variables.
11305         (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
11306         * config/linux/lock.c: Rewrite to make locks task owned,
11307         for backwards compatibility provide the old entrypoints
11308         if symbol versioning.  Include wait.h instead of libgomp.h and
11309         futex.h.
11310         (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
11311         * config/posix95/lock.c: Rewrite to make locks task owned,
11312         for backwards compatibility provide the old entrypoints
11313         if symbol versioning.
11314         * config/posix/lock.c: Rewrite to make locks task owned,
11315         for backwards compatibility provide the old entrypoints
11316         if symbol versioning.
11317         * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
11318         (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
11319         * config/posix/proc.c, config/mingw32/proc.c: Similarly.
11320         * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11321         (sys_futex0): Return error code.
11322         (futex_wake, futex_wait): If ENOSYS was returned, clear
11323         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11324         (cpu_relax, atomic_write_barrier): New static inlines.
11325         * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11326         (futex_wake, futex_wait): If ENOSYS was returned, clear
11327         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11328         (cpu_relax, atomic_write_barrier): New static inlines.
11329         * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11330         (sys_futex0): Return error code.
11331         (futex_wake, futex_wait): If ENOSYS was returned, clear
11332         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11333         (cpu_relax, atomic_write_barrier): New static inlines.
11334         * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11335         (sys_futex0): Return error code.
11336         (futex_wake, futex_wait): If ENOSYS was returned, clear
11337         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11338         (cpu_relax, atomic_write_barrier): New static inlines.
11339         * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11340         (sys_futex0): Return error code.
11341         (futex_wake, futex_wait): If ENOSYS was returned, clear
11342         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11343         (cpu_relax, atomic_write_barrier): New static inlines.
11344         * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11345         (sys_futex0): Return error code.
11346         (futex_wake, futex_wait): If ENOSYS was returned, clear
11347         FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11348         (cpu_relax, atomic_write_barrier): New static inlines.
11349         * config/linux/sem.c: Include wait.h instead of libgomp.h and
11350         futex.h.
11351         (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
11352         * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
11353         * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
11354         types.
11355         (omp_nest_lock_t): Change owner into void *, add lock field.
11356         * config/posix95/omp-lock.h: Include semaphore.h.
11357         (omp_lock_25_t, omp_nest_lock_25_t): New types.
11358         (omp_lock_t): Use sem_t instead of mutex if semaphores
11359         aren't broken.
11360         (omp_nest_lock_t): Likewise.  Change owner to void *.
11361         * config/posix/omp-lock.h: Include semaphore.h.
11362         (omp_lock_25_t, omp_nest_lock_25_t): New types.
11363         (omp_lock_t): Use sem_t instead of mutex if semaphores
11364         aren't broken.
11365         (omp_nest_lock_t): Likewise.  Add owner field.
11367 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
11369         * testsuite/libgomp.c/collapse-1.c: New test.
11370         * testsuite/libgomp.c/collapse-2.c: New test.
11371         * testsuite/libgomp.c/collapse-3.c: New test.
11372         * testsuite/libgomp.c/icv-1.c: New test.
11373         * testsuite/libgomp.c/icv-2.c: New test.
11374         * testsuite/libgomp.c/lib-2.c: New test.
11375         * testsuite/libgomp.c/lock-1.c: New test.
11376         * testsuite/libgomp.c/lock-2.c: New test.
11377         * testsuite/libgomp.c/lock-3.c: New test.
11378         * testsuite/libgomp.c/loop-4.c: New test.
11379         * testsuite/libgomp.c/loop-5.c: New test.
11380         * testsuite/libgomp.c/loop-6.c: New test.
11381         * testsuite/libgomp.c/loop-7.c: New test.
11382         * testsuite/libgomp.c/loop-8.c: New test.
11383         * testsuite/libgomp.c/loop-9.c: New test.
11384         * testsuite/libgomp.c/nested-3.c: New test.
11385         * testsuite/libgomp.c/nestedfn-6.c: New test.
11386         * testsuite/libgomp.c/sort-1.c: New test.
11387         * testsuite/libgomp.c/task-1.c: New test.
11388         * testsuite/libgomp.c/task-2.c: New test.
11389         * testsuite/libgomp.c/task-3.c: New test.
11390         * testsuite/libgomp.c/task-4.c: New test.
11391         * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
11392         to C++ testsuite default compiler options.
11393         * testsuite/libgomp.c++/collapse-1.C: New test.
11394         * testsuite/libgomp.c++/collapse-2.C: New test.
11395         * testsuite/libgomp.c++/ctor-10.C: New test.
11396         * testsuite/libgomp.c++/for-1.C: New test.
11397         * testsuite/libgomp.c++/for-2.C: New test.
11398         * testsuite/libgomp.c++/for-3.C: New test.
11399         * testsuite/libgomp.c++/for-4.C: New test.
11400         * testsuite/libgomp.c++/for-5.C: New test.
11401         * testsuite/libgomp.c++/loop-8.C: New test.
11402         * testsuite/libgomp.c++/loop-9.C: New test.
11403         * testsuite/libgomp.c++/loop-10.C: New test.
11404         * testsuite/libgomp.c++/task-1.C: New test.
11405         * testsuite/libgomp.c++/task-2.C: New test.
11406         * testsuite/libgomp.c++/task-3.C: New test.
11407         * testsuite/libgomp.c++/task-4.C: New test.
11408         * testsuite/libgomp.c++/task-5.C: New test.
11409         * testsuite/libgomp.c++/task-6.C: New test.
11410         * testsuite/libgomp.fortran/allocatable1.f90: New test.
11411         * testsuite/libgomp.fortran/allocatable2.f90: New test.
11412         * testsuite/libgomp.fortran/allocatable3.f90: New test.
11413         * testsuite/libgomp.fortran/allocatable4.f90: New test.
11414         * testsuite/libgomp.fortran/collapse1.f90: New test.
11415         * testsuite/libgomp.fortran/collapse2.f90: New test.
11416         * testsuite/libgomp.fortran/collapse3.f90: New test.
11417         * testsuite/libgomp.fortran/collapse4.f90: New test.
11418         * testsuite/libgomp.fortran/lastprivate1.f90: New test.
11419         * testsuite/libgomp.fortran/lastprivate2.f90: New test.
11420         * testsuite/libgomp.fortran/lib4.f90: New test.
11421         * testsuite/libgomp.fortran/lock-1.f90: New test.
11422         * testsuite/libgomp.fortran/lock-2.f90: New test.
11423         * testsuite/libgomp.fortran/nested1.f90: New test.
11424         * testsuite/libgomp.fortran/nestedfn4.f90: New test.
11425         * testsuite/libgomp.fortran/strassen.f90: New test.
11426         * testsuite/libgomp.fortran/tabs1.f90: New test.
11427         * testsuite/libgomp.fortran/tabs2.f: New test.
11428         * testsuite/libgomp.fortran/task1.f90: New test.
11429         * testsuite/libgomp.fortran/task2.f90: New test.
11430         * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
11431         * testsuite/libgomp.fortran/vla5.f90: Likewise.
11432         * testsuite/libgomp.c/pr26943-2.c: Likewise.
11433         * testsuite/libgomp.c/pr26943-3.c: Likewise.
11434         * testsuite/libgomp.c/pr26943-4.c: Likewise.
11436 2008-05-23  Jakub Jelinek  <jakub@redhat.com>
11438         PR c++/36308
11439         * testsuite/libgomp.c++/ctor-11.C: New test.
11440         * testsuite/libgomp.c++/ctor-12.C: New test.
11442 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
11444         * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
11446 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
11448         PR middle-end/36106
11449         * testsuite/libgomp.c/atomic-5.c: New test.
11450         * testsuite/libgomp.c/atomic-6.c: New test.
11451         * testsuite/libgomp.c/autopar-1.c: New test.
11453 2008-04-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11455         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
11456         (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
11457         (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
11458         (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
11459         * configure: Regenerate.
11460         * Makefile.in, testsuite/Makefile.in: Likewise.
11462 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
11464         PR bootstrap/35457
11465         * aclocal.m4: Regenerate.
11466         * configure: Regenerate.
11468 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
11470         PR middle-end/35611
11471         * testsuite/libgomp.c/atomic-4.c: New test.
11473         PR libgomp/35625
11474         * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
11475         (gomp_iter_guided_next): Likewise.
11476         * testsuite/libgomp.c/pr35625.c: New test.
11478 2008-03-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11480         * aclocal.m4: Regenerate.
11481         * configure: Likewise.
11482         * Makefile.in: Likewise.
11483         * testsuite/Makefile.in: Likewise.
11485 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
11487         PR middle-end/35185
11488         * testsuite/libgomp.c++/pr35185.C: New test.
11490 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
11492         PR middle-end/35549
11493         * testsuite/libgomp.c/pr35549.c: New test.
11495 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
11497         * testsuite/libgomp.c/atomic-3.c: New test.
11499 2008-03-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
11501         PR fortran/33197
11502         * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
11503         .F08 file suffixes.
11505 2008-03-03  Peter O'Gorman  <pogma@thewrittenword.com>
11507         PR libgomp/33131
11508         * configure.ac: Add ACX_HEADER_STRING.
11509         * env.c: Include strings.h.
11510         * aclocal.m4: Regenerate.
11511         * config.h.in: Regenerate.
11512         * configure: Regenerate.
11513         * Makefile.in: Regenerate.
11514         * testsuite/Makefile.in: Regenerate.
11516 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
11518         PR middle-end/35196
11519         * testsuite/libgomp.c/pr35196.c: New test.
11521         PR middle-end/35130
11522         * testsuite/libgomp.fortran/pr35130.f90: New test.
11523         * testsuite/libgomp.c/pr35130.c: New test.
11525 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
11527         PR middle-end/33880
11528         * testsuite/libgomp.c/pr33880.c: New test.
11529         * testsuite/libgomp.fortran/pr33880.f90: New test.
11531 2008-01-24  David Edelsohn  <edelsohn@gnu.org>
11533         * configure: Regenerate.
11535 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
11537         * configure.ac: Move futex checking into ../config/futex.m4.
11538         * configure: Rebuilt.
11539         * aclocal.m4: Rebuilt.
11540         * Makefile.in: Rebuilt.
11542         * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
11543         2007-10-15 ../config/tls.m4 change.
11545 2007-12-19  Jakub Jelinek  <jakub@redhat.com>
11547         PR c++/34513
11548         * testsuite/libgomp.c/pr34513.c: New test.
11549         * testsuite/libgomp.c++/pr34513.C: New test.
11551 2007-12-17  Jack Howarth  <howarth@bromo.med.uc.edu>
11553         PR target/32765
11554         * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
11556 2007-12-04  Jakub Jelinek  <jakub@redhat.com>
11558         * omp.h.in (__GOMP_NOTHROW): Define.  Use it on omp_* prototypes.
11560 2007-12-03  Jakub Jelinek  <jakub@redhat.com>
11562         * testsuite/libgomp.c/private-1.c: New test.
11564 2007-11-29  Andris Pavenis <andris.pavenis@iki.fi>
11565             Paolo Bonzini  <bonzini@gnu.org>
11567         * Makefile.am: Use space as vpath separator.  Use 'vpath %'
11568         instead of 'VPATH ='.
11569         * Makefile.in: Regenerate.
11571 2007-11-23  Matthias Klose  <doko@ubuntu.com>
11573         * configure.ac: Adjust makeinfo version check.
11574         * configure: Regenerate.
11576 2007-11-10  Jakub Jelinek  <jakub@redhat.com>
11578         PR fortran/34020
11579         * testsuite/libgomp.fortran/pr34020.f90: New test.
11581 2007-11-06  Jakub Jelinek  <jakub@redhat.com>
11583         PR c++/33894
11584         * testsuite/libgomp.c++/atomic-1.C: New test.
11586 2007-10-25  Jakub Jelinek  <jakub@redhat.com>
11588         PR libgomp/33275
11589         * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
11590         Make x and y integers rather than (implicit) reals.  Add private (j)
11591         clause to the last omp parallel.
11593 2007-10-15  Maciej W. Rozycki  <macro@linux-mips.org>
11595         * configure: Regenerate following changes to ../config/tls.m4.
11597 2007-09-28  Jakub Jelinek  <jakub@redhat.com>
11599         * testsuite/libgomp.fortran/stack.f90: New test.
11601 2007-09-10  Danny Smith  <dannysmith@users.sourceforge.net>
11603         * config/mingw32/proc.c: New file.
11605 2007-09-05  Uros Bizjak  <ubizjak@gmail.com>
11607         * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
11608         (main): Use __get_cpuid to get i386 target fetaures.
11609         * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
11610         (main): Use __get_cpuid to get x86_64 target fetaures.
11612 2007-08-15  Jack Howarth  <howarth@bromo.med.uc.edu>
11614         PR target/32765
11615         * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
11616         * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
11618 2007-07-12  Jakub Jelinek  <jakub@redhat.com>
11620         PR fortran/32550
11621         * testsuite/libgomp.fortran/pr32550.f90: New test.
11622         * testsuite/libgomp.fortran/crayptr2.f90: New test.
11624 2007-07-05  H.J. Lu  <hongjiu.lu@intel.com>
11626         * aclocal.m4: Regenerated.
11628 2007-07-05  Tobias Burnus  <burnus@net-b.de>
11630         PR fortran/32359
11631         * testsuite/libgomp.fortran/pr32359.f90: New.
11633 2007-07-02  Jakub Jelinek  <jakub@redhat.com>
11635         PR libgomp/32468
11636         * sections.c (GOMP_parallel_sections_start): Only decrease
11637         number of threads to COUNT if dyn_var is true.
11638         * testsuite/libgomp.c/pr32468.c: New test.
11640 2007-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11642         PR libgomp/26308
11643         * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
11645 2007-06-21  Jakub Jelinek  <jakub@redhat.com>
11647         PR middle-end/32362
11648         * testsuite/libgomp.c/pr32362-1.c: New test.
11649         * testsuite/libgomp.c/pr32362-2.c: New test.
11650         * testsuite/libgomp.c/pr32362-3.c: New test.
11652 2007-06-07  Jakub Jelinek  <jakub@redhat.com>
11654         * team.c (gomp_team_start): Fix setting up thread_attr
11655         stack size.
11657 2007-06-02  Paolo Bonzini  <bonzini@gnu.org>
11659         * configure: Regenerate.
11661 2007-05-23  Steve Ellcey  <sje@cup.hp.com>
11663         * Makefile.in: Regenerate.
11664         * configure: Regenerate.
11665         * aclocal.m4: Regenerate.
11666         * testsuite/Makefile.in: Regenerate.
11668 2007-05-04  Jakub Jelinek  <jakub@redhat.com>
11670         * config/linux/proc.c: New file.
11672         PR libgomp/28482
11673         * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
11675 2007-04-19  Daniel Franke  <franke.daniel@gmail.com>
11677         * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
11679 2007-04-16  Matthias Klose  <doko@debian.org>
11681         * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
11682         flags if not building with -m64.
11683         * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
11684         flag for i?86-*-* targets, if current target matches -m64.
11686 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
11688         * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
11689         * Makefile.in: Regenerate.
11691 2007-04-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11693         PR testsuite/31369
11694         * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
11695         ld_library_path.
11696         * testsuite/libgomp.fortran/fortran.exp: Likewise.
11698 2007-04-04  Jakub Jelinek  <jakub@redhat.com>
11700         * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
11701         decls.
11702         (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
11703         * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
11704         (parse_affinity): New function.
11705         (initialize_env): Call it and gomp_init_affinity.
11706         * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
11707         create new pthread_attr_t and call gomp_init_thread_affinity
11708         on it for each thread before passing the attribute to pthread_create.
11709         * config/linux/affinity.c: New file.
11710         * config/posix/affinity.c: New file.
11711         * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
11712         * configure: Rebuilt.
11713         * config.h.in: Rebuilt.
11714         * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
11715         * Makefile.in: Rebuilt.
11717 2007-03-23  Andreas Tobler  <a.tobler@schweiz.org>
11719         * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
11720         *-*-darwin*.
11721         * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
11722         and use it if found.
11724 2007-03-18  Uros Bizjak  <ubizjak@gmail.com>
11726         * testsuite/config/default.exp: New file.
11727         * testsuite/lib/libgomp.exp: New file.
11728         * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
11729         libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
11730         load_lib *, load_gcc_lib *): Move to libgomp.exp.
11731         (libgomp_load): Remove.
11732         * testsuite/lib/libgomp.exp (libgomp_init): Compute
11733         always_ld_library_path, not ld_library_path.  Set additional_flags
11734         to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
11735         (target_compile): Do not call libgomp_init.  Append lang_library_path
11736         and lang_link_flags to options.
11737         * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2.  Set
11738         ld_library_path from always_ld_library_path.  Set LD_LIBRARY_PATH
11739         here.
11740         * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
11741         always_ld_library_path.  Set LD_LIBRARY_PATH here.
11742         * testsuite/libgomp.fortran/fortran.exp: Ditto.
11743         * testsuite/libgomp.c/atomic-1.c: Set dg-options to
11744         "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
11745         CX8 flag.
11746         * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
11747         lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
11748         * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
11749         * testsuite/libgomp.c/pr29947-1.c: Ditto.
11750         * testsuite/libgomp.c/atomic-10.c: Ditto.
11752 2007-03-21  Jakub Jelinek  <jakub@redhat.com>
11754         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
11755         dg-final cleanup-modules line.
11756         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
11757         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
11758         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
11759         * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11760         * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11761         * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11762         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11764 2007-03-18  Andreas Schwab  <schwab@suse.de>
11766         * acinclude.m4: Adjust regular expression for ld version
11767         extraction.
11768         * configure: Regenerate.
11770 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
11772         * Makefile.am: Add install-pdf target as copied from
11773         automake v1.10 rules.
11774         * Makefile.in: Regenerate
11776 2007-02-07  Jakub Jelinek  <jakub@redhat.com>
11778         PR libgomp/28486
11779         * configure: Regenerate.
11781         PR c++/30703
11782         * testsuite/libgomp.c++/pr30703.C: New test.
11784 2007-02-02  Jakub Jelinek  <jakub@redhat.com>
11786         Revert:
11787         2006-07-05  Eric Christopher  <echristo@apple.com>
11788         * configure.ac: Depend addition of -pthread on host OS.
11789         * configure: Regenerate.
11791 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11793         * libgomp.texi: Fix spacing after abbreviations.
11795 2007-01-31  Daniel Franke <franke.daniel@gmail.com>
11797         PR libgomp/30546
11798         * configure.ac: Add check for makeinfo
11799         * Makefile.am: Redefined target libgomp.info, build libgomp.info only
11800         if an appropriate version of makeinfo is found.
11801         * aclocal.m4: Regenerated.
11802         * configure: Regenerated.
11803         * Makefile.in: Regenerated.
11804         * testsuite/Makefile.in: Regenerated.
11806 2007-01-29  Daniel Franke <franke.daniel@gmail.com>
11808         PR libgomp/30540
11809         * libgomp.texi: More about implementation-dependent settings.
11811 2007-01-26  Tobias Burnus  <burnus@net-b.de>
11813         * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
11815 2007-01-24  Jakub Jelinek  <jakub@redhat.com>
11817         PR middle-end/30494
11818         * testsuite/libgomp.c/pr30494.c: New test.
11820 2007-01-15  Tom Tromey  <tromey@redhat.com>
11822         * configure: Rebuilt.
11823         * configure.ac: Fixed comment.
11825 2007-01-14  Daniel Franke  <franke.daniel@gmail.com>
11827         * libgomp.texi: Document implementation specific default values of
11828         environment variables.
11830 2006-12-21  Daniel Franke  <franke.daniel@gmail.com>
11832         PR libgomp/28209
11833         * libgomp.texi: New file.
11834         * configure.ac: Add --enable-generated-files-in-srcdir option.
11835         * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
11836         files to srcdir.
11837         * Makefile.in: Regenerated.
11838         * config.h.in: Regenerated.
11839         * testsuite/Makefile.in: Regenerated.
11840         * NOTES: Removed.
11842 2006-12-04  Daniel Franke  <franke.daniel@gmail.com>
11844         PR libgomp/29949
11845         * env.c (omp_set_num_threads): Set illegal thread count to 1.
11847 2006-12-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
11849         * configure: Regenerate.
11851 2006-12-04  Jakub Jelinek  <jakub@redhat.com>
11853         PR libgomp/29947
11854         * loop.c (gomp_loop_init): Make parameters signed.  Set ws->end to
11855         start if there shouldn't be any loop iterations.
11856         (gomp_loop_ordered_static_start): Remove start == end test.
11857         * testsuite/libgomp.c/pr29947-1.c: New test.
11858         * testsuite/libgomp.c/pr29947-2.c: New test.
11860 2006-12-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
11862         * configure.tgt: Force initial-exec TLS model on Linux only.
11864 2006-11-13  Daniel Jacobowitz  <dan@codesourcery.com>
11866         * configure: Regenerated.
11868 2006-11-09  Uros Bizjak  <ubizjak@gmail.com>
11870         * env.c (parse_schedule): Reject out of range values.
11871         (parse_unsigned_long): Reject out of range, negative or zero values.
11873 2006-10-29  Jakub Jelinek  <jakub@redhat.com>
11875         PR fortran/29629
11876         * testsuite/libgomp.fortran/pr29629.f90: New test.
11878 2006-10-24  Eric Botcazou  <ebotcazou@libertysurf.fr>
11880         PR libgomp/29494
11881         * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
11882         * config/posix95: New directory.
11883         * config/posix95/omp-lock.h: New file.
11884         * config/posix95/lock.c: Likewise.
11886 2006-10-14  Geoffrey Keating  <geoffk@apple.com>
11888         * aclocal.m4: Regenerate.
11889         * configure: Regenerate.
11891 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
11893         * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
11894         '<' to '<='.
11896 2006-10-05  Danny Smith  <dannysmith@users.sourceforge.net>
11898         * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
11899         test.
11900         * configure: Regenerate.
11901         * fortran.c  (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
11903 2006-09-26  Jakub Jelinek  <jakub@redhat.com>
11905         PR middle-end/25261
11906         PR middle-end/28790
11907         * testsuite/libgomp.c/nestedfn-4.c: New test.
11908         * testsuite/libgomp.c/nestedfn-5.c: New test.
11909         * testsuite/libgomp.fortran/nestedfn3.f90: New test.
11911         PR fortran/29097
11912         * testsuite/libgomp.fortran/condinc1.f: New test.
11913         * testsuite/libgomp.fortran/condinc2.f: New test.
11914         * testsuite/libgomp.fortran/condinc3.f90: New test.
11915         * testsuite/libgomp.fortran/condinc4.f90: New test.
11916         * testsuite/libgomp.fortran/condinc1.inc: New file.
11918 2006-09-18  Tom Tromey  <tromey@redhat.com>
11920         * configure: Rebuilt.
11922 2006-09-13  Joseph S. Myers  <joseph@codesourcery.com>
11924         PR c/28768
11925         PR preprocessor/14634
11926         * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
11927         to AC_DEFINE.
11928         * configure: Regenerate.
11930 2006-09-08  Steven G. Kargl  <kargl@gcc.gnu.org>
11932         * testsuite/libgomp.fortran/reduction3.f90: Change
11933         -2147483648 to -huge(i)-1 to avoid overflow.
11934         * testsuite/libgomp.fortran/reduction4.f90: Change
11935         Z'ffffffff' to not(0) to avoid overflow.
11937 2006-08-26  Joseph S. Myers  <joseph@codesourcery.com>
11939         PR libgomp/25938
11940         * Makefile.am (libsubincludedir): New.
11941         (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
11942         * Makefile.in: Regenerate.
11944 2006-08-17  Jakub Jelinek  <jakub@redhat.com>
11946         PR libgomp/28725
11947         * env.c: Include ctype.h.
11948         (parse_schedule, parse_unsigned_long, parse_boolean): Allow
11949         leading and/or trailing whitespace and compare strings case
11950         insensitively.
11952 2006-07-16  Jakub Jelinek  <jakub@redhat.com>
11954         PR fortran/28390
11955         * testsuite/libgomp.fortran/pr28390.f: New test.
11957 2006-07-05  Eric Christopher  <echristo@apple.com>
11959         * configure.ac: Depend addition of -pthread on host OS.
11960         * configure: Regenerate.
11962 2006-06-21  Jakub Jelinek  <jakub@redhat.com>
11964         * critical.c (GOMP_critical_name_start): Fix *pptr initialization
11965         when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
11966         defined.
11968 2006-06-20  Jakub Jelinek  <jakub@redhat.com>
11970         PR libgomp/26175
11971         PR libgomp/26477
11972         * configure.ac: If neither --enable-linux-futex nor
11973         --disable-linux-futex is passed, determine the default by checking
11974         for compiling and/or running against NPTL.  With --enable-linux-futex,
11975         check if SYS_gettid and SYS_futex are defined.
11976         * configure: Rebuilt.
11978 2006-06-14  Richard Henderson  <rth@redhat.com>
11980         PR libgomp/28008
11981         * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
11982         undefined.  Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
11984 2006-06-09  Richard Henderson  <rth@redhat.com>
11986         * env.c (gomp_nthreads_var): Change to unsigned long.
11987         (gomp_run_sched_chunk): Likewise.
11988         (parse_unsigned_long): Rename from parse_num_threads and generalize.
11989         (initialize_env): Initialize gomp_thread_attr.
11990         * libgomp.h (gomp_nthreads_var): Update decl.
11991         (gomp_run_sched_chunk): Likewise.
11992         (gomp_thread_attr): Declare.
11993         * team.c (gomp_thread_attr): Export.
11994         (initialize_team): Don't initialize it.
11996 2006-06-09  Jakub Jelinek  <jakub@redhat.com>
11998         PR fortran/27916
11999         * testsuite/libgomp.fortran/pr27916-1.f90: New test.
12000         * testsuite/libgomp.fortran/pr27916-2.f90: New test.
12002 2006-06-06  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
12004         * config/mingw32/time.c: New file.
12005         * configure.tgt: Use it.
12007 2006-05-23  Carlos O'Donell  <carlos@codesourcery.com>
12009         * Makefile.am: Add install-html target. Add install-html to .PHONY
12010         * Makefile.in: Regenerate.
12012 2006-05-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12014         PR libgomp/27612
12015         * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
12016         * testsuite/libgomp.c/critical-1.c: Likewise.
12017         * testsuite/libgomp.c/loop-1.c: Likewise.
12018         * testsuite/libgomp.c/loop-2.c: Likewise.
12019         * testsuite/libgomp.c/single-1.c: Likewise.
12020         * testsuite/libgomp.c/ordered-1.c: Likewise.
12021         * testsuite/libgomp.c/ordered-2.c: Likewise.
12023 2006-05-15  Jakub Jelinek  <jakub@redhat.com>
12025         PR middle-end/27416
12026         * libgomp.fortran/pr27416-1.f90: New test.
12028 2006-05-03  Jakub Jelinek  <jakub@redhat.com>
12030         PR fortran/27395
12031         * testsuite/libgomp.fortran/pr27395-1.f90: New test.
12032         * testsuite/libgomp.fortran/pr27395-2.f90: New test.
12034 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
12036         PR c++/26943
12037         * testsuite/libgomp.c/pr26943-1.c: New test.
12038         * testsuite/libgomp.c/pr26943-2.c: New test.
12039         * testsuite/libgomp.c/pr26943-3.c: New test.
12040         * testsuite/libgomp.c/pr26943-4.c: New test.
12041         * testsuite/libgomp.c++/pr27337.C: Remove barrier.
12042         * testsuite/libgomp.c++/pr26943.C: New test.
12044 2006-05-02  Jakub Jelinek  <jakub@redhat.com>
12046         PR middle-end/27337
12047         * testsuite/libgomp.c++/pr27337.C: New test.
12049 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
12051         PR c/26171
12052         * testsuite/libgomp.c/pr26171.c: New test.
12054 2006-04-25  Richard Henderson  <rth@redhat.com>
12056         PR libgomp/25865
12057         * configure.ac: Use GCC_CHECK_TLS.
12058         * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
12059         * Makefile.in, aclocal.m4, configure: Regenerate.
12061 2006-04-10  Matthias Klose  <doko@debian.org>
12063         * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
12064         directory names containing underscores.
12066 2006-03-21  Jakub Jelinek  <jakub@redhat.com>
12068         PR c++/26691
12069         * testsuite/libgomp.c++/pr26691.C: New test.
12071 2006-03-13  Jakub Jelinek  <jakub@redhat.com>
12073         * testsuite/libgomp.fortran/retval2.f90: New test.
12075 2006-03-09  Diego Novillo  <dnovillo@redhat.com>
12077         * testsuite/libgomp.c++: New directory.
12079 2006-02-25  Shantonu Sen  <ssen@opendarwin.org>
12081         * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
12082         * config/posix/sem.c: Implement the above.
12084 2006-02-25  Andreas Tobler  <a.tobler@schweiz.ch>
12086         * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
12087         define HAVE_BROKEN_POSIX_SEMAPHORES.
12088         * configure: Rebuilt.
12089         * config.h.in: Rebuilt.
12091 2006-02-17  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
12093         PR bootstrap/26161
12094         * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
12095         for the other pthread check.
12096         * configure: Regenerate.
12097         * config.h.in: Regenerate.
12099 2006-02-15  Jakub Jelinek  <jakub@redhat.com>
12101         PR libgomp/25938
12102         PR libgomp/25984
12103         * Makefile.am (fincludedir): New variable.
12104         (nodist_include_HEADERS): Remove Fortran files.
12105         (nodist_finclude_HEADERS): New variable.
12106         * Makefile.in: Regenerated.
12108 2006-02-13  Jakub Jelinek  <jakub@redhat.com>
12110         * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
12111         Remove tests for returning assumed character length arrays.
12113 2006-02-12  Roger Sayle  <roger@eyesopen.com>
12114             John David Anglin  <dave@hiauly1.hia.nrc.ca>
12116         PR libgomp/25936
12117         * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
12119 2006-02-08  Ulrich Weigand  <uweigand@de.ibm.com>
12121         * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
12123 2006-02-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
12125         * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
12126         part of LD_LIBRARY_PATH manually.
12128 2006-02-03  H.J. Lu  <hongjiu.lu@intel.com>
12130         PR libgomp/25852
12131         * testsuite/lib/libgomp-dg.exp (blddir): Set it in
12132         libgomp_init.
12134 2005-01-25  Paolo Bonzini  <bonzini@gnu.org>
12136         PR libgomp/25884
12137         * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
12138         * configure.ac (PERL): Don't set.
12139         (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
12140         (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
12141         OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
12142         * omp.h.in: Wrap the new configure substitutions with @ characters.
12143         * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
12144         * aclocal.m4, configure, Makefile.in: Regenerate.
12145         * mkomp_h.pl: Delete.
12147 2005-01-24  Paolo Bonzini  <bonzini@gnu.org>
12149         PR libgomp/25259
12150         * configure.ac: Use GCC_HEADER_STDINT.
12151         * libgomp.h: Include gstdint.h.
12152         * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
12153         * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
12155 2006-01-24  Richard Henderson  <rth@redhat.com>
12157         PR libgomp/25942
12158         * configure.ac: Add AM_MAINTAINER_MODE.
12159         * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
12161 2006-01-24  Diego Novillo  <dnovillo@redhat.com>
12163         * Makefile.in: Regenerate.
12164         * testsuite/Makefile.in: Regenerate.
12165         * aclocal.m4: Regenerate.
12167 2006-01-23  Andreas Tobler  <a.tobler@schweiz.ch>
12169         * config/posix/proc.c: Conditional include of sys/loadavg.h for
12170         Solaris.
12171         * configure.ac: Add check for loadavg.h.
12172         (link_gomp): Adjust comment.
12173         * configure: Regenerate.
12174         * config.h.in: Regenerate.
12176 2006-01-21  Steve Ellcey  <sje@cup.hp.com>
12178         PR libgomp/25877
12179         * configure.ac: Remove check for alloca.h.
12180         * configure: Regenerate.
12181         * config.h.in: Regenerate.
12182         * libgomp.h: define gomp_alloca to be __builtin_alloca.
12183         * team.c: Remove use of alloca.h.
12184         Call gomp_alloca instead of alloca.
12186 2006-01-20  Steve Ellcey  <sje@cup.hp.com>
12188         PR libgomp/25877
12189         * team.c: Add include of alloca.h.
12190         * configure.ac: Add check for alloca.h.
12191         * configure: Regenerate.
12192         * config.h.in: Regenerate.
12194 2006-01-17  Jakub Jelinek  <jakub@redhat.com>
12196         PR fortran/25219
12197         * testsuite/libgomp.fortran/pr25219.f90: New test.
12199 2005-12-05  Uros Bizjak  <uros@kss-loka.si>
12201         * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
12202         testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
12203         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12204         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12205         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
12206         testsuite/libgomp.fortran/threadprivate1.f90,
12207         testsuite/libgomp.fortran/threadprivate2.f90,
12208         testsuite/libgomp.fortran/threadprivate3.f90,
12209         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12210         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12211         testsuite/libgomp.fortran/omp_parse3.f90: Change required
12212         effective-target to TLS runtime.
12214         * testsuite/libgomp.fortran/pr25162.f: Require
12215         effective-target TLS runtime.
12217 2005-12-01  Jakub Jelinek  <jakub@redhat.com>
12219         * testsuite/libgomp.fortran/nestedfn2.f90: New test.
12220         * testsuite/libgomp.c/nestedfn-3.c: New test.
12222 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
12224         PR fortran/25162
12225         * testsuite/libgomp.fortran/pr25162.f: New test.
12227 2005-11-28  Jakub Jelinek  <jakub@redhat.com>
12229         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
12230         CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
12232 2005-11-25  Jakub Jelinek  <jakub@redhat.com>
12234         * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
12235         libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
12236         omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
12237         single.c, team.c, work.c, config/linux/alpha/futex.h,
12238         config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
12239         config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
12240         config/linux/powerpc/futex.h, config/linux/s390/futex.h,
12241         config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
12242         config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
12243         config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
12244         config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
12245         FSF address.
12247 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
12249         * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
12250         to nodist_noinst_HEADERS.
12251         * Makefile.in: Rebuilt.
12253         * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
12254         add integer count field.
12255         * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
12256         omp_nest_lock_t type change.
12257         (omp_init_nest_lock): Likewise.  Initialize count to 0.
12258         (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
12259         Increment count.
12260         (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
12261         Decrement count.
12262         (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
12263         Increment count if successful and return the new nesting level.
12264         * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
12265         * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
12266         * testsuite/libgomp.c/lib-1.c: New test.
12267         * testsuite/libgomp.fortran/lib1.f90: New test.
12268         * testsuite/libgomp.fortran/lib2.f: New test.
12269         * testsuite/libgomp.fortran/lib3.f: New test.
12271 2005-11-17  Richard Henderson  <rth@redhat.com>
12273         PR 24845
12274         * Makefile.am (nodist_toolexeclib_HEADERS): New.
12275         * configure.ac (link_gomp): New.  Substitute it.
12276         (AC_CONFIG_FILES): Add libgomp.spec.
12277         * libgomp.spec.in: New file.
12278         * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
12279         * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
12281 2005-11-18  Jakub Jelinek  <jakub@redhat.com>
12283         * testsuite/libgomp.fortran/reduction1.f90: Adjust for
12284         reduction(-:var) behaving the same as reduction(+:var).
12285         * testsuite/libgomp.c/reduction-4.c: New test.
12287 2005-11-15  Uros Bizjak  <uros@kss-loka.si>
12289         * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
12290         testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
12291         testsuite/libgomp.c/copyin-3.c,
12292         testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12293         testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12294         testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
12295         testsuite/libgomp.c++/pr24455.C,
12296         testsuite/libgomp.fortran/threadprivate1.f90,
12297         testsuite/libgomp.fortran/threadprivate2.f90,
12298         testsuite/libgomp.fortran/threadprivate3.f90,
12299         testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12300         testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12301         testsuite/libgomp.fortran/omp_parse3.f90: Require
12302         effective-target TLS.
12304 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
12306         * HEADER: Remove.
12308 2005-11-13  Jakub Jelinek  <jakub@redhat.com>
12310         PR libgomp/24797
12311         * team.c (initialize_team): Pass NULL rather than free as
12312         pthread_key_create destructor.  Initialize thread specific data
12313         pointer in initial thread to a static local variable rather than
12314         malloced memory.
12316 2005-11-11  Uros Bizjak  <uros@kss-loka.si>
12318         * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
12319         its location to ld_library_path.
12321 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
12323         * testsuite/libgomp.c/c.exp: Rename from dg.exp.
12325 2005-11-10  Diego Novillo  <dnovillo@redhat.com>
12327         * testsuite/libgomp.c: Rename from libgomp.dg.
12329 2005-11-09  Diego Novillo  <dnovillo@redhat.com>
12331         * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
12332         threadprivate variable 'i'.
12334 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
12336         * config/linux/s390/futex.h: New file.
12337         * configure.tgt: Use it.
12339         * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
12340         before the parallel.
12342 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
12344         PR c++/24734
12345         * testsuite/libgomp.c++/master-1.C: New test.
12347 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
12349         * testsuite/libgomp.dg/copyin-3.c: New test.
12351 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
12353         * testsuite/libgomp.fortran/retval1.f90: New test.
12354         * testsuite/libgomp.fortran/vla7.f90: New test.
12356 2005-11-06  Jakub Jelinek  <jakub@redhat.com>
12358         * testsuite/libgomp.fortran/vla2.f90: New test.
12359         * testsuite/libgomp.fortran/vla3.f90: New test.
12360         * testsuite/libgomp.fortran/vla4.f90: New test.
12361         * testsuite/libgomp.fortran/vla5.f90: New test.
12362         * testsuite/libgomp.fortran/vla6.f90: New test.
12364 2005-11-01  Jakub Jelinek  <jakub@redhat.com>
12366         * config/linux/sparc/futex.h: New file.
12367         * configure.tgt: Use it.
12368         * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
12370         * critical.c: Include stdlib.h.
12371         * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
12372         ignoring return value.
12373         * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
12374         LIBGOMP_CHECK_SYNC_BUILTINS check.
12375         * configure: Rebuilt.
12377 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
12379         * testsuite/libgomp.fortran/vla1.f90: New test.
12381 2005-10-31  Richard Henderson  <rth@redhat.com>
12383         * testsuite/libgomp.fortran/character2.f90: Fix race condition
12384         setting 's' in different threads.
12386 2005-10-31  Jakub Jelinek  <jakub@redhat.com>
12388         * libgomp.h (attribute_hidden, ialias): Define.
12389         * config/posix/proc.c (omp_get_num_procs): Add ialias.
12390         * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
12391         * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
12392         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12393         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12394         omp_test_lock, omp_test_nest_lock): Likewise.
12395         * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
12396         omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12397         omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12398         omp_test_lock, omp_test_nest_lock): Likewise.
12399         * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
12400         omp_get_dynamic, omp_get_nested): Likewise.
12401         * parallel.c (omp_get_num_threads, omp_get_max_threads,
12402         omp_get_thread_num, omp_in_parallel): Likewise.
12403         * fortran.c (ialias_redirect): Define.
12404         (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
12405         omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
12406         omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
12407         omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
12408         omp_set_num_threads, omp_get_dynamic, omp_get_nested,
12409         omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
12410         omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
12411         omp_get_wtime): Add ialias_redirect.
12413 2005-10-30  Jakub Jelinek  <jakub@redhat.com>
12415         * fortran.c: Include stdlib.h.
12417 2005-10-29  Jakub Jelinek  <jakub@redhat.com>
12419         * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
12420         * Makefile.in: Regenerated.
12422 2005-10-28  Jakub Jelinek  <jakub@redhat.com>
12424         * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
12425         * libgomp_f.h.in (omp_check_defines): New function.
12426         * env.c: Include libgomp_f.h.
12427         (initialize_env): Call omp_check_defines.
12429         * testsuite/libgomp.dg/copyin-2.c: New test.
12430         * testsuite/libgomp.c++/copyin-2.C: New test.
12431         * testsuite/libgomp.fortran/threadprivate3.f90: New test.
12433         * testsuite/libgomp.fortran/threadprivate2.f90: New test.
12434         * testsuite/libgomp.fortran/sharing2.f90: New test.
12436         * testsuite/libgomp.dg/copyin-1.c: New test.
12437         * testsuite/libgomp.c++/copyin-1.C: New test.
12439 2005-10-26  Jakub Jelinek  <jakub@redhat.com>
12441         * testsuite/libgomp.fortran/crayptr1.f90: New test.
12443         * testsuite/libgomp.fortran/workshare1.f90: New test.
12445         * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
12446         only test.
12447         * libgomp.fortran/sharing1.f90: New test.
12449 2005-10-24  Jakub Jelinek  <jakub@redhat.com>
12451         PR c++/24502
12452         * testsuite/libgomp.c++/loop-7.C: New test.
12454         * testsuite/libgomp.dg/nestedfn-2.c: New test.
12456         * testsuite/libgomp.dg/nestedfn-1.c: New test.
12457         * testsuite/libgomp.fortran/reduction6.f90: New test.
12458         * testsuite/libgomp.fortran/nestedfn1.f90: New test.
12460 2005-10-23  Richard Henderson  <rth@redhat.com>
12462         * testsuite/libgomp.c++/ctor-1.C: New.
12463         * testsuite/libgomp.c++/ctor-2.C: New.
12464         * testsuite/libgomp.c++/ctor-3.C: New.
12465         * testsuite/libgomp.c++/ctor-4.C: New.
12466         * testsuite/libgomp.c++/ctor-5.C: New.
12467         * testsuite/libgomp.c++/ctor-6.C: New.
12468         * testsuite/libgomp.c++/ctor-7.C: New.
12469         * testsuite/libgomp.c++/ctor-8.C: New.
12470         * testsuite/libgomp.c++/ctor-9.C: New.
12472 2005-10-21  Diego Novillo  <dnovillo@redhat.com>
12474         PR 24455
12475         * testsuite/libgomp.c++/pr24455-1.C: New test.
12476         * testsuite/libgomp.c++/pr24455.C: New test.
12477         * testsuite/libgomp.dg/pr24455-1.c: New test.
12478         * testsuite/libgomp.dg/pr24455.c: New test.
12480 2005-10-20  Richard Henderson  <rth@redhat.com>
12482         * testsuite/libgomp.c++/loop-6.C: New.
12483         * testsuite/libgomp.dg/loop-3.c: New.
12485 2005-10-20  Jakub Jelinek  <jakub@redhat.com>
12487         * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
12488         explicitly private.
12489         * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
12490         explicitly shared.
12492 2005-10-19  Diego Novillo  <dnovillo@redhat.com>
12494         * testsuite/libgomp.fortran/jacobi.f: New test.
12496 2005-10-19  Richard Henderson  <rth@redhat.com>
12498         * configure.tgt (i?86-linux): Default to with_arch instead of
12499         CFLAGS.  Add -mtune to match target_cpu.
12500         (x86_64-linux): Tune to i686.
12502         * fortran.c (omp_test_nest_lock_): Fix typo.
12504 2005-10-19  Jakub Jelinek  <jakub@redhat.com>
12506         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12507         gomp_ordered_sync): Do nothing if team->nthreads == 1.
12508         * testsuite/libgomp.dg/ordered-3.c: New test.
12510         * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
12511         Remove volatile keyword.
12513         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
12514         in COMMON block to avoid warnings on 64-bit targets.
12516 2005-10-18  Diego Novillo  <dnovillo@redhat.com>
12518         * testsuite/libgomp.dg/shared-3.c: New test.
12520 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
12522         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
12523         * testsuite/libgomp.fortran/reduction5.f90: New test.
12525 2005-10-18  Jakub Jelinek  <jakub@redhat.com>
12527         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
12528         dg-options.
12529         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.  Enable
12530         flush loop now that __sync_synchronize has proper memory barrier.
12531         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
12532         Add -ffixed-form to dg-options.
12534 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
12536         * testsuite/libgomp.fortran/fortran.exp: Also gather tests
12537         from subdirectories.
12538         * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
12539         * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
12540         * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
12541         * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
12542         * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
12543         * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
12544         * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
12545         * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
12546         * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
12547         * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
12548         * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
12549         * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
12550         * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
12551         * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
12552         * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
12553         * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
12554         * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
12555         * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
12556         * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
12557         * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
12558         * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
12559         * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
12560         * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
12561         * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
12562         * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
12564 2005-10-17  Jakub Jelinek  <jakub@redhat.com>
12566         * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
12567         lang_library_path exists.  Use find instead of glob to gather tests.
12568         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
12570 2005-10-17  Diego Novillo  <dnovillo@redhat.com>
12572         * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
12573         * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
12574         * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
12575         * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
12576         * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
12577         * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
12578         * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
12579         * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
12580         * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
12581         * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
12582         * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
12583         * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
12584         * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
12586 2005-10-15  Jakub Jelinek  <jakub@redhat.com>
12588         * testsuite/libgomp.dg/vla-1.c: New test.
12590         * testsuite/libgomp.fortran/reference2.f90: New test.
12592         * testsuite/libgomp.fortran/character2.f90: Remove explicit
12593         declaration of omp_get_thread_num.
12594         * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.  Add
12595         use omp_lib.
12597         * testsuite/libgomp.fortran/reduction1.f90: New test.
12598         * testsuite/libgomp.fortran/reduction2.f90: New test.
12599         * testsuite/libgomp.fortran/reduction3.f90: New test.
12600         * testsuite/libgomp.fortran/reduction4.f90: New test.
12602 2005-10-13  Richard Henderson  <rth@redhat.com>
12604         * Makefile.am (libgomp_la_SOURCES): Add bar.c.
12605         * Makefile.in: Regenerate.
12606         * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
12607         * libgomp.h: Include bar.h.
12608         (struct gomp_barrier): Remove.
12609         (struct gomp_team): Add barrier.  Replace master_barrier with
12610         master_release.  Replace threads with ordered_release.
12611         (struct gomp_thread): Replace barrier with release.
12612         * ordered.c (gomp_ordered_first): Update for ordered_release change.
12613         (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
12614         gomp_ordered_static_next, gomp_ordered_sync): Likewise.
12615         * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
12616         (GOMP_single_copy_end): Likewise.
12617         * team.c (gomp_threads_dock): New.
12618         (gomp_barrier_init, gomp_barrier_destroy): Remove.
12619         (gomp_thread_start): Use gomp_barrier_wait.
12620         (new_team, free_team): Update for gomp_team changes.
12621         (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
12622         (gomp_team_end): Use gomp_barrier_wait.
12623         (initialize_team): Update for gomp_thread changes.
12624         * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
12625         (gomp_work_share_end_nowait): Use atomic ops when available.
12626         * config/linux/bar.c, config/linux/bar.h: New files.
12627         * config/posix/bar.c, config/posix/bar.h: New files.
12629 2005-10-13  Jakub Jelinek  <jakub@redhat.com>
12631         * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
12632         * testsuite/libgomp.dg/single-2.c: New test.
12634         * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
12635         lang_link_flags): Unset, so that they aren't inherited from previously
12636         sourced *.exp.
12638         * testsuite/libgomp.fortran/threadprivate1.f90: New test.
12640 2005-10-12  Richard Henderson  <rth@redhat.com>
12642         * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
12643         (libgomp_init): Use lang_test_file, lang_library_path, and
12644         lang_link_flags, set by the subdirectory files.  Add -fopenmp here.
12646         * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
12647         (lang_test_file, lang_link_flags): New.
12648         (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
12650         * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
12651         testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
12652         testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
12653         testsuite/libgomp.c++/parallel-1.C,
12654         testsuite/libgomp.c++/reduction-1.C,
12655         testsuite/libgomp.c++/reduction-2.C,
12656         testsuite/libgomp.c++/reduction-3.C,
12657         testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
12658         testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
12659         testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
12660         New files, largely cribbed from the C testsuite.
12662 2005-10-12  Jakub Jelinek  <jakub@redhat.com>
12664         * testsuite/libgomp.fortran/character1.f90: New test.
12665         * testsuite/libgomp.fortran/character2.f90: New test.
12667         * testsuite/libgomp.dg/nested-1.c: New test.
12668         * testsuite/libgomp.dg/nested-2.c: New test.
12669         * testsuite/libgomp.fortran/do1.f90: New test.
12670         * testsuite/libgomp.fortran/do2.f90: New test.
12672         * testsuite/libgomp.fortran/reference1.f90: New test.
12674 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
12676         * testsuite/libgomp.dg/reduction-1.c: New test.
12677         * testsuite/libgomp.dg/reduction-2.c: New test.
12678         * testsuite/libgomp.dg/reduction-3.c: New test.
12680 2005-10-10  Jakub Jelinek  <jakub@redhat.com>
12682         * testsuite/libgomp.dg/atomic-1.c: New test.
12683         * testsuite/libgomp.dg/atomic-2.c: New test.
12685 2005-10-09  Richard Henderson  <rth@redhat.com>
12687         * critical.c (atomic_lock): New.
12688         (initialize_critical): Initialize it.
12689         (GOMP_atomic_start, GOMP_atomic_end): New.
12690         * libgomp.map: Export them.
12691         * libgomp_g.h: Declare them.
12693         * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
12695 2005-10-02  Richard Henderson  <rth@redhat.com>
12697         * configure.ac: Move save_CFLAGS hack earlier.  Append -Wall/-Werror
12698         to XCFLAGS instead of CFLAGS.
12700 2005-09-30  Richard Henderson  <rth@redhat.com>
12702         * configure.ac: Determine whether -pthread or -lpthread is needed.
12703         * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
12704         * Makefile.in, configure: Rebuild.
12706 2005-09-28  Richard Henderson  <rth@redhat.com>
12708         * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
12709         * testsuite/libgomp.dg/omp-single-3.c: New test.
12711 2005-09-28  Diego Novillo  <dnovillo@redhat.com>
12713         * testsuite/libgomp.dg/omp-single-2.c: New test.
12714         * testsuite/libgomp.dg/shared-2.c: Fix return code.
12716 2005-09-27  Richard Henderson  <rth@redhat.com>
12718         * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
12719         * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
12721 2005-09-27  Jakub Jelinek  <jakub@redhat.com>
12723         * testsuite/libgomp.dg/omp-loop03.c: New test.
12725 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
12727         * testsuite/libgomp.dg/omp-parallel-for.c: New test.
12729 2005-09-27  Diego Novillo  <dnovillo@redhat.com>
12731         * testsuite/libgomp.dg/omp-single-1.c: New test.
12732         * testsuite/libgomp.dg/shared-1.c: Return 0.
12733         Add prototype for abort.
12734         * testsuite/libgomp.dg/shared-2.c: Likewise.
12736 2005-09-26  Jakub Jelinek  <jakub@redhat.com>
12738         * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
12739         constructs.
12741 2005-09-26  Diego Novillo  <dnovillo@redhat.com>
12743         * testsuite/libgomp.dg/shared-1.c: New test.
12744         * testsuite/libgomp.dg/shared-2.c: New test.
12746 2005-09-24  Richard Henderson  <rth@redhat.com>
12748         * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
12750 2005-09-24  Richard Henderson  <rth@redhat.com>
12752         * iter.c (gomp_iter_static_next): Round up when computing number
12753         of iterations.  Don't bother distributing a remainder equally.
12755         * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
12756         Don't call srand.  Zero b before testing.
12757         (main): New.
12759 2005-09-24  Jakub Jelinek  <jakub@redhat.com>
12761         * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
12762         * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
12764 2005-09-23  Jakub Jelinek  <jakub@redhat.com>
12766         * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
12767         without !$omp end do, followed immediately by subroutine end.
12769 2005-09-23  Diego Novillo  <dnovillo@redhat.com>
12771         * testsuite/libgomp.dg/omp-parallel-if.c: New test.
12773 2005-09-22  Richard Henderson  <rth@redhat.com>
12775         * critical.c (GOMP_critical_name_start): Change argument to void**.
12776         Reuse the pointer space if the mutex fits.
12777         (GOMP_critical_name_end): Likewise.
12778         (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
12779         * libgomp_g.h (GOMP_critical_name_start): Update decl.
12780         (GOMP_critical_name_end): Likewise.
12781         * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
12782         * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
12784 2005-09-20  Richard Henderson  <rth@redhat.com>
12786         * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
12787         (create_lock_lock): New.
12788         (initialize_critical): Initialize it.
12789         * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
12790         * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
12792 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
12794         * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
12796 2005-09-20  Diego Novillo  <dnovillo@redhat.com>
12798         * testsuite/libgomp.dg/omp-loop01.c: New test.
12799         * testsuite/libgomp.dg/omp-loop02.c: New test.
12801 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
12803         * configure.ac (AC_PROG_FC): Add.
12804         (USE_FORTRAN): New automake conditional.
12805         * configure: Rebuilt.
12806         * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
12807         (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
12808         If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
12809         Add rules to build them.
12810         * Makefile.in: Rebuilt.
12811         * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
12812         OMP_NEST_LOCK_KIND.
12813         * libgomp.map: Add Fortran wrappers.
12814         * libgomp_f.h.in: New file.
12815         * omp_lib.h.in: New file.
12816         * omp_lib.f90.in: New file.
12817         * fortran.c: New file.
12818         * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
12819         Append libgfortran directory to LD_LIBRARY_PATH if it exists.
12820         Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
12821         libgfortran has been built.
12822         * testsuite/libgomp.fortran/fortran.exp: New file.
12823         * testsuite/libgomp.fortran/omp_cond1.f: New test.
12824         * testsuite/libgomp.fortran/omp_cond2.f: New test.
12825         * testsuite/libgomp.fortran/omp_cond3.F90: New test.
12826         * testsuite/libgomp.fortran/omp_cond4.F90: New test.
12827         * testsuite/libgomp.fortran/omp_hello.f: New test.
12828         * testsuite/libgomp.fortran/omp_orphan.f: New test.
12829         * testsuite/libgomp.fortran/omp_parse1.f90: New test.
12830         * testsuite/libgomp.fortran/omp_parse2.f90: New test.
12831         * testsuite/libgomp.fortran/omp_parse3.f90: New test.
12832         * testsuite/libgomp.fortran/omp_parse4.f90: New test.
12833         * testsuite/libgomp.fortran/omp_reduction.f: New test.
12834         * testsuite/libgomp.fortran/omp_workshare1.f: New test.
12835         * testsuite/libgomp.fortran/omp_workshare2.f: New test.
12837 2005-08-30  Richard Henderson  <rth@redhat.com>
12839         * loop.c (GOMP_loop_static_start): Provide fallback wrapper
12840         function for when aliases are not usable.
12841         (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
12842         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12843         GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
12844         GOMP_loop_dynamic_next, GOMP_loop_guided_next,
12845         GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
12846         GOMP_loop_ordered_guided_next): Likewise.
12847         * ordered.c (GOMP_ordered_start): Likewise.
12849 2005-08-01  Diego Novillo  <dnovillo@redhat.com>
12851         * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
12852         * testsuite/libgomp.dg/omp_hello.c: Fix return code
12853         * testsuite/libgomp.dg/omp_matvec.c: Likewise.
12854         * testsuite/libgomp.dg/omp_orphan.c: Likewise
12855         * testsuite/libgomp.dg/omp_reduction.c: Likewise
12856         * testsuite/libgomp.dg/omp_workshare1.c: Likewise
12857         * testsuite/libgomp.dg/omp_workshare2.c: Likewise
12858         * testsuite/libgomp.dg/omp_workshare3.c: Likewise
12859         * testsuite/libgomp.dg/omp_workshare4.c: Likewise
12861 2005-07-07  Eric Christopher  <echristo@redhat.com>
12862             Diego Novillo  <dnovillo@redhat.com>
12864         * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
12865         * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
12866         up code.
12867         * testsuite/libgomp.dg/omp_matvec.c: Ditto.
12868         * testsuite/libgomp.dg/omp_orphan.c: Ditto.
12869         * testsuite/libgomp.dg/omp_reduction.c: Ditto.
12870         * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
12871         * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
12872         * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
12873         * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
12875 2005-06-13  Diego Novillo  <dnovillo@redhat.com>
12877         * TOPLEVEL.patch: Remove.
12879 2005-05-16  Richard Henderson  <rth@redhat.com>
12881         * configure.ac: Test for clock_gettime.
12882         * config.h.in, configure: Rebuild.
12883         * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
12884         (omp_get_wtime): Use clock_gettime if available.
12885         (omp_get_wtick): Use clock_getres if available.
12887 2005-05-11  Richard Henderson  <rth@redhat.com>
12889         * config/linux/ia64/futex.h: New file.
12890         * configure.tgt: Use it.
12892         * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
12894 2005-05-07  Richard Henderson  <rth@redhat.com>
12896         * config/linux/powerpc/futex.h: New file.
12897         * configure.tgt: Use it.
12899         * config/linux/i486/futex.h: Merge ...
12900         * config/linux/x86_64/futex.h: ... into ...
12901         * config/linux/x86/futex.h: ... here.
12902         * configure.tgt: Update to match.
12904 2005-05-06  Richard Henderson  <rth@redhat.com>
12906         * config/linux/alpha/futex.h: Conditionally define SYS_futex.
12907         * config/linux/i486/futex.h: Likewise.
12908         * config/linux/x86_64/futex.h: Likewise.
12910         * config/linux/lock.c: New file.
12911         * config/linux/omp-lock.h: New file.
12913         * critical.c, env.h: Don't include omp.h
12914         * config/posix/lock.c: Include libgomp.h instead of omp.h.
12915         * config/posix/time.c: Likewise.
12916         * config/posix/omp-lock.h: New file.
12917         * libgomp.h: Include omp-lock.h and omp.h.
12918         * Makefile.am (nodist_include_HEADERS): New.
12919         (omp.h): New rule.
12920         * configure.ac (PERL): New.
12921         * mkomp_h.pl: New file.
12922         * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
12923         with templates.
12924         * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
12926         * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
12927         build directory.  Re-add -march=i486 hack.
12929         * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
12930         (libgomp_link_flags): Remove.
12931         (libgomp_initialized): Remove.
12932         (libgomp_init): Don't protect from reinitialization.  Copy code
12933         from libstdc++ for getting the multilib set correctly.
12935 2005-05-05  Richard Henderson  <rth@redhat.com>
12937         * config/linux/alpha/futex.h: New file.
12938         * configure.tgt (alpha*-*-linux*): Use it.
12940         * config/posix/mutex.c: New file.
12941         * config/posix/sem.c: Use libgomp.h.
12943         * configure.tgt (x86_64-linux): Also test CC for -m32.
12944         * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
12946         * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
12947         after $gccpath.
12949         * Makefile.am (SUBDIRS): New.
12950         (libgomp_la_LDFLAGS): Add -lpthread.
12951         * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
12952         * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
12954         * libgomp_g.h: New file.
12955         * libgomp.h: Split out all public declarations to libgomp_g.h.
12956         Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
12957         * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
12958         * config/linux/sem.h: Likewise.
12959         * config/posix/sem.h: Likewise.
12961         * Makefile.am (AM_LDFLAGS): New.
12962         (libgomp_version_script): Split out from ...
12963         (libgomp_la_LDFLAGS): ... here.
12964         (libgomp_version_info): New.
12965         * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
12966         (LIBGOMP_ENABLE): New.
12967         (LIBGOMP_CHECK_LINKER_FEATURES): New.
12968         (LIBGOMP_ENABLE_SYMVERS): New.
12969         * configure.ac (AC_INIT): Version 1.0.
12970         (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
12971         (enable-linux-futex): Likewise.  Rename from enable-futex.
12972         (libtool_VERSION): New.
12973         (LIBGOMP_ENABLE_SYMVERS): Use it.
12974         * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
12975         * Makefile.in, aclocal.m4, configure: Rebuild.
12977         * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
12978         (gomp_mutex_unlock_slow): Fix typo.
12979         * config/linux/sem.c: Similarly.
12980         (gomp_sem_post_slow): Fix typo.
12981         * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
12982         * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
12983         [__PIC__] (sys_futex0): Don't use tmp output in asm.
12985         * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
12986         (libgomp_la_LDFLAGS): Add top_srcdir to path.
12987         * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
12988         * configure.ac: Check for getloadavg.  Substitute XCFLAGS and
12989         XLDFLAGS.  Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
12990         * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
12991         LDFLAGS.  Pull enable_futex check to top-level.
12992         * libgomp.h: Fix sem.h and mutex.h includes.  Define ATTRIBUTE_HIDDEN.
12993         * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
12995         First attempt at real configury.
12996         * Makefile, config.h: Remove file.
12997         * Makefile.am, Makefile.in: New file.
12998         * acinclude.m4 aclocal.m4: New file.
12999         * configure.ac, configure.tgt, configure: New file.
13001         * config/posix/lock.c: Rename from sys-lock.c.
13002         * config/posix/mutex.h: Rename from sys-mutex.h.
13003         * config/posix/sem.c: Rename from sys-sem.c.
13004         * config/posix/sem.h: Rename from sys-sem.h.
13005         * config/posix/proc.c: Rename from sys-proc.c.
13006         * config/posix/time.c: Rename from sys-proc.c.
13008         * config/linux/mutex.c: New file.
13009         * config/linux/mutex.h: New file.
13010         * config/linux/sem.c: New file.
13011         * config/linux/sem.h: New file.
13012         * config/linux/i486/futex.h: New file.
13013         * config/linux/x86_64/futex.h: New file.
13015 2005-05-04  Richard Henderson  <rth@redhat.com>
13017         * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
13018         * libgomp.h: Declare them.
13019         * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
13020         gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
13022 2005-05-04  Richard Henderson  <rth@redhat.com>
13024         * libgomp-1 code drop
13026 2005-05-04  Richard Henderson  <rth@redhat.com>
13028         * iter.c (gomp_iter_static_next): Return tri-state on 0.
13029         * ordered.c (gomp_ordered_static_next): Remove not_last argument.
13030         * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
13031         (gomp_iter_static_next): Update.
13032         (gomp_ordered_static_next): Update.
13033         * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
13034         (gomp_loop_ordered_static_start): Likewise.  Exit early for a
13035         totally empty range.
13036         (gomp_loop_ordered_static_next): Refine test for calling
13037         gomp_ordered_static_next.
13038         * testsuite/ordered-1.c: Add case for more threads than iterations.
13040         * iter.c (gomp_iter_runtime_next_locked): Remove.
13041         * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
13042         gomp_loop_guided_start, gomp_loop_ordered_static_start,
13043         gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
13044         gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
13045         gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
13046         gomp_loop_ordered_guided_next): Downcase name, make static, add
13047         an external alias with the old name.
13048         (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
13049         GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
13050         switch and call one of the above static functions.
13051         * libgomp.h: Update.
13053         * work.c (gomp_work_share_start): Lock the mutex for !first too.
13054         * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
13055         GOMP_loop_guided_start, GOMP_loop_runtime_start,
13056         GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
13057         GOMP_loop_ordered_guided_start): Update to match.
13058         * sections.c (GOMP_sections_start): Likewise.
13059         * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
13061         * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
13062         gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
13063         Use bounds check instead of modulus.
13064         (gomp_ordered_sync): Split out of GOMP_ordered_start.
13065         (gomp_ordered_last): Don't sync with ordered_owner here.
13066         (gomp_ordered_next): Likewise.
13067         (gomp_ordered_static_loop_next): Likewise.
13068         * loop.c, libgomp.h: Update to match.
13070         * libgomp.h (GOMP_barrier): Declare.
13072         * testsuite/barrier-1.c: New file.
13073         * testsuite/critical-1.c: New file.
13074         * testsuite/ordered-2.c: New file.
13075         * testsuite/ordered-1.c: New file.
13076         * testsuite/sections-1.c: New file.
13077         * testsuite/single-1.c: New file.
13078         * testsuite/Makefile (TESTS): Add them.
13080 2005-05-04  Richard Henderson  <rth@redhat.com>
13082         * libgomp.h (struct gomp_work_share): Add ordered_owner.
13083         * loop.c (GOMP_loop_static_start): If not the startup thread,
13084         acquire the mutex to wait for initialization complete.
13085         (GOMP_loop_ordered_static_start): Likewise.
13086         (GOMP_loop_ordered_runtime_start): Likewise.
13087         (GOMP_loop_ordered_static_first): Remove.
13088         (GOMP_loop_ordered_dynamic_first): Remove.
13089         (GOMP_loop_ordered_guided_first): Remove.
13090         (GOMP_loop_ordered_runtime_first): Remove.
13091         * ordered.c (gomp_ordered_loop_first): Post to own release when
13092         we're the first thread.
13093         (gomp_ordered_loop_last): Wait on release if not owner.
13094         (gomp_ordered_loop_next): Likewise.
13095         (gomp_ordered_static_loop_init): New.
13096         (gomp_ordered_static_loop_next): Use ordered_owner.
13097         (GOMP_ordered_start): Likewise.
13098         * work.c (gomp_new_work_share): Initialize ordered_owner.
13100 2005-05-03  Richard Henderson  <rth@redhat.com>
13102         * Makefile (OPT): New.
13103         (CFLAGS): Use it.
13105         * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
13106         * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
13107         * libgomp.h, libgomp.map, NOTES: Update to match.
13109         * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
13110         Add initialized and thr members.
13111         (gomp_thread_start): Pause when initially spawned to wait for
13112         the whole team to be created.
13113         (gomp_team_start): Release team members at the end.
13115         * testsuite/loop-1.c (N): New.  Use it instead of hardcoded 100.
13116         (f_foo_1): Use GOMP_loop_end.
13117         (f_foo_2): Use GOMP_loop_end_nowait.
13119         * testsuite/loop-2.c: New file.
13120         * testsuite/Makefile (TESTS): Add it.
13122 2005-05-03  Richard Henderson  <rth@redhat.com>
13124         * iter.c (gomp_iter_static_next): Fix overflow check typo.
13125         (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
13126         * team.c (new_team): Initialize oldest_live_gen to 1 if no
13127         initial work_share.
13129         * testsuite/Makefile: New file.
13130         * testsuite/loop-1.c: New file.
13132 2005-05-03  Richard Henderson  <rth@redhat.com>
13134         Initial implementation and checkin.
13136 Copyright (C) 2005-2020 Free Software Foundation, Inc.
13138 Copying and distribution of this file, with or without modification,
13139 are permitted in any medium without royalty provided the copyright
13140 notice and this notice are preserved.