]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/ChangeLog
Adapt libgomp acc_get_property.f90 test
[thirdparty/gcc.git] / libgomp / ChangeLog
1 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
2
3 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
4 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
5 integer(acc_device_property) for the type of the return value of
6 acc_get_property.
7
8 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
9
10 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
11 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
12 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
13 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
14 (acc_set_device_num): Fix Fortran argument name, use same name for C.
15 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
16 corrections; add note about the previous interface and named constant.
17 (OpenACC library and environment variables): Fix two typos.
18 * openacc.f90: Use for all procedures the argument names from the spec
19 as for …_h they are user visible.
20 (openacc_kinds): Rename acc_device_property to
21 acc_device_property_kinds and change value to int32 ; and update users.
22 Re-add acc_device_property for for backward compatibility.
23 (acc_get_property_string_h): Clean up as acc_device_property_kind
24 changed.
25 (acc_get_property_h): Likewise and return c_size_t instead of
26 acc_device_property.
27 (openacc): Also export acc_device_property_kinds.
28 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
29 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
30 handling; check against /= 0 instead of == 1 to match C.
31 * openacc_lib.h: Use for all procedures the argument names from the spec
32 as for …_h they are user visible. Place !GCC$ into the first column to
33 be active also for fixed-form souce form.
34 (acc_device_current, acc_device_property_kind, acc_device_property,
35 acc_property_memory, acc_property_free_memory, acc_property_name,
36 acc_property_vendor, acc_property_driver): New named constants.
37 (acc_get_property, acc_get_property_string): New generic interface.
38
39 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
40
41 PR libgomp/93481
42 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
43 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
44 optional.
45 (gomp_target_task_fn): Assert "devicep->async_run_func".
46 (clear_unsupported_flags): New function to remove unsupported flags
47 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
48 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
49 * testsuite/libgomp.c/target-33.c:
50 Remove xfail for offload_target_nvptx.
51 * testsuite/libgomp.c/target-34.c: Likewise.
52
53 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
54
55 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
56 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
57 * testsuite/libgomp.c/target-34.c: Likewise.
58 * testsuite/libgomp.c/target-link-1.c: Add xfail for
59 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
60
61 2020-02-09 Jakub Jelinek <jakub@redhat.com>
62
63 * testsuite/libgomp.c/target-38.c: New test.
64
65 2020-02-06 Jakub Jelinek <jakub@redhat.com>
66
67 PR libgomp/93515
68 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
69
70 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
71
72 * testsuite/lib/libgomp.exp
73 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
74 and not as 'source' argument to libgomp_target_compile.
75
76 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
77
78 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
79 (gcn_gfx801_s): Remove.
80 (isa_hsa_name): Remove gfx801.
81 (isa_gcc_name): Remove gfx801/carizzo.
82 (isa_code): Remove gfx801.
83
84 2020-02-03 Julian Brown <julian@codesourcery.com>
85 Tobias Burnus <tobias@codesourcery.com>
86
87 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
88 and *_finalize variants; document acc_attach and acc_detach; update
89 references from OpenACC 2.0 to 2.6.
90 * openacc.f90 (openacc_version): Update to 201711.
91 * openacc_lib.h (openacc_version): Update to 201711.
92 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
93 openacc_version to 201711.
94 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
95
96 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
97
98 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
99 and vgpr_count fields.
100 (struct kernel_info): Add a field for a hsa_kernel_description.
101 (run_kernel): Reduce the number of threads/workers if the requested
102 number would require too many VGPRs.
103 (init_basic_kernel_info): Initialize description field with
104 the hsa_kernel_description entry for the kernel.
105
106 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
107
108 PR bootstrap/93409
109 * plugin/configfrag.ac (enable_offload_targets): Skip
110 HSA and GCN plugin besides -m32 also for -mx32.
111 * configure: Regenerate.
112
113 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
114
115 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
116
117 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
118
119 * plugin-gcn.c (struct agent_info): Add fields "name" and
120 "vendor_name" ...
121 (GOMP_OFFLOAD_init_device): ... and init from here.
122 (struct hsa_context_info): Add field "driver_version_s" ...
123 (init_hsa_contest): ... and init from here.
124 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
125 implementation.
126 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
127 Enable test execution for amdgcn and host offloading targets.
128 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
129 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
130 (expect_device_properties): Split function into ...
131 (expect_device_string_properties): ... this new function ...
132 (expect_device_memory): ... and this new function.
133 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
134 Add test.
135
136 2020-01-28 Julian Brown <julian@codesourcery.com>
137
138 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
139 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
140 component/non-component variable refs in a single directive.
141 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
142
143 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
144
145 * configure.ac: Handle `--with-toolexeclibdir='.
146 * Makefile.in: Regenerate.
147 * aclocal.m4: Regenerate.
148 * configure: Regenerate.
149 * testsuite/Makefile.in: Regenerate.
150
151 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
152
153 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
154 (expect_device_properties): Remove "expected_free_mem" argument,
155 change "expected_total_mem" argument type to size_t;
156 change types of acc_get_property results to size_t,
157 adapt format strings.
158 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
159 Use %zu instead of %zd to print size_t values.
160 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
161 rename to ...
162 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
163 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
164 rename to ...
165 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
166
167 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
168
169 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
170 the device id.
171
172 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
173
174 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
175 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
176 Adjust test dimensions for amdgcn.
177 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
178 gang/worker/vector expectations dynamically.
179 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
180 (main): Likewise.
181 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
182 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
183 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
184 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
185 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
186 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
187 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
188 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
189 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
190 (acc_gang): Recognise acc_device_radeon.
191 (acc_worker): Likewise.
192 (acc_vector): Likewise.
193 (main): Set expectations for amdgcn.
194 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
195 (main): Adjust gang/worker/vector expectations dynamically.
196 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
197 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
198 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
199 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
200 for amdgcn.
201
202 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
203
204 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
205 acc_device_radeon.
206 (openacc): Likewise.
207 * openacc.f90 (openacc_kinds): Likewise.
208 (openacc): Likewise.
209 * openacc.h (acc_device_t): Likewise.
210 * openacc_lib.h: Likewise.
211 * testsuite/lib/libgomp.exp
212 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
213 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
214 (cb_compute_construct_end): Likewise.
215 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
216 (cb_enqueue_launch_start): Likewise.
217 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
218 (cb_enter_data_end): Likewise.
219 (cb_exit_data_start): Likewise.
220 (cb_exit_data_end): Likewise.
221 (cb_compute_construct_end): Likewise.
222 (cb_enqueue_launch_start): Likewise.
223 (cb_enqueue_launch_end): Likewise.
224 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
225 (main): Likewise.
226
227 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
228
229 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
230 to use this instead of 'enum gomp_device_property'.
231 (GOMP_OFFLOAD_get_property): Rename to...
232 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
233 * libgomp.h (struct gomp_device_descr): Move
234 'GOMP_OFFLOAD_openacc_get_property'...
235 (struct acc_dispatch_t): ... here. Adjust all users.
236 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
237
238 * target.c (gomp_map_vars_internal)
239 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
240 paths.
241
242 2020-01-10 Jakub Jelinek <jakub@redhat.com>
243
244 PR libgomp/93219
245 * libgomp.h (gomp_print_string): Change return type from void to int.
246 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
247 not all characters have been written.
248
249 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
250
251 * libgomp.texi: Fix typos, use https.
252
253 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
254
255 * testsuite/libgomp.fortran/optional-map.f90: Add test for
256 unallocated/disassociated actual arguments to nonallocatable/nonpointer
257 dummy arguments; those are/shall be regarded as absent arguments.
258 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
259 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
260
261 2020-01-01 Jakub Jelinek <jakub@redhat.com>
262
263 Update copyright years.
264
265 * libgomp.texi: Bump @copying's copyright year.
266
267 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
268
269 PR libgomp/93065
270 * oacc-init.c (goacc_runtime_deinitialize): New function.
271
272 2019-12-28 Jakub Jelinek <jakub@redhat.com>
273
274 PR bootstrap/93074
275 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
276 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
277
278 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
279 Frederik Harwath <frederik@codesourcery.com>
280 Thomas Schwinge <tschwinge@codesourcery.com>
281
282 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
283 * libgomp-plugin.h (gomp_device_property_value): New union.
284 (gomp_device_property_value): New prototype.
285 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
286 constant.
287 (acc_device_property_t): New enum.
288 (acc_get_property, acc_get_property_string): New prototypes.
289 * oacc-init.c (acc_get_device_type): Also assert that result
290 is not `acc_device_current'.
291 (get_property_any, acc_get_property, acc_get_property_string):
292 New functions.
293 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
294 `acc_property_memory', `acc_property_free_memory',
295 `acc_property_name', `acc_property_vendor' and
296 `acc_property_driver' constants. Add `acc_device_property' data
297 type.
298 (openacc_internal): Add `acc_get_property' and
299 `acc_get_property_string' interfaces. Add `acc_get_property_h',
300 `acc_get_property_string_h', `acc_get_property_l' and
301 `acc_get_property_string_l'.
302 * oacc-host.c (host_get_property): New function.
303 (host_dispatch): Wire it.
304 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
305 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
306 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
307 * libgomp.texi (OpenACC Runtime Library Routines): Add
308 `acc_get_property'.
309 (acc_get_property): New node.
310 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
311 function (stub).
312 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
313 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
314 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
315 calls.
316 (GOMP_OFFLOAD_get_property): New function.
317 (struct ptx_device): Add new field "name".
318 (cuda_driver_version_s): Add new static variable ...
319 (nvptx_init): ... and init from here.
320
321 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
322 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
323 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
324 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
325 with test helper functions.
326
327 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
328
329 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
330
331 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
332 variable.
333
334 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
335
336 * target.c (gomp_map_vars_internal): Restore 'omp declare target
337 link' handling.
338
339 2019-12-19 Julian Brown <julian@codesourcery.com>
340
341 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
342 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
343 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
344
345 2019-12-19 Julian Brown <julian@codesourcery.com>
346 Cesar Philippidis <cesar@codesourcery.com>
347
348 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
349 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
350 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
351 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
352 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
353 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
354 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
355 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
356 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
357 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
358 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
359 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
360 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
361
362 2019-12-19 Julian Brown <julian@codesourcery.com>
363
364 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
365 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
366 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
367 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
368 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
369 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
370 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
371 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
372 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
373 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
374 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
375 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
376
377 2019-12-19 Julian Brown <julian@codesourcery.com>
378
379 * libgomp.h (struct target_var_desc): Add do_detach flag.
380 * oacc-init.c (acc_shutdown_1): Free aux block if present.
381 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
382 struct components. Tidy up and add some new checks.
383 (goacc_enter_data_internal): Update call to find_group_last.
384 (goacc_exit_data_internal): Support detach operations and
385 GOMP_MAP_STRUCT.
386 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
387 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
388 attach/detach in enter/exit data detection code.
389 * target.c (gomp_map_vars_existing): Initialise do_detach field of
390 tgt_var_desc.
391 (gomp_map_vars_internal): Support attach.
392 (gomp_unmap_vars_internal): Support detach.
393
394 2019-12-19 Julian Brown <julian@codesourcery.com>
395 Thomas Schwinge <thomas@codesourcery.com>
396
397 * libgomp.h (struct splay_tree_aux): Add attach_count field.
398 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
399 * libgomp.map (OACC_2.6): New section. Add acc_attach,
400 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
401 acc_detach_finalize_async.
402 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
403 acc_detach, acc_detach_async, acc_detach_finalize,
404 acc_detach_finalize_async): New functions.
405 * openacc.h (acc_attach, acc_attach_async, acc_detach,
406 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
407 prototypes.
408 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
409 (gomp_remove_var_internal): Free attachment counts if present.
410 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
411 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
412
413 2019-12-19 Julian Brown <julian@codesourcery.com>
414 Cesar Philippidis <cesar@codesourcery.com>
415
416 * libgomp.h (gomp_map_val): Add prototype.
417 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
418 open-coding device-address calculation.
419 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
420 non-present case.
421
422 2019-12-19 Julian Brown <julian@codesourcery.com>
423
424 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
425 field for virtual_refcount.
426 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
427 (gomp_free_memmap): Remove prototype.
428 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
429 instead of calling gomp_free_memmap.
430 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
431 dynamic_refcount.
432 (acc_unmap_data): Open code instead of forcing target_mem_desc's
433 to_free field to NULL then calling gomp_unmap_vars. Handle
434 REFCOUNT_INFINITY on target blocks.
435 (goacc_enter_data): Rename to...
436 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
437 handling for mapping groups. Use virtual_refcount instead of
438 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
439 map_map_vars_async call. Re-do lookup for target pointer return value.
440 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
441 renamed goacc_enter_datum function.
442 (goacc_exit_data): Rename to...
443 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
444 (acc_delete, acc_delete_async, acc_delete_finalize,
445 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
446 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
447 goacc_exit_datum function.
448 (gomp_acc_remove_pointer, find_pointer): Remove functions.
449 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
450 New functions.
451 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
452 goacc_exit_data_internal helper functions.
453 * target.c (gomp_map_vars_internal): Handle
454 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
455 semantics.
456 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
457 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
458 virtual_refcount field instead of dynamic_refcount.
459 (gomp_free_memmap): Remove function.
460 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
461 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
462 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
463
464 2019-12-19 Julian Brown <julian@codesourcery.com>
465 Thomas Schwinge <thomas@codesourcery.com>
466
467 * libgomp.h (struct splay_tree_aux): New.
468 (struct splay_tree_key_s): Replace link_key field with aux pointer.
469 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
470 to aux struct.
471 (gomp_remove_var_internal): Free aux block if present.
472 (gomp_load_image_to_device): Zero-initialise aux field instead of
473 link_key field.
474 (omp_target_associate_pointer): Zero-initialise aux field.
475
476 2019-12-18 Jakub Jelinek <jakub@redhat.com>
477
478 PR middle-end/86416
479 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
480 q or none.
481 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
482 L or none.
483
484 2019-12-19 Julian Brown <julian@codesourcery.com>
485 Maciej W. Rozycki <macro@codesourcery.com>
486 Tobias Burnus <tobias@codesourcery.com>
487 Thomas Schwinge <thomas@codesourcery.com>
488
489 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
490 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
491 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
492 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
493 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
494 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
495 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
496 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
497 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
498
499 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
500
501 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
502 called...
503 (goacc_insert_pointer): ... from here, "present" case.
504 (goacc_insert_pointer): Inline function into...
505 (GOACC_enter_exit_data): ... here, and simplify.
506
507 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
508 called...
509 (goacc_insert_pointer): ... from here, "not present" case.
510
511 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
512 all users.
513
514 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
515 'goacc_enter_data', 'goacc_exit_data'.
516
517 * oacc-mem.c (delete_copyout): Refactor into...
518 (goacc_exit_data): ... this. Adjust all users.
519
520 * oacc-mem.c (present_create_copy): Refactor into...
521 (goacc_enter_data): ... this. Adjust all users.
522
523 * target.c (gomp_unmap_vars_internal): Add a safeguard to
524 'gomp_remove_var'.
525
526 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
527 like 'GOMP_MAP_FROM'.
528
529 PR libgomp/92726
530 PR libgomp/92970
531 PR libgomp/92984
532 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
533 fails.
534 (GOACC_enter_exit_data): Simplify accordingly.
535 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
536 subsuming...
537 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
538 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
539 file.
540 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
541 subsuming...
542 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
543 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
544 file.
545 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
546 subsuming...
547 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
548
549 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
550 'finalize' handling.
551
552 PR libgomp/92848
553 * oacc-mem.c (acc_map_data, present_create_copy)
554 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
555 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
556 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
557 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
558 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
559 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
560 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
561 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
562 Remove "XFAIL"s.
563
564 * target.c (gomp_unmap_tgt): Make it 'static'.
565 * libgomp.h (gomp_unmap_tgt): Remove.
566
567 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
568
569 PR middle-end/86416
570 * testsuite/libgomp.c/pr86416-1.c: New.
571 * testsuite/libgomp.c/pr86416-2.c: New.
572
573 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
574
575 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
576 all symbols as public except for the 'use …, only' imported symbol,
577 which is private.
578 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
579 all symbols from module openacc_kinds as PUBLIC
580 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
581 fix comment typo.
582 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
583
584 2019-12-13 Julian Brown <julian@codesourcery.com>
585
586 PR libgomp/92881
587
588 * libgomp.h (gomp_remove_var_async): Add prototype.
589 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
590 gomp_remove_var.
591 * target.c (gomp_unref_tgt): Change return type to bool, indicating
592 whether target_mem_desc was unmapped.
593 (gomp_unref_tgt_void): New.
594 (gomp_remove_var): Reimplement in terms of...
595 (gomp_remove_var_internal): ...this new helper function.
596 (gomp_remove_var_async): New, implemented using above helper function.
597 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
598 gomp_unref_tgt.
599
600 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
601
602 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
603 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
604 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
605 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
606 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
607 Likewise.
608 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
609 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
610
611 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
612
613 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
614 as public except for the 'use …, only' imported symbol, which is
615 private.
616 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
617 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
618 attributes for acc_copyout_finalize and acc_delete_finalize.
619
620 2019-12-11 Jakub Jelinek <jakub@redhat.com>
621
622 PR fortran/92899
623 * testsuite/libgomp.fortran/atomic1.f90: New test.
624
625 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
626
627 PR libgomp/92843
628 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
629 reference counting for structured 'REFCOUNT_INFINITY'. Add some
630 assertions.
631 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
632 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
633 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
634 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
635 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
636
637 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
638 * oacc-mem.c: ... here.
639 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
640 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
641 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
642 Remove.
643 * libgomp_g.h: Update.
644
645 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
646 * oacc-async.c: ... here.
647 * oacc-int.h (goacc_wait): Declare.
648 * libgomp_g.h: Update
649
650 PR libgomp/92854
651 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
652 New file.
653 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
654 Likewise.
655 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
656 Likewise.
657 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
658 Likewise.
659 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
660 Likewise.
661 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
662 Likewise.
663
664 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
665 Julian Brown <julian@codesourcery.com>
666
667 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
668 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
669
670 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
671
672 * omp_lib.h.in: Fix spelling of function declaration
673 omp_get_cancell(l)ation.
674 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
675 Fix typos.
676 * env.c: Fix comment typos.
677 * oacc-host.c: Likewise.
678 * ordered.c: Likewise.
679 * task.c: Likewise.
680 * team.c: Likewise.
681 * config/gcn/task.c: Likewise.
682 * config/gcn/team.c: Likewise.
683 * config/nvptx/task.c: Likewise.
684 * config/nvptx/team.c: Likewise.
685 * plugin/plugin-gcn.c: Likewise.
686 * testsuite/libgomp.fortran/jacobi.f: Likewise.
687 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
688 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
689
690 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
691
692 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
693 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
694 unnecessary 'dg-additional-options "-w"'.
695
696 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
697 Julian Brown <julian@codesourcery.com>
698
699 PR libgomp/92116
700 PR libgomp/92877
701
702 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
703 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
704 Adjust all users.
705 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
706 Remove XFAIL.
707 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
708 Likewise.
709 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
710
711 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
712
713 PR libgomp/92503
714 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
715 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
716 file.
717 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
718 Likewise.
719 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
720 Likewise.
721 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
722 Likewise.
723 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
724 Likewise.
725 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
726 Likewise.
727 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
728 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
729 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
730 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
731 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
732 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
733 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
734 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
735 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
736 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
737
738 PR libgomp/92840
739 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
740 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
741 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
742 New file.
743 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
744 Likewise.
745 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
746 Likewise.
747 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
748 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
749
750 PR libgomp/92511
751 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
752 this file...
753 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
754 this file...
755 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
756 file...
757 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
758 file...
759 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
760 ... with their content moved into, and extended in this new file.
761 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
762 New file.
763 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
764 Likewise.
765 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
766 Likewise.
767 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
768 Likewise.
769
770 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
771
772 PR libgomp/92854
773 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
774
775 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
776
777 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
778
779 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
780
781 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
782 unique.
783 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
784 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
785 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
786 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
787 Ditto.
788 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
789 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
790
791 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
792
793 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
794
795 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
796 Kwok Cheung Yeung <kcy@codesourcery.com>
797
798 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
799 if input it a NULL pointer.
800 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
801 diagnostic of NULL pointer.
802 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
803 * testsuite/libgomp.fortran/optional-map.f90: New.
804 * testsuite/libgomp.fortran/use_device_addr-1.f90
805 (test_dummy_opt_callee_1_absent): New.
806 (test_dummy_opt_call_1): Call it.
807 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
808 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
809 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
810 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
811 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
812 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
813 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
814 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
815 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
816 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
817 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
818 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
819 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
820 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
821 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
822 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
823
824 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
825
826 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
827 expect dg-output of 'Error termination.' for GCN.
828 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
829 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
830
831 2019-12-04 Jakub Jelinek <jakub@redhat.com>
832
833 PR fortran/92756
834 * testsuite/libgomp.fortran/teams1.f90: New test.
835 * testsuite/libgomp.fortran/teams2.f90: New test.
836
837 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
838
839 * oacc-init.c (acc_known_device_type): Add function.
840 (unknown_device_type_error): Add function.
841 (name_of_acc_device_t): Change to call unknown_device_type_error
842 on unknown type.
843 (resolve_device): Use acc_known_device_type.
844 (acc_init): Fail if acc_device_t argument is not valid.
845 (acc_shutdown): Likewise.
846 (acc_get_num_devices): Likewise.
847 (acc_set_device_type): Likewise.
848 (acc_get_device_num): Likewise.
849 (acc_set_device_num): Likewise.
850 (acc_on_device): Add comment that argument validity is not checked.
851
852 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
853
854 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
855 Recognize amdgcn.
856 (check_effective_target_openacc_amdgcn_accel_present): New proc.
857 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
858 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
859 * testsuite/libgomp.oacc-c/c.exp: Likewise.
860 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
861
862 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
863
864 PR libgomp/91938
865 * configure.tgt: Avoid IE tls on *-*-musl*.
866
867 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
868
869 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
870 adding a common-block test case.
871
872 2019-11-29 Jakub Jelinek <jakub@redhat.com>
873
874 PR c++/60228
875 * testsuite/libgomp.c++/udr-20.C: New test.
876 * testsuite/libgomp.c++/udr-21.C: New test.
877
878 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
879
880 * testsuite/lib/libgomp.exp
881 (check_effective_target_offload_target_nvptx): New proc.
882 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
883 'dg-skip-if'.
884 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
885 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
886 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
887
888 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
889
890 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
891 * testsuite/libgomp.c/pr39591-2.c: Likewise.
892 * testsuite/libgomp.c/pr39591-3.c: Likewise.
893 * testsuite/libgomp.c/private-1.c: Likewise.
894 * testsuite/libgomp.c/task-1.c: Likewise.
895 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
896
897 2019-11-20 Julian Brown <julian@codesourcery.com>
898
899 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
900 aq->mutex here.
901 (queue_push_launch): Lock aq->mutex before calling
902 wait_for_queue_nonfull.
903 (queue_push_callback): Likewise.
904 (queue_push_asyncwait): Likewise.
905 (queue_push_placeholder): Likewise.
906
907 2019-11-20 Julian Brown <julian@codesourcery.com>
908
909 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
910 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
911 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
912 return code.
913
914 2019-11-20 Julian Brown <julian@codesourcery.com>
915
916 PR libgomp/92511
917
918 * oacc-mem.c (present_create_copy): Fix device pointer return value in
919 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
920 in non-present/create case.
921 (delete_copyout): Change error condition to fail only on copies outside
922 of mapped block. Adjust error message accordingly.
923 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
924 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
925 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
926 message.
927 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
928 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
929 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
930
931 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
932
933 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
934 libatomic in build-tree testing.
935
936 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
937
938 * testsuite/Makefile.in: Regenerate.
939
940 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
941
942 * testsuite/libgomp.c/target-print-1.c: New file.
943 * testsuite/libgomp.fortran/target-print-1.f90: New file.
944 * testsuite/libgomp.oacc-c/print-1.c: New file.
945 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
946
947 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
948 Kwok Cheung Yeung <kcy@codesourcery.com>
949 Julian Brown <julian@codesourcery.com>
950 Tom de Vries <tom@codesourcery.com>
951
952 * plugin/Makefrag.am: Add amdgcn plugin support.
953 * plugin/configfrag.ac: Likewise.
954 * plugin/plugin-gcn.c: New file.
955 * configure: Regenerate.
956 * Makefile.in: Regenerate.
957 * testsuite/Makefile.in: Regenerate.
958
959 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
960
961 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
962 and use team_malloc variants.
963 (gomp_gcn_exit_kernel): Use team_free.
964 * libgomp.h (TEAM_ARENA_SIZE): Define.
965 (TEAM_ARENA_START): Define.
966 (TEAM_ARENA_FREE): Define.
967 (TEAM_ARENA_END): Define.
968 (team_malloc): New function.
969 (team_malloc_cleared): New function.
970 (team_free): New function.
971 * team.c (gomp_new_team): Initialize and use team_malloc.
972 (free_team): Use team_free.
973 (gomp_free_thread): Use team_free.
974 (gomp_pause_host): Use team_free.
975 * work.c (gomp_init_work_share): Use team_malloc.
976 (gomp_fini_work_share): Use team_free.
977
978 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
979 Kwok Cheung Yeung <kcy@codesourcery.com>
980 Julian Brown <julian@codesourcery.com>
981 Tom de Vries <tom@codesourcery.com>
982
983 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
984 * Makefile.in: Regenerate.
985 * config.h.in (PLUGIN_GCN): Add new undef.
986 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
987 * config/gcn/affinity-fmt.c: New file.
988 * config/gcn/bar.c: New file.
989 * config/gcn/bar.h: New file.
990 * config/gcn/doacross.h: New file.
991 * config/gcn/icv-device.c: New file.
992 * config/gcn/oacc-target.c: New file.
993 * config/gcn/simple-bar.h: New file.
994 * config/gcn/target.c: New file.
995 * config/gcn/task.c: New file.
996 * config/gcn/team.c: New file.
997 * config/gcn/time.c: New file.
998 * configure.ac: Add amdgcn*-*-*.
999 * configure: Regenerate.
1000 * configure.tgt: Add amdgcn*-*-*.
1001 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
1002 * libgomp.h (gcn_thrs): Add amdgcn variant.
1003 (set_gcn_thrs): Likewise.
1004 (gomp_thread): Likewise.
1005 * oacc-int.h (goacc_thread): Likewise.
1006 * oacc-target.c: New file.
1007 * openacc.f90 (acc_device_gcn): New parameter.
1008 * openacc.h (acc_device_t): Add acc_device_gcn.
1009 * team.c (gomp_free_pool_helper): Add amdgcn support.
1010
1011 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1012 Julian Brown <julian@codesourcery.com>
1013
1014 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
1015 parameter.
1016 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
1017 queue constructor.
1018 * oacc-host.c (host_openacc_async_construct): Add device parameter.
1019 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
1020 device parameter.
1021
1022 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1023
1024 * configure.tgt (nvptx*-*-*): Add "accel" directory.
1025 * config/nvptx/libgomp-plugin.c: Move ...
1026 * config/accel/libgomp-plugin.c: ... to here.
1027 * config/nvptx/lock.c: Move ...
1028 * config/accel/lock.c: ... to here.
1029 * config/nvptx/mutex.c: Move ...
1030 * config/accel/mutex.c: ... to here.
1031 * config/nvptx/mutex.h: Move ...
1032 * config/accel/mutex.h: ... to here.
1033 * config/nvptx/oacc-async.c: Move ...
1034 * config/accel/oacc-async.c: ... to here.
1035 * config/nvptx/oacc-cuda.c: Move ...
1036 * config/accel/oacc-cuda.c: ... to here.
1037 * config/nvptx/oacc-host.c: Move ...
1038 * config/accel/oacc-host.c: ... to here.
1039 * config/nvptx/oacc-init.c: Move ...
1040 * config/accel/oacc-init.c: ... to here.
1041 * config/nvptx/oacc-mem.c: Move ...
1042 * config/accel/oacc-mem.c: ... to here.
1043 * config/nvptx/oacc-plugin.c: Move ...
1044 * config/accel/oacc-plugin.c: ... to here.
1045 * config/nvptx/omp-lock.h: Move ...
1046 * config/accel/omp-lock.h: ... to here.
1047 * config/nvptx/openacc.f90: Move ...
1048 * config/accel/openacc.f90: ... to here.
1049 * config/nvptx/pool.h: Move ...
1050 * config/accel/pool.h: ... to here.
1051 * config/nvptx/proc.c: Move ...
1052 * config/accel/proc.c: ... to here.
1053 * config/nvptx/ptrlock.c: Move ...
1054 * config/accel/ptrlock.c: ... to here.
1055 * config/nvptx/ptrlock.h: Move ...
1056 * config/accel/ptrlock.h: ... to here.
1057 * config/nvptx/sem.c: Move ...
1058 * config/accel/sem.c: ... to here.
1059 * config/nvptx/sem.h: Move ...
1060 * config/accel/sem.h: ... to here.
1061 * config/nvptx/thread-stacksize.h: Move ...
1062 * config/accel/thread-stacksize.h: ... to here.
1063
1064 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
1065 Tobias Burnus <tobias@codesourcery.com>
1066 Frederik Harwath <frederik@codesourcery.com>
1067 Thomas Schwinge <thomas@codesourcery.com>
1068
1069 libgomp/
1070 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
1071 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
1072 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
1073
1074 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
1075 Kwok Cheung Yeung <kcy@codesourcery.com>
1076
1077 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
1078 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
1079
1080 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
1081
1082 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
1083
1084 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
1085 run'.
1086 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
1087 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
1088
1089 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
1090
1091 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
1092 Add expected warnings about missing reduction clauses.
1093 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
1094 Likewise.
1095 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
1096 Likewise.
1097 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
1098 Likewise.
1099
1100 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
1101
1102 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
1103 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
1104 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
1105 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1106 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1107 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1108
1109 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
1110
1111 PR fortran/92305
1112 * testsuite/libgomp.fortran/allocatable2.f90: Use
1113 unique numbers with 'stop'.
1114 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1115 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1116 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
1117 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
1118 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
1119
1120 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
1121
1122 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
1123 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
1124 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1125 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
1126 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
1127 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
1128
1129 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1130
1131 * testsuite/libgomp.fortran/target9.f90: New.
1132
1133 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1134
1135 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
1136 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
1137 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
1138 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
1139 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
1140 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
1141 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
1142 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
1143 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
1144 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
1145 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
1146 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
1147 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
1148 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
1149 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
1150 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
1151 * testsuite/libgomp.fortran/associate1.f90: Ditto.
1152 * testsuite/libgomp.fortran/associate2.f90: Ditto.
1153 * testsuite/libgomp.fortran/associate3.f90: Ditto.
1154 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
1155 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
1156 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
1157 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
1158 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
1159 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
1160 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
1161 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
1162 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
1163 * testsuite/libgomp.fortran/character1.f90: Ditto.
1164 * testsuite/libgomp.fortran/character2.f90: Ditto.
1165 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
1166 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
1167 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
1168 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
1169 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
1170 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
1171 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
1172 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
1173 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
1174 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
1175 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
1176 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
1177 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
1178 * testsuite/libgomp.fortran/do1.f90: Ditto.
1179 * testsuite/libgomp.fortran/do2.f90: Ditto.
1180 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
1181 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
1182 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
1183 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
1184 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
1185 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
1186 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
1187 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
1188 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
1189 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
1190 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
1191 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
1192 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
1193 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
1194 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
1195 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
1196 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
1197 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
1198 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
1199 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
1200 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
1201 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
1202 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
1203 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
1204 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
1205 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
1206 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
1207 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
1208 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
1209 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
1210 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
1211 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
1212 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
1213 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
1214 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
1215 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
1216 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
1217 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
1218 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
1219 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
1220 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
1221 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
1222 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
1223 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
1224 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
1225 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
1226 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
1227 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
1228 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
1229 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1230 * testsuite/libgomp.fortran/lib1.f90: Ditto.
1231 * testsuite/libgomp.fortran/lib4.f90: Ditto.
1232 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
1233 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
1234 * testsuite/libgomp.fortran/nested1.f90: Ditto.
1235 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
1236 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
1237 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
1238 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1239 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
1240 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
1241 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1242 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
1243 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
1244 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
1245 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
1246 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
1247 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
1248 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
1249 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1250 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
1251 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1252 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
1253 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
1254 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
1255 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
1256 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
1257 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
1258 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
1259 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1260 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
1261 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
1262 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
1263 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
1264 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
1265 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1266 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
1267 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1268 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
1269 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
1270 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1271 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
1272 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
1273 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
1274 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
1275 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
1276 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
1277 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
1278 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
1279 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
1280 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
1281 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
1282 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
1283 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
1284 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
1285 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
1286 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
1287 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
1288 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
1289 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
1290 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
1291 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1292 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
1293 * testsuite/libgomp.fortran/reference1.f90: Ditto.
1294 * testsuite/libgomp.fortran/reference2.f90: Ditto.
1295 * testsuite/libgomp.fortran/retval1.f90: Ditto.
1296 * testsuite/libgomp.fortran/retval2.f90: Ditto.
1297 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
1298 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
1299 * testsuite/libgomp.fortran/simd1.f90: Ditto.
1300 * testsuite/libgomp.fortran/simd2.f90: Ditto.
1301 * testsuite/libgomp.fortran/simd3.f90: Ditto.
1302 * testsuite/libgomp.fortran/simd4.f90: Ditto.
1303 * testsuite/libgomp.fortran/simd5.f90: Ditto.
1304 * testsuite/libgomp.fortran/simd6.f90: Ditto.
1305 * testsuite/libgomp.fortran/simd7.f90: Ditto.
1306 * testsuite/libgomp.fortran/stack.f90: Ditto.
1307 * testsuite/libgomp.fortran/strassen.f90: Ditto.
1308 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
1309 * testsuite/libgomp.fortran/tabs2.f: Ditto.
1310 * testsuite/libgomp.fortran/target1.f90: Ditto.
1311 * testsuite/libgomp.fortran/target2.f90: Ditto.
1312 * testsuite/libgomp.fortran/target3.f90: Ditto.
1313 * testsuite/libgomp.fortran/target4.f90: Ditto.
1314 * testsuite/libgomp.fortran/target5.f90: Ditto.
1315 * testsuite/libgomp.fortran/target6.f90: Ditto.
1316 * testsuite/libgomp.fortran/target7.f90: Ditto.
1317 * testsuite/libgomp.fortran/target8.f90: Ditto.
1318 * testsuite/libgomp.fortran/task1.f90: Ditto.
1319 * testsuite/libgomp.fortran/task2.f90: Ditto.
1320 * testsuite/libgomp.fortran/task3.f90: Ditto.
1321 * testsuite/libgomp.fortran/task4.f90: Ditto.
1322 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1323 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1324 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1325 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1326 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1327 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
1328 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
1329 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
1330 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
1331 * testsuite/libgomp.fortran/udr1.f90: Ditto.
1332 * testsuite/libgomp.fortran/udr10.f90: Ditto.
1333 * testsuite/libgomp.fortran/udr11.f90: Ditto.
1334 * testsuite/libgomp.fortran/udr12.f90: Ditto.
1335 * testsuite/libgomp.fortran/udr13.f90: Ditto.
1336 * testsuite/libgomp.fortran/udr14.f90: Ditto.
1337 * testsuite/libgomp.fortran/udr15.f90: Ditto.
1338 * testsuite/libgomp.fortran/udr2.f90: Ditto.
1339 * testsuite/libgomp.fortran/udr3.f90: Ditto.
1340 * testsuite/libgomp.fortran/udr4.f90: Ditto.
1341 * testsuite/libgomp.fortran/udr5.f90: Ditto.
1342 * testsuite/libgomp.fortran/udr6.f90: Ditto.
1343 * testsuite/libgomp.fortran/udr7.f90: Ditto.
1344 * testsuite/libgomp.fortran/udr8.f90: Ditto.
1345 * testsuite/libgomp.fortran/udr9.f90: Ditto.
1346 * testsuite/libgomp.fortran/vla1.f90: Ditto.
1347 * testsuite/libgomp.fortran/vla2.f90: Ditto.
1348 * testsuite/libgomp.fortran/vla3.f90: Ditto.
1349 * testsuite/libgomp.fortran/vla4.f90: Ditto.
1350 * testsuite/libgomp.fortran/vla5.f90: Ditto.
1351 * testsuite/libgomp.fortran/vla6.f90: Ditto.
1352 * testsuite/libgomp.fortran/vla7.f90: Ditto.
1353 * testsuite/libgomp.fortran/vla8.f90: Ditto.
1354 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1355 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1356
1357 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1358
1359 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
1360 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
1361 Ditto; add 'dg-do run' for torture testing.
1362 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
1363 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1364 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1365 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1366 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1367 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1368 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
1369 * testsuite/libgomp.fortran/task2.f90: Ditto.
1370 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1371 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1372 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1373 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1374 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1375 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1376
1377 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
1378
1379 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
1380 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
1381 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
1382 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
1383 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
1384 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
1385 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
1386 Use 'stop' not abort().
1387 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
1388 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
1389 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
1390 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
1391 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
1392 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
1393 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
1394 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
1395 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
1396 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
1397 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
1398 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
1399 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
1400 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
1401 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
1402 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
1403 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1404 Ditto.
1405 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1406 Ditto.
1407 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1408 Ditto.
1409 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1410 Ditto.
1411 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1412 Ditto.
1413 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
1414 Ditto.
1415 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
1416 Ditto.
1417 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
1418 Ditto.
1419 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
1420 Ditto.
1421 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
1422 Ditto.
1423 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
1424 Ditto.
1425 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
1426 Ditto.
1427 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
1428 Ditto.
1429 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
1430 Ditto.
1431 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
1432 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
1433 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
1434 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
1435 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1436 Likewise and also add 'dg-do run'.
1437 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1438 Ditto.
1439
1440 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
1441 Tobias Burnus <tobias@codesourcery.com>
1442
1443 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
1444 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
1445 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
1446
1447 2019-10-14 Jakub Jelinek <jakub@redhat.com>
1448
1449 PR libgomp/92081
1450 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
1451 than 0.
1452
1453 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
1454
1455 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
1456 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
1457
1458 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
1459
1460 PR middle-end/92036
1461 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
1462 file.
1463
1464 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
1465
1466 PR testsuite/91884
1467 * testsuite/libgomp.fortran/fortran.exp: Conditionally
1468 add -lquadmath.
1469 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
1470
1471 2019-10-09 Jakub Jelinek <jakub@redhat.com>
1472
1473 PR libgomp/92028
1474 * target.c (gomp_map_vars_internal): Readd the previous
1475 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
1476 though do that just in the !not_found_cnt case.
1477
1478 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
1479
1480 * gfortran.dg/gomp/target-simd.f90: New.
1481
1482 2019-10-02 Julian Brown <julian@codesourcery.com>
1483 Cesar Philippidis <cesar@codesourcery.com>
1484
1485 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
1486 * target.c (FIELD_TGT_EMPTY): Define.
1487 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
1488 as switch instead of list of ifs.
1489 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
1490
1491 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
1492
1493 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
1494 include. Replace alloca () with __builtin_alloca ().
1495 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
1496
1497 2019-10-01 Jakub Jelinek <jakub@redhat.com>
1498
1499 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
1500 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
1501 * oacc-parallel.c: Don't include "libgomp_g.h".
1502 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
1503 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
1504 * aclocal.m4: Regenerated.
1505 * config.h.in: Regenerated.
1506 * configure: Regenerated.
1507 * Makefile.in: Regenerated.
1508
1509 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
1510
1511 * libgomp_g.h: Include stdint.h instead of gstdint.h.
1512
1513 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
1514
1515 * configure: Regenerate.
1516
1517 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
1518
1519 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
1520 string is initialized.
1521
1522 2019-09-06 Florian Weimer <fweimer@redhat.com>
1523
1524 * configure: Regenerate.
1525
1526 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
1527
1528 PR other/79543
1529 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
1530 scanning to conform to the GNU Coding Standards.
1531 * configure: Regenerate.
1532
1533 2019-08-28 Jakub Jelinek <jakub@redhat.com>
1534
1535 PR libgomp/91530
1536 * testsuite/libgomp.c/scan-21.c: New test.
1537 * testsuite/libgomp.c/scan-22.c: New test.
1538
1539 2019-08-27 Jakub Jelinek <jakub@redhat.com>
1540
1541 PR libgomp/91530
1542 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
1543 targets.
1544 * testsuite/libgomp.c/scan-12.c: Likewise.
1545 * testsuite/libgomp.c/scan-13.c: Likewise.
1546 * testsuite/libgomp.c/scan-14.c: Likewise.
1547 * testsuite/libgomp.c/scan-15.c: Likewise.
1548 * testsuite/libgomp.c/scan-16.c: Likewise.
1549 * testsuite/libgomp.c/scan-17.c: Likewise.
1550 * testsuite/libgomp.c/scan-18.c: Likewise.
1551 * testsuite/libgomp.c/scan-19.c: Likewise.
1552 * testsuite/libgomp.c/scan-20.c: Likewise.
1553 * testsuite/libgomp.c++/scan-9.C: Likewise.
1554 * testsuite/libgomp.c++/scan-10.C: Likewise.
1555 * testsuite/libgomp.c++/scan-11.C: Likewise.
1556 * testsuite/libgomp.c++/scan-12.C: Likewise.
1557 * testsuite/libgomp.c++/scan-14.C: Likewise.
1558 * testsuite/libgomp.c++/scan-15.C: Likewise.
1559 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
1560 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
1561 * testsuite/libgomp.c++/scan-16.C: Likewise.
1562
1563 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
1564
1565 PR fortran/91473
1566 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
1567 -std=legacy so invalid code in the test case is accepted.
1568
1569 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
1570
1571 PR fortran/91422
1572 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
1573 dimension.
1574
1575 2019-08-08 Jakub Jelinek <jakub@redhat.com>
1576
1577 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
1578 perform the lookup in the first loop only if !not_found_cnt, otherwise
1579 perform lookups for it in the second loop guarded with
1580 if (not_found_cnt || has_firstprivate).
1581 * testsuite/libgomp.c/target-37.c: New test.
1582 * testsuite/libgomp.c++/target-22.C: New test.
1583
1584 2019-08-07 Jakub Jelinek <jakub@redhat.com>
1585
1586 * testsuite/libgomp.c/target-18.c (struct S): New type.
1587 (foo): Use use_device_addr clause instead of use_device_ptr clause
1588 where required by OpenMP 5.0, add further tests for both use_device_ptr
1589 and use_device_addr clauses.
1590 * testsuite/libgomp.c++/target-9.C (struct S): New type.
1591 (foo): Use use_device_addr clause instead of use_device_ptr clause
1592 where required by OpenMP 5.0, add further tests for both use_device_ptr
1593 and use_device_addr clauses. Add t and u arguments.
1594 (main): Adjust caller.
1595
1596 2019-08-06 Jakub Jelinek <jakub@redhat.com>
1597
1598 * testsuite/libgomp.c++/loop-13.C: New test.
1599 * testsuite/libgomp.c++/loop-14.C: New test.
1600 * testsuite/libgomp.c++/loop-15.C: New test.
1601
1602 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1603
1604 PR middle-end/91301
1605 * testsuite/libgomp.c++/for-27.C: New test.
1606
1607 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
1608
1609 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
1610 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1611
1612 2019-07-20 Jakub Jelinek <jakub@redhat.com>
1613
1614 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
1615
1616 2019-07-08 Jakub Jelinek <jakub@redhat.com>
1617
1618 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
1619 * testsuite/libgomp.c++/scan-16.C: Likewise.
1620
1621 2019-07-06 Jakub Jelinek <jakub@redhat.com>
1622
1623 * testsuite/libgomp.c/scan-19.c: New test.
1624 * testsuite/libgomp.c/scan-20.c: New test.
1625
1626 * testsuite/libgomp.c/scan-11.c: New test.
1627 * testsuite/libgomp.c/scan-12.c: New test.
1628 * testsuite/libgomp.c/scan-13.c: New test.
1629 * testsuite/libgomp.c/scan-14.c: New test.
1630 * testsuite/libgomp.c/scan-15.c: New test.
1631 * testsuite/libgomp.c/scan-16.c: New test.
1632 * testsuite/libgomp.c/scan-17.c: New test.
1633 * testsuite/libgomp.c/scan-18.c: New test.
1634 * testsuite/libgomp.c++/scan-9.C: New test.
1635 * testsuite/libgomp.c++/scan-10.C: New test.
1636 * testsuite/libgomp.c++/scan-11.C: New test.
1637 * testsuite/libgomp.c++/scan-12.C: New test.
1638 * testsuite/libgomp.c++/scan-13.C: New test.
1639 * testsuite/libgomp.c++/scan-14.C: New test.
1640 * testsuite/libgomp.c++/scan-15.C: New test.
1641 * testsuite/libgomp.c++/scan-16.C: New test.
1642
1643 2019-07-04 Jakub Jelinek <jakub@redhat.com>
1644
1645 * testsuite/libgomp.c/scan-9.c: New test.
1646 * testsuite/libgomp.c/scan-10.c: New test.
1647
1648 2019-07-03 Jakub Jelinek <jakub@redhat.com>
1649
1650 * testsuite/libgomp.c++/scan-1.C: New test.
1651 * testsuite/libgomp.c++/scan-2.C: New test.
1652 * testsuite/libgomp.c++/scan-3.C: New test.
1653 * testsuite/libgomp.c++/scan-4.C: New test.
1654 * testsuite/libgomp.c++/scan-5.C: New test.
1655 * testsuite/libgomp.c++/scan-6.C: New test.
1656 * testsuite/libgomp.c++/scan-7.C: New test.
1657 * testsuite/libgomp.c++/scan-8.C: New test.
1658 * testsuite/libgomp.c/scan-1.c: New test.
1659 * testsuite/libgomp.c/scan-2.c: New test.
1660 * testsuite/libgomp.c/scan-3.c: New test.
1661 * testsuite/libgomp.c/scan-4.c: New test.
1662 * testsuite/libgomp.c/scan-5.c: New test.
1663 * testsuite/libgomp.c/scan-6.c: New test.
1664 * testsuite/libgomp.c/scan-7.c: New test.
1665 * testsuite/libgomp.c/scan-8.c: New test.
1666
1667 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1668
1669 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
1670 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
1671 Likewise.
1672
1673 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
1674 check.
1675
1676 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
1677
1678 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
1679 file.
1680
1681 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1682
1683 PR fortran/90743
1684 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
1685 case.
1686 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
1687 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
1688 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
1689 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
1690
1691 PR testsuite/90861
1692 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
1693
1694 PR middle-end/90862
1695 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
1696
1697 2019-06-16 Tom de Vries <tdevries@suse.de>
1698
1699 PR tree-optimization/89376
1700 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
1701
1702 2019-06-15 Tom de Vries <tdevries@suse.de>
1703
1704 PR tree-optimization/89713
1705 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
1706 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
1707
1708 2019-06-15 Jakub Jelinek <jakub@redhat.com>
1709
1710 PR middle-end/90779
1711 * testsuite/libgomp.c/pr90779.c: New test.
1712 * testsuite/libgomp.fortran/pr90779.f90: New test.
1713
1714 2019-06-15 Tom de Vries <tdevries@suse.de>
1715
1716 PR tree-optimization/90009
1717 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
1718
1719 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
1720
1721 PR tree-optimization/89713
1722 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
1723
1724 2019-06-11 Jakub Jelinek <jakub@redhat.com>
1725
1726 PR target/90811
1727 * testsuite/libgomp.c/pr90811.c: New test.
1728
1729 2019-06-05 Jakub Jelinek <jakub@redhat.com>
1730
1731 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
1732 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
1733
1734 2019-06-04 Jakub Jelinek <jakub@redhat.com>
1735
1736 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
1737 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
1738 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
1739 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
1740
1741 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1742
1743 * configure.ac: Call AX_COUNT_CPUS.
1744 Substitute CPU_COUNT.
1745 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
1746 count fallback.
1747 * aclocal.m4: Regenerate.
1748 * configure: Regenerate.
1749 * Makefile.in, testsuite/Makefile.in: Regenerate.
1750
1751 2019-05-29 Jakub Jelinek <jakub@redhat.com>
1752
1753 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
1754 to ...
1755 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
1756 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
1757 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
1758
1759 2019-05-27 Jakub Jelinek <jakub@redhat.com>
1760
1761 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
1762
1763 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
1764
1765 PR libgomp/90641
1766 * work.c (gomp_init_work_share): Instead of aligning final ordered
1767 value to multiples of long long alignment, align to that the
1768 first part (ordered team ids) and if inline_ordered_team_ids
1769 is not on a long long alignment boundary within the structure,
1770 use __alignof__ (long long) - 1 pad size always.
1771 * loop.c (GOMP_loop_start): Fix *mem computation if
1772 inline_ordered_team_ids is not aligned on long long alignment boundary
1773 within the structure.
1774 * loop-ull.c (GOMP_loop_ull_start): Likewise.
1775 * sections.c (GOMP_sections2_start): Likewise.
1776
1777 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1778
1779 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
1780 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
1781
1782 PR libgomp/90585
1783 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
1784 HAVE_INTTYPES_H is defined.
1785 (print_uint64_t): New typedef.
1786 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
1787 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
1788 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
1789 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
1790 before casting to void *.
1791 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
1792 * oacc-mem.c: Don't include config.h nor stdint.h.
1793 * target.c: Don't include config.h.
1794 * oacc-cuda.c: Likewise.
1795 * oacc-host.c: Don't include stdint.h.
1796
1797 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1798
1799 PR libgomp/90527
1800 * alloc.c (_GNU_SOURCE): Define.
1801
1802 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
1803
1804 * acc_prof.h: New file.
1805 * oacc-profiling.c: Likewise.
1806 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
1807 Add these, respectively.
1808 * Makefile.in: Regenerate.
1809 * env.c (initialize_env): Call goacc_profiling_initialize.
1810 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
1811 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
1812 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
1813 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
1814 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
1815 acc_prof_register, acc_prof_unregister, and acc_register_library.
1816 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
1817 GOMP_PLUGIN_goacc_thread.
1818 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
1819 prof_callbacks_enabled members.
1820 (goacc_prof_enabled, goacc_profiling_initialize)
1821 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
1822 (goacc_profiling_dispatch): Declare.
1823 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
1824 (GOACC_PROFILING_SETUP_P): Define.
1825 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
1826 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
1827 OpenACC Profiling Interface.
1828 * oacc-cuda.c (acc_get_current_cuda_device)
1829 (acc_get_current_cuda_context, acc_get_cuda_stream)
1830 (acc_set_cuda_stream): Likewise.
1831 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
1832 (acc_init, acc_set_device_type, acc_get_device_type)
1833 (acc_get_device_num, goacc_lazy_initialize): Likewise.
1834 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
1835 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
1836 (acc_unmap_data, present_create_copy, delete_copyout)
1837 (update_dev_host): Likewise.
1838 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
1839 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
1840 Likewise.
1841 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
1842 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1843 Likewise.
1844 * libgomp.texi: Update.
1845 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
1846 file.
1847 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
1848 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1849 Likewise.
1850 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1851 Likewise.
1852 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
1853 Likewise.
1854 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
1855 Likewise.
1856
1857 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
1858
1859 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
1860 (struct goacc_asyncqueue_list): Likewise.
1861 (goacc_aq): Likewise.
1862 (goacc_aq_list): Likewise.
1863 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1864 (GOMP_OFFLOAD_openacc_async_test): Remove.
1865 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1866 (GOMP_OFFLOAD_openacc_async_wait): Remove.
1867 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1868 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1869 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1870 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1871 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
1872 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
1873 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
1874 (GOMP_OFFLOAD_openacc_async_exec): Declare.
1875 (GOMP_OFFLOAD_openacc_async_construct): Declare.
1876 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
1877 (GOMP_OFFLOAD_openacc_async_test): Declare.
1878 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
1879 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
1880 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
1881 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
1882 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
1883
1884 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
1885 (gomp_acc_insert_pointer): Adjust declaration.
1886 (gomp_copy_host2dev): New declaration.
1887 (gomp_copy_dev2host): Likewise.
1888 (gomp_map_vars_async): Likewise.
1889 (gomp_unmap_tgt): Likewise.
1890 (gomp_unmap_vars_async): Likewise.
1891 (gomp_fini_device): Likewise.
1892
1893 * oacc-async.c (get_goacc_thread): New function.
1894 (get_goacc_thread_device): New function.
1895 (lookup_goacc_asyncqueue): New function.
1896 (get_goacc_asyncqueue): New function.
1897 (acc_async_test): Adjust code to use new async design.
1898 (acc_async_test_all): Likewise.
1899 (acc_wait): Likewise.
1900 (acc_wait_async): Likewise.
1901 (acc_wait_all): Likewise.
1902 (acc_wait_all_async): Likewise.
1903 (goacc_async_free): New function.
1904 (goacc_init_asyncqueues): Likewise.
1905 (goacc_fini_asyncqueues): Likewise.
1906 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
1907 design.
1908 (acc_set_cuda_stream): Likewise.
1909 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
1910 (host_openacc_register_async_cleanup): Remove.
1911 (host_openacc_async_exec): New function.
1912 (host_openacc_async_test): Adjust parameters.
1913 (host_openacc_async_test_all): Remove.
1914 (host_openacc_async_wait): Remove.
1915 (host_openacc_async_wait_async): Remove.
1916 (host_openacc_async_wait_all): Remove.
1917 (host_openacc_async_wait_all_async): Remove.
1918 (host_openacc_async_set_async): Remove.
1919 (host_openacc_async_synchronize): New function.
1920 (host_openacc_async_serialize): New function.
1921 (host_openacc_async_host2dev): New function.
1922 (host_openacc_async_dev2host): New function.
1923 (host_openacc_async_queue_callback): New function.
1924 (host_openacc_async_construct): New function.
1925 (host_openacc_async_destruct): New function.
1926 (struct gomp_device_descr host_dispatch): Remove initialization of old
1927 interface, add initialization of new async sub-struct.
1928 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
1929 (goacc_attach_host_thread_to_device): Remove old async code usage.
1930 * oacc-int.h (goacc_init_asyncqueues): New declaration.
1931 (goacc_fini_asyncqueues): Likewise.
1932 (goacc_async_copyout_unmap_vars): Likewise.
1933 (goacc_async_free): Likewise.
1934 (get_goacc_asyncqueue): Likewise.
1935 (lookup_goacc_asyncqueue): Likewise.
1936 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
1937 design.
1938 (present_create_copy): Adjust code to use new async design.
1939 (delete_copyout): Likewise.
1940 (update_dev_host): Likewise.
1941 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
1942 async design.
1943 (gomp_acc_remove_pointer): Adjust code to use new async design.
1944 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
1945 design.
1946 (GOACC_enter_exit_data): Likewise.
1947 (goacc_wait): Likewise.
1948 (GOACC_update): Likewise.
1949 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
1950 when called, warn as obsolete in comment.
1951 * target.c (goacc_device_copy_async): New function.
1952 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
1953 add goacc_device_copy_async case.
1954 (gomp_copy_dev2host): Likewise.
1955 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
1956 (gomp_map_pointer): Likewise.
1957 (gomp_map_fields_existing): Likewise.
1958 (gomp_map_vars_internal): New always_inline function, renamed from
1959 gomp_map_vars.
1960 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
1961 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
1962 passing goacc_asyncqueue argument.
1963 (gomp_unmap_tgt): Remove static, add attribute_hidden.
1964 (gomp_unref_tgt): New function.
1965 (gomp_unmap_vars_internal): New always_inline function, renamed from
1966 gomp_unmap_vars.
1967 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
1968 (gomp_unmap_vars_async): Implement by calling
1969 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
1970 (gomp_fini_device): New function.
1971 (gomp_exit_data): Adjust gomp_copy_dev2host call.
1972 (gomp_load_plugin_for_device): Remove old interface, adjust to load
1973 new async interface.
1974 (gomp_target_fini): Adjust code to call gomp_fini_device.
1975
1976 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
1977 (struct ptx_stream): Remove.
1978 (struct nvptx_thread): Remove current_stream field.
1979 (cuda_map_create): Remove.
1980 (cuda_map_destroy): Remove.
1981 (map_init): Remove.
1982 (map_fini): Remove.
1983 (map_pop): Remove.
1984 (map_push): Remove.
1985 (struct goacc_asyncqueue): Define.
1986 (struct nvptx_callback): Define.
1987 (struct ptx_free_block): Define.
1988 (struct ptx_device): Remove null_stream, active_streams, async_streams,
1989 stream_lock, and next fields.
1990 (enum ptx_event_type): Remove.
1991 (struct ptx_event): Remove.
1992 (ptx_event_lock): Remove.
1993 (ptx_events): Remove.
1994 (init_streams_for_device): Remove.
1995 (fini_streams_for_device): Remove.
1996 (select_stream_for_async): Remove.
1997 (nvptx_init): Remove ptx_events and ptx_event_lock references.
1998 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
1999 case.
2000 (nvptx_open_device): Add free_blocks initialization, remove
2001 init_streams_for_device call.
2002 (nvptx_close_device): Remove fini_streams_for_device call, add
2003 free_blocks destruct code.
2004 (event_gc): Remove.
2005 (event_add): Remove.
2006 (nvptx_exec): Adjust parameters and code.
2007 (nvptx_free): Likewise.
2008 (nvptx_host2dev): Remove.
2009 (nvptx_dev2host): Remove.
2010 (nvptx_set_async): Remove.
2011 (nvptx_async_test): Remove.
2012 (nvptx_async_test_all): Remove.
2013 (nvptx_wait): Remove.
2014 (nvptx_wait_async): Remove.
2015 (nvptx_wait_all): Remove.
2016 (nvptx_wait_all_async): Remove.
2017 (nvptx_get_cuda_stream): Remove.
2018 (nvptx_set_cuda_stream): Remove.
2019 (GOMP_OFFLOAD_alloc): Adjust code.
2020 (GOMP_OFFLOAD_free): Likewise.
2021 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2022 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
2023 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2024 (GOMP_OFFLOAD_openacc_async_wait): Remove.
2025 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2026 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2027 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2028 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2029 (cuda_free_argmem): New function.
2030 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
2031 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
2032 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
2033 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
2034 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
2035 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
2036 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
2037 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
2038 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
2039 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
2040 (cuda_callback_wrapper): New function.
2041 (cuda_memcpy_sanity_check): New function.
2042 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
2043 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
2044 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
2045 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
2046
2047 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
2048
2049 PR target/87835
2050 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
2051
2052 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
2053
2054 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
2055
2056 2019-03-27 Kevin Buettner <kevinb@redhat.com>
2057
2058 * team.c (gomp_team_start): Initialize pool->threads[0].
2059
2060 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
2061
2062 * testsuite/libgomp.oacc-c++/c++.exp: Specify
2063 "-foffload=$offload_target".
2064 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2065 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2066 * testsuite/lib/libgomp.exp
2067 (check_effective_target_openacc_nvidia_accel_configured): Remove,
2068 as (conceptually) merged into
2069 check_effective_target_openacc_nvidia_accel_selected. Adjust all
2070 users.
2071
2072 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
2073 * testsuite/libgomp-test-support.exp.in: Adjust.
2074 * testsuite/lib/libgomp.exp: Likewise. Don't populate
2075 openacc_device_types_s.
2076 (offload_target_to_openacc_device_type): New proc.
2077 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
2078 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2079 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2080 * Makefile.in: Regenerate.
2081 * configure: Likewise.
2082 * testsuite/Makefile.in: Likewise.
2083
2084 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
2085 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
2086 instead of OFFLOAD_TARGETS.
2087 * target.c (gomp_target_init): Adjust.
2088 * testsuite/libgomp-test-support.exp.in: Likewise.
2089 * testsuite/lib/libgomp.exp: Likewise. Populate
2090 openacc_device_types_s instead of offload_targets_s_openacc.
2091 (check_effective_target_openacc_nvidia_accel_selected)
2092 (check_effective_target_openacc_host_selected): Adjust.
2093 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2094 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2095 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2096 * Makefile.in: Regenerate.
2097 * config.h.in: Likewise.
2098 * configure: Likewise.
2099 * testsuite/Makefile.in: Likewise.
2100
2101 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
2102 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
2103 "offloading: supported, but hardware not accessible".
2104 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2105 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2106
2107 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
2108
2109 PR c/87924
2110 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
2111 goacc_wait().
2112 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
2113 and related adjustment.
2114
2115 2019-01-30 Jakub Jelinek <jakub@redhat.com>
2116
2117 PR c++/88988
2118 * testsuite/libgomp.c++/pr88988.C: New test.
2119
2120 2019-01-28 Jakub Jelinek <jakub@redhat.com>
2121
2122 PR middle-end/89002
2123 * testsuite/libgomp.c/pr89002.c: New test.
2124
2125 2019-01-28 Richard Biener <rguenther@suse.de>
2126
2127 PR testsuite/89064
2128 PR tree-optimization/86865
2129 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
2130
2131 2019-01-24 Tom de Vries <tdevries@suse.de>
2132
2133 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
2134 once instantiated_devices drops to 0.
2135
2136 2019-01-23 Tom de Vries <tdevries@suse.de>
2137
2138 PR target/PR88946
2139 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
2140 cuMemFree.
2141 (nvptx_exec): Don't call map_push if mapnum == 0.
2142 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
2143
2144 2019-01-23 Tom de Vries <tdevries@suse.de>
2145
2146 PR target/88941
2147 PR target/88939
2148 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
2149 (map_fini): Remove "assert (!s->map->active)".
2150 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
2151
2152 2019-01-23 Tom de Vries <tdevries@suse.de>
2153
2154 PR target/87835
2155 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
2156 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
2157
2158 2019-01-15 Tom de Vries <tdevries@suse.de>
2159
2160 PR target/80547
2161 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
2162 New test.
2163
2164 2019-01-12 Tom de Vries <tdevries@suse.de>
2165
2166 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
2167 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
2168 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
2169 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
2170
2171 2019-01-12 Tom de Vries <tdevries@suse.de>
2172
2173 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
2174
2175 2019-01-12 Tom de Vries <tdevries@suse.de>
2176
2177 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
2178 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
2179 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
2180
2181 2019-01-12 Tom de Vries <tdevries@suse.de>
2182
2183 PR target/85486
2184 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
2185 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
2186
2187 2019-01-12 Tom de Vries <tdevries@suse.de>
2188
2189 PR target/85381
2190 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
2191 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
2192
2193 2019-01-12 Tom de Vries <tdevries@suse.de>
2194
2195 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
2196 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
2197 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
2198
2199 2019-01-12 Tom de Vries <tdevries@suse.de>
2200
2201 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
2202 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
2203 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
2204
2205 2019-01-12 Tom de Vries <tdevries@suse.de>
2206
2207 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
2208 resources diagnostic.
2209
2210 2019-01-12 Tom de Vries <tdevries@suse.de>
2211
2212 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
2213 vector length to be 128.
2214 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
2215 length 2097152 to be reduced to 1024 instead of 32.
2216
2217 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
2218 James Norris <jnorris@codesourcery.com>
2219
2220 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
2221 Library Routines", and "Environment Variables".
2222
2223 2019-01-11 Tom de Vries <tdevries@suse.de>
2224
2225 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
2226 num_workers 16.
2227
2228 2019-01-11 Tom de Vries <tdevries@suse.de>
2229
2230 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
2231 -foffload=-w.
2232 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
2233 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
2234 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
2235 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
2236
2237 2019-01-11 Tom de Vries <tdevries@suse.de>
2238
2239 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
2240 test.
2241
2242 2019-01-10 Nathan Sidwell <nathan@acm.org>
2243 Julian Brown <julian@codesourcery.com>
2244
2245 PR lto/71959
2246 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
2247 * testsuite/libgomp.oacc-c++/pr71959.C: New.
2248
2249 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2250
2251 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
2252 and paste code.
2253
2254 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2255
2256 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
2257 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2258 write.
2259
2260 2019-01-09 Tom de Vries <tdevries@suse.de>
2261
2262 PR target/88756
2263 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
2264 #define instead of "const int".
2265 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
2266 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
2267 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
2268 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
2269
2270 2019-01-09 Tom de Vries <tdevries@suse.de>
2271
2272 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
2273 one worker.
2274
2275 2019-01-07 Tom de Vries <tdevries@suse.de>
2276
2277 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
2278 GOMP_OPENACC_DIM argument.
2279
2280 2019-01-03 Tom de Vries <tdevries@suse.de>
2281
2282 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
2283 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
2284
2285 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2286
2287 Update copyright years.
2288
2289 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2290
2291 * libgomp.texi: Bump @copying's copyright year.
2292
2293 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2294
2295 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
2296 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
2297 (GOACC_declare): Redefine the "device" argument to "flags".
2298
2299 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2300 Cesar Philippidis <cesar@codesourcery.com>
2301
2302 * target.c (struct gomp_coalesce_chunk): New structure.
2303 (struct gomp_coalesce_buf): Update the chunks member to use that
2304 type. Adjust all users.
2305
2306 2018-12-19 Tom de Vries <tdevries@suse.de>
2307
2308 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
2309 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
2310 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
2311
2312 2018-12-19 Tom de Vries <tdevries@suse.de>
2313
2314 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
2315 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
2316 gcc/testsuite/gcc.dg/goacc.
2317 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
2318
2319 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2320 Chung-Lin Tang <cltang@codesourcery.com>
2321
2322 * oacc-mem.c (acc_present_or_create): Remove definition and change
2323 to alias of acc_create.
2324 (acc_present_or_copyin): Remove definition and change to alias of
2325 acc_copyin.
2326 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
2327 of acc_present_or_create.
2328 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
2329 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2330 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
2331 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
2332 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
2333 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
2334 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
2335 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2336 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2337 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2338 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2339 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2340 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2341 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2342 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2343 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2344
2345 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2346
2347 PR libgomp/88495
2348 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
2349 "identical parameters".
2350 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
2351 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
2352
2353 PR libgomp/88484
2354 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
2355 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
2356
2357 PR libgomp/88407
2358 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
2359 (nvptx_wait_async): Unseen async-argument is a no-op.
2360 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
2361 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
2362 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2363 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2364 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
2365 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
2366 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
2367 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
2368 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
2369
2370 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
2371 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2372
2373 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
2374
2375 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
2376 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2377 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
2378
2379 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2380
2381 PR libgomp/88370
2382 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
2383 (acc_set_cuda_stream): Clarify.
2384 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
2385 "async_valid_p".
2386 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
2387 acc_async_sync".
2388 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
2389 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
2390 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
2391 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2392
2393 2018-12-14 Tom de Vries <tdevries@suse.de>
2394
2395 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
2396 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
2397 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
2398 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
2399 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
2400
2401 2018-12-13 Tom de Vries <tdevries@suse.de>
2402
2403 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
2404 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
2405 * fortran.c (omp_display_affinity_): ... here.
2406 * libgomp.h (gomp_print_string): Declare.
2407 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
2408 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2409 write.
2410
2411 2018-12-13 Jakub Jelinek <jakub@redhat.com>
2412
2413 PR libgomp/88460
2414 * testsuite/libgomp.c++/for-24.C (results): Include it in
2415 omp declare target region.
2416 (main): Use map (always, tofrom: results) instead of
2417 map (tofrom: results).
2418
2419 2018-12-12 Jakub Jelinek <jakub@redhat.com>
2420
2421 PR fortran/88463
2422 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
2423 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
2424
2425 * testsuite/libgomp.c-c++-common/for-16.c: New test.
2426
2427 2018-12-12 Andreas Schwab <schwab@suse.de>
2428
2429 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
2430 clobbered.
2431
2432 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
2433
2434 PR fortran/88411
2435 * testsuite/libgomp.fortran/async_io_8.f90: New test.
2436
2437 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
2438 Jakub Jelinek <jakub@redhat.com>
2439
2440 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
2441 devicep->host2dev_func.
2442
2443 2018-12-08 Jakub Jelinek <jakub@redhat.com>
2444
2445 PR libgomp/87995
2446 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
2447 tls_runtime effective target.
2448 (t): New threadprivate variable.
2449 (main): Set t in threads which execute iterations of the worksharing
2450 loop. Propagate that to the task after the loop and don't abort
2451 if the current taskgroup hasn't been cancelled.
2452
2453 2018-12-02 Jakub Jelinek <jakub@redhat.com>
2454
2455 * testsuite/libgomp.c/task-reduction-3.c: New test.
2456
2457 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
2458
2459 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
2460
2461 PR libgomp/88288
2462 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
2463 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
2464
2465 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
2466
2467 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
2468
2469 2018-10-19 Richard Biener <rguenther@suse.de>
2470
2471 PR tree-optimization/88182
2472 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
2473
2474 2018-11-26 Jakub Jelinek <jakub@redhat.com>
2475
2476 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
2477 (RUNTEST): Don't define.
2478 (RUNTESTDEFAULTFLAGS): Add.
2479 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
2480 (distclean-am): Depend on distclean-DEJAGNU.
2481 (check-am): If -j% option is present in MFLAGS and if
2482 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
2483 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
2484 * testsuite/Makefile.in: Regenerated.
2485
2486 2018-11-26 Richard Biener <rguenther@suse.de>
2487
2488 PR tree-optimization/88182
2489 * testsuite/libgomp.c++/pr88182.C: New testcase.
2490
2491 2018-11-20 Jakub Jelinek <jakub@redhat.com>
2492
2493 PR bootstrap/88106
2494 * config/mingw32/affinity-fmt.c: New file.
2495
2496 2018-11-09 Jakub Jelinek <jakub@redhat.com>
2497
2498 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
2499 (gomp_display_affinity): Use __builtin_choose_expr to handle
2500 properly handle argument having integral, or pointer or some other
2501 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
2502 with uint64_t type instead of %llx and unsigned long long.
2503
2504 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
2505 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
2506
2507 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2508
2509 * affinity.c: Include <string.h>, <stdio.h>.
2510 (gomp_display_affinity_place): Remove cpusetp.
2511 * teams.c: Include <limits.h>.
2512
2513 2018-11-08 Jakub Jelinek <jakub@redhat.com>
2514
2515 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
2516 in_reduction clause for s[0].
2517
2518 * affinity.c (gomp_display_affinity_place): New function.
2519 * affinity-fmt.c: New file.
2520 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
2521 * config/linux/affinity.c (gomp_display_affinity_place): New function.
2522 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
2523 Move these functions to ...
2524 * config/nvptx/teams.c: ... here. New file.
2525 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
2526 New functions.
2527 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
2528 functions.
2529 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
2530 and _aligned_malloc.
2531 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
2532 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
2533 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
2534 gomp_affinity_format_len): New variables.
2535 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
2536 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
2537 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
2538 modifiers. Display (non-default) chunk sizes. Print
2539 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
2540 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
2541 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
2542 * fortran.c: Include stdio.h and string.h.
2543 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
2544 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
2545 (omp_set_affinity_format_, omp_get_affinity_format_,
2546 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
2547 omp_pause_resource_all_): New functions.
2548 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
2549 switch.
2550 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
2551 functions to ...
2552 * teams.c: ... here. New file.
2553 * libgomp_g.h: Include gstdint.h.
2554 (GOMP_loop_nonmonotonic_runtime_start,
2555 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
2556 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
2557 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
2558 GOMP_parallel_loop_nonmonotonic_runtime,
2559 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2560 GOMP_loop_ull_nonmonotonic_runtime_start,
2561 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
2562 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
2563 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2564 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
2565 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
2566 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2567 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2568 GOMP_teams_reg): Declare.
2569 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
2570 gomp_aligned_alloc uses fallback implementation.
2571 (gomp_aligned_alloc, gomp_aligned_free): Declare.
2572 (enum gomp_schedule_type): Add GFS_MONOTONIC.
2573 (struct gomp_doacross_work_share): Add extra field.
2574 (struct gomp_work_share): Add task_reductions field.
2575 (struct gomp_taskgroup): Add workshare and reductions fields.
2576 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
2577 (gomp_thread_handle): New typedef.
2578 (gomp_display_affinity_place, gomp_set_affinity_format,
2579 gomp_display_string, gomp_display_affinity,
2580 gomp_display_affinity_thread): Declare.
2581 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
2582 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
2583 gomp_workshare_task_reduction_register): Declare.
2584 (gomp_team_start): Add taskgroup argument.
2585 (gomp_pause_host): Declare.
2586 (gomp_init_work_share, gomp_work_share_start): Change bool argument
2587 to size_t.
2588 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
2589 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
2590 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
2591 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2592 GOMP_loop_ull_doacross_start,
2593 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2594 GOMP_loop_maybe_nonmonotonic_runtime_next,
2595 GOMP_loop_maybe_nonmonotonic_runtime_start,
2596 GOMP_loop_nonmonotonic_runtime_next,
2597 GOMP_loop_nonmonotonic_runtime_start,
2598 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2599 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2600 GOMP_loop_ull_nonmonotonic_runtime_next,
2601 GOMP_loop_ull_nonmonotonic_runtime_start,
2602 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2603 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
2604 GOMP_taskgroup_reduction_register,
2605 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2606 GOMP_teams_reg and GOMP_taskwait_depend.
2607 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
2608 omp_{capture,display}_affinity{,_}, and
2609 omp_[gs]et_affinity_format{,_}.
2610 * loop.c: Include string.h.
2611 (GOMP_loop_runtime_next): Add ialias.
2612 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2613 (gomp_loop_static_start, gomp_loop_dynamic_start,
2614 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2615 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2616 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
2617 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
2618 or gomp_doacross_init callers.
2619 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
2620 GOMP_loop_doacross_start): New functions.
2621 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2622 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
2623 Mask off GFS_MONOTONIC bit.
2624 (GOMP_loop_maybe_nonmonotonic_runtime_next,
2625 GOMP_loop_maybe_nonmonotonic_runtime_start,
2626 GOMP_loop_nonmonotonic_runtime_next,
2627 GOMP_loop_nonmonotonic_runtime_start,
2628 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2629 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
2630 functions.
2631 (gomp_parallel_loop_start): Pass NULL as taskgroup to
2632 gomp_team_start.
2633 * loop_ull.c: Include string.h.
2634 (GOMP_loop_ull_runtime_next): Add ialias.
2635 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2636 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
2637 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
2638 gomp_loop_ull_ordered_dynamic_start,
2639 gomp_loop_ull_ordered_guided_start,
2640 gomp_loop_ull_doacross_static_start,
2641 gomp_loop_ull_doacross_dynamic_start,
2642 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
2643 and gomp_doacross_ull_init callers.
2644 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2645 GOMP_loop_ull_doacross_start): New functions.
2646 (GOMP_loop_ull_runtime_start,
2647 GOMP_loop_ull_ordered_runtime_start,
2648 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
2649 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2650 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2651 GOMP_loop_ull_nonmonotonic_runtime_next,
2652 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
2653 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
2654 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
2655 (omp_pause_resource_t, omp_depend_t): New typedefs.
2656 (enum omp_lock_hint_t): Renamed to ...
2657 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
2658 enumerators using numbers and omp_lock_hint_* as their aliases.
2659 (omp_lock_hint_t): New typedef. Rename to ...
2660 (omp_sync_hint_t): ... this.
2661 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
2662 omp_sync_hint_t instead of omp_lock_hint_t.
2663 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2664 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2665 Declare.
2666 (omp_target_is_present, omp_target_disassociate_ptr):
2667 Change first argument from void * to const void *.
2668 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
2669 from void * to const void *.
2670 (omp_target_associate_ptr): Change first and second arguments from
2671 void * to const void *.
2672 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
2673 omp_pause_hard): New parameters.
2674 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2675 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2676 New interfaces.
2677 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
2678 omp_pause_hard): New parameters.
2679 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2680 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2681 New externals.
2682 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
2683 EXTRA argument. If not needed to prepare array, if extra is 0,
2684 clear ws->doacross, otherwise allocate just doacross structure and
2685 extra payload. If array is needed, allocate also extra payload.
2686 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
2687 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
2688 doacross == NULL.
2689 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
2690 gomp_team_start.
2691 (GOMP_parallel): Likewise. Formatting fix.
2692 (GOMP_parallel_reductions): New function.
2693 (GOMP_cancellation_point): If taskgroup has workshare
2694 flag set, check cancelled of prev taskgroup if any.
2695 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
2696 on prev taskgroup if any.
2697 * sections.c: Include string.h.
2698 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2699 (GOMP_sections_start): Adjust gomp_work_share_start caller.
2700 (GOMP_sections2_start): New function.
2701 (GOMP_parallel_sections_start, GOMP_parallel_sections):
2702 Pass NULL as taskgroup to gomp_team_start.
2703 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
2704 gomp_work_share_start callers.
2705 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
2706 If taskgroup has workshare flag set, check cancelled on prev
2707 taskgroup if any. Guard all cancellation tests with
2708 gomp_cancel_var test.
2709 (omp_target_is_present, omp_target_disassociate_ptr):
2710 Change ptr argument from void * to const void *.
2711 (omp_target_memcpy): Change src argument from void * to const void *.
2712 (omp_target_memcpy_rect): Likewise.
2713 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
2714 instead of char * where needed.
2715 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
2716 from void * to const void *.
2717 (omp_pause_resource, omp_pause_resource_all): New functions.
2718 * task.c (gomp_task_handle_depend): Handle new depend array format
2719 in addition to the old. Handle mutexinoutset kinds the same as
2720 inout for now, handle unspecified kinds.
2721 (gomp_create_target_task): If taskgroup has workshare flag set, check
2722 cancelled on prev taskgroup if any. Guard all cancellation tests with
2723 gomp_cancel_var test. Handle new depend array format count in
2724 addition to the old.
2725 (GOMP_task): Likewise. Adjust function comment.
2726 (gomp_task_run_pre): If taskgroup has workshare flag set, check
2727 cancelled on prev taskgroup if any. Guard all cancellation tests with
2728 gomp_cancel_var test.
2729 (GOMP_taskwait_depend): New function.
2730 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
2731 format in addition to the old. Handle mutexinoutset kinds the same as
2732 inout for now, handle unspecified kinds. Fix a function comment typo.
2733 (gomp_taskgroup_init): New function.
2734 (GOMP_taskgroup_start): Use it.
2735 (gomp_reduction_register, gomp_create_artificial_team,
2736 GOMP_taskgroup_reduction_register,
2737 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2738 gomp_parallel_reduction_register,
2739 gomp_workshare_task_reduction_register,
2740 gomp_workshare_taskgroup_start,
2741 GOMP_workshare_task_reduction_unregister): New functions.
2742 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
2743 check cancelled on prev taskgroup if any. Guard all cancellation
2744 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
2745 by calling GOMP_taskgroup_reduction_register.
2746 * team.c (gomp_thread_attr): Remove comment.
2747 (struct gomp_thread_start_data): Add handle field.
2748 (gomp_thread_start): Call pthread_detach.
2749 (gomp_new_team): Adjust gomp_init_work_share caller.
2750 (gomp_free_pool_helper): Call pthread_detach.
2751 (gomp_team_start): Add taskgroup argument, initialize implicit
2752 tasks' taskgroup field to that. Don't call
2753 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
2754 (gomp_team_end): Determine nesting by thr->ts.level != 0
2755 rather than thr->ts.team != NULL.
2756 (gomp_pause_pool_helper, gomp_pause_host): New functions.
2757 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
2758 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
2759 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
2760 if more than 1 allocate also extra payload at the end of array. Never
2761 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
2762 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
2763 return true instead of ws.
2764 * Makefile.in: Regenerated.
2765 * configure: Regenerated.
2766 * config.h.in: Regenerated.
2767 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
2768 in some cases.
2769 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
2770 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
2771 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
2772 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
2773 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
2774 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
2775 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
2776 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
2777 * testsuite/libgomp.c-c++-common/for-10.c: New test.
2778 * testsuite/libgomp.c-c++-common/for-11.c: New test.
2779 * testsuite/libgomp.c-c++-common/for-12.c: New test.
2780 * testsuite/libgomp.c-c++-common/for-13.c: New test.
2781 * testsuite/libgomp.c-c++-common/for-14.c: New test.
2782 * testsuite/libgomp.c-c++-common/for-15.c: New test.
2783 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
2784 define a different N(test), don't define N(f0) to N(f14), but instead
2785 define N(f20) to N(f34) using != comparisons.
2786 * testsuite/libgomp.c-c++-common/for-7.c: New test.
2787 * testsuite/libgomp.c-c++-common/for-8.c: New test.
2788 * testsuite/libgomp.c-c++-common/for-9.c: New test.
2789 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
2790 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
2791 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
2792 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
2793 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
2794 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
2795 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
2796 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
2797 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
2798 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
2799 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
2800 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
2801 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
2802 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
2803 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
2804 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
2805 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
2806 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
2807 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
2808 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
2809 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
2810 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
2811 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
2812 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
2813 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
2814 * testsuite/libgomp.c++/depend-1.C: New test.
2815 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
2816 * testsuite/libgomp.c++/depobj-1.C: New test.
2817 * testsuite/libgomp.c++/for-16.C: New test.
2818 * testsuite/libgomp.c++/for-21.C: New test.
2819 * testsuite/libgomp.c++/for-22.C: New test.
2820 * testsuite/libgomp.c++/for-23.C: New test.
2821 * testsuite/libgomp.c++/for-24.C: New test.
2822 * testsuite/libgomp.c++/for-25.C: New test.
2823 * testsuite/libgomp.c++/for-26.C: New test.
2824 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
2825 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
2826 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
2827 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
2828 * testsuite/libgomp.c++/task-reduction-10.C: New test.
2829 * testsuite/libgomp.c++/task-reduction-11.C: New test.
2830 * testsuite/libgomp.c++/task-reduction-12.C: New test.
2831 * testsuite/libgomp.c++/task-reduction-13.C: New test.
2832 * testsuite/libgomp.c++/task-reduction-14.C: New test.
2833 * testsuite/libgomp.c++/task-reduction-15.C: New test.
2834 * testsuite/libgomp.c++/task-reduction-16.C: New test.
2835 * testsuite/libgomp.c++/task-reduction-17.C: New test.
2836 * testsuite/libgomp.c++/task-reduction-18.C: New test.
2837 * testsuite/libgomp.c++/task-reduction-19.C: New test.
2838 * testsuite/libgomp.c/task-reduction-1.c: New test.
2839 * testsuite/libgomp.c++/task-reduction-1.C: New test.
2840 * testsuite/libgomp.c/task-reduction-2.c: New test.
2841 * testsuite/libgomp.c++/task-reduction-2.C: New test.
2842 * testsuite/libgomp.c++/task-reduction-3.C: New test.
2843 * testsuite/libgomp.c++/task-reduction-4.C: New test.
2844 * testsuite/libgomp.c++/task-reduction-5.C: New test.
2845 * testsuite/libgomp.c++/task-reduction-6.C: New test.
2846 * testsuite/libgomp.c++/task-reduction-7.C: New test.
2847 * testsuite/libgomp.c++/task-reduction-8.C: New test.
2848 * testsuite/libgomp.c++/task-reduction-9.C: New test.
2849 * testsuite/libgomp.c/teams-1.c: New test.
2850 * testsuite/libgomp.c/teams-2.c: New test.
2851 * testsuite/libgomp.c/thread-limit-4.c: New test.
2852 * testsuite/libgomp.c/thread-limit-5.c: New test.
2853 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
2854
2855 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
2856
2857 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
2858 acc_memcpy_to/from_device functions, now with async parameter.
2859 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
2860 (acc_memcpy_from_device): Likewise.
2861 (acc_memcpy_to_device_async): New API function.
2862 (acc_memcpy_from_device_async): Likewise.
2863 (present_create_copy): Add async parameter and async setting/unsetting.
2864 (acc_create): Adjust present_create_copy call.
2865 (acc_copyin): Likewise.
2866 (acc_present_or_create): Likewise.
2867 (acc_present_or_copyin): Likewise.
2868 (acc_create_async): New API function.
2869 (acc_copyin_async): New API function.
2870 (delete_copyout): Add async parameter and async setting/unsetting.
2871 (acc_delete): Adjust delete_copyout call.
2872 (acc_copyout): Likewise.
2873 (acc_delete_async): New API function.
2874 (acc_copyout_async): Likewise.
2875 (update_dev_host): Add async parameter and async setting/unsetting.
2876 (acc_update_device): Adjust update_dev_host call.
2877 (acc_update_self): Likewise.
2878 (acc_update_device_async): New API function.
2879 (acc_update_self_async): Likewise.
2880 * openacc.h (acc_copyin_async): Declare new API function.
2881 (acc_create_async): Likewise.
2882 (acc_copyout_async): Likewise.
2883 (acc_delete_async): Likewise.
2884 (acc_update_device_async): Likewise.
2885 (acc_update_self_async): Likewise.
2886 (acc_memcpy_to_device_async): Likewise.
2887 (acc_memcpy_from_device_async): Likewise.
2888 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
2889 (acc_copyin_async_64_h): New subroutine.
2890 (acc_copyin_async_array_h): New subroutine.
2891 (acc_create_async_32_h): New subroutine.
2892 (acc_create_async_64_h): New subroutine.
2893 (acc_create_async_array_h): New subroutine.
2894 (acc_copyout_async_32_h): New subroutine.
2895 (acc_copyout_async_64_h): New subroutine.
2896 (acc_copyout_async_array_h): New subroutine.
2897 (acc_delete_async_32_h): New subroutine.
2898 (acc_delete_async_64_h): New subroutine.
2899 (acc_delete_async_array_h): New subroutine.
2900 (acc_update_device_async_32_h): New subroutine.
2901 (acc_update_device_async_64_h): New subroutine.
2902 (acc_update_device_async_array_h): New subroutine.
2903 (acc_update_self_async_32_h): New subroutine.
2904 (acc_update_self_async_64_h): New subroutine.
2905 (acc_update_self_async_array_h): New subroutine.
2906 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
2907 (acc_copyin_async_64_h): New subroutine.
2908 (acc_copyin_async_array_h): New subroutine.
2909 (acc_create_async_32_h): New subroutine.
2910 (acc_create_async_64_h): New subroutine.
2911 (acc_create_async_array_h): New subroutine.
2912 (acc_copyout_async_32_h): New subroutine.
2913 (acc_copyout_async_64_h): New subroutine.
2914 (acc_copyout_async_array_h): New subroutine.
2915 (acc_delete_async_32_h): New subroutine.
2916 (acc_delete_async_64_h): New subroutine.
2917 (acc_delete_async_array_h): New subroutine.
2918 (acc_update_device_async_32_h): New subroutine.
2919 (acc_update_device_async_64_h): New subroutine.
2920 (acc_update_device_async_array_h): New subroutine.
2921 (acc_update_self_async_32_h): New subroutine.
2922 (acc_update_self_async_64_h): New subroutine.
2923 (acc_update_self_async_array_h): New subroutine.
2924 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
2925 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
2926 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
2927 acc_memcpy_to_device_async*, acc_update_device_async*, and
2928 acc_update_self_async* entries.
2929 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
2930 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
2931 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
2932
2933 2018-10-31 Joseph Myers <joseph@codesourcery.com>
2934
2935 PR bootstrap/82856
2936 * Makefile.am: Include multilib.am
2937 (AUTOMAKE_OPTIONS): Add info-in-builddir.
2938 (CLEANFILES): Remove libgomp.info.
2939 * configure.ac: Remove AC_PREREQ.
2940 * testsuite/Makefile.am (RUNTEST): Remove quotes.
2941 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
2942 Regenerate.
2943
2944 2018-10-29 Joseph Myers <joseph@codesourcery.com>
2945 Julian Brown <julian@codesourcery.com>
2946
2947 * testsuite/libgomp.oacc-c++/this.C: New.
2948
2949 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
2950
2951 * plugin/plugin-nvptx.c (struct cuda_map): New.
2952 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
2953 h_tail with (cuda_map *) map.
2954 (cuda_map_create): New function.
2955 (cuda_map_destroy): New function.
2956 (map_init): Update to use a linked list of cuda_map objects.
2957 (map_fini): Likewise.
2958 (map_pop): Likewise.
2959 (map_push): Likewise. Return CUdeviceptr instead of void.
2960 (init_streams_for_device): Remove stales references to ptx_stream
2961 members.
2962 (select_stream_for_async): Likewise.
2963 (nvptx_exec): Update call to map_init.
2964
2965 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
2966 Julian Brown <julian@codesourcery.com>
2967
2968 PR middle-end/86336
2969 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
2970
2971 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
2972 Thomas Koenig <tkoenig@gcc.gnu.org>
2973
2974 PR fortran/25829
2975 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2976 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2977 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2978 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2979 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2980 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2981 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2982
2983 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
2984 Tom de Vries <tdevries@suse.de>
2985
2986 PR target/85590
2987 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
2988 (cuOccupancyMaxPotentialBlockSize): Declare.
2989 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
2990 CUDA_ONE_CALL_MAYBE_NULL.
2991 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
2992 CUoccupancyB2DSize and declare
2993 cuOccupancyMaxPotentialBlockSize.
2994 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
2995 default num_gangs and num_workers when the driver supports it.
2996
2997 2018-08-08 Tom de Vries <tdevries@suse.de>
2998
2999 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
3000 CUDA_ONE_CALL_MAYBE_NULL.
3001 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
3002 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
3003 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
3004 are not found.
3005
3006 2018-08-08 Tom de Vries <tdevries@suse.de>
3007
3008 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
3009 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
3010 present.
3011
3012 2018-08-08 Tom de Vries <tdevries@suse.de>
3013
3014 * plugin/plugin-nvptx.c
3015 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
3016 (nvptx_open_device): Use
3017 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
3018
3019 2018-08-08 Tom de Vries <tdevries@suse.de>
3020
3021 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
3022 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
3023
3024 2018-08-07 Tom de Vries <tdevries@suse.de>
3025
3026 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
3027 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
3028 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
3029 corresponding call in CUDA_ONE_CALL. Add def/undef of
3030 CUDA_ONE_CALL_MAYBE_NULL.
3031 (CUDA_CALL_EXISTS): Define.
3032
3033 2018-08-07 Tom de Vries <tdevries@suse.de>
3034
3035 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
3036 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
3037 corresponding undefs right after.
3038
3039 2018-08-04 Tom de Vries <tdevries@suse.de>
3040
3041 * plugin/configfrag.ac: For --without-cuda-driver, set
3042 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
3043 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
3044 * configure: Regenerate.
3045
3046 2018-08-02 Tom de Vries <tdevries@suse.de>
3047
3048 PR target/86660
3049 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
3050 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
3051 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3052 Same.
3053 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
3054 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
3055 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
3056
3057 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
3058 Thomas Schwinge <thomas@codesourcery.com>
3059
3060 * config/nvptx/oacc-parallel.c: Truncate.
3061
3062 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
3063 James Norris <jnorris@codesourcery.com>
3064
3065 * plugin/plugin-nvptx.c (struct map): Removed.
3066 (map_init, map_pop): Remove use of struct map.
3067 (map_push): Likewise and change argument list.
3068 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
3069
3070 2018-08-01 Tom de Vries <tdevries@suse.de>
3071
3072 * plugin/cuda-lib.def: New file. Factor out of ...
3073 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
3074 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
3075 using CUDA_CALLS.
3076
3077 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
3078
3079 Revert 'AsyncI/O patch committed'.
3080 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
3081 Thomas Koenig <tkoenig@gcc.gnu.org>
3082
3083 PR fortran/25829
3084 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3085 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3086 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3087 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3088 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3089 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3090 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3091
3092 2018-07-30 Tom de Vries <tdevries@suse.de>
3093
3094 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
3095 (nvptx_exec): Ensure worker and vector default dims don't exceed
3096 targ_fn->max_threads_per_block.
3097
3098 2018-07-30 Tom de Vries <tdevries@suse.de>
3099
3100 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
3101 (nvptx_open_device): Init default_dims for device.
3102 (nvptx_exec): Use default_dims from device.
3103
3104 2018-07-26 Jakub Jelinek <jakub@redhat.com>
3105
3106 PR testsuite/86660
3107 * testsuite/libgomp.c++/for-15.C (results): Include it in
3108 omp declare target region.
3109 (main): Use map (always, tofrom: results) instead of
3110 map (tofrom: results).
3111
3112 PR middle-end/86660
3113 * testsuite/libgomp.c/pr86660.c: New test.
3114
3115 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3116 Tom de Vries <tdevries@suse.de>
3117
3118 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
3119 sufficient resources to launch a kernel, and give a hint on how to fix
3120 it.
3121
3122 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3123 Tom de Vries <tdevries@suse.de>
3124
3125 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
3126 max_threads_per_block and max_threads_per_multiprocessor fields.
3127 (nvptx_open_device): Initialize new fields.
3128 (nvptx_exec): Use num_sms, and new fields.
3129
3130 2018-07-26 Tom de Vries <tdevries@suse.de>
3131
3132 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
3133 to correct locations. Remove xfail.
3134
3135 2018-07-26 Tom de Vries <tdevries@suse.de>
3136
3137 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
3138 acc_wait. Move acc_async_test calls to correct locations. Remove
3139 xfail.
3140
3141 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
3142 Thomas Koenig <tkoenig@gcc.gnu.org>
3143
3144 PR fortran/25829
3145 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3146 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3147 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3148 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3149 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3150 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3151 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3152
3153 2018-07-17 Jakub Jelinek <jakub@redhat.com>
3154
3155 PR middle-end/86542
3156 * testsuite/libgomp.c++/pr86542.C: New test.
3157
3158 PR middle-end/86539
3159 * testsuite/libgomp.c++/pr86539.C: New test.
3160
3161 2018-07-11 Jakub Jelinek <jakub@redhat.com>
3162
3163 PR c++/86443
3164 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
3165 (results): Make sure the variable is not inside declare target region.
3166 (qux): Remove unused function.
3167
3168 2018-07-10 Jakub Jelinek <jakub@redhat.com>
3169
3170 PR c++/86443
3171 * testsuite/libgomp.c++/for-15.C: New test.
3172
3173 2018-06-26 Jakub Jelinek <jakub@redhat.com>
3174
3175 PR c++/86291
3176 * testsuite/libgomp.c++/pr86291.C: New test.
3177
3178 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
3179
3180 * libgomp.texi (Top): Move www.openmp.org to https.
3181 (Enabling OpenMP): Ditto.
3182 (omp_get_active_level): Ditto.
3183 (omp_get_ancestor_thread_num): Ditto.
3184 (omp_get_cancellation): Ditto.
3185 (omp_get_default_device): Ditto.
3186 (omp_get_dynamic): Ditto.
3187 (omp_get_level): Ditto.
3188 (omp_get_max_active_levels): Ditto.
3189 (omp_get_max_task_priority): Ditto.
3190 (omp_get_max_threads): Ditto.
3191 (omp_get_nested): Ditto.
3192 (omp_get_num_devices): Ditto.
3193 (omp_get_num_procs): Ditto.
3194 (omp_get_num_teams): Ditto.
3195 (omp_get_num_threads): Ditto.
3196 (omp_get_proc_bind): Ditto.
3197 (omp_get_schedule): Ditto.
3198 (omp_get_team_num): Ditto.
3199 (omp_get_team_size): Ditto.
3200 (omp_get_thread_limit): Ditto.
3201 (omp_get_thread_num): Ditto.
3202 (omp_in_parallel): Ditto.
3203 (omp_in_final): Ditto.
3204 (omp_is_initial_device): Ditto.
3205 (omp_set_default_device): Ditto.
3206 (omp_set_dynamic): Ditto.
3207 (omp_set_max_active_levels): Ditto.
3208 (omp_set_nested): Ditto.
3209 (omp_set_num_threads): Ditto.
3210 (omp_set_schedule): Ditto.
3211 (omp_init_lock): Ditto.
3212 (omp_set_lock): Ditto.
3213 (omp_test_lock): Ditto.
3214 (omp_unset_lock): Ditto.
3215 (omp_destroy_lock): Ditto.
3216 (omp_init_nest_lock): Ditto.
3217 (omp_set_nest_lock): Ditto.
3218 (omp_test_nest_lock): Ditto.
3219 (omp_unset_nest_lock): Ditto.
3220 (omp_destroy_nest_lock): Ditto.
3221 (omp_get_wtick): Ditto.
3222 (omp_get_wtime): Ditto.
3223 (OMP_CANCELLATION): Ditto.
3224 (OMP_DISPLAY_ENV): Ditto.
3225 (OMP_DEFAULT_DEVICE): Ditto.
3226 (OMP_DYNAMIC): Ditto.
3227 (OMP_MAX_ACTIVE_LEVELS): Ditto.
3228 (OMP_MAX_TASK_PRIORITY): Ditto.
3229 (OMP_NESTED): Ditto.
3230 (OMP_NUM_THREADS): Ditto.
3231 (OMP_PROC_BIND): Ditto.
3232 (OMP_PLACES): Ditto.
3233 (OMP_STACKSIZE): Ditto.
3234 (OMP_SCHEDULE): Ditto.
3235 (OMP_THREAD_LIMIT): Ditto.
3236 (OMP_WAIT_POLICY): Ditto.
3237
3238 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
3239 James Norris <jnorris@codesourcery.com>
3240 Julian Brown <julian@codesourcery.com>
3241 Thomas Schwinge <thomas@codesourcery.com>
3242 Tom de Vries <tom@codesourcery.com>
3243
3244 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
3245 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
3246 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
3247 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
3248 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3249 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3250 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
3251 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
3252 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
3253 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
3254 Likewise.
3255 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
3256 Likewise.
3257 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
3258 Likewise.
3259 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
3260 Likewise.
3261 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
3262 Likewise.
3263 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
3264 Likewise.
3265 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3266 Likewise.
3267 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3268 Likewise.
3269 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3270 Likewise.
3271 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3272 Likewise.
3273 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3274 Likewise.
3275 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3276 Likewise.
3277 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3278 Likewise.
3279 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3280 Likewise.
3281 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3282 Likewise.
3283 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3284 Likewise.
3285 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3286 Likewise.
3287 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3288 Likewise.
3289 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3290 Likewise.
3291 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3292 Likewise.
3293 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3294 Likewise.
3295 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3296 Likewise.
3297 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3298 Likewise.
3299 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3300 Likewise.
3301 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3302 Likewise.
3303 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3304 Likewise.
3305 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3306 Likewise.
3307 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
3308 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
3309 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
3310 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
3311 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
3312 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
3313 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
3314 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
3315 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
3316 Likewise.
3317 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
3318 Likewise.
3319 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
3320 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
3321 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
3322 Likewise.
3323 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
3324 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
3325 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
3326 Likewise.
3327 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3328 Likewise.
3329 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3330 Likewise.
3331 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3332 Likewise.
3333 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3334 Likewise.
3335 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3336 Likewise.
3337 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3338 Likewise.
3339 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3340 Likewise.
3341 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3342 Likewise.
3343 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3344 Likewise.
3345 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3346 Likewise.
3347 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3348 Likewise.
3349 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3350 Likewise.
3351 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3352 Likewise.
3353 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3354 Likewise.
3355 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
3356 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
3357 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
3358 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
3359 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
3360 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
3361 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
3362
3363 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
3364 Thomas Schwinge <thomas@codesourcery.com>
3365 Cesar Philippidis <cesar@codesourcery.com>
3366
3367 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
3368 (gomp_acc_remove_pointer): Update declaration.
3369 (gomp_acc_declare_allocate): Declare.
3370 (gomp_remove_var): Declare.
3371 * libgomp.map (OACC_2.5): Define.
3372 * oacc-mem.c (acc_map_data): Update refcount.
3373 (acc_unmap_data): Likewise.
3374 (present_create_copy): Likewise.
3375 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
3376 (acc_copyin): Likewise.
3377 (FLAG_FINALIZE): Define.
3378 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
3379 (acc_delete_finalize): New function.
3380 (acc_delete_finalize_async): New function.
3381 (acc_copyout_finalize): New function.
3382 (acc_copyout_finalize_async): New function.
3383 (gomp_acc_insert_pointer): Update refcounts.
3384 (gomp_acc_remove_pointer): Return if data is not present on the
3385 accelerator.
3386 * oacc-parallel.c (find_pset): Rename to find_pointer.
3387 (find_pointer): Add support for GOMP_MAP_POINTER.
3388 (handle_ftn_pointers): New function.
3389 (GOACC_parallel_keyed): Update refcounts of variables.
3390 (GOACC_enter_exit_data): Add support for finalized data mappings.
3391 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
3392 of fortran arrays.
3393 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
3394 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
3395 for GOMP_MAP_FORCE_FROM.
3396 * openacc.f90 (module openacc_internal): Add
3397 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
3398 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
3399 acc_copyout_finalize and acc_delete_finalize.
3400 (acc_copyout_finalize_32_h): New subroutine.
3401 (acc_copyout_finalize_64_h): New subroutine.
3402 (acc_copyout_finalize_array_h): New subroutine.
3403 (acc_delete_finalize_32_h): New subroutine.
3404 (acc_delete_finalize_64_h): New subroutine.
3405 (acc_delete_finalize_array_h): New subroutine.
3406 * openacc.h (acc_copyout_finalize): Declare.
3407 (acc_copyout_finalize_async): Declare.
3408 (acc_delete_finalize): Declare.
3409 (acc_delete_finalize_async): Declare.
3410 * openacc_lib.h (acc_copyout_finalize): New interface.
3411 (acc_delete_finalize): New interface.
3412 * target.c (gomp_map_vars): Update dynamic_refcount.
3413 (gomp_remove_var): New function.
3414 (gomp_unmap_vars): Use it.
3415 (gomp_unload_image_from_device): Likewise.
3416 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
3417 case to utilize OpenACC 2.5 data clause semantics.
3418 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3419 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3420 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3421 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3422 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3423 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3424 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3425 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3426 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3427 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
3428 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
3429 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
3430 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
3431 utilize OpenACC 2.5 data clause semantics.
3432 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3433 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3434 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3435 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3436 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3437 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3438 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3439 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3440 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3441
3442 2018-05-21 Janus Weil <janus@gcc.gnu.org>
3443
3444 PR fortran/85841
3445 PR testsuite/85865
3446 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
3447 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
3448 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
3449 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
3450 * testsuite/libgomp.fortran/task2.f90: Ditto.
3451 * testsuite/libgomp.fortran/vla1.f90: Ditto.
3452 * testsuite/libgomp.fortran/vla2.f90: Ditto.
3453 * testsuite/libgomp.fortran/vla3.f90: Ditto.
3454 * testsuite/libgomp.fortran/vla4.f90: Ditto.
3455 * testsuite/libgomp.fortran/vla5.f90: Ditto.
3456 * testsuite/libgomp.fortran/vla6.f90: Ditto.
3457 * testsuite/libgomp.fortran/vla8.f90: Ditto.
3458 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
3459 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
3460
3461 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
3462
3463 PR c++/85782
3464 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
3465
3466 2018-05-09 Tom de Vries <tom@codesourcery.com>
3467
3468 PR libgomp/82901
3469 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
3470 to GOACC_enter_exit_data.
3471
3472 2018-05-09 Tom de Vries <tom@codesourcery.com>
3473
3474 PR libgomp/83792
3475 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
3476 (async_synchronous_p): New function.
3477 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
3478 async_valid_p.
3479 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
3480 async_valid_stream_id_p.
3481 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
3482 * oacc-parallel.c (GOACC_parallel_keyed): Same.
3483
3484 2018-05-07 Tom de Vries <tom@codesourcery.com>
3485
3486 PR testsuite/85677
3487 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
3488 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
3489
3490 2018-05-03 Tom de Vries <tom@codesourcery.com>
3491
3492 PR testsuite/85106
3493 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
3494 extra_tool_flags if it contains an -foffload=-fdump-* flag.
3495 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
3496 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
3497
3498 2018-05-02 Tom de Vries <tom@codesourcery.com>
3499
3500 PR libgomp/85411
3501 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
3502 GOMP_OPENACC_DIM ...
3503 * env.c (parse_gomp_openacc_dim): ... here. New function.
3504 (initialize_env): Call parse_gomp_openacc_dim.
3505 (goacc_default_dims): Define.
3506 * libgomp.h (goacc_default_dims): Declare.
3507 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
3508 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
3509 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
3510 GOMP_PLUGIN_acc_default_dim.
3511 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
3512 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
3513
3514 2018-05-02 Tom de Vries <tom@codesourcery.com>
3515
3516 PR testsuite/83791
3517 * testsuite/libgomp.c++/udr-9.C: Update.
3518 * testsuite/libgomp.c++/atomic-16.C: Remove.
3519 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
3520 * testsuite/libgomp.c++/loop-13.C: Remove.
3521 * testsuite/libgomp.c++/loop-14.C: Remove.
3522 * testsuite/libgomp.c++/loop-15.C: Remove.
3523 * testsuite/libgomp.c++/monotonic-1.C: Remove.
3524 * testsuite/libgomp.c++/monotonic-2.C: Remove.
3525 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
3526 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
3527 * testsuite/libgomp.c++/ordered-1.C: Remove.
3528 * testsuite/libgomp.c++/pr45784.C: Remove.
3529 * testsuite/libgomp.c++/pr64824.C: Remove.
3530 * testsuite/libgomp.c++/pr64868.C: Remove.
3531 * testsuite/libgomp.c++/pr66199-1.C: Remove.
3532 * testsuite/libgomp.c++/pr66199-2.C: Remove.
3533 * testsuite/libgomp.c++/pr66199-3.C: Remove.
3534 * testsuite/libgomp.c++/pr66199-4.C: Remove.
3535 * testsuite/libgomp.c++/pr66199-5.C: Remove.
3536 * testsuite/libgomp.c++/pr66199-6.C: Remove.
3537 * testsuite/libgomp.c++/pr66199-7.C: Remove.
3538 * testsuite/libgomp.c++/pr66199-8.C: Remove.
3539 * testsuite/libgomp.c++/pr66199-9.C: Remove.
3540 * testsuite/libgomp.c++/pr69389.C: Remove.
3541 * testsuite/libgomp.c++/simd10.C: Remove.
3542 * testsuite/libgomp.c++/simd11.C: Remove.
3543 * testsuite/libgomp.c++/simd12.C: Remove.
3544 * testsuite/libgomp.c++/simd13.C: Remove.
3545 * testsuite/libgomp.c++/target-1.C: Remove.
3546 * testsuite/libgomp.c++/target-3.C: Remove.
3547 * testsuite/libgomp.c++/target-4.C: Remove.
3548 * testsuite/libgomp.c++/target-5.C: Remove.
3549 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
3550 * testsuite/libgomp.c++/taskloop-1.C: Remove.
3551 * testsuite/libgomp.c++/taskloop-2.C: Remove.
3552 * testsuite/libgomp.c++/taskloop-3.C: Remove.
3553 * testsuite/libgomp.c++/taskloop-4.C: Remove.
3554 * testsuite/libgomp.c++/udr-9.C: Remove.
3555 * testsuite/libgomp.c++/for-10.C: Remove.
3556 * testsuite/libgomp.c++/for-11.C: Remove.
3557 * testsuite/libgomp.c++/for-12.C: Remove.
3558 * testsuite/libgomp.c++/for-13.C: Remove.
3559 * testsuite/libgomp.c++/for-14.C: Remove.
3560 * testsuite/libgomp.c++/for-9.C: Remove.
3561 * testsuite/libgomp.c/atomic-18.c: Move ...
3562 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
3563 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
3564 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
3565 * testsuite/libgomp.c/loop-13.c: Move ...
3566 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
3567 * testsuite/libgomp.c/loop-14.c: Move ...
3568 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
3569 * testsuite/libgomp.c/loop-15.c: Remove.
3570 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
3571 * testsuite/libgomp.c/monotonic-1.c: Move ...
3572 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
3573 * testsuite/libgomp.c/monotonic-2.c: Move ...
3574 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
3575 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
3576 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
3577 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
3578 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
3579 * testsuite/libgomp.c/ordered-4.c: Move ...
3580 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
3581 * testsuite/libgomp.c/pr45784.c: Move ...
3582 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
3583 * testsuite/libgomp.c/pr64824.c: Move ...
3584 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
3585 * testsuite/libgomp.c/pr64868.c: Move ...
3586 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
3587 * testsuite/libgomp.c/pr66199-1.c: Move ...
3588 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
3589 * testsuite/libgomp.c/pr66199-2.c: Move ...
3590 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
3591 * testsuite/libgomp.c/pr66199-3.c: Move ...
3592 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
3593 * testsuite/libgomp.c/pr66199-4.c: Move ...
3594 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
3595 * testsuite/libgomp.c/pr66199-5.c: Move ...
3596 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
3597 * testsuite/libgomp.c/pr66199-6.c: Move ...
3598 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
3599 * testsuite/libgomp.c/pr66199-7.c: Move ...
3600 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
3601 * testsuite/libgomp.c/pr66199-8.c: Move ...
3602 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
3603 * testsuite/libgomp.c/pr66199-9.c: Move ...
3604 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
3605 * testsuite/libgomp.c/pr69389.c: Move ...
3606 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
3607 * testsuite/libgomp.c/simd-14.c: Move ...
3608 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
3609 * testsuite/libgomp.c/simd-15.c: Move ...
3610 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
3611 * testsuite/libgomp.c/simd-16.c: Move ...
3612 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
3613 * testsuite/libgomp.c/simd-17.c: Move ...
3614 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
3615 * testsuite/libgomp.c/target-1.c: Move ...
3616 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
3617 * testsuite/libgomp.c/target-10.c: Move ...
3618 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
3619 * testsuite/libgomp.c/target-13.c: Move ...
3620 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
3621 * testsuite/libgomp.c/target-2.c: Move ...
3622 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
3623 * testsuite/libgomp.c/taskgroup-1.c: Move ...
3624 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
3625 * testsuite/libgomp.c/taskloop-1.c: Move ...
3626 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
3627 * testsuite/libgomp.c/taskloop-2.c: Move ...
3628 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
3629 * testsuite/libgomp.c/taskloop-3.c: Move ...
3630 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
3631 * testsuite/libgomp.c/taskloop-4.c: Move ...
3632 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
3633 * testsuite/libgomp.c/udr-1.c: Move ...
3634 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
3635 * testsuite/libgomp.c/for-1.c: Move ...
3636 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
3637 * testsuite/libgomp.c/for-1.h: Move ...
3638 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
3639 * testsuite/libgomp.c/for-2.c: Move ...
3640 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
3641 * testsuite/libgomp.c/for-2.h: Move ...
3642 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
3643 * testsuite/libgomp.c/for-3.c: Move ...
3644 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
3645 * testsuite/libgomp.c/for-4.c: Move ...
3646 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
3647 * testsuite/libgomp.c/for-5.c: Move ...
3648 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
3649 * testsuite/libgomp.c/for-6.c: Move ...
3650 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
3651
3652 2018-05-02 Tom de Vries <tom@codesourcery.com>
3653
3654 PR libgomp/82428
3655 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
3656 __builtin_goacc_parlevel_{id,size}.
3657 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
3658 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
3659 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
3660 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
3661 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
3662 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
3663 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
3664 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
3665 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
3666 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
3667 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
3668 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
3669 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
3670 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
3671 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
3672 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
3673 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
3674 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
3675 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
3676 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
3677 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
3678 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
3679 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
3680
3681 2018-05-02 Tom de Vries <tom@codesourcery.com>
3682
3683 PR testsuite/85106
3684 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
3685
3686 2018-05-02 Tom de Vries <tom@codesourcery.com>
3687
3688 PR testsuite/85106
3689 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
3690
3691 2018-04-29 Julian Brown <julian@codesourcery.com>
3692 Tom de Vries <tom@codesourcery.com>
3693
3694 PR testsuite/85527
3695 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
3696 arbitrary order for iterations of atomic subtract check.
3697
3698 2018-04-28 Tom de Vries <tom@codesourcery.com>
3699
3700 PR testsuite/85527
3701 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
3702 atomic capture results obtained in parallel loop to an array, instead of
3703 to a scalar.
3704
3705 2018-04-26 Tom de Vries <tom@codesourcery.com>
3706
3707 PR libgomp/84020
3708 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
3709 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
3710 (process_GOMP_NVPTX_JIT): New function.
3711 (link_ptx): Use process_GOMP_NVPTX_JIT.
3712
3713 2018-04-26 Richard Biener <rguenther@suse.de>
3714 Tom de Vries <tom@codesourcery.com>
3715
3716 PR lto/85422
3717 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
3718
3719 2018-04-26 Tom de Vries <tom@codesourcery.com>
3720
3721 PR target/85519
3722 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3723 recursion depth from 25 to 23.
3724 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3725
3726 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
3727
3728 * configure: Regenerated.
3729
3730 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
3731 Tom de Vries <tom@codesourcery.com>
3732
3733 PR target/85445
3734 * testsuite/libgomp.oacc-c++/ref-1.C: New.
3735
3736 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
3737
3738 PR libgomp/85463
3739 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
3740 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3741 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3742 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
3743 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
3744 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
3745
3746 PR libfortran/85166
3747 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
3748 abort".
3749 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3750
3751 2018-04-19 Jakub Jelinek <jakub@redhat.com>
3752
3753 * configure: Regenerated.
3754
3755 2018-04-18 David Malcolm <dmalcolm@redhat.com>
3756
3757 PR jit/85384
3758 * configure: Regenerate.
3759
3760 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
3761 Tom de Vries <tom@codesourcery.com>
3762
3763 PR middle-end/84955
3764 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3765 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3766
3767 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
3768
3769 PR fortran/83064
3770 PR testsuite/85346
3771 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
3772 test from gfortran.dg to here.
3773
3774 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3775
3776 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
3777 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
3778
3779 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3780
3781 PR middle-end/84955
3782 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3783 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3784
3785 2018-04-05 Tom de Vries <tom@codesourcery.com>
3786
3787 PR target/85204
3788 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
3789
3790 2018-03-26 Tom de Vries <tom@codesourcery.com>
3791
3792 PR tree-optimization/85063
3793 * testsuite/libgomp.c/switch-conversion-2.c: New test.
3794 * testsuite/libgomp.c/switch-conversion.c: New test.
3795 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
3796 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
3797
3798 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
3799
3800 PR fortran/84381
3801 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
3802 call abort by STOP n.
3803 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
3804 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
3805 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
3806 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
3807 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
3808 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
3809 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
3810 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
3811 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
3812 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
3813 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
3814 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
3815 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
3816 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
3817 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
3818 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
3819 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
3820 * testsuite/libgomp.fortran/associate1.f90: Likewise.
3821 * testsuite/libgomp.fortran/associate2.f90: Likewise.
3822 * testsuite/libgomp.fortran/associate3.f90: Likewise.
3823 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
3824 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
3825 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
3826 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
3827 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
3828 * testsuite/libgomp.fortran/character1.f90: Likewise.
3829 * testsuite/libgomp.fortran/character2.f90: Likewise.
3830 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
3831 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
3832 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
3833 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
3834 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
3835 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
3836 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
3837 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
3838 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
3839 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
3840 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
3841 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
3842 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
3843 * testsuite/libgomp.fortran/do1.f90: Likewise.
3844 * testsuite/libgomp.fortran/do2.f90: Likewise.
3845 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
3846 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
3847 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
3848 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
3849 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
3850 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
3851 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
3852 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
3853 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
3854 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
3855 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
3856 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
3857 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
3858 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
3859 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
3860 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
3861 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
3862 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
3863 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
3864 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
3865 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
3866 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
3867 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
3868 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
3869 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
3870 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
3871 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
3872 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
3873 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
3874 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
3875 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
3876 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
3877 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
3878 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
3879 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
3880 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
3881 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
3882 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
3883 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
3884 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
3885 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
3886 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
3887 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
3888 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
3889 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
3890 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
3891 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
3892 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
3893 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
3894 * testsuite/libgomp.fortran/lib1.f90: Likewise.
3895 * testsuite/libgomp.fortran/lib2.f: Likewise.
3896 * testsuite/libgomp.fortran/lib3.f: Likewise.
3897 * testsuite/libgomp.fortran/lib4.f90: Likewise.
3898 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
3899 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
3900 * testsuite/libgomp.fortran/nested1.f90: Likewise.
3901 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
3902 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
3903 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
3904 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
3905 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
3906 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
3907 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
3908 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
3909 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
3910 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
3911 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
3912 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
3913 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
3914 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
3915 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
3916 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
3917 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
3918 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
3919 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
3920 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3921 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
3922 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
3923 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
3924 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
3925 * testsuite/libgomp.fortran/pr25162.f: Likewise.
3926 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
3927 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
3928 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
3929 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
3930 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
3931 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
3932 * testsuite/libgomp.fortran/pr28390.f: Likewise.
3933 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
3934 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
3935 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
3936 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
3937 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
3938 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
3939 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
3940 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
3941 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
3942 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
3943 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
3944 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
3945 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
3946 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
3947 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
3948 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
3949 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
3950 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
3951 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
3952 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
3953 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
3954 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
3955 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
3956 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
3957 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
3958 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3959 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
3960 * testsuite/libgomp.fortran/reference1.f90: Likewise.
3961 * testsuite/libgomp.fortran/reference2.f90: Likewise.
3962 * testsuite/libgomp.fortran/retval1.f90: Likewise.
3963 * testsuite/libgomp.fortran/retval2.f90: Likewise.
3964 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
3965 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
3966 * testsuite/libgomp.fortran/simd1.f90: Likewise.
3967 * testsuite/libgomp.fortran/simd2.f90: Likewise.
3968 * testsuite/libgomp.fortran/simd3.f90: Likewise.
3969 * testsuite/libgomp.fortran/simd4.f90: Likewise.
3970 * testsuite/libgomp.fortran/simd5.f90: Likewise.
3971 * testsuite/libgomp.fortran/simd6.f90: Likewise.
3972 * testsuite/libgomp.fortran/simd7.f90: Likewise.
3973 * testsuite/libgomp.fortran/stack.f90: Likewise.
3974 * testsuite/libgomp.fortran/strassen.f90: Likewise.
3975 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
3976 * testsuite/libgomp.fortran/tabs2.f: Likewise.
3977 * testsuite/libgomp.fortran/target1.f90: Likewise.
3978 * testsuite/libgomp.fortran/target2.f90: Likewise.
3979 * testsuite/libgomp.fortran/target3.f90: Likewise.
3980 * testsuite/libgomp.fortran/target4.f90: Likewise.
3981 * testsuite/libgomp.fortran/target5.f90: Likewise.
3982 * testsuite/libgomp.fortran/target6.f90: Likewise.
3983 * testsuite/libgomp.fortran/target7.f90: Likewise.
3984 * testsuite/libgomp.fortran/target8.f90: Likewise.
3985 * testsuite/libgomp.fortran/task1.f90: Likewise.
3986 * testsuite/libgomp.fortran/task2.f90: Likewise.
3987 * testsuite/libgomp.fortran/task3.f90: Likewise.
3988 * testsuite/libgomp.fortran/task4.f90: Likewise.
3989 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
3990 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
3991 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
3992 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
3993 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
3994 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3995 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3996 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3997 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
3998 * testsuite/libgomp.fortran/udr1.f90: Likewise.
3999 * testsuite/libgomp.fortran/udr10.f90: Likewise.
4000 * testsuite/libgomp.fortran/udr11.f90: Likewise.
4001 * testsuite/libgomp.fortran/udr12.f90: Likewise.
4002 * testsuite/libgomp.fortran/udr13.f90: Likewise.
4003 * testsuite/libgomp.fortran/udr14.f90: Likewise.
4004 * testsuite/libgomp.fortran/udr15.f90: Likewise.
4005 * testsuite/libgomp.fortran/udr2.f90: Likewise.
4006 * testsuite/libgomp.fortran/udr3.f90: Likewise.
4007 * testsuite/libgomp.fortran/udr4.f90: Likewise.
4008 * testsuite/libgomp.fortran/udr5.f90: Likewise.
4009 * testsuite/libgomp.fortran/udr6.f90: Likewise.
4010 * testsuite/libgomp.fortran/udr7.f90: Likewise.
4011 * testsuite/libgomp.fortran/udr8.f90: Likewise.
4012 * testsuite/libgomp.fortran/udr9.f90: Likewise.
4013 * testsuite/libgomp.fortran/vla1.f90: Likewise.
4014 * testsuite/libgomp.fortran/vla2.f90: Likewise.
4015 * testsuite/libgomp.fortran/vla3.f90: Likewise.
4016 * testsuite/libgomp.fortran/vla4.f90: Likewise.
4017 * testsuite/libgomp.fortran/vla5.f90: Likewise.
4018 * testsuite/libgomp.fortran/vla6.f90: Likewise.
4019 * testsuite/libgomp.fortran/vla7.f90: Likewise.
4020 * testsuite/libgomp.fortran/vla8.f90: Likewise.
4021 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
4022 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
4023 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
4024 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
4025 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4026 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4027 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4028 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4029 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4030 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4031 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4032 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
4033 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4034 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
4035 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
4036 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
4037 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
4038 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
4039 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
4040 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
4041 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
4042 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
4043 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
4044 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
4045 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
4046 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
4047 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
4048 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
4049 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4050 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
4051 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4052 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4053 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4054 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4055 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4056 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4057 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
4058 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
4059 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
4060 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4061 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
4062 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4063 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
4064 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
4065 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
4066 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
4067 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
4068 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
4069 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
4070 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4071 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
4072 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
4073 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
4074 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4075 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
4076 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4077 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
4078 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4079 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4080 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
4081 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
4082 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
4083 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
4084 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4085 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
4086 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
4087 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
4088 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4089 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4090 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
4091 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4092 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
4093 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
4094 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
4095 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4096 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
4097 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4098 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4099 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4100 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4101 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4102 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4103 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4104 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
4105 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
4106 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4107 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4108 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
4109 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
4110 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4111 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
4112 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
4113 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
4114 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
4115
4116 2018-03-20 Richard Biener <rguenther@suse.de>
4117
4118 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
4119 parallelizable loop.
4120
4121 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
4122
4123 PR target/84148
4124 * configure: Regenerate.
4125
4126 2018-02-16 Jakub Jelinek <jakub@redhat.com>
4127
4128 PR fortran/84418
4129 * libgomp.fortran/pr84418-1.f90: New test.
4130 * libgomp.fortran/pr84418-2.f90: New test.
4131
4132 2018-02-14 Jakub Jelinek <jakub@redhat.com>
4133
4134 PR fortran/84313
4135 * testsuite/libgomp.fortran/threadprivate4.f90: Add
4136 -std=f2003 -fall-intrinsics into dg-additional-options.
4137
4138 2018-02-08 Martin Jambor <mjambor@suse.cz>
4139
4140 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
4141 clonable.
4142
4143 2018-02-08 Martin Jambor <mjambor@suse.cz>
4144
4145 * testsuite/libgomp.hsa.c/staticvar.c: New test.
4146
4147 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4148
4149 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
4150 [__cplusplus]: Declare extern "C".
4151
4152 2018-02-07 Tom de Vries <tom@codesourcery.com>
4153
4154 PR libgomp/84217
4155 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
4156
4157 2018-01-29 Christoph Spiel <cspiel@freenet.de>
4158 Jakub Jelinek <jakub@redhat.com>
4159
4160 PR libgomp/84096
4161 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
4162 instead of omp_lock_t.
4163
4164 2018-01-25 Tom de Vries <tom@codesourcery.com>
4165
4166 PR target/84028
4167 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
4168
4169 2018-01-24 Tom de Vries <tom@codesourcery.com>
4170
4171 PR target/83589
4172 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
4173
4174 2018-01-24 Tom de Vries <tom@codesourcery.com>
4175
4176 PR target/81352
4177 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
4178
4179 2018-01-19 Tom de Vries <tom@codesourcery.com>
4180 Cesar Philippidis <cesar@codesourcery.com>
4181
4182 PR target/83920
4183 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
4184 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
4185
4186 2018-01-03 Jakub Jelinek <jakub@redhat.com>
4187
4188 Update copyright years.
4189
4190 * libgomp.texi: Bump @copying's copyright year.
4191
4192 2017-12-30 Tom de Vries <tom@codesourcery.com>
4193
4194 PR libgomp/83046
4195 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
4196 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
4197
4198 2017-12-27 Tom de Vries <tom@codesourcery.com>
4199
4200 PR c++/83046
4201 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
4202 (test_nonstatic): Fix return type to workaround PR83046.
4203
4204 2017-12-05 Jakub Jelinek <jakub@redhat.com>
4205
4206 PR testsuite/83281
4207 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
4208 j suffix instead of i.
4209 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
4210 Likewise.
4211
4212 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
4213
4214 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
4215 call to acc_wait (1).
4216
4217 2017-11-24 Jakub Jelinek <jakub@redhat.com>
4218
4219 PR fortran/81304
4220 * testsuite/libgomp.fortran/pr81304.f90: New test.
4221
4222 2017-11-23 Jakub Jelinek <jakub@redhat.com>
4223
4224 PR fortran/81841
4225 * libgomp.fortran/pr81841.f90: New test.
4226
4227 2017-11-22 Jakub Jelinek <jakub@redhat.com>
4228
4229 PR libgomp/83106
4230 * target.c (gomp_target_init): Compute lengths just once and
4231 use them in both malloc size and subsequent copying.
4232
4233 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
4234
4235 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
4236 * acinclude.m4: Add cet.m4.
4237 * configure: Regenerate.
4238 * Makefile.in: Likewise.
4239 * testsuite/Makefile.in: Likewise.
4240
4241 2017-11-15 Tom de Vries <tom@codesourcery.com>
4242
4243 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
4244 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
4245 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
4246 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
4247 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
4248 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
4249
4250 2017-11-14 Tom de Vries <tom@codesourcery.com>
4251
4252 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
4253 non-nvidia devices.
4254
4255 2017-11-07 Jakub Jelinek <jakub@redhat.com>
4256
4257 PR c++/82835
4258 * testsuite/libgomp.c++/pr82835.C: New test.
4259
4260 2017-11-06 Martin Liska <mliska@suse.cz>
4261
4262 * testsuite/libgomp.c++/loop-2.C: Return a value
4263 for functions with non-void return type, or change type to void,
4264 or add -Wno-return-type for test.
4265 * testsuite/libgomp.c++/loop-4.C: Likewise.
4266 * testsuite/libgomp.c++/parallel-1.C: Likewise.
4267 * testsuite/libgomp.c++/shared-1.C: Likewise.
4268 * testsuite/libgomp.c++/single-1.C: Likewise.
4269 * testsuite/libgomp.c++/single-2.C: Likewise.
4270
4271 2017-10-31 Tom de Vries <tom@codesourcery.com>
4272
4273 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
4274 "do {} while (false)".
4275 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
4276 after HSA_DEBUG call.
4277
4278 2017-10-28 Jakub Jelinek <jakub@redhat.com>
4279
4280 * target.c (struct gomp_coalesce_buf): New type.
4281 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
4282 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
4283 (gomp_copy_host2dev): Add CBUF argument, if copying into
4284 the cached ranges, memcpy into buffer instead of copying
4285 into device.
4286 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
4287 Add CBUF argument, pass it through to other calls.
4288 (gomp_map_vars): Aggregate copies from host to device if small enough
4289 and with small enough gaps in between into memcpy into a buffer and
4290 fewer host to device copies from the buffer.
4291 (gomp_update): Adjust gomp_copy_host2dev caller.
4292
4293 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
4294
4295 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
4296 run" directive.
4297 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4298 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4299 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4300 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4301
4302 2017-10-16 Tom de Vries <tom@codesourcery.com>
4303
4304 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
4305 openacc_nvidia_accel_selected.
4306 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
4307 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
4308 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
4309 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
4310 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
4311 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
4312 openacc_nvidia_accel_selected. Skip for shared memory device.
4313 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
4314 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
4315
4316 2017-10-09 Martin Jambor <mjambor@suse.cz>
4317
4318 PR hsa/82416
4319 * testsuite/libgomp.hsa.c/pr82416.c: New test.
4320
4321 2017-10-07 Tom de Vries <tom@codesourcery.com>
4322
4323 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
4324 Remove acc_device_nvidia references.
4325 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
4326 Same.
4327
4328 2017-10-05 Tom de Vries <tom@codesourcery.com>
4329
4330 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
4331 vector_length(32) clause from acc parallel directive.
4332 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
4333
4334 2017-10-04 Tom de Vries <tom@codesourcery.com>
4335
4336 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
4337 (main): Reduce sum of arr elements. Assert that hres is exactly
4338 representable in 32-bit floating point.
4339 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
4340 (main): Reduce sum of arr elements. Assert that hres and hmres are
4341 exactly representable in 32-bit floating point.
4342 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
4343
4344 2017-09-28 Tom de Vries <tom@codesourcery.com>
4345
4346 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
4347 setting.
4348 * testsuite/libgomp.c++/pr69393.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.c/for-4.c: Same.
4353 * testsuite/libgomp.c/pr66199-3.c: Same.
4354 * testsuite/libgomp.c/pr66199-4.c: Same.
4355 * testsuite/libgomp.c/pr66199-6.c: Same.
4356 * testsuite/libgomp.c/taskloop-1.c: Same.
4357 * testsuite/libgomp.c/taskloop-3.c: Same.
4358 * testsuite/libgomp.c/taskloop-4.c: Same.
4359 * testsuite/libgomp.fortran/aligned1.f03: Same.
4360 * testsuite/libgomp.fortran/condinc1.f: Same.
4361 * testsuite/libgomp.fortran/condinc3.f90: Same.
4362 * testsuite/libgomp.fortran/crayptr1.f90: Same.
4363 * testsuite/libgomp.fortran/crayptr2.f90: Same.
4364 * testsuite/libgomp.fortran/crayptr3.f90: Same.
4365 * testsuite/libgomp.fortran/omp_cond1.f: Same.
4366 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
4367 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
4368 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
4369 * testsuite/libgomp.fortran/recursion1.f90: Same.
4370 * testsuite/libgomp.fortran/target2.f90: Same.
4371 * testsuite/libgomp.fortran/target5.f90: Same.
4372 * testsuite/libgomp.fortran/task3.f90: Same.
4373
4374 2017-09-28 Tom de Vries <tom@codesourcery.com>
4375
4376 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
4377 vector_length(32) clause from acc parallel directive.
4378 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
4379
4380 2017-09-27 Tom de Vries <tom@codesourcery.com>
4381
4382 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
4383 Remove acc_device_nvidia references.
4384
4385 2017-09-16 Tom de Vries <tom@codesourcery.com>
4386
4387 PR c/81875
4388 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
4389
4390 2017-09-14 Tom de Vries <tom@codesourcery.com>
4391
4392 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
4393 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
4394 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
4395 * testsuite/libgomp.c/c.exp: Include test-cases from
4396 libgomp.c-c++-common.
4397 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
4398 files.
4399
4400 2017-09-14 Jakub Jelinek <jakub@redhat.com>
4401
4402 PR c++/81314
4403 * testsuite/libgomp.c++/pr81314.C: New test.
4404
4405 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
4406
4407 * libgomp.texi (Top): www.openacc.org now uses https.
4408 (Enabling OpenACC): Ditto.
4409 (acc_get_num_devices): Ditto.
4410 (acc_set_device_type): Ditto.
4411 (acc_get_device_type): Ditto.
4412 (acc_set_device_num): Ditto.
4413 (acc_get_device_num): Ditto.
4414 (acc_async_test): Ditto.
4415 (acc_async_test_all): Ditto.
4416 (acc_wait): Ditto.
4417 (acc_wait_all): Ditto.
4418 (acc_wait_all_async): Ditto.
4419 (acc_wait_async): Ditto.
4420 (acc_init): Ditto.
4421 (acc_shutdown): Ditto.
4422 (acc_on_device): Ditto.
4423 (acc_malloc): Ditto.
4424 (acc_free): Ditto.
4425 (acc_copyin): Ditto.
4426 (acc_present_or_copyin): Ditto.
4427 (acc_create): Ditto.
4428 (acc_present_or_create): Ditto.
4429 (acc_copyout): Ditto.
4430 (acc_delete): Ditto.
4431 (acc_update_device): Ditto.
4432 (acc_update_self): Ditto.
4433 (acc_map_data): Ditto.
4434 (acc_unmap_data): Ditto.
4435 (acc_deviceptr): Ditto.
4436 (acc_hostptr): Ditto.
4437 (acc_is_present): Ditto.
4438 (acc_memcpy_to_device): Ditto.
4439 (acc_memcpy_from_device): Ditto.
4440 (acc_get_current_cuda_device): Ditto.
4441 (acc_get_current_cuda_context): Ditto.
4442 (acc_get_cuda_stream): Ditto.
4443 (acc_set_cuda_stream): Ditto.
4444 (ACC_DEVICE_TYPE): Ditto.
4445 (ACC_DEVICE_NUM): Ditto.
4446 (OpenACC Library Interoperability): Ditto.
4447
4448 2017-08-09 Jakub Jelinek <jakub@redhat.com>
4449
4450 PR c/81687
4451 * testsuite/libgomp.c/pr81687-1.c: New test.
4452 * testsuite/libgomp.c/pr81687-2.c: New test.
4453
4454 2017-08-07 Jakub Jelinek <jakub@redhat.com>
4455
4456 PR c/69389
4457 * testsuite/libgomp.c/pr69389.c: New test.
4458 * testsuite/libgomp.c++/pr69389.C: New test.
4459
4460 2017-08-07 Tom de Vries <tom@codesourcery.com>
4461
4462 PR middle-end/78266
4463 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
4464 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
4465
4466 2017-07-27 Jakub Jelinek <jakub@redhat.com>
4467
4468 PR c/45784
4469 * testsuite/libgomp.c/pr45784.c: New test.
4470 * testsuite/libgomp.c++/pr45784.C: New test.
4471
4472 2017-07-19 Tom de Vries <tom@codesourcery.com>
4473
4474 * testsuite/libgomp.oacc-c/vec.c: New test.
4475
4476 2017-07-03 Tom de Vries <tom@codesourcery.com>
4477
4478 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
4479
4480 2017-06-27 Tom de Vries <tom@codesourcery.com>
4481
4482 * plugin/plugin-nvptx.c (notify_var): New function.
4483 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
4484
4485 2017-06-27 Tom de Vries <tom@codesourcery.com>
4486
4487 * env.c (parse_unsigned_long_1): Factor out of ...
4488 (parse_unsigned_long): ... here.
4489 (parse_int_1): Factor out of ...
4490 (parse_int): ... here.
4491 (parse_int_secure): New function.
4492 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
4493 * secure_getenv.h: Factor out of ...
4494 * plugin/plugin-hsa.c: ... here.
4495 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
4496
4497 2017-06-21 Jakub Jelinek <jakub@redhat.com>
4498
4499 PR c++/81130
4500 * testsuite/libgomp.c++/pr81130.C: New test.
4501
4502 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4503
4504 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
4505 default args.
4506 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
4507 dg-xfail-run-if default args.
4508
4509 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4510
4511 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
4512 * testsuite/libgomp.c/pr39591-3.c: Likewise.
4513
4514 2017-05-30 Jakub Jelinek <jakub@redhat.com>
4515
4516 PR libgomp/80822
4517 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
4518 (gomp_affinity_init_level): Use it. Always analyze the core and thread
4519 sibling lists, depending on level just pick up what CPUs to put
4520 together into a place vs. whether add multiple ordered places.
4521
4522 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
4523
4524 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
4525 * libgomp.map (OACC_2.0.1): Add these.
4526 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
4527 for "acc_wait", and "acc_wait_all", respectively.
4528 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
4529 for "acc_wait", and "acc_wait_all", respectively.
4530 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
4531 * libgomp.texi (acc_wait, acc_wait_all): Update.
4532 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
4533 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
4534 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4535
4536 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
4537 acc_present_or_copyin and acc_present_or_create procedures,
4538 respectively.
4539 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
4540 generally different variants of OpenACC Runtime Library functions.
4541 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4542
4543 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
4544 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4545
4546 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
4547 of preprocessor definitions.
4548 * libgomp.h (strong_alias): Guard by "#ifdef
4549 HAVE_ATTRIBUTE_ALIAS".
4550 * oacc-mem.c: Provide "acc_pcreate" as alias for
4551 "acc_present_or_create", and "acc_pcopyin" as alias for
4552 "acc_present_or_copyin".
4553 * libgomp.map: New version "OACC_2.0.1".
4554 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
4555 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
4556 its content into...
4557 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
4558 Extend testing.
4559
4560 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
4561 when disabling nvptx offloading.
4562
4563 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
4564
4565 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
4566 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4567 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4568
4569 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
4570 * testsuite/lib/libgomp.exp
4571 (check_effective_target_openacc_nvidia_accel_configured): New
4572 proc.
4573 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
4574 (check_effective_target_c++): New procs.
4575 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
4576 (check_effective_target_c++): Likewise.
4577
4578 2017-05-22 Jakub Jelinek <jakub@redhat.com>
4579
4580 PR middle-end/80809
4581 * testsuite/libgomp.c/pr80809-2.c: New test.
4582 * testsuite/libgomp.c/pr80809-3.c: New test.
4583
4584 PR middle-end/80809
4585 * testsuite/libgomp.c/pr80809-1.c: New test.
4586
4587 PR middle-end/80853
4588 * testsuite/libgomp.c/pr80853.c: New test.
4589
4590 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
4591
4592 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
4593 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
4594 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4595 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4596 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4597
4598 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
4599 Debug output for failure.
4600
4601 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4602
4603 * testsuite/lib/libgomp.exp: Load scanlang.exp.
4604
4605 2017-04-27 Jakub Jelinek <jakub@redhat.com>
4606
4607 PR bootstrap/80531
4608 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
4609 bootstrap compare failures.
4610
4611 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
4612
4613 * testsuite/libgomp.c/target-36.c: New testcase.
4614
4615 2017-04-13 Jakub Jelinek <jakub@redhat.com>
4616
4617 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
4618 instead of char.
4619
4620 2017-04-11 Jakub Jelinek <jakub@redhat.com>
4621
4622 PR libgomp/80394
4623 * testsuite/libgomp.c/pr80394.c: New test.
4624
4625 2017-04-04 Jakub Jelinek <jakub@redhat.com>
4626
4627 PR libgomp/79876
4628 * config/posix/thread-stacksize.h: New file.
4629 * config/darwin/thread-stacksize.h: New file.
4630 * config/nvptx/thread-stacksize.h: New file.
4631 * env.c: Include thread-stacksize.h.
4632 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
4633 instead of 0. Call pthread_attr_setstacksize even if
4634 GOMP_DEFAULT_STACKSIZE is non-zero.
4635
4636 2017-03-30 Jakub Jelinek <jakub@redhat.com>
4637
4638 * env.c (initialize_env): Initialize stacksize to 0.
4639
4640 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
4641
4642 PR c++/80029
4643 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
4644
4645 2017-03-08 Jakub Jelinek <jakub@redhat.com>
4646
4647 PR c/79940
4648 * testsuite/libgomp.c/pr79940.c: New test.
4649
4650 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4651
4652 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
4653 targets.
4654 Add __float128 options.
4655
4656 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
4657
4658 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
4659 hppa*-*-* dg-skip-if directive.
4660
4661 2017-02-09 Jakub Jelinek <jakub@redhat.com>
4662
4663 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
4664 dg-skip-if directive into a comment.
4665
4666 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
4667 Chung-Lin Tang <cltang@codesourcery.com>
4668
4669 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
4670 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
4671 add additional case.
4672 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
4673 "openacc_nvidia_accel_selected".
4674 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
4675 Add num_workers(8) clause.
4676
4677 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
4678
4679 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
4680 hppa*-*-*.
4681 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
4682 include complex.h on hppa*-*-hpux*.
4683 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4684
4685 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
4686
4687 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
4688
4689 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
4690 GOMP_OFFLOAD_openacc_exec. Adjust all users.
4691 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
4692 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
4693 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
4694 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
4695 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
4696 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
4697 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
4698 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
4699
4700 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
4701
4702 * libgomp-plugin.h: #include <stdbool.h>.
4703 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
4704 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
4705 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
4706 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
4707 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
4708 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
4709 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
4710 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
4711 (GOMP_OFFLOAD_openacc_register_async_cleanup)
4712 (GOMP_OFFLOAD_openacc_async_test)
4713 (GOMP_OFFLOAD_openacc_async_test_all)
4714 (GOMP_OFFLOAD_openacc_async_wait)
4715 (GOMP_OFFLOAD_openacc_async_wait_async)
4716 (GOMP_OFFLOAD_openacc_async_wait_all)
4717 (GOMP_OFFLOAD_openacc_async_wait_all_async)
4718 (GOMP_OFFLOAD_openacc_async_set_async)
4719 (GOMP_OFFLOAD_openacc_create_thread_data)
4720 (GOMP_OFFLOAD_openacc_destroy_thread_data)
4721 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
4722 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
4723 (GOMP_OFFLOAD_openacc_get_cuda_stream)
4724 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
4725 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
4726 these.
4727 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
4728 (GOMP_OFFLOAD_unload_image): Fix argument types.
4729
4730 2017-01-26 Jakub Jelinek <jakub@redhat.com>
4731
4732 * testsuite/lib/libgomp.exp
4733 (check_effective_target_hsa_offloading_selected_nocache): Fix up
4734 check_compile invocation. Fix up removal of executable. Drop
4735 bogus "2>&1" argument.
4736
4737 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
4738 directive.
4739
4740 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
4741 Martin Jambor <mjambor@suse.cz>
4742
4743 * plugin/hsa.h: Moved to top level include.
4744 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
4745
4746 2017-01-21 Jakub Jelinek <jakub@redhat.com>
4747
4748 PR other/79046
4749 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
4750 of cat to get version from BASE-VER file.
4751 * testsuite/Makefile.in: Regenerated.
4752
4753 2017-01-19 Jakub Jelinek <jakub@redhat.com>
4754
4755 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
4756 for _WIN64.
4757
4758 2017-01-17 Jakub Jelinek <jakub@redhat.com>
4759
4760 * plugin/hsa.h: Add GCC runtime library exception.
4761 * plugin/hsa_ext_finalize.h: Likewise.
4762
4763 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
4764 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
4765 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
4766 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
4767 plugin/include/cuda as include dir and -ldl instead of -lcuda as
4768 library to link ptx plugin against.
4769 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
4770 (CUDA_CALLS): Define.
4771 (cuda_lib, cuda_lib_inited): New variables.
4772 (init_cuda_lib): New function.
4773 (CUDA_CALL_PREFIX): Define.
4774 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
4775 (CUDA_CALL): Use FN instead of (FN).
4776 (CUDA_CALL_NOCHECK): Define.
4777 (cuda_error, fini_streams_for_device, select_stream_for_async,
4778 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
4779 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
4780 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
4781 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
4782 CUDA_CALL_NOCHECK.
4783 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
4784 CUDA_CALL_NOCHECK.
4785 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
4786 Use CUDA_CALL_NOCHECK.
4787 * plugin/cuda/cuda.h: New file.
4788 * config.h.in: Regenerated.
4789 * configure: Regenerated.
4790
4791 PR other/79046
4792 * configure.ac: Add GCC_BASE_VER.
4793 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
4794 get version from BASE-VER file.
4795 * testsuite/Makefile.in: Regenerated.
4796 * configure: Regenerated.
4797 * Makefile.in: Regenerated.
4798
4799 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4800
4801 PR libgomp/60670
4802 * Makefile.am: Make fincludedir multilib-aware.
4803 * Makefile.in: Regenerate.
4804
4805 2017-01-01 Jakub Jelinek <jakub@redhat.com>
4806
4807 Update copyright years.
4808
4809 * libgomp.texi: Bump @copying's copyright year.
4810
4811 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4812
4813 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
4814 pthread_spinlock_t instead of gomp_mutex_t lock.
4815 (gomp_get_thread_pool): Likewise.
4816 (gomp_release_thread_pool): Likewise.
4817 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
4818 Likewise.
4819
4820 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4821
4822 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
4823 thread pool in case nthreads == 1.
4824
4825 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4826
4827 * config/nvptx/env.c: Delete.
4828 * icv.c: Move definitions of ICV variables back ...
4829 * env.c: ...here. Do not compile environment-related functionality if
4830 LIBGOMP_OFFLOADED_ONLY is set.
4831
4832 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4833
4834 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
4835 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
4836 * configure: Regenerate.
4837 * config.h.in: Likewise.
4838
4839 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4840
4841 * Makefile.in: Regenerate with automake-1.11.6.
4842 * aclocal.m4: Likewise.
4843 * configure: Likewise.
4844 * testsuite/Makefile.in: Likewise.
4845
4846 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
4847
4848 * config/nvptx/critical.c: Delete to use generic implementation.
4849
4850 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
4851
4852 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
4853 ../../affinity.c as fallback.
4854 * config/nvptx/affinity.c: Delete to use fallback implementation.
4855
4856 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
4857 Jakub Jelinek <jakub@redhat.com>
4858 Dmitry Melnik <dm@ispras.ru>
4859
4860 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
4861 * Makefile.in. Regenerate.
4862 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
4863 (LIBGOMP_USE_PTHREADS): ...here; new define.
4864 * configure: Regenerate.
4865 * config.h.in: Likewise.
4866 * config/posix/affinity.c: Move to...
4867 * affinity.c: ...here (new file). Guard use of Pthreads-specific
4868 interface by LIBGOMP_USE_PTHREADS.
4869 * critical.c: Split out GOMP_atomic_{start,end} into...
4870 * atomic.c: ...here (new file).
4871 * env.c: Split out ICV definitions into...
4872 * icv.c: ...here (new file) and...
4873 * icv-device.c: ...here. New file.
4874 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
4875 (gomp_destroy_lock_30): Ditto.
4876 (gomp_set_lock_30): Ditto.
4877 (gomp_unset_lock_30): Ditto.
4878 (gomp_test_lock_30): Ditto.
4879 (gomp_init_nest_lock_30): Ditto.
4880 (gomp_destroy_nest_lock_30): Ditto.
4881 (gomp_set_nest_lock_30): Ditto.
4882 (gomp_unset_nest_lock_30): Ditto.
4883 (gomp_test_nest_lock_30): Ditto.
4884 * lock.c: New.
4885 * config/nvptx/lock.c: New.
4886 * config/nvptx/bar.c: New.
4887 * config/nvptx/bar.h: New.
4888 * config/nvptx/doacross.h: New.
4889 * config/nvptx/error.c: New.
4890 * config/nvptx/icv-device.c: New.
4891 * config/nvptx/mutex.h: New.
4892 * config/nvptx/pool.h: New.
4893 * config/nvptx/proc.c: New.
4894 * config/nvptx/ptrlock.h: New.
4895 * config/nvptx/sem.h: New.
4896 * config/nvptx/simple-bar.h: New.
4897 * config/nvptx/target.c: New.
4898 * config/nvptx/task.c: New.
4899 * config/nvptx/team.c: New.
4900 * config/nvptx/time.c: New.
4901 * config/posix/simple-bar.h: New.
4902 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
4903 (gomp_num_teams_var): Declare.
4904 (struct gomp_thread_pool): Change threads_dock member to
4905 gomp_simple_barrier_t.
4906 [__nvptx__] (gomp_thread): New implementation.
4907 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
4908 (gomp_thread_destructor): Ditto.
4909 (gomp_init_thread_affinity): Ditto.
4910 * team.c: Guard uses of Pthreads-specific interfaces by
4911 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
4912 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
4913 * config/nvptx/alloc.c: Delete.
4914 * config/nvptx/barrier.c: Ditto.
4915 * config/nvptx/fortran.c: Ditto.
4916 * config/nvptx/iter.c: Ditto.
4917 * config/nvptx/iter_ull.c: Ditto.
4918 * config/nvptx/loop.c: Ditto.
4919 * config/nvptx/loop_ull.c: Ditto.
4920 * config/nvptx/ordered.c: Ditto.
4921 * config/nvptx/parallel.c: Ditto.
4922 * config/nvptx/priority_queue.c: Ditto.
4923 * config/nvptx/sections.c: Ditto.
4924 * config/nvptx/single.c: Ditto.
4925 * config/nvptx/splay-tree.c: Ditto.
4926 * config/nvptx/work.c: Ditto.
4927 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
4928 -foffload=-lgfortran in addition to -lgfortran.
4929 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
4930 * plugin/plugin-nvptx.c: Include <limits.h>.
4931 (struct targ_fn_descriptor): Add new fields.
4932 (struct ptx_device): Ditto. Set them...
4933 (nvptx_open_device): ...here.
4934 (nvptx_adjust_launch_bounds): New.
4935 (nvptx_host2dev): Allow NULL 'nvthd'.
4936 (nvptx_dev2host): Ditto.
4937 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
4938 (link_ptx): Adjust log sizes.
4939 (nvptx_host2dev): Allow NULL 'nvthd'.
4940 (nvptx_dev2host): Ditto.
4941 (nvptx_set_clocktick): New. Use it...
4942 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
4943 fields.
4944 (GOMP_OFFLOAD_dev2dev): New.
4945 (nvptx_adjust_launch_bounds): New.
4946 (nvptx_stacks_size): New.
4947 (nvptx_stacks_alloc): New.
4948 (nvptx_stacks_free): New.
4949 (GOMP_OFFLOAD_run): New.
4950 (GOMP_OFFLOAD_async_run): New (stub).
4951
4952 2016-11-23 Martin Jambor <mjambor@suse.cz>
4953
4954 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
4955 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
4956 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4957
4958 2016-11-23 Martin Liska <mliska@suse.cz>
4959 Martin Jambor <mjambor@suse.cz>
4960
4961 * plugin/hsa.h: New file.
4962 * plugin/hsa_ext_finalize.h: New file.
4963 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
4964 header file unistd.h, and functions secure_getenv, __secure_getenv,
4965 getuid, geteuid, getgid and getegid.
4966 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
4967 -D_GNU_SOURCE.
4968 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
4969 Handle various cases of secure_getenv presence, add an implementation
4970 when we can test effective UID and GID.
4971 (struct hsa_runtime_fn_info): New structure.
4972 (hsa_runtime_fn_info hsa_fns): New variable.
4973 (hsa_runtime_lib): Likewise.
4974 (support_cpu_devices): Likewise.
4975 (init_enviroment_variables): Load newly introduced ENV
4976 variables.
4977 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
4978 (hsa_fatal): Likewise.
4979 (DLSYM_FN): New macro.
4980 (init_hsa_runtime_functions): New function.
4981 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
4982 structure. Depending on environment, also allow CPU devices.
4983 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
4984 (get_kernarg_memory_region): Likewise.
4985 (GOMP_OFFLOAD_init_device): Likewise.
4986 (destroy_hsa_program): Likewise.
4987 (init_basic_kernel_info): New function.
4988 (GOMP_OFFLOAD_load_image): Use it.
4989 (create_and_finalize_hsa_program): Call hsa run-time functions via
4990 hsa_fns structure.
4991 (create_single_kernel_dispatch): Likewise.
4992 (release_kernel_dispatch): Likewise.
4993 (init_single_kernel): Likewise.
4994 (parse_target_attributes): Allow up multiple HSA grid dimensions.
4995 (get_group_size): New function.
4996 (run_kernel): Likewise.
4997 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
4998 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
4999 structure.
5000 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
5001 * testsuite/libgomp-test-support.exp.in: Likewise.
5002 * Makefile.in: Regenerated.
5003 * aclocal.m4: Likewise.
5004 * config.h.in: Likewise.
5005 * configure: Likewise.
5006 * testsuite/Makefile.in: Likewise.
5007
5008 2016-11-15 Martin Jambor <mjambor@suse.cz>
5009 Alexander Monakov <amonakov@ispras.ru>
5010
5011 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
5012 mapping clauses to target constructs.
5013 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
5014
5015 2016-11-15 Matthias Klose <doko@ubuntu.com>
5016
5017 * configure: Regenerate.
5018
5019 2016-11-10 Jakub Jelinek <jakub@redhat.com>
5020
5021 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
5022 * omp_lib.h.in (openmp_version): Likewise.
5023 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
5024 of 201307.
5025 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
5026
5027 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
5028 (fib_wrapper): Add map(from: x) clause.
5029 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
5030 (e_53_2): Likewise.
5031 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
5032 (accum): Add map(tmp) clause.
5033 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
5034 (accum): Add map(tofrom: tmp) clause.
5035 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
5036 (gramSchmidt): Likewise.
5037 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
5038 map(tofrom: sum) clause.
5039 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
5040 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
5041 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
5042 only allowed on the loop iterator.
5043 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
5044 * testsuite/libgomp.fortran/taskloop2.f90: New test.
5045 * testsuite/libgomp.fortran/taskloop4.f90: New test.
5046 * testsuite/libgomp.fortran/doacross1.f90: New test.
5047 * testsuite/libgomp.fortran/doacross3.f90: New test.
5048 * testsuite/libgomp.fortran/taskloop1.f90: New test.
5049 * testsuite/libgomp.fortran/taskloop3.f90: New test.
5050 * testsuite/libgomp.fortran/doacross2.f90: New test.
5051 * testsuite/libgomp.c/doacross-1.c (main): Add missing
5052 #pragma omp atomic read.
5053 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5054 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
5055
5056 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
5057 Nathan Sidwell <nathan@acm.org>
5058
5059 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
5060 to determine default geometry.
5061 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
5062 dimension.
5063
5064 2016-11-01 Jakub Jelinek <jakub@redhat.com>
5065
5066 * hashtab.h: Use standard GPLv3 with runtime exception
5067 boilerplate.
5068
5069 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
5070
5071 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
5072 size when allocating new thread.
5073
5074 2016-09-14 Marek Polacek <polacek@redhat.com>
5075
5076 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
5077
5078 2016-08-19 Jakub Jelinek <jakub@redhat.com>
5079
5080 PR fortran/71014
5081 * testsuite/libgomp.fortran/pr71014.f90: New test.
5082
5083 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
5084
5085 PR middle-end/70895
5086 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
5087 firstprivate clauses.
5088 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
5089 copy clauses.
5090 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5091 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
5092 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
5093 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
5094 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5095 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
5096 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5097 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
5098 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5099 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5100 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5101 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
5102
5103 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
5104
5105 PR fortran/70598
5106 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
5107
5108 2016-08-08 Jakub Jelinek <jakub@redhat.com>
5109
5110 PR c++/58706
5111 * testsuite/libgomp.c++/pr58706.C: New test.
5112
5113 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
5114
5115 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
5116 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
5117 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
5118 Likewise.
5119 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
5120 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
5121 Likewise.
5122 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
5123
5124 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
5125 test, and don't hardcode -O0.
5126
5127 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
5128
5129 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
5130
5131 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
5132
5133 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
5134 test.
5135
5136 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
5137
5138 PR middle-end/71734
5139 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
5140 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
5141
5142 2016-07-01 Jakub Jelinek <jakub@redhat.com>
5143
5144 PR fortran/71717
5145 * testsuite/libgomp.fortran/associate3.f90: New test.
5146
5147 2016-06-17 Jakub Jelinek <jakub@redhat.com>
5148
5149 * testsuite/libgomp.c++/target-21.C: New test.
5150
5151 2016-06-16 Jakub Jelinek <jakub@redhat.com>
5152
5153 * testsuite/libgomp.c++/target-20.C: New test.
5154
5155 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5156 Cesar Philippidis <cesar@codesourcery.com>
5157
5158 PR middle-end/71373
5159 * libgomp.oacc-c/nested-function-1.c: New file.
5160 * libgomp.oacc-c/nested-function-2.c: Likewise.
5161 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
5162 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
5163 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
5164
5165 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5166
5167 PR c/71381
5168 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
5169 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
5170 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
5171
5172 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
5173
5174 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
5175 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
5176
5177 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
5178
5179 PR c/70688
5180 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
5181
5182 2016-05-26 Jakub Jelinek <jakub@redhat.com>
5183
5184 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
5185 instead of invalid schedule(static, 0).
5186 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5187
5188 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
5189
5190 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
5191 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
5192 parameter, use to set async stream around call to gomp_unmap_vars,
5193 call gomp_unmap_vars() with 'do_copyfrom' set to true.
5194 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
5195 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
5196 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
5197 (event_add): Add int parameter, initialize 'val' field when
5198 adding new ptx_event struct.
5199 (nvptx_evec): Adjust event_add() call arguments.
5200 (nvptx_host2dev): Likewise.
5201 (nvptx_dev2host): Likewise.
5202 (nvptx_wait_async): Likewise.
5203 (nvptx_wait_all_async): Likewise.
5204 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
5205 pass to event_add() call.
5206 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
5207 parameter.
5208 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
5209 call openacc.register_async_cleanup_func() hook.
5210 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
5211 * target.c (gomp_copy_from_async): Delete function.
5212 (gomp_map_vars): Remove async_refcount.
5213 (gomp_unmap_vars): Likewise.
5214 (gomp_load_image_to_device): Likewise.
5215 (omp_target_associate_ptr): Likewise.
5216 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
5217 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
5218 (gomp_copy_from_async): Remove.
5219
5220 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
5221
5222 * target.c (gomp_device_copy): New function.
5223 (gomp_copy_host2dev): Likewise.
5224 (gomp_copy_dev2host): Likewise.
5225 (gomp_free_device_memory): Likewise.
5226 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
5227 (gomp_map_pointer): Likewise.
5228 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
5229 NULL value from alloc_func plugin hook.
5230 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
5231 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
5232 (gomp_unmap_vars): Likewise.
5233 (gomp_update): Adjust to call gomp_copy_dev2host and
5234 gomp_copy_host2dev functions.
5235 (gomp_unload_image_from_device): Handle false value from
5236 unload_image_func plugin hook.
5237 (gomp_init_device): Handle false value from init_device_func
5238 plugin hook.
5239 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
5240 (omp_target_free): Adjust to call gomp_free_device_memory.
5241 (omp_target_memcpy): Handle return values from host2dev_func,
5242 dev2host_func, and dev2dev_func plugin hooks.
5243 (omp_target_memcpy_rect_worker): Likewise.
5244 (gomp_target_fini): Handle false value from fini_device_func
5245 plugin hook.
5246 * libgomp.h (struct gomp_device_descr): Adjust return type of
5247 init_device_func, fini_device_func, unload_image_func, free_func,
5248 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
5249 * oacc-init.c (acc_shutdown_1): Handle false value from
5250 fini_device_func plugin hook.
5251 * oacc-host.c (host_init_device): Change return type to bool.
5252 (host_fini_device): Likewise.
5253 (host_unload_image): Likewise.
5254 (host_free): Likewise.
5255 (host_dev2host): Likewise.
5256 (host_host2dev): Likewise.
5257 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
5258 (acc_memcpy_to_device): Likewise.
5259 (acc_memcpy_from_device): Likewise.
5260 (delete_copyout): Add libfnname parameter, handle free_func
5261 hook fatal error case.
5262 (acc_delete): Adjust delete_copyout call.
5263 (acc_copyout): Likewise.
5264 (update_dev_host): Move gomp_mutex_unlock to after
5265 host2dev/dev2host hook calls.
5266
5267 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
5268 to 'hsa_error_msg', for clarity.
5269 (hsa_fatal): Likewise.
5270 (hsa_error): New function.
5271 (init_hsa_context): Change return type to bool, adjust to return
5272 false on error.
5273 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
5274 return value.
5275 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
5276 return false on error.
5277 (get_agent_info): Adjust to return NULL on error.
5278 (destroy_hsa_program): Change return type to bool, adjust to
5279 return false on error.
5280 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
5281 (destroy_module): Change return type to bool, adjust to
5282 return false on error.
5283 (GOMP_OFFLOAD_unload_image): Likewise.
5284 (GOMP_OFFLOAD_fini_device): Likewise.
5285 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
5286 (GOMP_OFFLOAD_free): Change to return false when called.
5287 (GOMP_OFFLOAD_dev2host): Likewise.
5288 (GOMP_OFFLOAD_host2dev): Likewise.
5289 (GOMP_OFFLOAD_dev2dev): Likewise.
5290
5291 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
5292 (CUDA_CALL): Likewise.
5293 (CUDA_CALL_ASSERT): Likewise.
5294 (map_init): Change return type to bool, use CUDA_CALL* macros.
5295 (map_fini): Likewise.
5296 (init_streams_for_device): Change return type to bool, adjust
5297 call to map_init.
5298 (fini_streams_for_device): Change return type to bool, adjust
5299 call to map_fini.
5300 (select_stream_for_async): Release stream_lock before calls to
5301 GOMP_PLUGIN_fatal, adjust call to map_init.
5302 (nvptx_init): Use CUDA_CALL* macros.
5303 (nvptx_attach_host_thread_to_device): Change return type to bool,
5304 use CUDA_CALL* macros.
5305 (nvptx_open_device): Use CUDA_CALL* macros.
5306 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
5307 macros.
5308 (nvptx_get_num_devices): Use CUDA_CALL* macros.
5309 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
5310 (nvptx_exec): Use CUDA_CALL* macros.
5311 (nvptx_alloc): Use CUDA_CALL* macros.
5312 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
5313 (nvptx_host2dev): Likewise.
5314 (nvptx_dev2host): Likewise.
5315 (nvptx_wait): Use CUDA_CALL* macros.
5316 (nvptx_wait_async): Likewise.
5317 (nvptx_wait_all): Likewise.
5318 (nvptx_wait_all_async): Likewise.
5319 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
5320 use CUDA_CALL* macros, adjust call to map_fini.
5321 (GOMP_OFFLOAD_init_device): Change return type to bool,
5322 adjust code accordingly.
5323 (GOMP_OFFLOAD_fini_device): Likewise.
5324 (GOMP_OFFLOAD_load_image): Adjust calls to
5325 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
5326 use CUDA_CALL* macros.
5327 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
5328 return code.
5329 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
5330 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
5331 handle error return.
5332 (GOMP_OFFLOAD_dev2host): Likewise.
5333 (GOMP_OFFLOAD_host2dev): Likewise.
5334 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
5335 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
5336
5337 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
5338
5339 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
5340 (acc_free): Likewise.
5341 (acc_memcpy_to_device): Likewise.
5342 (acc_memcpy_from_device): Likewise.
5343 (acc_deviceptr): Likewise.
5344 (acc_hostptr): Likewise.
5345 (acc_is_present): Likewise.
5346 (acc_map_data): Likewise.
5347 (acc_unmap_data): Likewise.
5348 (present_create_copy): Likewise.
5349 (delete_copyout): Likewise.
5350 (update_dev_host): Likewise.
5351 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
5352 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
5353 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
5354 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5355 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
5356 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
5357 it only runs on nvptx targets.
5358 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5359 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5360 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5361 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5362 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5363 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5364 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5365 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5366 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5367 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5368 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5369 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5370 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5371 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5372 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5373 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5374 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5375 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5376 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5377 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5378 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5379 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5380 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5381
5382 2016-05-23 Martin Jambor <mjambor@suse.cz>
5383
5384 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
5385
5386 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
5387
5388 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
5389 to gomp_init_targets_once.
5390 (acc_set_device_type): Remove !cached_base_dev condition on call to
5391 gomp_init_targets_once, move call to before acc_device_lock acquire,
5392 to avoid deadlock.
5393 (acc_get_device_num): Remove !cached_base_dev condition on call to
5394 gomp_init_targets_once.
5395 (acc_set_device_num): Likewise.
5396
5397 2016-05-16 Martin Jambor <mjambor@suse.cz>
5398
5399 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
5400
5401 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
5402
5403 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
5404 expected partitioning.
5405
5406 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
5407
5408 PR middle-end/70626
5409 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
5410 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
5411 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
5412
5413 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
5414
5415 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
5416 non-fatal.
5417
5418 2016-04-19 Jakub Jelinek <jakub@redhat.com>
5419
5420 PR middle-end/70680
5421 * testsuite/libgomp.c/pr70680-1.c: New test.
5422 * testsuite/libgomp.c/pr70680-2.c: New test.
5423
5424 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5425
5426 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
5427 pass parameter variables to subroutines.
5428
5429 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5430
5431 PR middle-end/70643
5432 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
5433
5434 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
5435
5436 PR testsuite/68242
5437 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
5438 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5439
5440 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
5441
5442 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
5443 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
5444 GOACC_declare prototype.
5445
5446 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
5447 Merge this file, and...
5448 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
5449 ... this file, and...
5450 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
5451 ... this file, and...
5452 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
5453 ... this file, and...
5454 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
5455 ... this file, and...
5456 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
5457 ... this file, and...
5458 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
5459 ... this file, and...
5460 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
5461 ... this file, and...
5462 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
5463 ... this file, and...
5464 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
5465 ... this file, and...
5466 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
5467 ... this file, and...
5468 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
5469 ... this file, and...
5470 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
5471 ... this file into...
5472 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
5473 file.
5474
5475 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
5476 Make failure observable.
5477
5478 2016-04-12 Jakub Jelinek <jakub@redhat.com>
5479
5480 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
5481 field.
5482 * target.c (gomp_target_fallback_firstprivate,
5483 gomp_target_unshare_firstprivate): Removed.
5484 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
5485 before waiting for dependencies.
5486 (gomp_target_task_fn): Don't copy firstprivate vars here.
5487 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
5488 firstprivate_copies here.
5489 (gomp_create_target_task): Don't initialize firstprivate_copies field.
5490 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
5491 explicit/implicit firstprivate.
5492
5493 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
5494
5495 PR lto/70289
5496 PR ipa/70348
5497 PR tree-optimization/70373
5498 PR middle-end/70533
5499 PR middle-end/70534
5500 PR middle-end/70535
5501 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
5502 test.
5503 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
5504 test.
5505 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
5506 test.
5507 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
5508 test.
5509 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
5510 test.
5511 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
5512 test.
5513 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
5514 test.
5515 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
5516 test.
5517 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
5518 test.
5519 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
5520 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
5521 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
5522 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
5523 test.
5524 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
5525 test.
5526 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
5527 test.
5528 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
5529 test.
5530 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
5531 coverage.
5532 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5533 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5534 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
5535 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
5536 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
5537 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
5538 coverage.
5539 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5540 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5541 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5542 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5543 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
5544 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
5545 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
5546 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
5547 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
5548 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5549 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5550 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5551 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5552 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5553 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
5554
5555 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
5556 James Norris <jnorris@codesourcery.com>
5557 Nathan Sidwell <nathan@codesourcery.com>
5558 Julian Brown <julian@codesourcery.com>
5559 Cesar Philippidis <cesar@codesourcery.com>
5560 Chung-Lin Tang <cltang@codesourcery.com>
5561 Tom de Vries <tom@codesourcery.com>
5562
5563 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
5564 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
5565 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
5566 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
5567 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5568 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
5569 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
5570 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5571 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
5572 XFAIL.
5573 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5574 Incorporate...
5575 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
5576 file.
5577 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
5578 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
5579 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
5580 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
5581 Likewise.
5582 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5583 Likewise.
5584 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5585 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
5586 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5587 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5588 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
5589 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5590 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
5591 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
5592 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5593 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
5594 Likewise.
5595 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
5596 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5597 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
5598 file...
5599 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
5600 file into...
5601 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
5602 file. Update.
5603 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
5604 file.
5605 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
5606 Likewise.
5607 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
5608 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
5609 ... this new file. Update.
5610 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
5611 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
5612 ... this new file. Update.
5613 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
5614 file. Incorporate...
5615 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
5616 file, and...
5617 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
5618 file, and...
5619 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
5620 file.
5621 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
5622
5623 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
5624
5625 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
5626 set-torture-options.
5627
5628 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
5629
5630 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
5631 gcc-dg-runtest.
5632 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5633 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
5634 -fno-builtin-acc_on_device instead of -O0.
5635 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
5636 -O0.
5637 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5638 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
5639 Likewise.
5640 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5641 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5642 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5643 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5644 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5645 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5646 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5647 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5648 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5649 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5650 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5651 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5652 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5653 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5654 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5655 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5656 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5657 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
5658 Don't specify -O2.
5659 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
5660 Likewise.
5661 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
5662 Likewise.
5663
5664 2016-03-24 Martin Liska <mliska@suse.cz>
5665
5666 * plugin/plugin-hsa.c (packet_store_release): New function
5667 that is taken from the HSA runtime manual.
5668 (GOMP_OFFLOAD_run): Use the function.
5669
5670 2016-03-23 Jakub Jelinek <jakub@redhat.com>
5671
5672 PR c++/70376
5673 * testsuite/libgomp.c++/pr70376.C: New test.
5674
5675 2016-03-23 Tom de Vries <tom@codesourcery.com>
5676
5677 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
5678 initialization of lresult and lvresult.
5679 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
5680
5681 2016-03-23 James Norris <jnorris@codesourcery.com>
5682 Daichi Fukuoka <dc-fukuoka@sgi.com>
5683
5684 PR libgomp/69414
5685 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
5686 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
5687 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
5688 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
5689
5690 2016-03-23 Martin Liska <mliska@suse.cz>
5691
5692 PR hsa/70337
5693 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
5694 argument just in case a dispatched kernel uses that argument.
5695
5696 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
5697
5698 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
5699 -ftree-parallelize-loops/-fopenacc changes.
5700 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
5701 Likewise.
5702 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5703 Likewise.
5704 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
5705 Likewise.
5706 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
5707 Likewise.
5708 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
5709 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
5710
5711 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
5712
5713 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
5714 always_ld_library_path the path to libgcc_s.
5715
5716 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
5717
5718 PR testsuite/70009
5719 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
5720
5721 2016-03-09 Tom de Vries <tom@codesourcery.com>
5722
5723 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
5724 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
5725 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5726 Same.
5727 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
5728 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
5729 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
5730 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
5731
5732 2016-03-07 Martin Jambor <mjambor@suse.cz>
5733
5734 * testsuite/lib/libgomp.exp
5735 (check_effective_target_hsa_offloading_selected_nocache): New.
5736 (check_effective_target_hsa_offloading_selected): Likewise.
5737 * testsuite/libgomp.hsa.c/c.exp: Likewise.
5738 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
5739 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5740 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5741 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5742 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5743 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5744 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5745 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5746 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
5747 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
5748 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
5749 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
5750 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
5751 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
5752 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
5753 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
5754
5755 2016-03-07 Martin Jambor <mjambor@suse.cz>
5756
5757 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
5758 non-shared memory accelerators.
5759 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
5760 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
5761 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
5762 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
5763 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
5764 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
5765 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
5766 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
5767 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
5768
5769 2016-03-07 Martin Jambor <mjambor@suse.cz>
5770
5771 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
5772 ALWAYS_CFLAGS.
5773
5774 2016-03-02 Jakub Jelinek <jakub@redhat.com>
5775
5776 PR libgomp/69555
5777 * testsuite/libgomp.c++/pr69555-1.C: New test.
5778 * testsuite/libgomp.c++/pr69555-2.C: New test.
5779
5780 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
5781 Martin Jambor <mjambor@suse.cz>
5782
5783 * testsuite/lib/libgomp.exp
5784 (check_effective_target_offload_device_shared_as): New proc.
5785 * testsuite/libgomp.c++/declare_target-1.C: New test.
5786
5787 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
5788
5789 PR driver/68463
5790 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
5791
5792 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
5793
5794 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
5795 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
5796 dims.
5797 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
5798 -ftree-parallelize-loops/-fopenacc changes.
5799 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
5800 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
5801 Likewise.
5802 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
5803 Likewise.
5804 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
5805 Likewise.
5806 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
5807 Likewise.
5808 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
5809 Likewise.
5810 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
5811 Likewise.
5812 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
5813 Likewise.
5814 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
5815 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
5816 Likewise.
5817 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
5818 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
5819 Likewise.
5820 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
5821 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
5822 Likewise.
5823
5824 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
5825
5826 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
5827
5828 2016-02-19 Jakub Jelinek <jakub@redhat.com>
5829
5830 PR driver/69805
5831 * testsuite/libgomp.c/pr69805.c: New test.
5832
5833 2016-02-16 Tom de Vries <tom@codesourcery.com>
5834
5835 PR lto/67709
5836 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
5837
5838 2016-02-09 Tom de Vries <tom@codesourcery.com>
5839
5840 PR tree-optimization/69599
5841 * testsuite/libgomp.c/omp-nested-3.c: New test.
5842 * testsuite/libgomp.c/pr46032-2.c: New test.
5843 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
5844 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
5845
5846 2016-02-09 Tom de Vries <tom@codesourcery.com>
5847
5848 PR lto/69707
5849 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
5850
5851 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5852
5853 * testsuite/libgomp.c/target-31.c: Fix testcase.
5854
5855 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5856
5857 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
5858 clause.
5859 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
5860 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
5861 reduction and map clauses.
5862 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
5863
5864 2016-02-02 James Norris <jnorris@codesourcery.com>
5865
5866 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
5867
5868 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
5869
5870 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
5871 * oacc-parallel.c (GOACC_host_data): Remove function definition.
5872
5873 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
5874 cases.
5875
5876 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
5877 variables.
5878 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
5879 (hsa_kmt_lib): Set variables.
5880 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
5881 always_ld_library_path.
5882 * Makefile.in: Regenerate.
5883 * configure: Likewise.
5884 * testsuite/Makefile.in: Likewise.
5885
5886 * plugin/configfrag.ac (offload_additional_options)
5887 (offload_additional_lib_paths): Don't amend for hsa offloading.
5888 * configure: Regenerate.
5889
5890 * plugin/configfrag.ac: Don't configure for offloading target if
5891 we don't build the corresponding plugin.
5892 * configure: Regenerate.
5893
5894 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
5895
5896 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
5897 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
5898
5899 2016-01-26 Tom de Vries <tom@codesourcery.com>
5900
5901 PR tree-optimization/69110
5902 * testsuite/libgomp.c/pr69110.c: New test.
5903
5904 2016-01-25 Richard Biener <rguenther@suse.de>
5905
5906 PR lto/69393
5907 * testsuite/libgomp.c++/pr69393.C: New testcase.
5908
5909 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
5910
5911 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
5912 function wasn't mapped to the device with non-shared memory.
5913
5914 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
5915
5916 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
5917
5918 2016-01-19 Martin Jambor <mjambor@suse.cz>
5919 Martin Liska <mliska@suse.cz>
5920
5921 * plugin/Makefrag.am: Add HSA plugin requirements.
5922 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
5923 (HSA_RUNTIME_LIB): Likewise.
5924 (HSA_RUNTIME_CPPFLAGS): Likewise.
5925 (HSA_RUNTIME_INCLUDE): New substitution.
5926 (HSA_RUNTIME_LIB): Likewise.
5927 (HSA_RUNTIME_LDFLAGS): Likewise.
5928 (hsa-runtime): New configure option.
5929 (hsa-runtime-include): Likewise.
5930 (hsa-runtime-lib): Likewise.
5931 (PLUGIN_HSA): New substitution variable.
5932 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
5933 configure options.
5934 (PLUGIN_HSA_CPPFLAGS): Likewise.
5935 (PLUGIN_HSA_LDFLAGS): Likewise.
5936 (PLUGIN_HSA_LIBS): Likewise.
5937 Check that we have access to HSA run-time.
5938 * libgomp-plugin.h (offload_target_type): New element
5939 OFFLOAD_TARGET_TYPE_HSA.
5940 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
5941 args.
5942 (bool gomp_create_target_task): Updated.
5943 (gomp_device_descr): Extra parameter of run_func and async_run_func,
5944 new field can_run_func.
5945 * libgomp_g.h (GOMP_target_ext): Update prototype.
5946 * oacc-host.c (host_run): Added a new parameter args.
5947 * target.c (calculate_firstprivate_requirements): New function.
5948 (copy_firstprivate_data): Likewise.
5949 (gomp_target_fallback_firstprivate): Use them.
5950 (gomp_target_unshare_firstprivate): New function.
5951 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
5952 devices.
5953 (GOMP_target): Do host fallback for all shared memory devices. Do not
5954 pass any args to plugins.
5955 (GOMP_target_ext): Introduce device-specific argument parameter args.
5956 Allow host fallback if device shares memory. Do not remap data if
5957 device has shared memory.
5958 (gomp_target_task_fn): Likewise. Also treat shared memory devices
5959 like host fallback for mappings.
5960 (GOMP_target_data): Treat shared memory devices like host fallback.
5961 (GOMP_target_data_ext): Likewise.
5962 (GOMP_target_update): Likewise.
5963 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
5964 gomp_create_target_task.
5965 (GOMP_target_enter_exit_data): Likewise.
5966 (omp_target_alloc): Treat shared memory devices like host fallback.
5967 (omp_target_free): Likewise.
5968 (omp_target_is_present): Likewise.
5969 (omp_target_memcpy): Likewise.
5970 (omp_target_memcpy_rect): Likewise.
5971 (omp_target_associate_ptr): Likewise.
5972 (gomp_load_plugin_for_device): Also load can_run.
5973 * task.c (GOMP_PLUGIN_target_task_completion): Free
5974 firstprivate_copies.
5975 (gomp_create_target_task): Accept new argument args and store it to
5976 ttask.
5977 * plugin/plugin-hsa.c: New file.
5978
5979 2016-01-18 Tom de Vries <tom@codesourcery.com>
5980
5981 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
5982 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
5983 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
5984 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
5985 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
5986 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
5987 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
5988 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
5989 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
5990 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
5991 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
5992 Same.
5993 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
5994 Same.
5995 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
5996 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
5997 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
5998 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
5999 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
6000 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
6001 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
6002 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
6003 Same.
6004 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
6005
6006 2016-01-15 Jakub Jelinek <jakub@redhat.com>
6007
6008 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
6009
6010 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
6011
6012 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
6013
6014 2016-01-12 James Norris <jnorris@codesourcery.com>
6015
6016 * libgomp.texi: Updates for OpenACC.
6017
6018 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
6019
6020 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
6021
6022 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
6023
6024 PR fortran/66680
6025 * testsuite/libgomp.fortran/pr66680.f90: New test.
6026
6027 2016-01-07 Jakub Jelinek <jakub@redhat.com>
6028
6029 PR middle-end/68960
6030 * testsuite/libgomp.c/pr68960.c: New test.
6031
6032 2016-01-06 Nathan Sidwell <nathan@acm.org>
6033
6034 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
6035 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
6036
6037 2016-01-04 Jakub Jelinek <jakub@redhat.com>
6038
6039 Update copyright years.
6040
6041 * libgomp.texi: Bump @copying's copyright year.
6042
6043 2015-12-31 Nathan Sidwell <nathan@acm.org>
6044
6045 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
6046 dg-additional-options syntax.
6047 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6048 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6049 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
6050 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6051 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
6052 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6053 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6054 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6055 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6056 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
6057 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6058 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6059 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6060 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6061 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6062 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6063 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6064 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6065
6066 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
6067
6068 * libgomp.h (REFCOUNT_LINK): Define.
6069 (struct splay_tree_key_s): Add link_key.
6070 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
6071 Replace target address of the pointer with target address of newly
6072 mapped object in the splay tree. Set link pointer on target to the
6073 device address of the mapped object.
6074 (gomp_unmap_vars): Restore target address of the pointer in the splay
6075 tree for REFCOUNT_LINK objects after unmapping.
6076 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
6077 declare target link" objects.
6078 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
6079 "omp declare target link" objects, which were mapped for the image.
6080 (gomp_exit_data): Restore target address of the pointer in the splay
6081 tree for REFCOUNT_LINK objects after unmapping.
6082 * testsuite/libgomp.c/target-link-1.c: New file.
6083
6084 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
6085
6086 * libgomp.h (gomp_device_state): New enum.
6087 (struct gomp_device_descr): Replace is_initialized with state.
6088 (gomp_fini_device): Remove declaration.
6089 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
6090 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
6091 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
6092 (acc_set_device_type): Use state instead of is_initialized.
6093 (acc_set_device_num): Likewise.
6094 * target.c (resolve_device): Use state instead of is_initialized.
6095 Do not initialize finalized device.
6096 (gomp_map_vars): Do nothing if device is finalized.
6097 (gomp_unmap_vars): Likewise.
6098 (gomp_update): Likewise.
6099 (GOMP_offload_register_ver): Use state instead of is_initialized.
6100 (GOMP_offload_unregister_ver): Likewise.
6101 (gomp_init_device): Likewise.
6102 (gomp_unload_device): Likewise.
6103 (gomp_fini_device): Remove.
6104 (gomp_get_target_fn_addr): Do nothing if device is finalized.
6105 (GOMP_target): Go to host fallback if device is finalized.
6106 (GOMP_target_ext): Likewise.
6107 (gomp_exit_data): Do nothing if device is finalized.
6108 (gomp_target_task_fn): Go to host fallback if device is finalized.
6109 (gomp_target_fini): New static function.
6110 (gomp_target_init): Use state instead of is_initialized.
6111 Call gomp_target_fini at exit.
6112
6113 2015-12-09 Tom de Vries <tom@codesourcery.com>
6114
6115 PR tree-optimization/68716
6116 * testsuite/libgomp.c/omp-nested-2.c: New test.
6117
6118 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
6119
6120 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
6121 target openacc_nvidia_accel_selected.
6122 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
6123 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
6124 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
6125 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
6126
6127 2015-12-01 Julian Brown <julian@codesourcery.com>
6128 James Norris <James_Norris@mentor.com>
6129
6130 * oacc-parallel.c (GOACC_host_data): New function.
6131 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
6132 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
6133 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
6134 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
6135 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
6136 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
6137 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
6138
6139 2015-11-30 James Norris <jnorris@codesourcery.com>
6140 Cesar Philippidis <cesar@codesourcery.com>
6141
6142 libgomp/
6143 * libgomp.oacc-fortran/routine-5.f90: New test.
6144 * libgomp.oacc-fortran/routine-7.f90: New test.
6145 * libgomp.oacc-fortran/routine-9.f90: New test.
6146
6147 2015-11-30 Tom de Vries <tom@codesourcery.com>
6148
6149 PR tree-optimization/46032
6150 * testsuite/libgomp.c/pr46032.c: New test.
6151
6152 2015-11-27 Jakub Jelinek <jakub@redhat.com>
6153
6154 PR libgomp/68579
6155 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
6156 (gomp_create_target_task): Call it before freeing
6157 GOMP_TARGET_TASK_DATA tasks.
6158
6159 PR c/63326
6160 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
6161 in between case label and OpenMP standalone directives.
6162 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
6163
6164 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
6165
6166 * configure: Regenerate.
6167
6168 2015-11-26 Jakub Jelinek <jakub@redhat.com>
6169
6170 * testsuite/libgomp.c/target-35.c: New test.
6171
6172 2015-11-22 James Norris <jnorris@codesourcery.com>
6173 Cesar Philippidis <cesar@codesourcery.com>
6174
6175 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
6176 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
6177 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
6178 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
6179 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
6180
6181 2015-11-20 Jakub Jelinek <jakub@redhat.com>
6182
6183 PR middle-end/68221
6184 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
6185 * testsuite/libgomp.c/reduction-12.c: Likewise.
6186 * testsuite/libgomp.c++/reduction-11.C: Likewise.
6187 * testsuite/libgomp.c++/reduction-12.C: Likewise.
6188
6189 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
6190
6191 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
6192 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
6193 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
6194 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
6195 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
6196 and fix.
6197 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6198 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6199
6200 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
6201
6202 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
6203 worker & gang cases.
6204 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
6205
6206 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
6207
6208 * config/nvptx/priority_queue.c: New file.
6209
6210 2015-11-14 Jakub Jelinek <jakub@redhat.com>
6211
6212 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
6213 sections.
6214
6215 2015-11-14 Jakub Jelinek <jakub@redhat.com>
6216 Aldy Hernandez <aldyh@redhat.com>
6217 Ilya Verbin <ilya.verbin@intel.com>
6218
6219 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
6220 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
6221 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
6222 iterators or IV by chunk size.
6223 * parallel.c (gomp_resolve_num_threads): Don't assume that
6224 if thr->ts.team is non-NULL, then pool must be non-NULL.
6225 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
6226 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
6227 GOMP_PLUGIN_target_task_completion.
6228 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
6229 * Makefile.in: Regenerate.
6230 * libgomp.h: Shuffle prototypes and forward definitions around so
6231 priority queues can be defined.
6232 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
6233 (enum gomp_target_task_state): New enum.
6234 (struct gomp_target_task): Add state, tgt, task and team fields.
6235 (gomp_create_target_task): Change return type to bool, add
6236 state argument.
6237 (gomp_target_task_fn): Change return type to bool.
6238 (struct gomp_device_descr): Add async_run_func.
6239 (struct gomp_task): Remove children, next_child, prev_child,
6240 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
6241 Add pnode field.
6242 (struct gomp_taskgroup): Remove children.
6243 Add taskgroup_queue.
6244 (struct gomp_team): Change task_queue type to a priority queue.
6245 (splay_compare): Define inline.
6246 (priority_queue_offset): New.
6247 (priority_node_to_task): New.
6248 (task_to_priority_node): New.
6249 * oacc-mem.c: Do not include splay-tree.h.
6250 * priority_queue.c: New file.
6251 * priority_queue.h: New file.
6252 * splay-tree.c: Do not include splay-tree.h.
6253 (splay_tree_foreach_internal): New.
6254 (splay_tree_foreach): New.
6255 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
6256 (splay_tree_callback): Define typedef.
6257 * target.c (splay_compare): Move to libgomp.h.
6258 (GOMP_target): Don't adjust *thr in any way around running offloaded
6259 task.
6260 (GOMP_target_ext): Likewise. Handle target nowait.
6261 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
6262 return value from gomp_create_target_task, if false, fallthrough
6263 as if no dependencies exist.
6264 (gomp_target_task_fn): Change return type to bool, return true
6265 if the task should have another part scheduled later. Handle
6266 target nowait.
6267 (gomp_load_plugin_for_device): Initialize async_run.
6268 * task.c (gomp_init_task): Initialize children_queue.
6269 (gomp_clear_parent_in_list): New.
6270 (gomp_clear_parent_in_tree): New.
6271 (gomp_clear_parent): Handle priorities.
6272 (GOMP_task): Likewise.
6273 (priority_queue_move_task_first,
6274 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
6275 New functions.
6276 (gomp_create_target_task): Use priority queues. Change return type
6277 to bool, add state argument, return false if for async
6278 {{enter,exit} data,update} constructs no dependencies need to be
6279 waited for, handle target nowait. Set task->fn to NULL instead of
6280 gomp_target_task_fn.
6281 (verify_children_queue): Remove.
6282 (priority_list_upgrade_task): New.
6283 (priority_queue_upgrade_task): New.
6284 (verify_task_queue): Remove.
6285 (priority_list_downgrade_task): New.
6286 (priority_queue_downgrade_task): New.
6287 (gomp_task_run_pre): Use priority queues.
6288 Abstract code out to priority_queue_downgrade_task.
6289 (gomp_task_run_post_handle_dependers): Use priority queues.
6290 (gomp_task_run_post_remove_parent): Likewise.
6291 (gomp_task_run_post_remove_taskgroup): Likewise.
6292 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
6293 tasks specially.
6294 (GOMP_taskwait): Likewise.
6295 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
6296 priority-queue_upgrade_task.
6297 (GOMP_taskgroup_start): Use priority queues.
6298 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
6299 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
6300 barrier.
6301 * taskloop.c (GOMP_taskloop): Handle priorities.
6302 * team.c (gomp_new_team): Call priority_queue_init.
6303 (free_team): Call priority_queue_free.
6304 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
6305 team created for target nowait in implicit parallel region.
6306 (gomp_team_start): For nested check, test thr->ts.level instead of
6307 thr->ts.team != NULL.
6308 * testsuite/libgomp.c/doacross-3.c: New test.
6309 * testsuite/libgomp.c/ordered-5.c: New test.
6310 * testsuite/libgomp.c/priority.c: New test.
6311 * testsuite/libgomp.c/target-31.c: New test.
6312 * testsuite/libgomp.c/target-32.c: New test.
6313 * testsuite/libgomp.c/target-33.c: New test.
6314 * testsuite/libgomp.c/target-34.c: New test.
6315
6316 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6317
6318 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
6319
6320 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
6321 loop is sequential.
6322
6323 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6324
6325 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
6326 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
6327
6328 2015-11-12 James Norris <jnorris@codesourcery.com>
6329 Joseph Myers <joseph@codesourcery.com>
6330
6331 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
6332 * oacc-parallel.c (GOACC_declare): New function.
6333 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
6334 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
6335 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
6336 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
6337 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
6338
6339 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
6340
6341 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
6342
6343 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
6344
6345 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
6346 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
6347
6348 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6349
6350 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
6351 inadvertent commit.
6352
6353 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6354
6355 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
6356 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
6357 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
6358 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
6359 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
6360
6361 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
6362
6363 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
6364 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6365
6366 2015-11-05 Jakub Jelinek <jakub@redhat.com>
6367 Ilya Verbin <ilya.verbin@intel.com>
6368
6369 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
6370 GOMP_loop_nonmonotonic_dynamic_start,
6371 GOMP_loop_nonmonotonic_guided_next,
6372 GOMP_loop_nonmonotonic_guided_start,
6373 GOMP_loop_ull_nonmonotonic_dynamic_next,
6374 GOMP_loop_ull_nonmonotonic_dynamic_start,
6375 GOMP_loop_ull_nonmonotonic_guided_next,
6376 GOMP_loop_ull_nonmonotonic_guided_start,
6377 GOMP_parallel_loop_nonmonotonic_dynamic,
6378 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
6379 (GOMP_target_41): Renamed to ...
6380 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6381 arguments.
6382 (GOMP_target_data_41): Renamed to ...
6383 (GOMP_target_data_ext): ... this.
6384 (GOMP_target_update_41): Renamed to ...
6385 (GOMP_target_update_ext): ... this.
6386 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
6387 GOMP_target_data_ext and GOMP_target_update_ext instead of
6388 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
6389 Export GOMP_loop_nonmonotonic_dynamic_next,
6390 GOMP_loop_nonmonotonic_dynamic_start,
6391 GOMP_loop_nonmonotonic_guided_next,
6392 GOMP_loop_nonmonotonic_guided_start,
6393 GOMP_loop_ull_nonmonotonic_dynamic_next,
6394 GOMP_loop_ull_nonmonotonic_dynamic_start,
6395 GOMP_loop_ull_nonmonotonic_guided_next,
6396 GOMP_loop_ull_nonmonotonic_guided_start,
6397 GOMP_parallel_loop_nonmonotonic_dynamic and
6398 GOMP_parallel_loop_nonmonotonic_guided.
6399 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
6400 GOMP_parallel_loop_nonmonotonic_guided,
6401 GOMP_loop_nonmonotonic_dynamic_start,
6402 GOMP_loop_nonmonotonic_guided_start,
6403 GOMP_loop_nonmonotonic_dynamic_next,
6404 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
6405 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
6406 GOMP_loop_ull_nonmonotonic_guided_start,
6407 GOMP_loop_ull_nonmonotonic_dynamic_next,
6408 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
6409 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
6410 functions.
6411 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
6412 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
6413 Use gomp_map_val function.
6414 (gomp_target_fallback_firstprivate): New static function.
6415 (GOMP_target_41): Renamed to ...
6416 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6417 arguments. Move firstprivate fallback handling into a new
6418 function.
6419 (GOMP_target_data_41): Renamed to ...
6420 (GOMP_target_data_ext): ... this.
6421 (GOMP_target_update_41): Renamed to ...
6422 (GOMP_target_update_ext): ... this.
6423 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
6424 gomp_map_0len_lookup instead of gomp_map_lookup.
6425 (omp_target_is_present): Use gomp_map_0len_lookup instead of
6426 gomp_map_lookup.
6427 * testsuite/libgomp.c/target-28.c: Likewise.
6428 * testsuite/libgomp.c/monotonic-1.c: New test.
6429 * testsuite/libgomp.c/monotonic-2.c: New test.
6430 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
6431 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
6432 * testsuite/libgomp.c/pr66199-5.c: New test.
6433 * testsuite/libgomp.c/pr66199-6.c: New test.
6434 * testsuite/libgomp.c/pr66199-7.c: New test.
6435 * testsuite/libgomp.c/pr66199-8.c: New test.
6436 * testsuite/libgomp.c/pr66199-9.c: New test.
6437 * testsuite/libgomp.c/reduction-11.c: New test.
6438 * testsuite/libgomp.c/reduction-12.c: New test.
6439 * testsuite/libgomp.c/reduction-13.c: New test.
6440 * testsuite/libgomp.c/reduction-14.c: New test.
6441 * testsuite/libgomp.c/reduction-15.c: New test.
6442 * testsuite/libgomp.c/target-12.c (main): Adjust for
6443 omp_target_is_present change for one-past-last element.
6444 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
6445 the same var is both mapped and privatized.
6446 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
6447 handling of zero-length array sections.
6448 * testsuite/libgomp.c/target-28.c: New test.
6449 * testsuite/libgomp.c/target-29.c: New test.
6450 * testsuite/libgomp.c/target-30.c: New test.
6451 * testsuite/libgomp.c/target-teams-1.c: New test.
6452 * testsuite/libgomp.c++/member-6.C: New test.
6453 * testsuite/libgomp.c++/member-7.C: New test.
6454 * testsuite/libgomp.c++/monotonic-1.C: New test.
6455 * testsuite/libgomp.c++/monotonic-2.C: New test.
6456 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
6457 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
6458 * testsuite/libgomp.c++/pr66199-3.C: New test.
6459 * testsuite/libgomp.c++/pr66199-4.C: New test.
6460 * testsuite/libgomp.c++/pr66199-5.C: New test.
6461 * testsuite/libgomp.c++/pr66199-6.C: New test.
6462 * testsuite/libgomp.c++/pr66199-7.C: New test.
6463 * testsuite/libgomp.c++/pr66199-8.C: New test.
6464 * testsuite/libgomp.c++/pr66199-9.C: New test.
6465 * testsuite/libgomp.c++/reduction-11.C: New test.
6466 * testsuite/libgomp.c++/reduction-12.C: New test.
6467 * testsuite/libgomp.c++/target-13.C: New test.
6468 * testsuite/libgomp.c++/target-14.C: New test.
6469 * testsuite/libgomp.c++/target-15.C: New test.
6470 * testsuite/libgomp.c++/target-16.C: New test.
6471 * testsuite/libgomp.c++/target-17.C: New test.
6472 * testsuite/libgomp.c++/target-18.C: New test.
6473 * testsuite/libgomp.c++/target-19.C: New test.
6474
6475 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6476
6477 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
6478 and reduction copy.
6479 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6480 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6481 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6482 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6483 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6484 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6485 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6486 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6487 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6488 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
6489 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6490 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6491 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6492 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
6493
6494 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6495
6496 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
6497 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
6498 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
6499 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
6500 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
6501 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
6502 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
6503 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
6504
6505 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
6506
6507 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
6508 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
6509 (GOMP_OFFLOAD_openacc_parallel): Likewise.
6510 * oacc-host.c (host_openacc_exec): Likewise.
6511 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
6512
6513 2015-11-03 Julian Brown <julian@codesourcery.com>
6514 Thomas Schwinge <thomas@codesourcery.com>
6515
6516 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
6517 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6518 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
6519 Likewise.
6520 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
6521 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
6522
6523 2015-11-03 James Norris <jnorris@codesourcery.com>
6524
6525 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
6526 file.
6527 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
6528 Likewise.
6529 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
6530 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
6531 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
6532 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
6533 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
6534
6535 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
6536
6537 * openacc.h (enum acc_device_t): Reformat. Ensure layout
6538 compatibility.
6539 (enum acc_async_t): Reformat.
6540 (acc_on_device): Declare compatible with builtin and provide C++
6541 wrapper.
6542 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
6543
6544 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
6545 Cesar Philippidis <cesar@codesourcery.com>
6546
6547 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
6548 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
6549 ... this. Add a description of the test at the top of the file.
6550 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
6551 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
6552 ... this. Add a description of the test at the top of the file.
6553
6554 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6555
6556 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
6557 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
6558 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
6559 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
6560 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
6561 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
6562
6563 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6564
6565 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
6566 dimensions.
6567
6568 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
6569
6570 PR testsuite/68063
6571 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
6572
6573 2015-10-27 James Norris <jnorris@codesourcery.com>
6574
6575 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
6576 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
6577
6578 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
6579
6580 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
6581 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6582
6583 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
6584 acc_device_nvidia usage.
6585 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6586 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6587 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6588
6589 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
6590 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
6591
6592 PR libgomp/66518
6593 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
6594
6595 PR libgomp/65437
6596 PR libgomp/66518
6597 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
6598 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
6599
6600 2015-10-23 Tom de Vries <tom@codesourcery.com>
6601
6602 PR testsuite/68063
6603 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
6604
6605 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
6606
6607 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
6608 vector_length.
6609 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6610
6611 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
6612 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
6613
6614 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
6615 to 0 when mapnum is 0.
6616
6617 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
6618
6619 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
6620 Cast to int from int32_t.
6621
6622 2015-10-13 Jakub Jelinek <jakub@redhat.com>
6623 Aldy Hernandez <aldyh@redhat.com>
6624 Ilya Verbin <ilya.verbin@intel.com>
6625
6626 * config/linux/affinity.c (omp_get_place_num_procs,
6627 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6628 * config/linux/doacross.h: New file.
6629 * config/posix/affinity.c (omp_get_place_num_procs,
6630 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6631 * config/posix/doacross.h: New file.
6632 * env.c: Include gomp-constants.h.
6633 (struct gomp_task_icv): Rename run_sched_modifier to
6634 run_sched_chunk_size.
6635 (gomp_max_task_priority_var): New variable.
6636 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
6637 (handle_omp_display_env): Change _OPENMP value from 201307 to
6638 201511. Print OMP_MAX_TASK_PRIORITY.
6639 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
6640 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
6641 chunk_size and run_sched_modifier to run_sched_chunk_size.
6642 (omp_get_max_task_priority, omp_get_initial_device,
6643 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
6644 omp_get_partition_place_nums): New functions.
6645 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
6646 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
6647 to chunk_size.
6648 (omp_get_num_places_, omp_get_place_num_procs_,
6649 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
6650 omp_get_place_proc_ids_8_, omp_get_place_num_,
6651 omp_get_partition_num_places_, omp_get_partition_place_nums_,
6652 omp_get_partition_place_nums_8_, omp_get_initial_device_,
6653 omp_get_max_task_priority_): New functions.
6654 * libgomp_g.h (GOMP_loop_doacross_static_start,
6655 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
6656 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
6657 GOMP_loop_ull_doacross_dynamic_start,
6658 GOMP_loop_ull_doacross_guided_start,
6659 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
6660 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
6661 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
6662 GOMP_target_data_41, GOMP_target_update_41,
6663 GOMP_target_enter_exit_data): New prototypes.
6664 (GOMP_task): Add prototype argument.
6665 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
6666 (struct gomp_doacross_work_share): New type.
6667 (struct gomp_work_share): Add doacross field.
6668 (struct gomp_task_icv): Rename run_sched_modifier to
6669 run_sched_chunk_size.
6670 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
6671 GOMP_TASK_UNDEFERRED. Add comments.
6672 (struct gomp_task_depend_entry): Add comments.
6673 (struct gomp_task): Likewise.
6674 (struct gomp_taskgroup): Likewise.
6675 (struct gomp_target_task): New type.
6676 (struct gomp_team): Add comment.
6677 (gomp_get_place_proc_ids_8, gomp_doacross_init,
6678 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
6679 gomp_create_target_task, gomp_target_task_fn): New prototypes.
6680 (struct target_var_desc): New type.
6681 (struct target_mem_desc): Adjust comment. Use struct
6682 target_var_desc instead of splay_tree_key for list.
6683 (REFCOUNT_INFINITY): Define.
6684 (struct splay_tree_key_s): Remove copy_from field.
6685 (struct gomp_device_descr): Add dev2dev_func field.
6686 (enum gomp_map_vars_kind): New enum.
6687 (gomp_map_vars): Add one argument.
6688 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
6689 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
6690 omp_get_place_num_procs, omp_get_place_num_procs_,
6691 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
6692 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
6693 omp_get_place_num_, omp_get_partition_num_places,
6694 omp_get_partition_num_places_, omp_get_partition_place_nums,
6695 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
6696 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
6697 omp_target_free, omp_target_is_present, omp_target_memcpy,
6698 omp_target_memcpy_rect, omp_target_associate_ptr and
6699 omp_target_disassociate_ptr.
6700 (GOMP_4.0.2): Renamed to ...
6701 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
6702 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
6703 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
6704 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6705 GOMP_loop_doacross_static_start, GOMP_doacross_post,
6706 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
6707 GOMP_loop_ull_doacross_guided_start,
6708 GOMP_loop_ull_doacross_runtime_start,
6709 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
6710 GOMP_doacross_ull_wait.
6711 * libgomp.texi: Document omp_get_max_task_priority.
6712 Rename modifier argument to chunk_size for omp_set_schedule and
6713 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
6714 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
6715 to run_sched_chunk_size renaming.
6716 (GOMP_loop_ordered_runtime_start): Likewise.
6717 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
6718 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6719 GOMP_parallel_loop_runtime_start): New functions.
6720 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
6721 to run_sched_chunk_size renaming.
6722 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
6723 GOMP_loop_doacross_guided_start): New functions or aliases.
6724 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
6725 run_sched_modifier to run_sched_chunk_size renaming.
6726 (GOMP_loop_ull_ordered_runtime_start): Likewise.
6727 (gomp_loop_ull_doacross_static_start,
6728 gomp_loop_ull_doacross_dynamic_start,
6729 gomp_loop_ull_doacross_guided_start,
6730 GOMP_loop_ull_doacross_runtime_start): New functions.
6731 (GOMP_loop_ull_doacross_static_start,
6732 GOMP_loop_ull_doacross_dynamic_start,
6733 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
6734 * oacc-mem.c (acc_map_data, present_create_copy,
6735 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
6736 to gomp_map_vars.
6737 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
6738 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
6739 instead of false to gomp_map_vars.
6740 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
6741 * omp.h.in (omp_lock_hint_t): New type.
6742 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6743 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6744 omp_get_place_num, omp_get_partition_num_places,
6745 omp_get_partition_place_nums, omp_get_initial_device,
6746 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
6747 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
6748 omp_target_associate_ptr, omp_target_disassociate_ptr): New
6749 prototypes.
6750 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
6751 (omp_lock_hint_none, omp_lock_hint_uncontended,
6752 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6753 omp_lock_hint_speculative): New parameters.
6754 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6755 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6756 omp_get_place_num, omp_get_partition_num_places,
6757 omp_get_partition_place_nums, omp_get_initial_device,
6758 omp_get_max_task_priority): New interfaces.
6759 (omp_set_schedule, omp_get_schedule): Rename modifier argument
6760 to chunk_size.
6761 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
6762 (omp_lock_hint_none, omp_lock_hint_uncontended,
6763 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6764 omp_lock_hint_speculative): New parameters.
6765 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6766 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6767 omp_get_place_num, omp_get_partition_num_places,
6768 omp_get_partition_place_nums, omp_get_initial_device,
6769 omp_get_max_task_priority): New functions and subroutines.
6770 * ordered.c: Include stdarg.h and string.h.
6771 (MAX_COLLAPSED_BITS): Define.
6772 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
6773 gomp_doacross_ull_init, GOMP_doacross_ull_post,
6774 GOMP_doacross_ull_wait): New functions.
6775 * target.c: Include errno.h.
6776 (resolve_device): If device is not initialized, call
6777 gomp_init_device on it.
6778 (gomp_map_lookup): New function.
6779 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
6780 Don't bump refcount if REFCOUNT_INFINITY. Handle
6781 GOMP_MAP_ALWAYS_TO_P.
6782 (get_kind): Rename is_openacc argument to short_mapkind.
6783 (gomp_map_pointer): Use gomp_map_lookup.
6784 (gomp_map_fields_existing): New function.
6785 (gomp_map_vars): Rename is_openacc argument to short_mapkind
6786 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
6787 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
6788 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
6789 Adjust for tgt->list changed type and copy_from living in there.
6790 (gomp_copy_from_async): Adjust for tgt->list changed type and
6791 copy_from living in there.
6792 (gomp_unmap_vars): Likewise.
6793 (gomp_update): Likewise. Rename is_openacc argument to
6794 short_mapkind. Don't fail if object is not mapped.
6795 (gomp_load_image_to_device): Initialize refcount to
6796 REFCOUNT_INFINITY.
6797 (gomp_target_fallback): New function.
6798 (gomp_get_target_fn_addr): Likewise.
6799 (GOMP_target): Adjust gomp_map_vars caller, use
6800 gomp_get_target_fn_addr and gomp_target_fallback.
6801 (GOMP_target_41): New function.
6802 (gomp_target_data_fallback): New function.
6803 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
6804 (GOMP_target_data_41): New function.
6805 (GOMP_target_update): Adjust gomp_update caller.
6806 (GOMP_target_update_41): New function.
6807 (gomp_exit_data, GOMP_target_enter_exit_data,
6808 gomp_target_task_fn, omp_target_alloc, omp_target_free,
6809 omp_target_is_present, omp_target_memcpy,
6810 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
6811 omp_target_associate_ptr, omp_target_disassociate_ptr,
6812 gomp_load_plugin_for_device): New functions.
6813 * task.c: Include gomp-constants.h. Include taskloop.c
6814 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
6815 (gomp_task_handle_depend): New function.
6816 (GOMP_task): Use it. Add priority argument. Use
6817 gomp-constant.h constants instead of hardcoded numbers.
6818 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
6819 (gomp_create_target_task): New function.
6820 (verify_children_queue, verify_taskgroup_queue,
6821 verify_task_queue): New functions.
6822 (gomp_task_run_pre): Call verify_*_queue functions.
6823 If an upcoming tied task is about to leave the sibling or
6824 taskgroup queues in an invalid state, adjust appropriately.
6825 Remove taskgroup argument. Add comments.
6826 (gomp_task_run_post_handle_dependers): Add comments.
6827 (gomp_task_run_post_remove_parent): Likewise.
6828 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
6829 (GOMP_taskwait): Likewise. Add comments.
6830 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
6831 problem such that the first non parent_depends_on task does not
6832 end up at the end of the children queue.
6833 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
6834 GOMP_TASK_UNDEFERRED.
6835 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
6836 * taskloop.c: New file.
6837 * testsuite/lib/libgomp.exp
6838 (check_effective_target_offload_device_nonshared_as): New proc.
6839 * testsuite/libgomp.c/affinity-2.c: New test.
6840 * testsuite/libgomp.c/doacross-1.c: New test.
6841 * testsuite/libgomp.c/doacross-2.c: New test.
6842 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
6843 Add map clause to target.
6844 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
6845 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
6846 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
6847 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
6848 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
6849 Likewise.
6850 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
6851 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
6852 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
6853 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
6854 not defined. Use those where needed.
6855 * testsuite/libgomp.c/for-4.c: New test.
6856 * testsuite/libgomp.c/for-5.c: New test.
6857 * testsuite/libgomp.c/for-6.c: New test.
6858 * testsuite/libgomp.c/linear-1.c: New test.
6859 * testsuite/libgomp.c/ordered-4.c: New test.
6860 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
6861 only allowed on the loop iterator.
6862 * testsuite/libgomp.c/pr66199-3.c: New test.
6863 * testsuite/libgomp.c/pr66199-4.c: New test.
6864 * testsuite/libgomp.c/reduction-7.c: New test.
6865 * testsuite/libgomp.c/reduction-8.c: New test.
6866 * testsuite/libgomp.c/reduction-9.c: New test.
6867 * testsuite/libgomp.c/reduction-10.c: New test.
6868 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
6869 map(tofrom:s).
6870 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
6871 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
6872 * testsuite/libgomp.c/target-11.c: New test.
6873 * testsuite/libgomp.c/target-12.c: New test.
6874 * testsuite/libgomp.c/target-13.c: New test.
6875 * testsuite/libgomp.c/target-14.c: New test.
6876 * testsuite/libgomp.c/target-15.c: New test.
6877 * testsuite/libgomp.c/target-16.c: New test.
6878 * testsuite/libgomp.c/target-17.c: New test.
6879 * testsuite/libgomp.c/target-18.c: New test.
6880 * testsuite/libgomp.c/target-19.c: New test.
6881 * testsuite/libgomp.c/target-20.c: New test.
6882 * testsuite/libgomp.c/target-21.c: New test.
6883 * testsuite/libgomp.c/target-22.c: New test.
6884 * testsuite/libgomp.c/target-23.c: New test.
6885 * testsuite/libgomp.c/target-24.c: New test.
6886 * testsuite/libgomp.c/target-25.c: New test.
6887 * testsuite/libgomp.c/target-26.c: New test.
6888 * testsuite/libgomp.c/target-27.c: New test.
6889 * testsuite/libgomp.c/taskloop-1.c: New test.
6890 * testsuite/libgomp.c/taskloop-2.c: New test.
6891 * testsuite/libgomp.c/taskloop-3.c: New test.
6892 * testsuite/libgomp.c/taskloop-4.c: New test.
6893 * testsuite/libgomp.c++/ctor-13.C: New test.
6894 * testsuite/libgomp.c++/doacross-1.C: New test.
6895 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
6896 Replace offload_device with offload_device_nonshared_as.
6897 * testsuite/libgomp.c++/for-12.C: New test.
6898 * testsuite/libgomp.c++/for-13.C: New test.
6899 * testsuite/libgomp.c++/for-14.C: New test.
6900 * testsuite/libgomp.c++/linear-1.C: New test.
6901 * testsuite/libgomp.c++/member-1.C: New test.
6902 * testsuite/libgomp.c++/member-2.C: New test.
6903 * testsuite/libgomp.c++/member-3.C: New test.
6904 * testsuite/libgomp.c++/member-4.C: New test.
6905 * testsuite/libgomp.c++/member-5.C: New test.
6906 * testsuite/libgomp.c++/ordered-1.C: New test.
6907 * testsuite/libgomp.c++/reduction-5.C: New test.
6908 * testsuite/libgomp.c++/reduction-6.C: New test.
6909 * testsuite/libgomp.c++/reduction-7.C: New test.
6910 * testsuite/libgomp.c++/reduction-8.C: New test.
6911 * testsuite/libgomp.c++/reduction-9.C: New test.
6912 * testsuite/libgomp.c++/reduction-10.C: New test.
6913 * testsuite/libgomp.c++/reference-1.C: New test.
6914 * testsuite/libgomp.c++/simd14.C: New test.
6915 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
6916 * testsuite/libgomp.c++/target-5.C: New test.
6917 * testsuite/libgomp.c++/target-6.C: New test.
6918 * testsuite/libgomp.c++/target-7.C: New test.
6919 * testsuite/libgomp.c++/target-8.C: New test.
6920 * testsuite/libgomp.c++/target-9.C: New test.
6921 * testsuite/libgomp.c++/target-10.C: New test.
6922 * testsuite/libgomp.c++/target-11.C: New test.
6923 * testsuite/libgomp.c++/target-12.C: New test.
6924 * testsuite/libgomp.c++/taskloop-1.C: New test.
6925 * testsuite/libgomp.c++/taskloop-2.C: New test.
6926 * testsuite/libgomp.c++/taskloop-3.C: New test.
6927 * testsuite/libgomp.c++/taskloop-4.C: New test.
6928 * testsuite/libgomp.c++/taskloop-5.C: New test.
6929 * testsuite/libgomp.c++/taskloop-6.C: New test.
6930 * testsuite/libgomp.c++/taskloop-7.C: New test.
6931 * testsuite/libgomp.c++/taskloop-8.C: New test.
6932 * testsuite/libgomp.c++/taskloop-9.C: New test.
6933 * testsuite/libgomp.fortran/affinity1.f90: New test.
6934 * testsuite/libgomp.fortran/affinity2.f90: New test.
6935
6936 2015-10-13 Tom de Vries <tom@codesourcery.com>
6937
6938 PR tree-optimization/67476
6939 * testsuite/libgomp.c/autopar-3.c: New test.
6940 * testsuite/libgomp.c/autopar-4.c: New test.
6941 * testsuite/libgomp.c/autopar-5.c: New test.
6942 * testsuite/libgomp.c/autopar-6.c: New test.
6943 * testsuite/libgomp.c/autopar-7.c: New test.
6944 * testsuite/libgomp.c/autopar-8.c: New test.
6945
6946 2015-10-12 James Norris <jnorris@codesourcery.com>
6947
6948 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
6949 initializer.
6950
6951 2015-10-09 David Malcolm <dmalcolm@redhat.com>
6952
6953 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
6954 using load_gcc_lib.
6955
6956 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
6957
6958 * oacc-ptx.h: Remove file, moving its content into...
6959 * config/nvptx/fortran.c: ... here...
6960 * config/nvptx/oacc-init.c: ..., here...
6961 * config/nvptx/oacc-parallel.c: ..., and here.
6962 * config/nvptx/openacc.f90: New file.
6963 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
6964 (link_ptx): Don't link in predefined bits of PTX code.
6965
6966 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
6967 Bernd Schmidt <bernds@codesourcery.com>
6968
6969 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
6970 (struct targ_ptx_obj): New.
6971 (nvptx_tdata): Move earlier, change data format.
6972 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
6973 objects.
6974 (GOMP_OFFLOAD_load_image): Adjust.
6975
6976 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
6977
6978 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
6979 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6980 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6981 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6982 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6983 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6984 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6985 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6986 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6987 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6988 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6989 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6990 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6991 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6992 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6993 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6994 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6995 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6996 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6997 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6998 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6999 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7000 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7001 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7002 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7003 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7004 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7005 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7006 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7007 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7008 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7009 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7010 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7011 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7012 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7013 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7014 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7015 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7016 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7017 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7018 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7019 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7020 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7021 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7022 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7023 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7024 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7025 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7026 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7027 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7028 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7029 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7030 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7031 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7032 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7033 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7034 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7035 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7036 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7037 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7038 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7039 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7040 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7041
7042 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7043
7044 * oacc-init.c (acc_on_device): Force optimization level.
7045
7046 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7047
7048 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
7049 (cuda_errlist): Delete.
7050 (cuda_error): Reimplement.
7051
7052 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
7053
7054 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
7055 array.
7056 * libgomp.map (GOACC_parallel_keyed): New.
7057 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
7058 all callers.
7059 (GOACC_parallel_keyed): New interface. Lose geometry arguments
7060 and take keyed varargs list. Adjust call to exec_func.
7061 (GOACC_parallel): Force host fallback.
7062 * libgomp_g.h (GOACC_parallel): Remove.
7063 (GOACC_parallel_keyed): Declare.
7064 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
7065 (struct targ_gn_descriptor): Replace name field with launch field.
7066 (nvptx_exec): Lose separate geometry args, take array. Process
7067 dynamic dimensions and adjust.
7068 (struct nvptx_tdata): Replace fn_names field with fn_descs.
7069 (GOMP_OFFLOAD_load_image): Adjust for change in function table
7070 data.
7071 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
7072 passing.
7073 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
7074 passing.
7075
7076 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
7077
7078 PR libgomp/67141
7079 * oacc-int.h (goacc_host_init): Add declaration.
7080 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
7081 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
7082
7083 2015-09-08 Aditya Kumar <hiraditya@msn.com>
7084 Sebastian Pop <s.pop@samsung.com>
7085
7086 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
7087 match o/p.
7088 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
7089 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
7090 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
7091 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
7092 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
7093
7094 2015-09-03 Jakub Jelinek <jakub@redhat.com>
7095
7096 * configure.tgt: Add missing ;; in between nvptx and rtems
7097 snippets.
7098
7099 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7100
7101 * config/posix/pool.h (gomp_adjust_thread_attr): New.
7102 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
7103 (gomp_thread_pool_reservoir): Add priority member.
7104 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
7105 priority.
7106 (parse_thread_pools): Likewise.
7107 * team.c (gomp_team_start): Call configuration provided
7108 gomp_adjust_thread_attr(). Destroy thread attributes if
7109 necessary.
7110 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
7111
7112 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7113
7114 * config/posix/pool.h: New.
7115 * config/rtems/pool.h: Likewise.
7116 * config/rtems/proc.c: Likewise.
7117 * libgomp.h (gomp_thread_destructor): Declare.
7118 * team.c: Include configuration provided "pool.h".
7119 (gomp_get_thread_pool): Define in configuration.
7120 (gomp_team_end): Call configuration defined
7121 gomp_release_thread_pool().
7122
7123 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7124
7125 * config/rtems/bar.c: New.
7126 * config/rtems/bar.h: Likewise.
7127 * config/rtems/mutex.c: Likewise.
7128 * config/rtems/mutex.h: Likewise.
7129 * config/rtems/sem.c: Likewise.
7130 * config/rtems/sem.h: Likewise.
7131 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
7132 <sys/lock.h> header file.
7133 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
7134 supported by Newlib.
7135 * configure: Regenerate.
7136
7137 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7138
7139 * team.c (gomp_new_thread_pool): Delete and move content to ...
7140 (gomp_get_thread_pool): ... new function. Allocate and
7141 initialize thread pool on demand.
7142 (get_last_team): Use gomp_get_thread_pool().
7143 (gomp_team_start): Delete thread pool initialization.
7144
7145 2015-09-03 Tom de Vries <tom@codesourcery.com>
7146
7147 PR tree-optimization/65637
7148 * testsuite/libgomp.c/autopar-2.c: New test.
7149
7150 2015-08-29 Tom de Vries <tom@codesourcery.com>
7151
7152 PR tree-optimization/46193
7153 * testsuite/libgomp.c/pr46193.c: New test.
7154
7155 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
7156
7157 libgomp/
7158 * libgomp.map: Add 4.0.2 version.
7159 * target.c (offload_image_descr): Add version field.
7160 (gomp_load_image_to_device): Add version argument. Adjust plugin
7161 call. Improve load mismatch diagnostic.
7162 (gomp_unload_image_from_device): Add version argument. Adjust plugin
7163 call.
7164 (GOMP_offload_regster): Make stub function, move bulk to ...
7165 (GOMP_offload_register_ver): ... here. Process version argument.
7166 (GOMP_offload_unregister): Make stub function, move bulk to ...
7167 (GOMP_offload_unregister_ver): ... here. Process version argument.
7168 (gomp_init_device): Process version field.
7169 (gomp_unload_device): Process version field.
7170 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
7171 macros. Check plugin version.
7172 * libgomp.h (gomp_device_descr): Add version function field. Adjust
7173 loader and unloader types.
7174 * oacc-host.c: Include gomp-constants.h.
7175 (host_version): New.
7176 (host_load_image, host_unload_image): Adjust.
7177 (host_dispatch): Add host_version.
7178 * plugin/plugin-nvptx.c: Include gomp-constants.h.
7179 (GOMP_OFFLOAD_version): New.
7180 (GOMP_OFFLOAD_load_image): Add version arg and check it.
7181 (GOMP_OFFLOAD_unload_image): Likewise.
7182 * plugin/plugin-host.c: Include gomp-constants.h.
7183 (GOMP_OFFLOAD_version): New.
7184 (GOMP_OFFLOAD_load_image): Add version arg.
7185 (GOMP_OFFLOAD_unload_image): Likewise.
7186
7187 2015-08-24 Tom de Vries <tom@codesourcery.com>
7188
7189 PR tree-optimization/65468
7190 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
7191
7192 2015-08-24 Tom de Vries <tom@codesourcery.com>
7193
7194 PR tree-optimization/65468
7195 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
7196
7197 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
7198
7199 PR libgomp/66761
7200 PR libgomp/67303
7201 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
7202 (gomp_iter_guided_next): Idem.
7203 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
7204 (gomp_iter_ull_guided_next): Idem.
7205 * config/linux/wait.h (do_spin): Idem.
7206
7207 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7208
7209 * libgomp-plugin.h (enum offload_target_type): Remove
7210 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
7211 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
7212 * openacc.h (enum acc_device_t): Likewise.
7213 * openacc_lib.h: Likewise.
7214 * oacc-init.c (name_of_acc_device_t): Don't handle it.
7215 (acc_on_device): Just use __builtin_acc_on_device.
7216 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
7217 of acc_on_device builtin.
7218 * plugin/plugin-host.h: Remove file.
7219 * plugin/plugin-host.c: Likewise, but salvage some content into...
7220 * oacc-host.c: ... this file.
7221 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
7222 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
7223 * Makefile.in: Regenerate.
7224 * configure: Likewise.
7225 * testsuite/lib/libgomp.exp
7226 (check_effective_target_openacc_host_nonshm_selected): Remove.
7227 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
7228 ACC_DEVICE_TYPE=host_nonshm.
7229 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7230 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7231 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
7232 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7233 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7234 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7235
7236 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7237 Jakub Jelinek <jakub@redhat.com>
7238
7239 * config/nvptx/affinity.c: New file.
7240 * config/nvptx/alloc.c: Likewise.
7241 * config/nvptx/bar.c: Likewise.
7242 * config/nvptx/barrier.c: Likewise.
7243 * config/nvptx/critical.c: Likewise.
7244 * config/nvptx/env.c: Likewise.
7245 * config/nvptx/error.c: Likewise.
7246 * config/nvptx/fortran.c: Likewise.
7247 * config/nvptx/iter.c: Likewise.
7248 * config/nvptx/iter_ull.c: Likewise.
7249 * config/nvptx/libgomp-plugin.c: Likewise.
7250 * config/nvptx/lock.c: Likewise.
7251 * config/nvptx/loop.c: Likewise.
7252 * config/nvptx/loop_ull.c: Likewise.
7253 * config/nvptx/mutex.c: Likewise.
7254 * config/nvptx/oacc-async.c: Likewise.
7255 * config/nvptx/oacc-cuda.c: Likewise.
7256 * config/nvptx/oacc-host.c: Likewise.
7257 * config/nvptx/oacc-init.c: Likewise.
7258 * config/nvptx/oacc-mem.c: Likewise.
7259 * config/nvptx/oacc-parallel.c: Likewise.
7260 * config/nvptx/oacc-plugin.c: Likewise.
7261 * config/nvptx/omp-lock.h: Likewise.
7262 * config/nvptx/ordered.c: Likewise.
7263 * config/nvptx/parallel.c: Likewise.
7264 * config/nvptx/proc.c: Likewise.
7265 * config/nvptx/ptrlock.c: Likewise.
7266 * config/nvptx/sections.c: Likewise.
7267 * config/nvptx/sem.c: Likewise.
7268 * config/nvptx/single.c: Likewise.
7269 * config/nvptx/splay-tree.c: Likewise.
7270 * config/nvptx/target.c: Likewise.
7271 * config/nvptx/task.c: Likewise.
7272 * config/nvptx/team.c: Likewise.
7273 * config/nvptx/time.c: Likewise.
7274 * config/nvptx/work.c: Likewise.
7275 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
7276 * configure: Regenerate.
7277 * configure.tgt (config_path): Set to "nvptx" for target
7278 nvptx*-*-*.
7279
7280 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7281
7282 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
7283
7284 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
7285
7286 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
7287 (cuda_errlist): Constify.
7288 (errmsg): Move into ...
7289 (cuda_error): ... here. Make smaller.
7290 (_XSTR, _STR): Delete.
7291 (cuda_synames): Delete.
7292 (verify_device_library): Delete.
7293 (nvptx_init): Don't call it.
7294
7295 2015-07-28 Tom de Vries <tom@codesourcery.com>
7296
7297 * testsuite/libgomp.c/uns-outer-4.c: New test.
7298
7299 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
7300
7301 * testsuite/libgomp.c/pr66714.c: New test.
7302
7303 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
7304
7305 PR libgomp/66950
7306 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
7307 (fib_ref): New function.
7308 (fib): Correct corner cases in the recursion.
7309 (main): Replace the non-simd loop with fib_ref call.
7310 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
7311 subroutine.
7312 (fibonacci): Lower the parameter N to 30. Correct accordingly check
7313 for the last array element value. Replace the non-simd loop with
7314 fib_ref call. Remove redundant b_ref array. Remove the comparison
7315 of the last array element with according Fibonacci sequence element.
7316 (fib): Correct corner cases in the recursion.
7317
7318 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
7319
7320 * target.c (gomp_offload_image_to_device): Rename to ...
7321 (gomp_load_image_to_device): ... here.
7322 (GOMP_offload_register): Adjust call.
7323 (gomp_init_device): Likewise.
7324 (gomp_unload_image_from_device): New. Broken out of ...
7325 (GOMP_offload_unregister): ... here. Call it.
7326 (gomp_unload_device): New.
7327 * libgomp.h (gomp_unload_device): Declare.
7328 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
7329 mem maps.
7330
7331 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
7332
7333 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
7334 wait=-specific if.
7335 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
7336 !=0 condition.
7337 (goacc_waits): Move !num_waits handling to ...
7338 (GOACC_wait): ... here, the only caller that might have zero waits.
7339
7340 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
7341 (struct ptx_image_data): Move earlier, add fns field.
7342 (struct ptx_device): Add images and image_lock fields.
7343 (ptx_images, ptx_image_lock): Delete.
7344 (nvptx_open_device): Initialize images and image_lock fields.
7345 (nvptx_close_device): Destroy image_lock.
7346 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
7347 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
7348 fields.
7349
7350 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7351
7352 * target.c (GOMP_offload_register): Use int for device type arg.
7353 (GOMP_offload_unregister): Likewise.
7354
7355 * target.c (struct_offload_image_descr): Constify host_table.
7356 (gomp_offload_image_to_device): Likewise.
7357 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
7358
7359 * libgomp.h (gomp_device_descr): Constify target data arguments.
7360 * target.c (struct offload_image_descr): Constify target_data.
7361 (gomp_offload_image_to_device): Likewise.
7362 (GOMP_offload_register): Likewise.
7363 (GOMP_offload_unregister): Likewise.
7364 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
7365 GOMP_OFFLOAD_unload_image): Constify target data.
7366 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
7367 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
7368
7369 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
7370
7371 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
7372 Workaround driver library const error.
7373 (struct nvptx_tdata, nvptx_tdata_t): New.
7374 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
7375 type.
7376
7377 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
7378
7379 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
7380 of EPS parameter from integer to real.
7381 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
7382 type of EPS parameter from integer to real.
7383
7384 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
7385
7386 * team.c (get_last_team): New.
7387 (gomp_new_team): Recycle last non-nested team if possible.
7388 (gomp_team_end): Move team work share list free lock destruction
7389 to ...
7390 (free_team): ... here.
7391
7392 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
7393
7394 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
7395 and ref from int to double. Replaced their comparison with
7396 an inequality of their difference and EPS.
7397 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
7398 comparison of pri and a reference number with an inequality of their
7399 difference and EPS.
7400 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
7401 the comparison of sum and sum_ref with an inequality of their
7402 difference and EPS.
7403 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
7404 the comparison of pri and a reference number with an inequality of
7405 their difference and EPS.
7406
7407 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
7408
7409 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
7410 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
7411 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
7412 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
7413 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
7414 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
7415 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
7416 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
7417 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
7418 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
7419 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
7420 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
7421 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
7422 variables.
7423 (vec_mult): Likewise. Add #pragma omp taskwait.
7424 (main): Adjust caller.
7425 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
7426 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
7427 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
7428 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
7429 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
7430 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
7431 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
7432 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
7433 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
7434 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
7435 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
7436 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
7437 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
7438 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
7439 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
7440 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
7441 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
7442 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
7443 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
7444 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
7445 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
7446 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
7447 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
7448 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
7449 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
7450 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
7451 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
7452 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
7453 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
7454 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
7455 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
7456 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
7457 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
7458 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
7459 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
7460 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
7461 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
7462 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
7463 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
7464 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
7465 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
7466 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
7467 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
7468 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
7469 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
7470 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
7471 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
7472 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
7473 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
7474 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
7475 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
7476 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
7477 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
7478 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
7479 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
7480 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
7481 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
7482 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
7483 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
7484 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
7485 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
7486 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
7487 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
7488 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
7489 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
7490 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
7491 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
7492 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
7493 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
7494 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
7495 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
7496 (vec_mult): Add !$omp taskwait.
7497 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
7498 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
7499 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
7500 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
7501 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
7502 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
7503 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
7504 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
7505 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
7506 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
7507 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
7508 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
7509 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
7510 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
7511 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
7512 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
7513 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
7514 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
7515 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
7516 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
7517 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
7518 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
7519 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
7520 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
7521 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
7522 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
7523 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
7524 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
7525 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
7526 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
7527 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
7528 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
7529 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
7530 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
7531 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
7532 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
7533 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
7534 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
7535 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
7536 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
7537 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
7538 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
7539 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
7540 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
7541 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
7542 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
7543 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
7544 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
7545 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
7546 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
7547 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
7548 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
7549 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
7550 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
7551 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
7552 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
7553 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
7554 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
7555 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
7556 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
7557 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
7558 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
7559 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
7560 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
7561 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
7562 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
7563 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
7564
7565 2015-07-10 Tom de Vries <tom@codesourcery.com>
7566
7567 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
7568 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
7569
7570 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
7571
7572 PR libgomp/65099
7573 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
7574 in a 64-bit configuration.
7575 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
7576 offloading testing if no such device is available.
7577 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7578 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7579
7580 2015-07-08 Tom de Vries <tom@codesourcery.com>
7581
7582 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
7583 second call to f.
7584 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7585
7586 2015-07-07 Tom de Vries <tom@codesourcery.com>
7587
7588 PR tree-optimization/66642
7589 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
7590 iteration count case.
7591 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
7592 function, factor out of ...
7593 (main): ... here. Test low iteration count case.
7594
7595 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
7596
7597 * libgomp.h (gomp_thread_pool): Comment last_team field.
7598
7599 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
7600
7601 * testsuite/libgomp.c++/pr66702-1.C: Require
7602 vect_simd_clones effective target.
7603 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
7604
7605 2015-06-30 Tom de Vries <tom@codesourcery.com>
7606
7607 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7608 already set. Use DEFAULT_CFLAGS in dg-runtest.
7609 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
7610 "-O2".
7611
7612 2015-06-30 Tom de Vries <tom@codesourcery.com>
7613
7614 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7615 already set. Use DEFAULT_CFLAGS in dg-runtest.
7616 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
7617 * testsuite/libgomp.c++/pr64824.C: Same.
7618 * testsuite/libgomp.c++/pr64868.C: Same.
7619 * testsuite/libgomp.c++/pr66199-1.C: Same.
7620 * testsuite/libgomp.c++/pr66199-2.C: Same.
7621 * testsuite/libgomp.c++/target-2.C: Same.
7622 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
7623 -std=<standard> option.
7624 * testsuite/libgomp.c++/udr-11.C: Same.
7625 * testsuite/libgomp.c++/udr-12.C: Same.
7626 * testsuite/libgomp.c++/udr-13.C: Same.
7627 * testsuite/libgomp.c++/udr-14.C: Same.
7628 * testsuite/libgomp.c++/udr-15.C: Same.
7629 * testsuite/libgomp.c++/udr-16.C: Same.
7630 * testsuite/libgomp.c++/udr-17.C: Same.
7631 * testsuite/libgomp.c++/udr-18.C: Same.
7632 * testsuite/libgomp.c++/udr-19.C: Same.
7633 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
7634 * testsuite/libgomp.c++/simd-1.C: Same.
7635 * testsuite/libgomp.c++/simd-2.C: Same.
7636 * testsuite/libgomp.c++/simd-3.C: Same.
7637 * testsuite/libgomp.c++/simd-4.C: Same.
7638 * testsuite/libgomp.c++/simd-5.C: Same.
7639 * testsuite/libgomp.c++/simd-6.C: Same.
7640 * testsuite/libgomp.c++/simd-7.C: Same.
7641 * testsuite/libgomp.c++/simd-8.C: Same.
7642 * testsuite/libgomp.c++/simd-9.C: Same.
7643 * testsuite/libgomp.c++/simd10.C: Same.
7644 * testsuite/libgomp.c++/simd11.C: Same.
7645 * testsuite/libgomp.c++/simd12.C: Same.
7646 * testsuite/libgomp.c++/simd13.C: Same.
7647
7648 2015-06-30 Jakub Jelinek <jakub@redhat.com>
7649
7650 PR middle-end/66702
7651 * testsuite/libgomp.c++/pr66702-1.C: New test.
7652 * testsuite/libgomp.c++/pr66702-2.C: New test.
7653
7654 2015-06-30 Tom de Vries <tom@codesourcery.com>
7655
7656 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
7657 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
7658 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
7659 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
7660
7661 2015-06-30 Tom de Vries <tom@codesourcery.com>
7662
7663 PR tree-optimization/66652
7664 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
7665 using restrict pointers.
7666 (main): Add arguments to calls to f.
7667 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7668
7669 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
7670
7671 * configure.ac: Fix check for header <sys/sysctl.h>.
7672 * configure: Regenerate.
7673 * config.h.in: Likewise.
7674
7675 2015-06-23 Tom de Vries <tom@codesourcery.com>
7676
7677 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
7678 abort.
7679 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
7680
7681 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
7682
7683 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
7684 acc_device_nvidia.
7685
7686 PR libgomp/66518
7687 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
7688 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7689
7690 2015-06-15 Tom de Vries <tom@codesourcery.com>
7691
7692 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
7693 dg-additional-options for any remaining options.
7694 * testsuite/libgomp.c/atomic-2.c: Same.
7695 * testsuite/libgomp.c/atomic-4.c: Same.
7696 * testsuite/libgomp.c/atomic-5.c: Same.
7697 * testsuite/libgomp.c/atomic-6.c: Same.
7698 * testsuite/libgomp.c/autopar-1.c: Same.
7699 * testsuite/libgomp.c/copyin-1.c: Same.
7700 * testsuite/libgomp.c/copyin-2.c: Same.
7701 * testsuite/libgomp.c/copyin-3.c: Same.
7702 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
7703 * testsuite/libgomp.c/nestedfn-5.c: Same.
7704 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
7705 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
7706 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
7707 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7708 * testsuite/libgomp.c/pr32362-1.c: Same.
7709 * testsuite/libgomp.c/pr32362-2.c: Same.
7710 * testsuite/libgomp.c/pr32362-3.c: Same.
7711 * testsuite/libgomp.c/pr39591-1.c: Same.
7712 * testsuite/libgomp.c/pr39591-2.c: Same.
7713 * testsuite/libgomp.c/pr39591-3.c: Same.
7714 * testsuite/libgomp.c/pr58392.c: Same.
7715 * testsuite/libgomp.c/pr58756.c: Same.
7716 * testsuite/libgomp.c/simd-1.c: Same.
7717 * testsuite/libgomp.c/simd-10.c: Same.
7718 * testsuite/libgomp.c/simd-11.c: Same.
7719 * testsuite/libgomp.c/simd-12.c: Same.
7720 * testsuite/libgomp.c/simd-13.c: Same.
7721 * testsuite/libgomp.c/simd-14.c: Same.
7722 * testsuite/libgomp.c/simd-15.c: Same.
7723 * testsuite/libgomp.c/simd-2.c: Same.
7724 * testsuite/libgomp.c/simd-3.c: Same.
7725 * testsuite/libgomp.c/simd-4.c: Same.
7726 * testsuite/libgomp.c/simd-5.c: Same.
7727 * testsuite/libgomp.c/simd-6.c: Same.
7728 * testsuite/libgomp.c/simd-7.c: Same.
7729 * testsuite/libgomp.c/simd-8.c: Same.
7730 * testsuite/libgomp.c/simd-9.c: Same.
7731
7732 2015-06-15 Tom de Vries <tom@codesourcery.com>
7733
7734 * testsuite/libgomp.c/pr35625.c: Fix typo.
7735
7736 2015-06-15 Tom de Vries <tom@codesourcery.com>
7737
7738 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
7739 in dg-options.
7740 * testsuite/libgomp.c/atomic-3.c: Same.
7741 * testsuite/libgomp.c/debug-1.c: Same.
7742 * testsuite/libgomp.c/nqueens-1.c: Same.
7743 * testsuite/libgomp.c/pr26171.c: Same.
7744 * testsuite/libgomp.c/pr48591.c: Same.
7745 * testsuite/libgomp.c/pr64824.c: Same.
7746 * testsuite/libgomp.c/pr64868.c: Same.
7747 * testsuite/libgomp.c/pr66133.c: Same.
7748 * testsuite/libgomp.c/pr66199-1.c: Same.
7749 * testsuite/libgomp.c/pr66199-2.c: Same.
7750 * testsuite/libgomp.c/target-8.c: Same.
7751
7752 2015-06-15 Tom de Vries <tom@codesourcery.com>
7753
7754 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
7755 -std={gnu99,c99}.
7756 * testsuite/libgomp.c/for-1.c: Same.
7757 * testsuite/libgomp.c/for-2.c: Same.
7758 * testsuite/libgomp.c/for-3.c: Same.
7759 * testsuite/libgomp.c/pr35625.c: Same.
7760 * testsuite/libgomp.c/pr39154.c: Same.
7761 * testsuite/libgomp.c/simd-16.c: Same.
7762 * testsuite/libgomp.c/simd-17.c: Same.
7763
7764 2015-06-13 Tom de Vries <tom@codesourcery.com>
7765
7766 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
7767
7768 2015-06-13 Tom de Vries <tom@codesourcery.com>
7769
7770 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
7771 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7772 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
7773 (N): Define.
7774 (main): Use N instead of hardcoded constants.
7775
7776 2015-06-05 Tom de Vries <tom@codesourcery.com>
7777
7778 merge from gomp4 branch:
7779 2015-05-28 Tom de Vries <tom@codesourcery.com>
7780
7781 PR tree-optimization/65443
7782 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
7783 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
7784 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
7785
7786 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7787
7788 * testsuite/libgomp.graphite/bounds.c: Adjust for
7789 cleanup-tree-dump removal.
7790 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
7791 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7792 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7793 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7794 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7795 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7796 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7797 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7798 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7799 * testsuite/libgomp.graphite/pr41118.c: Likewise.
7800
7801 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
7802
7803 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
7804 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
7805 (futex_wake) [!__x86_64__]: Ditto.
7806
7807 2015-05-28 Julian Brown <julian@codesourcery.com>
7808
7809 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
7810 function comment. Only call gomp_fatal if new argument is true.
7811 (acc_dev_num_out_of_range): New function.
7812 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
7813 acc_dev_num_out_of_range as appropriate.
7814 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7815 (acc_get_device_num, acc_set_device_num): Update calls to
7816 resolve_device.
7817 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
7818 output.
7819
7820 2015-05-28 Julian Brown <julian@codesourcery.com>
7821
7822 PR libgomp/65742
7823 * oacc-init.c (plugin/plugin-host.h): Include.
7824 (acc_on_device): Check whether we're in an offloaded region for
7825 host_nonshm
7826 plugin. Don't use __builtin_acc_on_device.
7827 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
7828 nonshm_exec flag in thread-local data.
7829 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
7830 data for host_nonshm plugin.
7831 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
7832 for host_nonshm plugin.
7833 * plugin/plugin-host.h: New.
7834
7835 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7836
7837 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
7838
7839 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7840
7841 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
7842 Declare as int.
7843 (FUTEX_PRIVATE_FLAG): Remove L suffix.
7844 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
7845 Declare as int.
7846
7847 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7848
7849 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
7850
7851 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
7852
7853 * target.c (gomp_map_pointer): New function abstracting out
7854 GOMP_MAP_POINTER handling.
7855 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
7856 gomp_map_pointer().
7857
7858 2015-05-19 Jakub Jelinek <jakub@redhat.com>
7859
7860 PR middle-end/66199
7861 * testsuite/libgomp.c/pr66199-1.c: New test.
7862 * testsuite/libgomp.c/pr66199-2.c: New test.
7863 * testsuite/libgomp.c++/pr66199-1.C: New test.
7864 * testsuite/libgomp.c++/pr66199-2.C: New test.
7865 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
7866 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
7867
7868 2015-05-19 Julian Brown <julian@codesourcery.com>
7869
7870 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
7871 on cuInit failure.
7872
7873 2015-05-13 Jakub Jelinek <jakub@redhat.com>
7874
7875 PR middle-end/66133
7876 * testsuite/libgomp.c/pr66133.c: New test.
7877
7878 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
7879
7880 * Makefile.in: Regenerated with automake-1.11.6.
7881 * aclocal.m4: Likewise.
7882 * config.h.in: Likewise.
7883 * configure: Likewise.
7884 * testsuite/Makefile.in: Likewise.
7885
7886 2015-05-08 Jason Merrill <jason@redhat.com>
7887
7888 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
7889 _Complex.
7890
7891 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
7892
7893 2015-05-06 Julian Brown <julian@codesourcery.com>
7894
7895 * oacc-init.c (acc_device_lock): Add explanatory comment.
7896 (resolve_device): Add comment about locking requirement.
7897 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
7898 gomp_init_device and gomp_fini_device calls.
7899 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7900 (acc_get_device_num, acc_set_device_num): Add locking around
7901 resolve_device and gomp_init_device calls.
7902
7903 2015-05-06 Julian Brown <julian@codesourcery.com>
7904
7905 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
7906 goacc_thread_lock on error paths.
7907 * oacc-mem.c (lookup_host): Remove locking from function. Note
7908 locking requirement for caller in function comment.
7909 (lookup_dev): Likewise.
7910 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
7911 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
7912 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7913 Add locking.
7914
7915 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
7916
7917 PR testsuite/65205
7918 PR libgomp/65993
7919 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
7920 don't expect "0x" prefix for "%p" format specifier, don't expect
7921 "(nil)" for NULL pointer.
7922 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7923 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7924 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7925 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7926 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7927 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7928 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7929 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7930 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7931 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7932 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7933 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7934 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7935 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7936 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7937 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7938 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7939 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7940 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7941 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7942 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7943 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7944 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7945 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7946 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7947 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7948 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7949 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7950 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
7951 accurately specify what we're looking for.
7952 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7953 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7954 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7955 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7956 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7957
7958 2015-04-30 James Norris <jnorris@codesourcery.com>
7959
7960 PR testsuite/65205
7961 * testsuite/lib/libgomp.exp
7962 (check_effective_target_openacc_host_selected)
7963 (check_effective_target_openacc_host_nonshm_selected): New
7964 procedures.
7965 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
7966 dg-shouldfail.
7967 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7968 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7969 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7970 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7971 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7972 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7973 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7974 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7975 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7976 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7977 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7978 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7979 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7980 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7981 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7982 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7983 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7984 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7985 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7986 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7987 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7988 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7989 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7990 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7991 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7992 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7993 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7994 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7995 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7996 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7997 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7998 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7999 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8000 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8001 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8002 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8003 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8004 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8005 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8006 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8007 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8008 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8009 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8010
8011 2015-04-08 Julian Brown <julian@codesourcery.com>
8012
8013 * libgomp.h (target_mem_desc: Remove mem_map field.
8014 (acc_dispatch_t): Remove open_device_func, close_device_func,
8015 get_device_num_func, set_device_num_func, target_data members.
8016 Change create_thread_data_func argument to device number instead of
8017 generic pointer.
8018 * oacc-async.c (assert.h): Include.
8019 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
8020 (acc_wait_all, acc_wait_all_async): Use current host thread's
8021 active device, not base_dev.
8022 * oacc-cuda.c (acc_get_current_cuda_device)
8023 (acc_get_current_cuda_context, acc_get_cuda_stream)
8024 (acc_set_cuda_stream): Likewise.
8025 * oacc-host.c (host_dispatch): Don't set open_device_func,
8026 close_device_func, get_device_num_func or set_device_num_func.
8027 * oacc-init.c (base_dev, init_key): Remove.
8028 (cached_base_dev): New.
8029 (name_of_acc_device_t): New.
8030 (acc_init_1): Initialise default-numbered device, not zeroth.
8031 (acc_shutdown_1): Close all devices of a given type.
8032 (goacc_destroy_thread): Don't use base_dev.
8033 (lazy_open, lazy_init, lazy_init_and_open): Remove.
8034 (goacc_attach_host_thread_to_device): New.
8035 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
8036 (acc_get_num_devices): Don't use base_dev.
8037 (acc_set_device_type): Reimplement.
8038 (acc_get_device_type): Don't use base_dev.
8039 (acc_get_device_num): Tweak logic.
8040 (acc_set_device_num): Likewise.
8041 (acc_on_device): Use acc_get_device_type.
8042 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
8043 (goacc_lazy_initialize): Reimplement with acc_init and
8044 goacc_attach_host_thread_to_device.
8045 * oacc-int.h (goacc_thread): Add base_dev field.
8046 (base_dev): Remove extern declaration.
8047 (goacc_attach_host_thread_to_device): Add prototype.
8048 * oacc-mem.c (acc_malloc): Use current thread's device instead of
8049 base_dev.
8050 (acc_free): Likewise.
8051 (acc_memcpy_to_device): Likewise.
8052 (acc_memcpy_from_device): Likewise.
8053 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
8054 goacc_lazy_initialize (throughout).
8055 (GOACC_parallel): Use tgt_offset to locate target functions.
8056 * target.c (gomp_map_vars): Don't set tgt->mem_map.
8057 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
8058 (gomp_load_plugin_for_device): Remove open_device, close_device,
8059 get_device_num, set_device_num openacc hook initialisation. Don't set
8060 openacc.target_data.
8061 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
8062 (GOMP_OFFLOAD_openacc_close_device)
8063 (GOMP_OFFLOAD_openacc_get_device_num)
8064 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
8065 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
8066 to int.
8067 * plugin/plugin-nvptx.c (ptx_inited): Remove.
8068 (instantiated_devices, ptx_dev_lock): New.
8069 (struct ptx_image_data): New.
8070 (ptx_devices, ptx_images, ptx_image_lock): New.
8071 (fini_streams_for_device): Reorder cuStreamDestroy call.
8072 (nvptx_get_num_devices): Remove forward declaration.
8073 (nvptx_init): Change return type to bool.
8074 (nvptx_fini): Remove.
8075 (nvptx_attach_host_thread_to_device): New.
8076 (nvptx_open_device): Return struct ptx_device* instead of void*.
8077 (nvptx_close_device): Change argument type to struct ptx_device*,
8078 return type to void.
8079 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
8080 (kernel_target_data, kernel_host_table): Remove static globals.
8081 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
8082 (GOMP_OFFLOAD_init_device): Reimplement.
8083 (GOMP_OFFLOAD_fini_device): Likewise.
8084 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
8085 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
8086 (GOMP_OFFLOAD_host2dev): Use ORD argument.
8087 (GOMP_OFFLOAD_openacc_open_device)
8088 (GOMP_OFFLOAD_openacc_close_device)
8089 (GOMP_OFFLOAD_openacc_set_device_num)
8090 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
8091 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
8092 (device number).
8093
8094 testsuite/
8095 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
8096
8097 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
8098
8099 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
8100 * libgomp.h (struct gomp_memory_mapping): Remove.
8101 (struct target_mem_desc): Change type of mem_map from
8102 gomp_memory_mapping * to splay_tree_s *.
8103 (struct gomp_device_descr): Remove register_image_func, get_table_func.
8104 Add load_image_func, unload_image_func.
8105 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
8106 Remove offload_regions_registered.
8107 (gomp_init_tables): Remove.
8108 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8109 to splay_tree_s *.
8110 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
8111 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
8112 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
8113 offload_regions_registered.
8114 Initialize load_image_func, unload_image_func, mem_map.root.
8115 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
8116 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
8117 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
8118 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
8119 gomp_memory_mapping *. Use dev's lock and splay_tree.
8120 (lookup_dev): Use dev's lock.
8121 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
8122 (acc_is_present): Likewise.
8123 (acc_map_data): Likewise.
8124 (acc_unmap_data): Likewise. Use dev's lock.
8125 (present_create_copy): Likewise.
8126 (delete_copyout): Pass dev to lookup_host instead of mem_map.
8127 (update_dev_host): Likewise.
8128 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
8129 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
8130 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
8131 (GOMP_OFFLOAD_get_table): Remove
8132 (GOMP_OFFLOAD_load_image): New function.
8133 (GOMP_OFFLOAD_unload_image): New function.
8134 * target.c (register_lock): New mutex for offload image registration.
8135 (num_devices): Do not guard with PLUGIN_SUPPORT.
8136 (gomp_realloc_unlock): New static function.
8137 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
8138 before gomp_fatal.
8139 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
8140 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
8141 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
8142 mem_map's.
8143 (gomp_unmap_vars): Likewise.
8144 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
8145 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
8146 (gomp_offload_image_to_device): New static function.
8147 (GOMP_offload_register): Add mutex lock.
8148 Call gomp_offload_image_to_device for all initialized devices.
8149 Replace gomp_realloc with gomp_realloc_unlock.
8150 (GOMP_offload_unregister): New function.
8151 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
8152 get_table_func from the plugin with calls to init_device_func and
8153 gomp_offload_image_to_device.
8154 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8155 to splay_tree_s *.
8156 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
8157 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
8158 (GOMP_target_data): Do not call gomp_init_tables.
8159 (GOMP_target_update): Likewise. Remove argument from gomp_update.
8160 (gomp_load_plugin_for_device): Replace register_image and get_table
8161 with load_image and unload_image in DLSYM ().
8162 (gomp_register_images_for_device): Remove function.
8163 (gomp_target_init): Do not initialize current_device.mem_map.*,
8164 current_device.offload_regions_registered.
8165 Remove call to gomp_register_images_for_device.
8166 Do not free offload_images and num_offload_images.
8167
8168 2015-03-30 Jakub Jelinek <jakub@redhat.com>
8169
8170 PR fortran/65597
8171 * testsuite/libgomp.fortran/pr65597.f90: New test.
8172
8173 2015-03-27 Tom de Vries <tom@codesourcery.com>
8174
8175 PR testsuite/65594
8176 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
8177 (init, check): New function.
8178 (foo): Change return type to void.
8179 (main): Call init and check.
8180
8181 2015-03-27 Tom de Vries <tom@codesourcery.com>
8182
8183 PR testsuite/65594
8184 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
8185 (foo): Use M for non-inner loops to scale down test-case.
8186
8187 2015-03-25 Kai Tietz <ktietz@redhat.com>
8188
8189 PR libgomp/64972
8190 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
8191 (GOACC_data_start): Likewise.
8192 * target.c (gomp_map_vars): Likewise.
8193
8194 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
8195
8196 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
8197 hppa*-*-hpux*.
8198
8199 2015-03-19 Jakub Jelinek <jakub@redhat.com>
8200
8201 * testsuite/libgomp.c/target-10.c: New test.
8202 * testsuite/libgomp.c++/target-4.C: New test.
8203
8204 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
8205
8206 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
8207 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
8208
8209 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
8210
8211 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
8212 * configure.ac (*-*-rtems*): Assume Pthread is supported.
8213 (pthread.h): Check for this header file.
8214 * configure: Regenerate.
8215
8216 2015-02-25 Tom de Vries <tom@codesourcery.com>
8217
8218 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
8219 (check_reduction_op, check_reduction_macro, max, min):
8220 Declare.
8221 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
8222 function.
8223 (main): Use new functions.
8224
8225 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
8226
8227 * target.c (gomp_load_plugin_for_device): Use const char * instead of
8228 char * for variables holding dlerror return values.
8229 (DLSYM_OPT): Ditto.
8230
8231 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
8232
8233 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
8234
8235 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
8236 Cesar Philippidis <cesar@codesourcery.com>
8237
8238 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
8239 GOACC_ctaid, and GOACC_nctaid routines.
8240
8241 2015-02-11 Jakub Jelinek <jakub@redhat.com>
8242
8243 PR c/64824
8244 * testsuite/libgomp.c/atomic-18.c: New test.
8245 * testsuite/libgomp.c++/atomic-16.C: New test.
8246
8247 2015-02-04 Jakub Jelinek <jakub@redhat.com>
8248
8249 PR c/64824
8250 PR c/64868
8251 * testsuite/libgomp.c/pr64824.c: New test.
8252 * testsuite/libgomp.c/pr64868.c: New test.
8253 * testsuite/libgomp.c++/pr64824.C: New test.
8254 * testsuite/libgomp.c++/pr64868.C: New test.
8255
8256 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
8257
8258 PR libgomp/64635
8259 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
8260 Link with -lpthread.
8261 * config/aix/plugin-suffix.h: Delete.
8262
8263 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
8264
8265 PR libgomp/64635
8266 * configure.tgt (*-*-aix*): Use config_path "aix posix".
8267 (*-*-darwin*): Use config_path "bsd darwin posix".
8268 (*-*-hpux*): Use config_path "hpux posix".
8269 * target.c: Add include of plugin-suffix.h and use
8270 SONAME_SUFFIX macro.
8271 * config/aix/plugin-suffix.h: New file.
8272 * config/darwin/plugin-suffix.h: New file.
8273 * config/hpux/plugin-suffix.h: New file.
8274 * config/posix/plugin-suffix.h: New file.
8275
8276 2015-01-23 Jakub Jelinek <jakub@redhat.com>
8277
8278 PR middle-end/64734
8279 * libgomp.c/pr64734.c: New test.
8280
8281 2015-01-23 Tom de Vries <tom@codesourcery.com>
8282
8283 PR libgomp/64672
8284 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
8285
8286 2015-01-23 Tom de Vries <tom@codesourcery.com>
8287
8288 PR libgomp/64707
8289 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
8290 dg-options.
8291
8292 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
8293
8294 PR libgomp/64625
8295 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
8296 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
8297 formal parameter. Update all users.
8298 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
8299 Document unused formal parameter.
8300
8301 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
8302
8303 * oacc-parallel.c: Don't include <alloca.h>.
8304 (GOACC_parallel): Use gomp_alloca instead of alloca.
8305
8306 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
8307
8308 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
8309
8310 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
8311 James Norris <jnorris@codesourcery.com>
8312 Tom de Vries <tom@codesourcery.com>
8313 Julian Brown <julian@codesourcery.com>
8314 Cesar Philippidis <cesar@codesourcery.com>
8315 Nathan Sidwell <nathan@codesourcery.com>
8316 Tobias Burnus <burnus@net-b.de>
8317
8318 * Makefile.am (search_path): Add $(top_srcdir)/../include.
8319 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
8320 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
8321 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
8322 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
8323 Include $(top_srcdir)/plugin/Makefrag.am.
8324 (nodist_libsubinclude_HEADERS): Add openacc.h.
8325 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
8326 openacc.f90, openacc.mod, openacc_kinds.mod.
8327 (omp_lib.mod): Generalize into...
8328 (%.mod): ... this new rule.
8329 (openacc_kinds.mod, openacc.mod): New rules.
8330 * plugin/configfrag.ac: New file.
8331 * configure.ac: Move plugin/offloading support into it. Include
8332 it. Instantiate testsuite/libgomp-test-support.pt.exp.
8333 * plugin/Makefrag.am: New file.
8334 * testsuite/Makefile.am (OFFLOAD_TARGETS)
8335 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
8336 export.
8337 (libgomp-test-support.exp): New rule.
8338 (all-local): Depend on it.
8339 * Makefile.in: Regenerate.
8340 * testsuite/Makefile.in: Regenerate.
8341 * config.h.in: Likewise.
8342 * configure: Likewise.
8343 * configure.tgt: Harden shell syntax.
8344 * env.c: Include "oacc-int.h".
8345 (parse_acc_device_type): New function.
8346 (gomp_debug_var, goacc_device_type, goacc_device_num): New
8347 variables.
8348 (initialize_env): Initialize those. Call
8349 goacc_runtime_initialize.
8350 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
8351 (gomp_fatal): Call gomp_vfatal.
8352 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
8353 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
8354 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
8355 (splay_tree_node, splay_tree, splay_tree_key)
8356 (struct target_mem_desc, struct splay_tree_key_s)
8357 (struct gomp_memory_mapping, struct acc_dispatch_t)
8358 (struct gomp_device_descr, gomp_acc_insert_pointer)
8359 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
8360 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
8361 (gomp_free_memmap, gomp_fini_device): New declarations.
8362 (gomp_vdebug, gomp_debug): New macros.
8363 Include "splay-tree.h".
8364 * libgomp.map (OACC_2.0): New symbol version. Use for
8365 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
8366 acc_set_device_type_h_, acc_get_device_type,
8367 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
8368 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
8369 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
8370 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
8371 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
8372 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
8373 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
8374 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
8375 acc_copyin_array_h_, acc_present_or_copyin,
8376 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
8377 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
8378 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
8379 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
8380 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
8381 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
8382 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
8383 acc_update_device, acc_update_device_32_h_,
8384 acc_update_device_64_h_, acc_update_device_array_h_,
8385 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
8386 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
8387 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
8388 acc_is_present_64_h_, acc_is_present_array_h_,
8389 acc_memcpy_to_device, acc_memcpy_from_device,
8390 acc_get_current_cuda_device, acc_get_current_cuda_context,
8391 acc_get_cuda_stream, acc_set_cuda_stream.
8392 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
8393 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
8394 GOACC_update, GOACC_wait, GOACC_get_thread_num,
8395 GOACC_get_num_threads.
8396 (GOMP_PLUGIN_1.0): New symbol version. Use for
8397 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
8398 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
8399 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
8400 GOMP_PLUGIN_acc_thread.
8401 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
8402 environment variable.
8403 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
8404 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
8405 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
8406 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
8407 (splay_tree_remove): New declarations.
8408 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
8409 (splay_tree_remove, splay_tree_lookup): Move into...
8410 * splay-tree.c: ... this new file.
8411 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
8412 (splay_tree_node, splay_tree, splay_tree_key)
8413 (struct target_mem_desc, struct splay_tree_key_s)
8414 (struct gomp_device_descr): Don't declare.
8415 (num_devices_openmp): New variable.
8416 (gomp_get_num_devices ): Use it.
8417 (gomp_init_targets_once): New function.
8418 (gomp_get_num_devices ): Use it.
8419 (get_kind, gomp_copy_from_async, gomp_free_memmap)
8420 (gomp_fini_device, gomp_register_image_for_device): New functions.
8421 (gomp_map_vars): Add devaddrs parameter.
8422 (gomp_update): Add mm parameter.
8423 (gomp_init_device): Move most of it into...
8424 (gomp_init_tables): ... this new function.
8425 (gomp_register_images_for_device): Remove function.
8426 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
8427 Make them hidden instead of static.
8428 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
8429 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
8430 (GOMP_target_end_data, GOMP_target_update)
8431 (gomp_load_plugin_for_device, gomp_target_init): Update for
8432 OpenACC changes.
8433 * oacc-async.c: New file.
8434 * oacc-cuda.c: Likewise.
8435 * oacc-host.c: Likewise.
8436 * oacc-init.c: Likewise.
8437 * oacc-int.h: Likewise.
8438 * oacc-mem.c: Likewise.
8439 * oacc-parallel.c: Likewise.
8440 * oacc-plugin.c: Likewise.
8441 * oacc-plugin.h: Likewise.
8442 * oacc-ptx.h: Likewise.
8443 * openacc.f90: Likewise.
8444 * openacc.h: Likewise.
8445 * openacc_lib.h: Likewise.
8446 * plugin/plugin-host.c: Likewise.
8447 * plugin/plugin-nvptx.c: Likewise.
8448 * libgomp-plugin.c: Likewise.
8449 * libgomp-plugin.h: Likewise.
8450 * libgomp_target.h: Remove file after merging content into the
8451 former file. Update all users.
8452 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
8453 (offload_targets_s, offload_targets_s_openacc): New variables.
8454 (check_effective_target_openacc_nvidia_accel_present)
8455 (check_effective_target_openacc_nvidia_accel_selected): New
8456 procedures.
8457 (libgomp_init): Update for OpenACC changes.
8458 * testsuite/libgomp-test-support.exp.in: New file.
8459 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
8460 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8461 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8462 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
8463 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
8464 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
8465 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
8466 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
8467 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8468 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
8469 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
8470 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
8471 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
8472 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8473 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
8474 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8475 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8476 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8477 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8478 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8479 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
8480 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8481 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8482 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
8483 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8484 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8485 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8486 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8487 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8488 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8489 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8490 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8491 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8492 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
8493 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
8494 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8495 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
8496 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8497 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
8498 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8499 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8500 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8501 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8502 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8503 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8504 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
8505 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8506 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8507 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8508 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8509 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8510 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8511 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8512 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8513 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8514 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8515 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8516 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8517 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8518 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
8519 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8520 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
8521 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8522 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8523 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8524 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
8525 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
8526 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8527 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8528 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8529 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
8530 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8531 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8532 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8533 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
8534 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
8535 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8536 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8537 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
8538 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
8539 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
8540 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
8541 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8542 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8543 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8544 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
8545 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
8546 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8547 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8548 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
8549 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
8550 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
8551 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
8552 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8553 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8554 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8555 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8556 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
8557 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8558 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8559 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
8560 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
8561 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
8562 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8563 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
8564 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
8565 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
8566 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
8567 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
8568 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8569 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
8570 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8571 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8572 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
8573 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8574 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8575 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
8576 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8577 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
8578 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
8579 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
8580 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
8581 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
8582 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
8583 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8584 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
8585 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8586 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
8587 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
8588 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
8589 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
8590 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
8591 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8592 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
8593 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
8594 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8595 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8596 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8597 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8598 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
8599 Likewise.
8600 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
8601 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
8602 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
8603 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8604 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
8605 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8606 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8607 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8608 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8609 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8610 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8611 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8612 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8613 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
8614 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8615 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
8616 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
8617 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
8618 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
8619 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
8620 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
8621 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8622 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8623 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
8624 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
8625 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
8626 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8627 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8628 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8629 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8630 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8631 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8632 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8633 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8634 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
8635 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
8636 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
8637 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
8638 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
8639 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
8640 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
8641 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
8642 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
8643 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
8644 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
8645 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8646 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
8647 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
8648 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
8649 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8650 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8651 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8652 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8653 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8654 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
8655 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
8656 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
8657 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
8658 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
8659 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
8660
8661 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
8662 Julian Brown <julian@codesourcery.com>
8663 David Malcolm <dmalcolm@redhat.com>
8664
8665 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
8666 to "GNU Offloading and Multi Processing Runtime Library". Change
8667 all users.
8668 * configure: Regenerate.
8669 * libgomp.texi: Update.
8670
8671 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
8672
8673 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
8674 "$tgt_dir/lib32".
8675 * configure: Regenerate.
8676
8677 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
8678 "intelmic" in $offload_targets.
8679
8680 2015-01-05 Jakub Jelinek <jakub@redhat.com>
8681
8682 Update copyright years.
8683
8684 * libgomp.texi: Bump @copying's copyright year.
8685
8686 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8687
8688 * testsuite/lib/libgomp.exp: Load target-utils.exp.
8689 Move load of target-supports.exp earlier.
8690
8691 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
8692
8693 * testsuite/libgomp.c/target-9.c: New test.
8694
8695 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
8696
8697 * config.h.in: Regenerate.
8698 * configure: Regenerate.
8699 * configure.ac: Add GCC_CHECK_EMUTLS.
8700 * libgomp.h: Add check for USE_EMUTLS: this case
8701 is equal to HAVE_TLS.
8702 * team.c: Likewise.
8703
8704 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
8705
8706 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
8707
8708 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
8709 Ilya Verbin <ilya.verbin@intel.com>
8710
8711 * testsuite/libgomp.c/target-critical-1.c: New test.
8712
8713 2014-11-26 Jakub Jelinek <jakub@redhat.com>
8714
8715 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
8716 to dg-options unless expensive testing is on.
8717 (TESTITERS): Define to N if not defined.
8718 (main): Use TESTITERS instead of N.
8719 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
8720 dg-additional-options depending on whether expensive testing is on.
8721 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
8722 Decrease N to 100000 and CHUNKSZ to 10000.
8723
8724 2014-11-24 Jakub Jelinek <jakub@redhat.com>
8725
8726 PR fortran/63938
8727 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
8728 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
8729
8730 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
8731
8732 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
8733
8734 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
8735
8736 PR bootstrap/63784
8737 * configure: Regenerated.
8738
8739 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
8740
8741 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
8742 vect_simd_clones effective target.
8743 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8744
8745 2014-11-14 Jakub Jelinek <jakub@redhat.com>
8746
8747 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
8748 of 32 as block_size.
8749 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
8750 instead of 32 as block_size.
8751
8752 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8753 Ilya Verbin <ilya.verbin@intel.com>
8754
8755 * Makefile.in: Regenerate.
8756 * configure: Regenerate.
8757 * configure.ac: Set up offload_additional_options,
8758 offload_additional_lib_paths and offload_targets.
8759 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
8760 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
8761 * testsuite/Makefile.in: Regenerate.
8762 * testsuite/lib/libgomp.exp (libgomp_init): Append
8763 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
8764 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
8765 build directory to LD_LIBRARY_PATH for intelmic offload targets.
8766
8767 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8768 Ilya Verbin <ilya.verbin@intel.com>
8769 Kirill Yukhin <kirill.yukhin@intel.com>
8770 Ilya Tocar <ilya.tocar@intel.com>
8771
8772 * testsuite/lib/libgomp.exp
8773 (check_effective_target_offload_device): New.
8774 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
8775 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
8776 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
8777 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
8778 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
8779 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
8780 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
8781 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
8782 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
8783 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
8784 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
8785 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
8786 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
8787 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
8788 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
8789 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
8790 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
8791 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
8792 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
8793 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
8794 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
8795 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
8796 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
8797 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
8798 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
8799 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
8800 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
8801 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
8802 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
8803 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
8804 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
8805 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
8806 * testsuite/libgomp.c/target-7.c: Fix test.
8807 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
8808 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
8809 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
8810 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
8811 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
8812 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
8813 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
8814 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
8815 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
8816 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
8817 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
8818 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
8819 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
8820 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
8821 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
8822 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
8823 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
8824 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
8825 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8826 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
8827 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
8828 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
8829 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
8830 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
8831 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
8832 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
8833 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
8834 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
8835 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
8836 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
8837 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
8838
8839 2014-11-13 Jakub Jelinek <jakub@redhat.com>
8840 Ilya Verbin <ilya.verbin@intel.com>
8841 Thomas Schwinge <thomas@codesourcery.com>
8842 Andrey Turetskiy <andrey.turetskiy@intel.com>
8843
8844 * libgomp.map (GOMP_4.0.1): New symbol version.
8845 Add GOMP_offload_register.
8846 * libgomp_target.h: New file.
8847 * splay-tree.h: New file.
8848 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
8849 (gomp_target_init): New forward declaration.
8850 (gomp_is_initialized): New static variable.
8851 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
8852 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
8853 New structures.
8854 (offload_images, num_offload_images, devices, num_devices): New static
8855 variables.
8856 (splay_compare): New static function.
8857 (struct gomp_device_descr): New structure.
8858 (gomp_get_num_devices): Call gomp_target_init.
8859 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
8860 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
8861 (GOMP_offload_register): New function.
8862 (GOMP_target): Arrange for host callback to be performed in a separate
8863 initial thread and contention group, inheriting ICVs from
8864 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
8865 Add device initialization and lookup for target function in splay tree.
8866 (GOMP_target_data): Add device initialization and call gomp_map_vars.
8867 (GOMP_target_end_data): Call gomp_unmap_vars.
8868 (GOMP_target_update): Add device initialization and call gomp_update.
8869 (gomp_load_plugin_for_device, gomp_register_images_for_device)
8870 (gomp_target_init): New static functions.
8871
8872 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
8873 Thomas Schwinge <thomas@codesourcery.com>
8874 Ilya Verbin <ilya.verbin@intel.com>
8875 Andrey Turetskiy <andrey.turetskiy@intel.com>
8876
8877 * config.h.in: Regenerate.
8878 * configure: Regenerate.
8879 * configure.ac: Check for libdl, required for plugin support.
8880 (PLUGIN_SUPPORT): Define if plugins are supported.
8881 (enable_offload_targets): Support Intel MIC targets.
8882 (OFFLOAD_TARGETS): List of target names suitable for offloading.
8883
8884 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8885
8886 PR target/63610
8887 * configure: Regenerate.
8888
8889 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8890
8891 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
8892
8893 2014-10-06 Marek Polacek <polacek@redhat.com>
8894
8895 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
8896 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
8897 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
8898 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8899
8900 2014-10-06 Marek Polacek <polacek@redhat.com>
8901
8902 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
8903 * testsuite/libgomp.c/nqueens-1.c: Likewise.
8904 * testsuite/libgomp.c/pr26943-3.c: Likewise.
8905 * testsuite/libgomp.c/pr26943-4.c: Likewise.
8906 * testsuite/libgomp.c/pr36802-2.c: Likewise.
8907 * testsuite/libgomp.c/pr36802-3.c: Likewise.
8908 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
8909 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8910 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
8911 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
8912 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
8913 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
8914 * testsuite/libgomp.c/omp-single-1.c: Likewise.
8915 * testsuite/libgomp.c/omp-single-2.c: Likewise.
8916 * testsuite/libgomp.c/omp_matvec.c: Likewise.
8917 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
8918 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
8919 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
8920 declarations.
8921
8922 2014-10-03 Jakub Jelinek <jakub@redhat.com>
8923
8924 PR libgomp/61200
8925 * testsuite/libgomp.c/pr61200.c: New test.
8926
8927 2014-09-18 Jakub Jelinek <jakub@redhat.com>
8928
8929 PR c++/63248
8930 * testsuite/libgomp.c++/pr63248.C: New test.
8931
8932 2014-08-04 Jakub Jelinek <jakub@redhat.com>
8933
8934 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
8935 is not zero, but taskgroup->children is NULL and there are
8936 any task->children, schedule those instead of waiting.
8937 * testsuite/libgomp.c/depend-6.c: New test.
8938 * testsuite/libgomp.c/depend-7.c: New test.
8939 * testsuite/libgomp.c/depend-8.c: New test.
8940 * testsuite/libgomp.c/depend-9.c: New test.
8941 * testsuite/libgomp.c/depend-10.c: New test.
8942
8943 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8944
8945 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
8946 (struct gomp_taskwait): New type.
8947 (struct gomp_task): Add taskwait and parent_depends_on, remove
8948 in_taskwait and taskwait_sem fields.
8949 (gomp_finish_task): Don't destroy taskwait_sem.
8950 * task.c (gomp_init_task): Don't init in_taskwait, instead init
8951 taskwait and parent_depends_on.
8952 (GOMP_task): For if (0) tasks with depend clause that depend on
8953 earlier tasks don't defer them, instead call
8954 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
8955 Initialize redundant_out field, for redundant out entries just
8956 move them at the end of linked list instead of removing them
8957 completely, and set redundant_out flag instead of redundant.
8958 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
8959 that task.
8960 (gomp_task_run_post_handle_dependers): If parent is in
8961 gomp_task_maybe_wait_for_dependencies and newly runnable task
8962 is not parent_depends_on, queue it in parent->children linked
8963 list after all runnable tasks with parent_depends_on set.
8964 Adjust for addition of taskwait indirection.
8965 (gomp_task_run_post_remove_parent): If parent is in
8966 gomp_task_maybe_wait_for_dependencies and task to be removed
8967 is parent_depends_on, decrement n_depend and if needed awake
8968 parent. Adjust for addition of taskwait indirection.
8969 (GOMP_taskwait): Adjust for addition of taskwait indirection.
8970 (gomp_task_maybe_wait_for_dependencies): New function.
8971 * testsuite/libgomp.c/depend-5.c: New test.
8972
8973 2014-07-13 Tobias Burnus <burnus@net-b.de>
8974
8975 * testsuite/libgomp.fortran/pr34020.f90: Make compile
8976 with TS 18508/Fortran 2015.
8977
8978 2014-07-06 Marek Polacek <polacek@redhat.com>
8979
8980 PR c/6940
8981 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
8982
8983 2014-07-03 Jakub Jelinek <jakub@redhat.com>
8984
8985 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
8986 matches regex $lang_source_re, add $lang_include_flags to options.
8987 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
8988 * testsuite/libgomp.c++/c++.exp: Likewise.
8989 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
8990 and lang_include_flags instead of adding -fintrinsic-modules-path= to
8991 ALWAYS_CFLAGS.
8992 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
8993
8994 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
8995
8996 * testsuite/libgomp.fortran/fortran.exp: Explain
8997 gfortran-dg-runtest usage.
8998
8999 2014-06-25 Jakub Jelinek <jakub@redhat.com>
9000
9001 * testsuite/libgomp.fortran/simd5.f90: New test.
9002 * testsuite/libgomp.fortran/simd6.f90: New test.
9003 * testsuite/libgomp.fortran/simd7.f90: New test.
9004
9005 2014-06-24 Jakub Jelinek <jakub@redhat.com>
9006
9007 * testsuite/libgomp.c/for-2.c: Define SC to static for
9008 #pragma omp for simd testing.
9009 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
9010 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
9011 SC macro.
9012 * testsuite/libgomp.c/simd-14.c: New test.
9013 * testsuite/libgomp.c/simd-15.c: New test.
9014 * testsuite/libgomp.c/simd-16.c: New test.
9015 * testsuite/libgomp.c/simd-17.c: New test.
9016 * testsuite/libgomp.c++/for-10.C: Define SC to static for
9017 #pragma omp for simd testing.
9018 * testsuite/libgomp.c++/simd10.C: New test.
9019 * testsuite/libgomp.c++/simd11.C: New test.
9020 * testsuite/libgomp.c++/simd12.C: New test.
9021 * testsuite/libgomp.c++/simd13.C: New test.
9022
9023 * testsuite/libgomp.fortran/aligned1.f03: New test.
9024 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
9025 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
9026 tasks with !$omp parallel !$omp single.
9027 * testsuite/libgomp.fortran/target8.f90: New test.
9028 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
9029 not to use trim in the combiner, instead call elemental function.
9030 (fn): New elemental function.
9031 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
9032 Make elemental.
9033 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
9034 omp_in): Likewise.
9035 * testsuite/libgomp.fortran/udr12.f90: New test.
9036 * testsuite/libgomp.fortran/udr13.f90: New test.
9037 * testsuite/libgomp.fortran/udr14.f90: New test.
9038 * testsuite/libgomp.fortran/udr15.f90: New test.
9039
9040 2014-06-18 Jakub Jelinek <jakub@redhat.com>
9041
9042 * omp_lib.f90.in (openmp_version): Set to 201307.
9043 * omp_lib.h.in (openmp_version): Likewise.
9044 * testsuite/libgomp.c/target-8.c: New test.
9045 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
9046 and inbranch clauses.
9047 * testsuite/libgomp.fortran/depend-3.f90: New test.
9048 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
9049 openmp_version.
9050 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9051 * testsuite/libgomp.fortran/target1.f90: New test.
9052 * testsuite/libgomp.fortran/target2.f90: New test.
9053 * testsuite/libgomp.fortran/target3.f90: New test.
9054 * testsuite/libgomp.fortran/target4.f90: New test.
9055 * testsuite/libgomp.fortran/target5.f90: New test.
9056 * testsuite/libgomp.fortran/target6.f90: New test.
9057 * testsuite/libgomp.fortran/target7.f90: New test.
9058
9059 2014-06-10 Jakub Jelinek <jakub@redhat.com>
9060
9061 PR fortran/60928
9062 * testsuite/libgomp.fortran/allocatable9.f90: New test.
9063 * testsuite/libgomp.fortran/allocatable10.f90: New test.
9064 * testsuite/libgomp.fortran/allocatable11.f90: New test.
9065 * testsuite/libgomp.fortran/allocatable12.f90: New test.
9066 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
9067 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
9068 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
9069 * testsuite/libgomp.fortran/associate1.f90: New test.
9070 * testsuite/libgomp.fortran/associate2.f90: New test.
9071 * testsuite/libgomp.fortran/procptr1.f90: New test.
9072
9073 2014-06-06 Jakub Jelinek <jakub@redhat.com>
9074
9075 * testsuite/libgomp.fortran/simd1.f90: New test.
9076 * testsuite/libgomp.fortran/udr1.f90: New test.
9077 * testsuite/libgomp.fortran/udr2.f90: New test.
9078 * testsuite/libgomp.fortran/udr3.f90: New test.
9079 * testsuite/libgomp.fortran/udr4.f90: New test.
9080 * testsuite/libgomp.fortran/udr5.f90: New test.
9081 * testsuite/libgomp.fortran/udr6.f90: New test.
9082 * testsuite/libgomp.fortran/udr7.f90: New test.
9083 * testsuite/libgomp.fortran/udr8.f90: New test.
9084 * testsuite/libgomp.fortran/udr9.f90: New test.
9085 * testsuite/libgomp.fortran/udr10.f90: New test.
9086 * testsuite/libgomp.fortran/udr11.f90: New test.
9087
9088 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
9089
9090 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
9091 vect_simd_clones effective target.
9092 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
9093
9094 2014-05-21 Jakub Jelinek <jakub@redhat.com>
9095
9096 PR middle-end/61252
9097 * testsuite/libgomp.c++/simd-9.C: New test.
9098
9099 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
9100
9101 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
9102 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
9103 texts according to their @menu entry positions.
9104
9105 2014-05-11 Jakub Jelinek <jakub@redhat.com>
9106
9107 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
9108 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
9109 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
9110 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
9111 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
9112 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
9113 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
9114 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
9115 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
9116 * testsuite/libgomp.fortran/depend-1.f90: New test.
9117 * testsuite/libgomp.fortran/depend-2.f90: New test.
9118 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
9119 * testsuite/libgomp.fortran/simd1.f90: New test.
9120 * testsuite/libgomp.fortran/simd2.f90: New test.
9121 * testsuite/libgomp.fortran/simd3.f90: New test.
9122 * testsuite/libgomp.fortran/simd4.f90: New test.
9123 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
9124
9125 2014-05-02 Jakub Jelinek <jakub@redhat.com>
9126
9127 * testsuite/libgomp.c/simd-10.c: New test.
9128 * testsuite/libgomp.c/simd-11.c: New test.
9129 * testsuite/libgomp.c/simd-12.c: New test.
9130 * testsuite/libgomp.c/simd-13.c: New test.
9131
9132 2014-04-24 Jakub Jelinek <jakub@redhat.com>
9133
9134 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
9135 atomic type clauses in any order and optional comma in between.
9136 * testsuite/libgomp.c++/atomic-15.C: Likewise.
9137 * testsuite/libgomp.c/atomic-17.c: Likewise.
9138
9139 * testsuite/libgomp.c/simd-7.c: New test.
9140 * testsuite/libgomp.c/simd-8.c: New test.
9141 * testsuite/libgomp.c/simd-9.c: New test.
9142 * testsuite/libgomp.c/loop-16.c: New test.
9143
9144 2014-04-02 Richard Henderson <rth@redhat.com>
9145
9146 * config/linux/futex.h (futex_wait): Get error value from errno.
9147 (futex_wake): Likewise.
9148
9149 2014-03-25 Jakub Jelinek <jakub@redhat.com>
9150
9151 PR c++/60331
9152 * testsuite/libgomp.c++/udr-11.C: New test.
9153 * testsuite/libgomp.c++/udr-12.C: New test.
9154 * testsuite/libgomp.c++/udr-13.C: New test.
9155 * testsuite/libgomp.c++/udr-14.C: New test.
9156 * testsuite/libgomp.c++/udr-15.C: New test.
9157 * testsuite/libgomp.c++/udr-16.C: New test.
9158 * testsuite/libgomp.c++/udr-17.C: New test.
9159 * testsuite/libgomp.c++/udr-18.C: New test.
9160 * testsuite/libgomp.c++/udr-19.C: New test.
9161
9162 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9163
9164 Update copyright years
9165
9166 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9167
9168 * hashtab.h: Use the standard form for the copyright notice.
9169
9170 2014-01-02 Tobias Burnus <burnus@net-b.de>
9171
9172 * libgomp.texi: Bump @copying's copyright year.
9173
9174 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
9175
9176 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
9177 alloca () with __builtin_alloca ().
9178 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
9179 * testsuite/libgomp.c/lock-3.c: Likewise.
9180 * testsuite/libgomp.c/pr48591.c: Likewise.
9181
9182 2013-12-17 Jakub Jelinek <jakub@redhat.com>
9183
9184 PR testsuite/59534
9185 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
9186 comparisons.
9187
9188 2013-12-16 Jakub Jelinek <jakub@redhat.com>
9189
9190 PR libgomp/58756
9191 * testsuite/libgomp.c/pr58756.c: New test.
9192
9193 2013-12-12 Jakub Jelinek <jakub@redhat.com>
9194
9195 PR libgomp/59467
9196 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
9197 !$omp parallel.
9198
9199 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
9200
9201 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
9202 ALWAYS_CFLAGS.
9203 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
9204 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
9205 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
9206 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
9207 Likewise.
9208
9209 * libgomp_g.h: Include <stddef.h> for size_t.
9210
9211 * libgomp.spec.in: Update comment about libgomp's dependencies.
9212 * configure.ac: Likewise.
9213 * configure: Regenerate.
9214
9215 2013-10-16 Tobias Burnus <burnus@net-b.de>
9216
9217 * libgomp.texi: (Runtime Library Routines): Update references for
9218 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
9219 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
9220 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
9221 (Environment Variables): Update references for OpenMP 4.0. Add
9222 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
9223 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
9224 order.
9225
9226 2013-10-14 Jakub Jelinek <jakub@redhat.com>
9227
9228 * env.c (parse_bind_var): Initialize value to avoid
9229 (false positive) warning.
9230
9231 2013-10-12 Jakub Jelinek <jakub@redhat.com>
9232
9233 PR libgomp/58691
9234 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
9235 to check variable.
9236 (gomp_init_num_threads): Move i variable declaration into
9237 #ifdef CPU_ALLOC_SIZE block.
9238 * config/linux/affinity.c (gomp_affinity_init_level): Test
9239 gomp_places_list_len == 0 rather than gomp_places_list == 0
9240 when checking for topology reading error.
9241 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
9242 * env.c (parse_affinity): Add ignore argument, if true, don't populate
9243 gomp_places_list, only parse env var and always return false.
9244 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
9245 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
9246 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
9247 and either of these variables were parsed correctly into a places
9248 list.
9249
9250 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9251 Jakub Jelinek <jakub@redhat.com>
9252
9253 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
9254 of 5 loopfn matches.
9255 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9256 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9257 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
9258 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9259 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9260 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9261 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9262 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9263
9264 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9265
9266 * Makefile.am (omp_lib.mod): Streamline rule.
9267 * Makefile.in: Regenerate.
9268
9269 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
9270 exceptions.
9271
9272 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
9273 * testsuite/libgomp.fortran/lib1.f90: Likewise.
9274 * testsuite/libgomp.fortran/lib2.f: Likewise.
9275 * testsuite/libgomp.fortran/lib3.f: Likewise.
9276
9277 * configure.ac: Typo fix.
9278 * configure: Regenerate.
9279
9280 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
9281 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9282
9283 * omp.h.in: Don't touch the user's namespace.
9284
9285 2013-10-11 Jakub Jelinek <jakub@redhat.com>
9286 Tobias Burnus <burnus@net-b.de>
9287 Richard Henderson <rth@redhat.com>
9288
9289 * target.c: New file.
9290 * Makefile.am (libgomp_la_SOURCES): Add target.c.
9291 * Makefile.in: Regenerated.
9292 * libgomp_g.h (GOMP_task): Add depend argument.
9293 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9294 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9295 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
9296 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9297 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9298 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
9299 GOMP_taskgroup_start, GOMP_taskgroup_end,
9300 GOMP_parallel_sections): New prototypes.
9301 * fortran.c (omp_is_initial_device): Add ialias_redirect.
9302 (omp_is_initial_device_): New function.
9303 (ULP, STR1, STR2, ialias_redirect): Removed.
9304 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
9305 omp_set_default_device_8_, omp_get_default_device_,
9306 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
9307 functions.
9308 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9309 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9310 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
9311 @@GOMP_4.0.
9312 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
9313 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
9314 omp_set_default_device, omp_set_default_device_,
9315 omp_set_default_device_8_, omp_get_default_device,
9316 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
9317 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
9318 omp_get_team_num_): Export @@OMP_4.0.
9319 * team.c (struct gomp_thread_start_data): Add place field.
9320 (gomp_thread_start): Clear thr->thread_pool and
9321 thr->task before returning. Use gomp_team_barrier_wait_final
9322 instead of gomp_team_barrier_wait. Initialize thr->place.
9323 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
9324 team_cancelled and task_queued_count fields.
9325 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
9326 before calling pthread_exit.
9327 (gomp_free_thread): No longer static. Use
9328 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
9329 (gomp_team_start): Add flags argument. Set
9330 thr->thread_pool->threads_busy to nthreads immediately after creating
9331 new pool. Use gomp_managed_threads_lock instead of
9332 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
9333 (gomp_team_end): Use gomp_managed_threads_lock instead of
9334 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
9335 of gomp_team_barrier_wait. If team->team_cancelled, call
9336 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
9337 rather than thr->ts.work_share.
9338 (initialize_team): Don't call gomp_sem_init here.
9339 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
9340 caller.
9341 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
9342 * env.c (gomp_global_icv): Add default_device_var, target_data and
9343 bind_var initializers.
9344 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9345 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9346 gomp_places_list_len): New variables.
9347 (parse_bind_var, parse_one_place, parse_places_var): New functions.
9348 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
9349 sized places.
9350 (gomp_cancel_var): New global variable.
9351 (parse_int): New function.
9352 (handle_omp_display_env): New function.
9353 (initialize_env): Use it. Initialize default_device_var.
9354 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
9355 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
9356 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
9357 been successfully parsed (and call gomp_init_affinity in that case).
9358 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9359 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9360 omp_get_team_num, omp_is_initial_device): New functions.
9361 * libgomp.h: Include stdlib.h.
9362 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
9363 Define.
9364 (struct target_mem_desc): Forward declare.
9365 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
9366 and thread_limit_var fields.
9367 (gomp_get_num_devices): New prototype.
9368 (gomp_cancel_var): New extern decl.
9369 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
9370 team_cancelled and task_queued_count fields. Add comments about
9371 task_{,queued_,running_}count.
9372 (gomp_cancel_kind): New enum.
9373 (gomp_work_share_end_cancel): New prototype.
9374 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
9375 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
9376 and depend fields.
9377 (struct gomp_taskgroup): New type.
9378 (struct gomp_task_depend_entry,
9379 struct gomp_dependers_vec): New types.
9380 (gomp_finish_task): Free depend_hash if non-NULL.
9381 (struct gomp_team_state): Add place_partition_off
9382 and place_partition_len fields.
9383 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9384 gomp_places_list_len): New extern decls.
9385 (struct gomp_thread): Add place field.
9386 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9387 (gomp_init_thread_affinity): Add place argument.
9388 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9389 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9390 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9391 gomp_affinity_init_level, gomp_affinity_print_place): New
9392 prototypes.
9393 (gomp_team_start): Add flags argument.
9394 (gomp_thread_limit_var, gomp_remaining_threads_count,
9395 gomp_remaining_threads_lock): Remove.
9396 (gomp_managed_threads_lock): New variable.
9397 (struct gomp_thread_pool): Add threads_busy field.
9398 (gomp_free_thread): New prototype.
9399 * task.c: Include hashtab.h.
9400 (hash_entry_type): New typedef.
9401 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
9402 (gomp_init_task): Clear dependers, depend_hash, depend_count,
9403 copy_ctors_done and taskgroup fields.
9404 (GOMP_task): Add depend argument, handle depend clauses. If
9405 gomp_team_barrier_cancelled or if it's taskgroup has been
9406 cancelled, don't queue or start new tasks. Set copy_ctors_done
9407 field if needed. Initialize taskgroup field. If copy_ctors_done
9408 and already cancelled, don't discard the task. If taskgroup is
9409 non-NULL, enqueue the task into taskgroup queue. Increment
9410 num_children field in taskgroup. Increment task_queued_count.
9411 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
9412 gomp_task_run_post_remove_taskgroup): New inline functions.
9413 (gomp_task_run_post_handle_depend_hash,
9414 gomp_task_run_post_handle_dependers,
9415 gomp_task_run_post_handle_depend): New functions.
9416 (GOMP_taskwait): Use them. If more than one new tasks
9417 have been queued, wake other threads if needed.
9418 (gomp_barrier_handle_tasks): Likewise. If
9419 gomp_team_barrier_cancelled, don't start any new tasks, just free
9420 all tasks.
9421 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
9422 * omp_lib.f90.in
9423 (omp_proc_bind_kind, omp_proc_bind_false,
9424 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9425 omp_proc_bind_spread): New params.
9426 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9427 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9428 omp_get_team_num, omp_is_initial_device): New interfaces.
9429 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
9430 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
9431 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
9432 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
9433 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
9434 useless use omp_lib_kinds.
9435 * omp.h.in (omp_proc_bind_t): New typedef.
9436 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9437 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9438 omp_get_team_num, omp_is_initial_device): New prototypes.
9439 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
9440 through to gomp_team_start.
9441 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
9442 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
9443 Adjust gomp_parallel_loop_start callers.
9444 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9445 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9446 GOMP_loop_end_cancel): New functions.
9447 (GOMP_parallel_end): Add ialias_redirect.
9448 * hashtab.h: New file.
9449 * libgomp.texi (Environment Variables): Minor cleanup,
9450 update section refs to OpenMP 4.0rc2.
9451 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
9452 environment variables.
9453 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
9454 team->work_shares_to_free to thr->ts.work_share before calling
9455 free_work_share.
9456 (gomp_work_share_end_cancel): New function.
9457 * config/linux/proc.c: Include errno.h.
9458 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
9459 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
9460 sizeof (cpu_set_t) to determine number of iterations. Fix up check
9461 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
9462 gomp_cpuset_size is sizeof (cpu_set_t).
9463 (gomp_init_num_threads): Initialize gomp_cpuset_size,
9464 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
9465 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
9466 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
9467 contain any logical CPUs.
9468 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
9469 is NULL. Use gomp_cpusetp instead of &cpuset and pass
9470 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
9471 pthread_getaffinity_np. Check gomp_places_list instead of
9472 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
9473 * config/linux/bar.c (gomp_barrier_wait_end,
9474 gomp_barrier_wait_last): Use BAR_* defines.
9475 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
9476 from state where needed. Set work_share_cancelled to 0 on last
9477 thread.
9478 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
9479 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
9480 functions.
9481 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
9482 Add cpusetsize argument.
9483 (gomp_cpuset_size, gomp_cpusetp): Declare.
9484 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
9485 (affinity_counter): Remove.
9486 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
9487 if CPU_ALLOC_SIZE isn't defined.
9488 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
9489 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
9490 bind current thread to the first place.
9491 (gomp_init_thread_affinity): Rewritten. Add place argument, just
9492 pthread_setaffinity_np to gomp_places_list[place].
9493 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9494 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9495 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9496 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
9497 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9498 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9499 (gomp_barrier_t): Add awaited_final field.
9500 (gomp_barrier_init): Initialize awaited_final field.
9501 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
9502 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
9503 prototypes.
9504 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
9505 defines.
9506 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
9507 gomp_team_barrier_cancelled): New inline functions.
9508 (gomp_barrier_last_thread,
9509 gomp_team_barrier_set_task_pending,
9510 gomp_team_barrier_clear_task_pending,
9511 gomp_team_barrier_set_waiting_for_tasks,
9512 gomp_team_barrier_waiting_for_tasks,
9513 gomp_team_barrier_done): Use BAR_* defines.
9514 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
9515 (gomp_barrier_wait_end): Use BAR_* defines.
9516 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
9517 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
9518 Use BAR_* defines.
9519 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
9520 gomp_team_barrier_cancel): New functions.
9521 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
9522 argument.
9523 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9524 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9525 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9526 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
9527 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9528 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9529 (gomp_barrier_t): Add cancellable field.
9530 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
9531 gomp_team_barrier_cancel): New prototypes.
9532 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
9533 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
9534 gomp_team_barrier_cancelled): New inline functions.
9535 (gomp_barrier_wait_start, gomp_barrier_last_thread,
9536 gomp_team_barrier_set_task_pending,
9537 gomp_team_barrier_clear_task_pending,
9538 gomp_team_barrier_set_waiting_for_tasks,
9539 gomp_team_barrier_waiting_for_tasks,
9540 gomp_team_barrier_done): Use BAR_* defines.
9541 * barrier.c (GOMP_barrier_cancel): New function.
9542 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
9543 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9544 omp_proc_bind_spread): New params.
9545 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9546 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9547 omp_get_team_num, omp_is_initial_device): New externals.
9548 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
9549 New functions.
9550 (gomp_resolve_num_threads): Adjust for thread_limit now being in
9551 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9552 infinity. If not nested, just return minimum of max_num_threads
9553 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
9554 to the returned value. Otherwise, don't update atomically
9555 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
9556 (GOMP_parallel_end): Adjust for thread_limit now being in
9557 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9558 infinity. Adjust threads_busy in the pool rather than
9559 gomp_remaining_threads_count. Remember team->nthreads and call
9560 gomp_team_end before adjusting threads_busy, if not nested
9561 afterwards, just set it to 1 non-atomically. Add ialias.
9562 (GOMP_parallel_start): Adjust gomp_team_start caller.
9563 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
9564 * testsuite/libgomp.c/affinity-1.c: New test.
9565 * testsuite/libgomp.c/atomic-15.c: New test.
9566 * testsuite/libgomp.c/atomic-16.c: New test.
9567 * testsuite/libgomp.c/atomic-17.c: New test.
9568 * testsuite/libgomp.c/cancel-for-1.c: New test.
9569 * testsuite/libgomp.c/cancel-for-2.c: New test.
9570 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
9571 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
9572 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
9573 * testsuite/libgomp.c/cancel-sections-1.c: New test.
9574 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
9575 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
9576 * testsuite/libgomp.c/depend-1.c: New test.
9577 * testsuite/libgomp.c/depend-2.c: New test.
9578 * testsuite/libgomp.c/depend-3.c: New test.
9579 * testsuite/libgomp.c/depend-4.c: New test.
9580 * testsuite/libgomp.c/for-1.c: New test.
9581 * testsuite/libgomp.c/for-1.h: New file.
9582 * testsuite/libgomp.c/for-2.c: New test.
9583 * testsuite/libgomp.c/for-2.h: New file.
9584 * testsuite/libgomp.c/for-3.c: New test.
9585 * testsuite/libgomp.c/pr58392.c: New test.
9586 * testsuite/libgomp.c/simd-1.c: New test.
9587 * testsuite/libgomp.c/simd-2.c: New test.
9588 * testsuite/libgomp.c/simd-3.c: New test.
9589 * testsuite/libgomp.c/simd-4.c: New test.
9590 * testsuite/libgomp.c/simd-5.c: New test.
9591 * testsuite/libgomp.c/simd-6.c: New test.
9592 * testsuite/libgomp.c/target-1.c: New test.
9593 * testsuite/libgomp.c/target-2.c: New test.
9594 * testsuite/libgomp.c/target-3.c: New test.
9595 * testsuite/libgomp.c/target-4.c: New test.
9596 * testsuite/libgomp.c/target-5.c: New test.
9597 * testsuite/libgomp.c/target-6.c: New test.
9598 * testsuite/libgomp.c/target-7.c: New test.
9599 * testsuite/libgomp.c/taskgroup-1.c: New test.
9600 * testsuite/libgomp.c/thread-limit-1.c: New test.
9601 * testsuite/libgomp.c/thread-limit-2.c: New test.
9602 * testsuite/libgomp.c/thread-limit-3.c: New test.
9603 * testsuite/libgomp.c/udr-1.c: New test.
9604 * testsuite/libgomp.c/udr-2.c: New test.
9605 * testsuite/libgomp.c/udr-3.c: New test.
9606 * testsuite/libgomp.c++/affinity-1.C: New test.
9607 * testsuite/libgomp.c++/atomic-10.C: New test.
9608 * testsuite/libgomp.c++/atomic-11.C: New test.
9609 * testsuite/libgomp.c++/atomic-12.C: New test.
9610 * testsuite/libgomp.c++/atomic-13.C: New test.
9611 * testsuite/libgomp.c++/atomic-14.C: New test.
9612 * testsuite/libgomp.c++/atomic-15.C: New test.
9613 * testsuite/libgomp.c++/cancel-for-1.C: New test.
9614 * testsuite/libgomp.c++/cancel-for-2.C: New test.
9615 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
9616 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
9617 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
9618 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
9619 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
9620 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
9621 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
9622 * testsuite/libgomp.c++/cancel-test.h: New file.
9623 * testsuite/libgomp.c++/for-9.C: New test.
9624 * testsuite/libgomp.c++/for-10.C: New test.
9625 * testsuite/libgomp.c++/for-11.C: New test.
9626 * testsuite/libgomp.c++/simd-1.C: New test.
9627 * testsuite/libgomp.c++/simd-2.C: New test.
9628 * testsuite/libgomp.c++/simd-3.C: New test.
9629 * testsuite/libgomp.c++/simd-4.C: New test.
9630 * testsuite/libgomp.c++/simd-5.C: New test.
9631 * testsuite/libgomp.c++/simd-6.C: New test.
9632 * testsuite/libgomp.c++/simd-7.C: New test.
9633 * testsuite/libgomp.c++/simd-8.C: New test.
9634 * testsuite/libgomp.c++/target-1.C: New test.
9635 * testsuite/libgomp.c++/target-2.C: New test.
9636 * testsuite/libgomp.c++/target-2-aux.cc: New file.
9637 * testsuite/libgomp.c++/target-3.C: New test.
9638 * testsuite/libgomp.c++/taskgroup-1.C: New test.
9639 * testsuite/libgomp.c++/udr-1.C: New test.
9640 * testsuite/libgomp.c++/udr-2.C: New test.
9641 * testsuite/libgomp.c++/udr-3.C: New test.
9642 * testsuite/libgomp.c++/udr-4.C: New test.
9643 * testsuite/libgomp.c++/udr-5.C: New test.
9644 * testsuite/libgomp.c++/udr-6.C: New test.
9645 * testsuite/libgomp.c++/udr-7.C: New test.
9646 * testsuite/libgomp.c++/udr-8.C: New test.
9647 * testsuite/libgomp.c++/udr-9.C: New test.
9648
9649 2013-09-20 Jakub Jelinek <jakub@redhat.com>
9650
9651 PR testsuite/57605
9652 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
9653 ALWAYS_CFLAGS.
9654
9655 2013-09-20 Alan Modra <amodra@gmail.com>
9656
9657 * configure: Regenerate.
9658
9659 2013-09-19 Jakub Jelinek <jakub@redhat.com>
9660
9661 * testsuite/libgomp.c/sections-2.c: New test.
9662
9663 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
9664
9665 * testsuite/libgomp.fortran/strassen.f90:
9666 Add dg-skip-if aarch64_tiny.
9667
9668 2013-06-20 Iain Sandoe <iain@codesourcery.com>
9669 Cesar Philippidis <cesar@codesourcery.com>
9670
9671 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
9672 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
9673 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
9674 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9675 * testsuite/libgomp.graphite/graphite.exp: Likewise.
9676 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
9677 Use dg-runtest rather than gfortran-dg-runtest.
9678
9679 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
9680
9681 * testsuite/libgomp.c/icv-2.c: Extend current handling of
9682 Linux-based x86 systems to cover all GNU systems.
9683 * testsuite/libgomp.c/lock-3.c: Likewise.
9684 * testsuite/libgomp.c/pr48591.c: Likewise.
9685
9686 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
9687
9688 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
9689 GNU/Hurd, as done for Linux-based systems.
9690
9691 * config/posix/ptrlock.h: Fix comment.
9692
9693 2013-05-27 Tobias Burnus <burnus@net-b.de>
9694
9695 PR fortran/57423
9696 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
9697 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
9698 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
9699 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
9700 omp_destroy_nest_lock): Correct arguments to match the one in
9701 the OpenMP spec.
9702 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
9703 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
9704 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
9705 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
9706
9707 2013-05-16 Jakub Jelinek <jakub@redhat.com>
9708
9709 * testsuite/libgomp.c/loop-13.c: New test.
9710 * testsuite/libgomp.c/loop-14.c: New test.
9711 * testsuite/libgomp.c/loop-15.c: New test.
9712 * testsuite/libgomp.c++/loop-13.C: New test.
9713 * testsuite/libgomp.c++/loop-14.C: New test.
9714 * testsuite/libgomp.c++/loop-15.C: New test.
9715
9716 2013-02-06 Jakub Jelinek <jakub@redhat.com>
9717
9718 PR middle-end/56217
9719 * testsuite/libgomp.c++/pr56217.C: New test.
9720
9721 2013-02-01 Alan Modra <amodra@gmail.com>
9722
9723 * task.c (GOMP_task, GOMP_taskwait): Comment.
9724
9725 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
9726 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
9727
9728 PR libgomp/55561
9729 * config/linux/wait.h (do_spin): Use atomic load for addr.
9730 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
9731 for intptr and ptrlock.
9732 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
9733 for ptrlock.
9734
9735 2013-01-22 Alan Modra <amodra@gmail.com>
9736
9737 PR libgomp/51376
9738 PR libgomp/56073
9739 * task.c (GOMP_task): Revert 2011-12-09 change.
9740 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
9741 barrier to read task->children..
9742 (gomp_barrier_handle_tasks): ..and matching atomic store with
9743 release barrier here when setting parent->children to NULL.
9744
9745 2013-01-16 Jakub Jelinek <jakub@redhat.com>
9746 Tobias Burnus <burnus@net-b.de>
9747
9748 PR driver/55884
9749 * testsuite/libgomp.fortran/fortran.exp: Use
9750 -fintrinsic-modules-path= instead of
9751 -fintrinsic-modules-path.
9752
9753 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
9754
9755 Update copyright years.
9756
9757 2012-12-19 Tobias Burnus <burnus@net-b.de>
9758
9759 * testsuite/libgomp.fortran/fortran.exp: Set
9760 -fintrinsic-modules-path.
9761
9762 2012-12-19 Tobias Burnus <burnus@net-b.de>
9763
9764 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
9765 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
9766
9767 2012-11-21 Jakub Jelinek <jakub@redhat.com>
9768
9769 PR libgomp/55411
9770 * team.c (gomp_free_thread): Decrease gomp_managed_threads
9771 if pool had any threads_used.
9772
9773 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
9774
9775 * testsuite/libgomp.c++/pr24455.C: Use
9776 -Wl,-undefined,dynamic_lookup on darwin.
9777
9778 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
9779
9780 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
9781
9782 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
9783
9784 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
9785
9786 2012-10-23 Ian Bolton <ian.bolton@arm.com>
9787 Jim MacArthur <jim.macarthur@arm.com>
9788 Marcus Shawcroft <marcus.shawcroft@arm.com>
9789 Nigel Stephens <nigel.stephens@arm.com>
9790 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9791 Richard Earnshaw <rearnsha@arm.com>
9792 Sofiane Naci <sofiane.naci@arm.com>
9793 Stephen Thomas <stephen.thomas@arm.com>
9794 Tejas Belagod <tejas.belagod@arm.com>
9795 Yufeng Zhang <yufeng.zhang@arm.com>
9796
9797 * configure.tgt: Add AArch64.
9798
9799 2012-10-04 Jason Merrill <jason@redhat.com>
9800
9801 * testsuite/libgomp.c++/tls-init1.C: New.
9802
9803 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
9804
9805 * configure: Regenerated.
9806
9807 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
9808
9809 * config/linux/mips/futex.h (sys_futex0): Change to static
9810 function with noinline, nomips16 attributes under MIPS16. Adjust
9811 asm statement to place 'li v0,SYS_futex' immediately before
9812 syscall insn.
9813
9814 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
9815
9816 * libgomp.texi (Library Index): Renamed from "Index" to prevent
9817 conflict with index.html on case-insensitive file systems.
9818
9819 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
9820
9821 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
9822 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
9823
9824 2012-07-02 Richard Guenther <rguenther@suse.de>
9825 Michael Matz <matz@suse.de>
9826 Tobias Grosser <tobias@grosser.es>
9827 Sebastian Pop <sebpop@gmail.com>
9828
9829 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
9830 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9831 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9832 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9833
9834 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
9835
9836 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
9837
9838 2012-06-22 Richard Guenther <rguenther@suse.de>
9839
9840 Merge from graphite branch
9841 2012-01-13 Tobias Grosser <tobias@grosser.es>
9842
9843 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9844 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9845
9846 2012-06-07 Jakub Jelinek <jakub@redhat.com>
9847
9848 PR middle-end/53580
9849 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
9850 use GOMP_barrier () call instead.
9851 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9852 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9853 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
9854 call GOMP_barrier instead.
9855 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9856
9857 2012-06-06 Jakub Jelinek <jakub@redhat.com>
9858
9859 PR libgomp/52993
9860 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
9861 argument to memset call.
9862
9863 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
9864
9865 * configure: Regenerated.
9866
9867 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9868
9869 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
9870
9871 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
9872
9873 PR bootstrap/52812
9874 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
9875
9876 2012-03-22 Jakub Jelinek <jakub@redhat.com>
9877
9878 PR middle-end/52547
9879 * testsuite/libgomp.c/pr52547.c: New test.
9880
9881 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9882
9883 * testsuite/lib/libgomp.exp: load fortran-modules.exp
9884
9885 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9886
9887 * configure.tgt (mips-sgi-irix6*): Remove.
9888
9889 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9890
9891 * configure.tgt (alpha*-dec-osf*): Remove.
9892
9893 * config/osf/sem.h: Remove.
9894 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
9895
9896 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
9897
9898 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
9899
9900 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9901
9902 PR libstdc++/52188
9903 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
9904 Remove ENABLE_SYMVERS_SOL2.
9905 * configure: Regenerate.
9906 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
9907 (PREPROCESS): New variable.
9908 (libgomp.ver): New target.
9909 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
9910 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
9911 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
9912 Use libgomp.ver.
9913 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
9914 * Makefile.in: Regenerate.
9915
9916 2012-02-14 Walter Lee <walt@tilera.com>
9917
9918 * configure.tgt: Handle tilegx and tilepro.
9919 * config/linux/tile/futex.h: New file.
9920
9921 2012-02-08 Richard Guenther <rguenther@suse.de>
9922
9923 PR tree-optimization/46886
9924 * testsuite/libgomp.c/pr46886.c: New testcase.
9925
9926 2012-01-25 Matthias Klose <doko@ubuntu.com>
9927
9928 * config/linux/arm: Remove empty directory.
9929 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
9930
9931 2011-12-09 Alan Modra <amodra@gmail.com>
9932
9933 PR libgomp/51376
9934 * task.c (GOMP_taskwait): Don't access task->children outside of
9935 task_lock mutex region.
9936 (GOMP_task): Likewise.
9937
9938 2011-12-06 Jakub Jelinek <jakub@redhat.com>
9939
9940 PR libgomp/51132
9941 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
9942 to file scope.
9943 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9944 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9945 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9946 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9947 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9948
9949 2011-12-02 Alan Modra <amodra@gmail.com>
9950
9951 * config/linux/affinity.c: Use atomic rather than sync builtin.
9952 * config/linux/lock.c: Likewise.
9953 * config/linux/ptrlock.h: Likewise.
9954 * config/linux/ptrlock.c: Likewise.
9955 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
9956 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
9957 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
9958 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
9959 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
9960 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
9961 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
9962 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
9963 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
9964 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
9965
9966 2011-11-30 Alan Modra <amodra@gmail.com>
9967
9968 PR libgomp/51298
9969 * config/linux/bar.h: Use atomic rather than sync builtins.
9970 * config/linux/bar.c: Likewise. Add missing acquire
9971 synchronisation on generation field.
9972 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
9973 double unlock.
9974
9975 2011-11-30 Alan Modra <amodra@gmail.com>
9976
9977 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
9978 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
9979 * config/linux/mutex.h: Use atomic rather than sync builtins.
9980 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
9981 * config/linux/omp-lock.h: Comment fix.
9982 * config/linux/arm/mutex.h: Delete.
9983 * config/linux/powerpc/mutex.h: Delete.
9984 * config/linux/ia64/mutex.h: Delete.
9985 * config/linux/mips/mutex.h: Delete.
9986
9987 2011-11-30 Alan Modra <amodra@gmail.com>
9988
9989 PR libgomp/51249
9990 * config/linux/sem.h: Rewrite.
9991 * config/linux/sem.c: Rewrite.
9992
9993 2011-11-28 Richard Henderson <rth@redhat.com>
9994
9995 * libgomp.h (enum memmodel): New.
9996
9997 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
9998
9999 * configure: Regenerate.
10000
10001 2011-10-10 Matthias Klose <doko@ubuntu.com>
10002
10003 * config/posix95: Remove empty directory.
10004
10005 2011-08-26 Jakub Jelinek <jakub@redhat.com>
10006
10007 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
10008
10009 2011-08-19 Jakub Jelinek <jakub@redhat.com>
10010
10011 PR fortran/49792
10012 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
10013 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
10014
10015 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10016
10017 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
10018
10019 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10020
10021 PR libgomp/49965
10022 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
10023
10024 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
10025
10026 * config/linux/proc.h: New.
10027 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
10028 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
10029 (gomp_init_num_threads): Update call to cpuset_popcount.
10030 (get_num_procs): Ditto.
10031 * config/linux/affinity.c (gomp_init_affinity): Call
10032 gomp_cpuset_popcount.
10033
10034 2011-08-02 Jakub Jelinek <jakub@redhat.com>
10035
10036 PR fortran/42041
10037 PR fortran/46752
10038 * omp.h.in (omp_in_final): New prototype.
10039 * omp_lib.f90.in (omp_in_final): New interface.
10040 (omp_integer_kind, omp_logical_kind): Remove
10041 and replace all its uses in the module with 4.
10042 (openmp_version): Change to 201107.
10043 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
10044 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
10045 kind for the parameters.
10046 (omp_in_final): New external.
10047 (openmp_version): Change to 201107.
10048 * task.c (omp_in_final): New function.
10049 (gomp_init_task): Initialize final_task.
10050 (GOMP_task): Remove unused attribute from flags. Handle final
10051 tasks.
10052 (GOMP_taskyield): New function.
10053 (omp_in_final): Return true if if (false) or final (true) task
10054 or descendant of final (true).
10055 * fortran.c (omp_in_final_): New function.
10056 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
10057 (GOMP_3.0): Export GOMP_taskyield.
10058 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
10059 variables.
10060 (parse_unsigned_long_list): New function.
10061 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
10062 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
10063 even if parse_affinity returned false.
10064 * config/linux/affinity.c (gomp_init_affinity): Handle
10065 gomp_cpu_affinity_len == 0.
10066 * libgomp_g.h (GOMP_taskyield): New prototype.
10067 * libgomp.h (struct gomp_task): Add final_task field.
10068 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
10069 * team.c (gomp_team_start): Override new task's nthreads_var icv
10070 if list form OMP_NUM_THREADS has been used and it has value for
10071 the new nesting level.
10072
10073 * testsuite/libgomp.c/atomic-11.c: New test.
10074 * testsuite/libgomp.c/atomic-12.c: New test.
10075 * testsuite/libgomp.c/atomic-13.c: New test.
10076 * testsuite/libgomp.c/atomic-14.c: New test.
10077 * testsuite/libgomp.c/reduction-6.c: New test.
10078 * testsuite/libgomp.c/task-5.c: New test.
10079 * testsuite/libgomp.c++/atomic-2.C: New test.
10080 * testsuite/libgomp.c++/atomic-3.C: New test.
10081 * testsuite/libgomp.c++/atomic-4.C: New test.
10082 * testsuite/libgomp.c++/atomic-5.C: New test.
10083 * testsuite/libgomp.c++/atomic-6.C: New test.
10084 * testsuite/libgomp.c++/atomic-7.C: New test.
10085 * testsuite/libgomp.c++/atomic-8.C: New test.
10086 * testsuite/libgomp.c++/atomic-9.C: New test.
10087 * testsuite/libgomp.c++/task-8.C: New test.
10088 * testsuite/libgomp.c++/reduction-4.C: New test.
10089 * testsuite/libgomp.fortran/allocatable7.f90: New test.
10090 * testsuite/libgomp.fortran/allocatable8.f90: New test.
10091 * testsuite/libgomp.fortran/crayptr3.f90: New test.
10092 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
10093 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
10094 * testsuite/libgomp.fortran/pointer1.f90: New test.
10095 * testsuite/libgomp.fortran/pointer2.f90: New test.
10096 * testsuite/libgomp.fortran/task4.f90: New test.
10097
10098 2011-08-02 Tobias Burnus <burnus@net-b.de>
10099
10100 * libgomp.texi: Update OpenMP spec references to 3.1.
10101 (omp_in_final,OMP_PROC_BIND): New sections.
10102 (OMP_NUM_THREADS): Document that the value can be now a list.
10103 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
10104
10105 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
10106
10107 * config/linux/x86/futex.h: Check __x86_64__ instead of
10108 __LP64__.
10109
10110 2011-07-29 Jakub Jelinek <jakub@redhat.com>
10111
10112 PR middle-end/49897
10113 PR middle-end/49898
10114 * testsuite/libgomp.c/pr49897-1.c: New test.
10115 * testsuite/libgomp.c/pr49897-2.c: New test.
10116 * testsuite/libgomp.c/pr49898-1.c: New test.
10117 * testsuite/libgomp.c/pr49898-2.c: New test.
10118
10119 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
10120
10121 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
10122 for ia32 instead of ilp32.
10123
10124 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
10125 * testsuite/libgomp.c/atomic-6.c: Likewise.
10126
10127 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
10128
10129 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
10130 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
10131
10132 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10133
10134 PR libgomp/45351
10135 * config/osf/sem.h: New file.
10136 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
10137
10138 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10139
10140 PR target/49541
10141 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
10142 ldflags.
10143
10144 2011-07-15 Jakub Jelinek <jakub@redhat.com>
10145
10146 * config/linux/wait.h (do_spin): New inline, largely copied
10147 from do_wait, just don't do futex_wait here, instead return true if
10148 it should be done.
10149 (do_wait): Implement using do_spin.
10150 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
10151 to prototype.
10152 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10153 __sync_bool_compare_and_swap, pass the oldval to
10154 gomp_mutex_lock_slow.
10155 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
10156 If all mutex contenders are just spinning and not sleeping, don't
10157 change state to 2 unnecessarily. Optimize the loop when state has
10158 already become 2 to use just one atomic operation per loop instead
10159 of two.
10160 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
10161 to prototype.
10162 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10163 __sync_bool_compare_and_swap, pass the oldval to
10164 gomp_mutex_lock_slow.
10165
10166 2011-06-22 Jakub Jelinek <jakub@redhat.com>
10167
10168 PR libgomp/49490
10169 * iter.c (gomp_iter_static_next): For chunk size 0
10170 only use n ceil/ nthreads size for the first
10171 n % nthreads threads in the team instead of
10172 all threads except for the last few ones which
10173 get less work or none at all.
10174 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
10175 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
10176 chunk argument, set run_sched_modifier to 0 for static
10177 resp. 1 for other kinds. If chunk argument is 0
10178 and not static, set value to 1.
10179
10180 2011-05-19 Jakub Jelinek <jakub@redhat.com>
10181
10182 PR c++/49043
10183 * testsuite/libgomp.c++/pr49043.C: New test.
10184
10185 PR c++/48869
10186 * testsuite/libgomp.c++/pr48869.C: New test.
10187
10188 2011-05-06 Jakub Jelinek <jakub@redhat.com>
10189
10190 PR fortran/48894
10191 * fortran.c: Include limits.h.
10192 (TO_INT): Define.
10193 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
10194 *set.
10195 (omp_set_num_threads_8_, omp_set_schedule_8_,
10196 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
10197 omp_get_team_size_8_): Use TO_INT macro.
10198 * testsuite/libgomp.fortran/pr48894.f90: New test.
10199
10200 2011-04-13 Jakub Jelinek <jakub@redhat.com>
10201
10202 PR middle-end/48591
10203 * testsuite/libgomp.c/pr48591.c: New test.
10204
10205 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10206
10207 PR bootstrap/48135
10208 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
10209 * configure: Regenerate.
10210
10211 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10212
10213 PR fortran/47886
10214 * testsuite/libgomp.fortran/task3.f90: New test.
10215
10216 2011-02-24 Tobias Burnus <burnus@net-b.de>
10217
10218 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
10219
10220 2011-02-23 Jakub Jelinek <jakub@redhat.com>
10221
10222 PR libgomp/47854
10223 * libgomp.texi (omp_get_wtime): Don't say time in the past
10224 must be Unix Epoch.
10225
10226 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10227
10228 PR libgomp/47804
10229 * testsuite/libgomp.fortran/fortran.exp: Check for both
10230 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
10231 but $blddir != "", still append ${blddir}/${lang_library_path}
10232 to ld_library_path.
10233
10234 2011-02-16 Tobias Burnus <burnus@net-b.de>
10235
10236 PR libgomp/47758
10237 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
10238 of libquadmath.a before adding its libpath to ldflags.
10239
10240 2011-02-14 Jakub Jelinek <jakub@redhat.com>
10241
10242 PR libgomp/47731
10243 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
10244 to FUTEX_WAIT futex syscall.
10245 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
10246
10247 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10248
10249 * configure: Regenerate.
10250
10251 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
10252
10253 PR libstdc++/36104
10254 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
10255
10256 2011-01-16 Gerald Pfeifer
10257
10258 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
10259
10260 2010-12-14 Jakub Jelinek <jakub@redhat.com>
10261
10262 PR fortran/46874
10263 * libgomp.fortran/allocatable6.f90: New test.
10264
10265 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10266
10267 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
10268 * configure: Regenerate.
10269
10270 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
10271
10272 PR target/40125
10273 PR lto/46695
10274 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
10275 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
10276 * aclocal.m4: Regenerate.
10277 * configure: Regenerate.
10278 * Makefile.in: Regenerate.
10279 * testsuite/Makefile.in: Regenerate.
10280
10281 2010-12-02 Jakub Jelinek <jakub@redhat.com>
10282
10283 PR fortran/46753
10284 * libgomp.fortran/pr46753.f90: New test.
10285
10286 PR libgomp/43706
10287 * env.c (initialize_env): Default to spin count 300000
10288 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
10289 is specified.
10290
10291 PR libgomp/45240
10292 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
10293 at the end if sync builtins aren't supported.
10294
10295 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10296
10297 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
10298
10299 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10300
10301 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
10302
10303 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
10304
10305 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
10306
10307 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10308 Tobias Burnus <burnus@net-b.de>
10309
10310 PR fortran/32049
10311 * configure.ac:
10312 * configure: Regenerate.
10313
10314 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
10315
10316 * config/linux/futex.h: New.
10317 * config/linux/arm/mutex.h: New.
10318 * configure.tgt (arm*-*-linux*): Add config path.
10319
10320 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10321
10322 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10323
10324 2010-09-23 Tobias Burnus <burnus@net-b.de>
10325
10326 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
10327 Change Fortran datatype to LOGICAL.
10328 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
10329 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
10330
10331 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10332
10333 * configure: Regenerate.
10334
10335 2010-07-26 Jakub Jelinek <jakub@redhat.com>
10336
10337 * libgomp.texi: Add function keyword to a couple of Fortran
10338 interfaces, use integer instead of int for Fortran.
10339
10340 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
10341
10342 * libgomp.texi: Fix spelling and pasto problems throughout.
10343 Adjust prototypes to match code.
10344
10345 2010-07-24 Tobias Burnus <burnus@net-b.de>
10346
10347 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
10348 silence -fwhole-file warning.
10349
10350 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10351
10352 * configure.tgt (*-*-solaris2.[56]*): Removed.
10353
10354 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10355
10356 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
10357 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
10358 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
10359 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
10360 targetting solaris2*.
10361 * configure: Regenerate.
10362 * config.h.in: Regenerate.
10363
10364 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
10365 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
10366 Add libgomp_version_dep.
10367 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
10368 versioning.
10369 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
10370 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
10371 * Makefile.in: Regenerate.
10372
10373 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
10374 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10375 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
10376 to common block, protected by
10377 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10378
10379 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
10380
10381 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
10382
10383 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
10384
10385 PR bootstrap/43170
10386 * configure: Regenerate.
10387
10388 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10389
10390 PR other/43620
10391 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
10392 * configure: Regenerate.
10393 * Makefile.in: Regenerate.
10394 * testsuite/Makefile.in: Regenerate.
10395
10396 2010-04-26 Jakub Jelinek <jakub@redhat.com>
10397
10398 PR c/43893
10399 * testsuite/libgomp.c/pr43893.c: New test.
10400 * testsuite/libgomp.c++/pr43893.C: New test.
10401
10402 2010-04-21 Jakub Jelinek <jakub@redhat.com>
10403
10404 PR middle-end/43570
10405 * testsuite/libgomp.fortran/vla8.f90: New test.
10406
10407 2010-04-20 Jakub Jelinek <jakub@redhat.com>
10408
10409 PR libgomp/43706
10410 * config/linux/affinity.c (gomp_init_affinity): Decrease
10411 gomp_available_cpus if affinity mask confines the process to fewer
10412 CPUs.
10413 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
10414 non-NULL, just return gomp_available_cpus.
10415
10416 PR libgomp/43569
10417 * sections.c (gomp_sections_init): Initialize ws->mode.
10418
10419 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10420
10421 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
10422 not unused bar variable.
10423 * configure: Regenerate.
10424
10425 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10426
10427 * Makefile.in: Regenerate.
10428 * aclocal.m4: Regenerate.
10429 * testsuite/Makefile.in: Regenerate.
10430
10431 2010-03-22 Jakub Jelinek <jakub@redhat.com>
10432
10433 PR libgomp/42942
10434 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
10435 (initialize_env): Adjust callers.
10436 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
10437 when the argument is 0.
10438
10439 * testsuite/libgomp.c/pr42942.c: New test.
10440
10441 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
10442
10443 PR middle-end/42644
10444 PR middle-end/42130
10445 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10446 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
10447
10448 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10449
10450 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
10451 * testsuite/libgomp.c++/task-6.C: Likewise.
10452
10453 2010-01-28 Steve Ellcey <sje@cup.hp.com>
10454
10455 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
10456
10457 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
10458
10459 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
10460 * configure: Regenerate.
10461
10462 2010-01-26 Jakub Jelinek <jakub@redhat.com>
10463
10464 PR fortran/42866
10465 * testsuite/libgomp.fortran/allocatable5.f90: New test.
10466
10467 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
10468
10469 * configure.ac: Test for executability of GFORTRAN.
10470 * configure: Regenerate.
10471
10472 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10473
10474 * configure: Regenerate.
10475
10476 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
10477
10478 PR libgomp/42602
10479 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
10480
10481 2010-01-03 Richard Guenther <rguenther@suse.de>
10482
10483 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
10484
10485 2009-12-23 Sebastian Pop <sebpop@gmail.com>
10486
10487 * testsuite/libgomp.graphite/pr4118.c: New.
10488
10489 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10490
10491 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
10492 for darwin, protect the test with require-effective-target tls_runtime.
10493 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
10494
10495 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10496
10497 PR target/41605
10498 * testsuite/lib/libgomp.exp: Provide -B options to allow for
10499 link spec %s substitutions for static libraries.
10500
10501 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
10502
10503 PR testsuite/42135
10504 * libgomp.graphite/force-parallel-2.c: Reduce array size.
10505
10506 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10507
10508 * Makefile.in: Regenerate.
10509 * configure: Regenerate.
10510 * testsuite/Makefile.in: Regenerate.
10511
10512 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
10513
10514 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
10515 settings for LC_ALL and LANG.
10516
10517 2009-11-25 Jakub Jelinek <jakub@redhat.com>
10518
10519 PR fortran/42162
10520 * testsuite/libgomp.fortran/pr42162.f90: New test.
10521
10522 2009-11-13 Jakub Jelinek <jakub@redhat.com>
10523
10524 PR middle-end/42029
10525 * testsuite/libgomp.c/pr42029.c: New test.
10526
10527 2009-10-26 Jakub Jelinek <jakub@redhat.com>
10528
10529 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
10530 *s. Accept ld version without text in ()s.
10531 * configure: Regenerated.
10532
10533 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
10534
10535 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
10536
10537 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10538
10539 PR libgomp/41418
10540 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
10541 or a hyphen (happens with fortran language disabled).
10542 * configure: Regenerate.
10543
10544 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10545
10546 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
10547 use sed script portable to Solaris /bin/sed for extracting ld
10548 version.
10549 * configure: Regenerate.
10550
10551 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
10552
10553 * testsuite/libgomp.graphite/bounds.c: New test.
10554
10555 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10556
10557 * Makefile.am (libgomp_la_LINK): New.
10558 * Makefile.in: Regenerate.
10559
10560 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10561
10562 * configure.ac (AC_PREREQ): Bump to 2.64.
10563
10564 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10565
10566 * Makefile.am (install-html, install-pdf): Remove.
10567 * Makefile.in: Regenerate.
10568
10569 * Makefile.in: Regenerate.
10570 * aclocal.m4: Regenerate.
10571 * config.h.in: Regenerate.
10572 * configure: Regenerate.
10573 * testsuite/Makefile.in: Regenerate.
10574
10575 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10576
10577 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
10578 * Makefile.in: Regenerate.
10579
10580 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
10581
10582 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
10583 * Makefile.in: Regenerate.
10584
10585 2009-08-19 Tobias Burnus <burnus@net-b.de>
10586
10587 PR fortran/41102
10588 omp_lib.h.in: Fix -std=f95 errors.
10589
10590 2009-08-14 David Edelsohn <edelsohn@gnu.org>
10591
10592 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
10593 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
10594 * testsuite/libgomp.graphite/graphite.exp: New.
10595
10596 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
10597
10598 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
10599 only build.
10600
10601 2009-08-04 David Daney <ddaney@caviumnetworks.com>
10602
10603 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
10604 needed memory barrier semantics.
10605 * config/linux/mips/mutex.h: New file.
10606
10607 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10608
10609 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
10610
10611 2009-07-16 Joseph Myers <joseph@codesourcery.com>
10612
10613 * configure: Regenerate.
10614
10615 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
10616
10617 PR testsuite/40699
10618 PR testsuite/40707
10619 PR testsuite/40709
10620 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
10621 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
10622 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
10623
10624 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
10625
10626 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
10627 options when choosing a multilib.
10628
10629 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
10630
10631 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
10632 ld_library_path. Use add_path. Add just find_libgcc_s to
10633 ld_library_path, not every libgcc multilib directory.
10634 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
10635 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
10636 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
10637 Use add_path.
10638 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
10639
10640 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
10641
10642 * Makefile.am (LTLDFLAGS): Define.
10643 (LINK): Define.
10644 * Makefile.in: Regenerate.
10645
10646 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
10647
10648 PR fortran/39718
10649 * testsuite/libgomp.fortran/fortran.exp: Don't link with
10650 libgfortranbegin, check existence of libgfortran.a instead of
10651 libgfortranbegin.a.
10652
10653 2009-05-20 Jakub Jelinek <jakub@redhat.com>
10654
10655 PR libgomp/40174
10656 * team.c (gomp_thread_start): Destroy thr->release semaphore.
10657 (gomp_free_pool_helper): Likewise.
10658
10659 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
10660 Jakub Jelinek <jakub@redhat.com>
10661
10662 PR fortran/35423
10663 * testsuite/libgomp.fortran/workshare2.f90: New test.
10664
10665 2009-04-09 Nick Clifton <nickc@redhat.com>
10666
10667 * iter.c: Change copyright header to refer to version 3 of the
10668 GNU General Public License with version 3.1 of the GCC Runtime
10669 Library Exception and to point readers at the COPYING3 and
10670 COPYING3.RUNTIME files and the FSF's license web page.
10671 * alloc.c: Likewise.
10672 * barrier.c: Likewise.
10673 * config/bsd/proc.c: Likewise.
10674 * config/linux/affinity.c: Likewise.
10675 * config/linux/alpha/futex.h: Likewise.
10676 * config/linux/bar.c: Likewise.
10677 * config/linux/bar.h: Likewise.
10678 * config/linux/ia64/futex.h: Likewise.
10679 * config/linux/ia64/mutex.h: Likewise.
10680 * config/linux/lock.c: Likewise.
10681 * config/linux/mips/futex.h: Likewise.
10682 * config/linux/mutex.c: Likewise.
10683 * config/linux/mutex.h: Likewise.
10684 * config/linux/powerpc/futex.h: Likewise.
10685 * config/linux/proc.c: Likewise.
10686 * config/linux/ptrlock.c: Likewise.
10687 * config/linux/ptrlock.h: Likewise.
10688 * config/linux/s390/futex.h: Likewise.
10689 * config/linux/sem.c: Likewise.
10690 * config/linux/sem.h: Likewise.
10691 * config/linux/sparc/futex.h: Likewise.
10692 * config/linux/wait.h: Likewise.
10693 * config/linux/x86/futex.h: Likewise.
10694 * config/mingw32/proc.c: Likewise.
10695 * config/mingw32/time.c: Likewise.
10696 * config/posix/affinity.c: Likewise.
10697 * config/posix/bar.c: Likewise.
10698 * config/posix/bar.h: Likewise.
10699 * config/posix/lock.c: Likewise.
10700 * config/posix/mutex.h: Likewise.
10701 * config/posix/proc.c: Likewise.
10702 * config/posix/ptrlock.h: Likewise.
10703 * config/posix/sem.c: Likewise.
10704 * config/posix/sem.h: Likewise.
10705 * config/posix/time.c: Likewise.
10706 * config/posix95/lock.c: Likewise.
10707 * critical.c: Likewise.
10708 * env.c: Likewise.
10709 * error.c: Likewise.
10710 * fortran.c: Likewise.
10711 * iter_ull.c: Likewise.
10712 * libgomp.h: Likewise.
10713 * libgomp_f.h.in: Likewise.
10714 * libgomp_g.h: Likewise.
10715 * loop.c: Likewise.
10716 * loop_ull.c: Likewise.
10717 * omp.h.in: Likewise.
10718 * omp_lib.f90.in: Likewise.
10719 * omp_lib.h.in: Likewise.
10720 * ordered.c: Likewise.
10721 * parallel.c: Likewise.
10722 * sections.c: Likewise.
10723 * single.c: Likewise.
10724 * task.c: Likewise.
10725 * team.c: Likewise.
10726 * work.c: Likewise.
10727
10728 2009-04-09 Jakub Jelinek <jakub@redhat.com>
10729
10730 * testsuite/config/default.exp: Change copyright header to refer to
10731 version 3 of the GNU General Public License and to point readers
10732 at the COPYING3 file and the FSF's license web page.
10733
10734 2009-04-08 Jakub Jelinek <jakub@redhat.com>
10735
10736 PR middle-end/39573
10737 * libgomp.c++/pr39573.C: New test.
10738
10739 2009-04-01 Jakub Jelinek <jakub@redhat.com>
10740
10741 PR other/39591
10742 * testsuite/libgomp.c/pr39591-1.c: New test.
10743 * testsuite/libgomp.c/pr39591-2.c: New test.
10744 * testsuite/libgomp.c/pr39591-3.c: New test.
10745
10746 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
10747
10748 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
10749 * testsuite/libgomp.c/atomic-6.c: Ditto.
10750
10751 2009-03-23 Jakub Jelinek <jakub@redhat.com>
10752
10753 PR c/39495
10754 * testsuite/libgomp.c/loop-12.c: New test.
10755 * testsuite/libgomp.c/loop-11.c: New test.
10756 * testsuite/libgomp.c++/loop-11.C: New test.
10757 * testsuite/libgomp.c++/loop-12.C: New test.
10758 * testsuite/libgomp.c++/for-8.C: New test.
10759
10760 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10761
10762 * configure: Regenerate.
10763
10764 2009-02-11 Jakub Jelinek <jakub@redhat.com>
10765
10766 PR middle-end/39154
10767 * testsuite/libgomp.c/pr39154.c: New test.
10768
10769 2009-01-30 Ian Lance Taylor <iant@google.com>
10770
10771 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
10772 libgomp_ld_is_gold. Get gold version number.
10773 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
10774 * configure: Rebuild.
10775
10776 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10777
10778 * testsuite/lib/libgomp.exp: Add -B option for targets that
10779 use libgfortran.a%s in their specs.
10780
10781 2009-01-07 Jakub Jelinek <jakub@redhat.com>
10782
10783 PR libgomp/38086
10784 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
10785 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
10786 HAVE_AS_SYMVER_DIRECTIVE is not defined.
10787 * configure: Regenerated.
10788 * config.h.in: Likewise.
10789
10790 2008-12-28 Jakub Jelinek <jakub@redhat.com>
10791
10792 PR c++/38650
10793 * testsuite/libgomp.c/pr38650.c: New test.
10794 * testsuite/libgomp.c++/pr38650.C: New test.
10795
10796 2008-12-27 Jakub Jelinek <jakub@redhat.com>
10797
10798 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
10799
10800 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
10801
10802 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
10803
10804 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10805
10806 * configure: Regenerate.
10807
10808 2008-12-08 Jakub Jelinek <jakub@redhat.com>
10809
10810 PR middle-end/36802
10811 * testsuite/libgomp.c/pr36802-1.c: New test.
10812 * testsuite/libgomp.c/pr36802-2.c: New test.
10813 * testsuite/libgomp.c/pr36802-3.c: New test.
10814
10815 2008-12-01 Janis Johnson <janis187@us.ibm.com>
10816
10817 PR libgomp/38270
10818 * config/linux/powerpc/mutex.h: New.
10819
10820 2008-12-01 Jakub Jelinek <jakub@redhat.com>
10821
10822 PR c++/38257
10823 * testsuite/libgomp.c++/for-7.C: New test.
10824
10825 PR c++/38348
10826 * testsuite/libgomp.c++/for-6.C: New test.
10827
10828 2008-11-26 Janis Johnson <janis187@us.ibm.com>
10829
10830 PR testsuite/28870
10831 * testsuite/lib/libgomp.exp: Include new timeout library files.
10832 (libgomp_target_compile): Set timeout value from new proc.
10833
10834 2008-11-13 Steve Ellcey <sje@cup.hp.com>
10835
10836 PR libgomp/37938
10837 * config/linux/ia64/mutex.h: New.
10838
10839 2008-11-04 Tobias Burnus <burnus@net-b.de>
10840
10841 PR libgomp/37935
10842 * libgomp.texi (Runtime library routines, environment variables):
10843 Update for OpenMP version 3.0.
10844
10845 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
10846 Steve Ellcey <sje@cup.hp.com>
10847
10848 * configure: Regenerate for new libtool.
10849 * Makefile.in: Ditto.
10850 * testsuite/Makefile.in: Ditto.
10851
10852 2008-09-19 Jakub Jelinek <jakub@redhat.com>
10853 Andreas Tobler <a.tobler@schweiz.org>
10854
10855 * config/bsd/proc.c: New file.
10856 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
10857 * configure.ac: Check for header <sys/sysctl.h>
10858 * configure: Regenerate.
10859 * config.h.in: Likewise.
10860
10861 2008-09-05 Janis Johnson <janis187@us.ibm.com>
10862
10863 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
10864
10865 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
10866
10867 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
10868 * Makefile.in: Regenerated.
10869 * testsuite/Makefile.in: Regenerated.
10870
10871 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
10872
10873 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
10874 depend on blddir if blddir exists.
10875 (libgomp_target_compile): Likewise.
10876 * testsuite/libgomp.c++/c++.exp: Likewise.
10877 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10878
10879 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10880
10881 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
10882 Do not list GPL as Invariant Section.
10883
10884 2008-07-28 Ilie Garbacea <ilie@mips.com>
10885 Chao-ying Fu <fu@mips.com>
10886
10887 * configure.tgt: Enable futex for MIPS.
10888 * config/linux/mips/futex.h: New file.
10889
10890 2008-07-16 Jakub Jelinek <jakub@redhat.com>
10891
10892 * team.c (gomp_team_end): Free team immediately if it has
10893 just one thread.
10894
10895 2008-07-08 David Edelsohn <edelsohn@gnu.org>
10896
10897 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
10898 * testsuite/libgomp.fortran/fortran.exp: Same.
10899 * testsuite/libgomp.c/c.exp: Same.
10900 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
10901 directory to library path first.
10902
10903 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
10904
10905 * env.c (parse_stacksize): Add cast to avoid warning.
10906 (parse_spincount): Likewise.
10907
10908 2008-06-27 Jakub Jelinek <jakub@redhat.com>
10909
10910 * testsuite/libgomp.c/loop-10.c: New test.
10911 * libgomp.c/loop-3.c (main): Add lastprivate clause.
10912 * libgomp.c++/loop-6.C (main): Likewise.
10913
10914 PR debug/36617
10915 * testsuite/libgomp.c/debug-1.c: New test.
10916
10917 2008-06-19 Jakub Jelinek <jakub@redhat.com>
10918
10919 * testsuite/libgomp.c/nqueens-1.c: New test.
10920
10921 PR c++/36523
10922 * testsuite/libgomp.c++/task-7.C: New function.
10923
10924 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10925
10926 * configure: Regenerate.
10927
10928 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10929
10930 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
10931 mutex when HAVE_SYNC_BUILTINS isn't defined.
10932
10933 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10934
10935 * libgomp.texi (omp_test_lock): Fix typo.
10936
10937 2008-06-12 Tobias Burnus <burnus@net-b.de>
10938
10939 * omp_lib.f90.in: Add "implicit none".
10940
10941 2008-06-12 Jakub Jelinek <jakub@redhat.com>
10942
10943 PR middle-end/36506
10944 * testsuite/libgomp.c/reduction-5.c: New test.
10945
10946 2008-06-11 Jakub Jelinek <jakub@redhat.com>
10947
10948 * libgomp.h (struct gomp_task): Add in_tied_task field.
10949 * task.c (gomp_init_task): Initialize it.
10950 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
10951 unconditionally. Don't call gomp_team_barrier_wake if
10952 current task is implicit or if(0) from implicit and number of
10953 running tasks is equal to nthreads - 1.
10954
10955 PR libgomp/36471
10956 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
10957 omp_get_team_size_8): Fix pastos.
10958
10959 PR libgomp/36469
10960 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
10961 * configure: Regenerated.
10962 * config.h.in: Regenerated.
10963 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
10964 defined.
10965
10966 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
10967
10968 PR bootstrap/36452
10969 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
10970 (GOMP_loop_ull_dynamic_start): Likewise.
10971 (GOMP_loop_ull_guided_start): Likewise.
10972 (GOMP_loop_ull_ordered_static_start): Likewise.
10973 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
10974 (GOMP_loop_ull_ordered_guided_start): Likewise.
10975
10976 2008-06-06 Jakub Jelinek <jakub@redhat.com>
10977 Richard Henderson <rth@redhat.com>
10978 Ulrich Drepper <drepper@redhat.com>
10979 Jakob Blomer <jakob.blomer@ira.uka.de>
10980
10981 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
10982 Substitute also OMP_*LOCK_25*.
10983 * configure: Regenerated.
10984 * config.h.in: Regenerated.
10985 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
10986 ptrlock.c and task.c.
10987 * Makefile.in: Regenerated.
10988 * testsuite/Makefile.in: Regenerated.
10989 * task.c: New file.
10990 * loop_ull.c: New file.
10991 * iter_ull.c: New file.
10992 * libgomp.h: Include ptrlock.h.
10993 (enum gomp_task_kind): New type.
10994 (struct gomp_team): Add task_lock, task_queue, task_count,
10995 task_running_count, single_count fields. Add
10996 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
10997 Remove work_share_lock, generation_mask,
10998 oldest_live_gen, num_live_gen and init_work_shares fields, add
10999 work work_share_list_alloc, work_share_list_free and work_share_chunk
11000 fields. Change work_shares from pointer to pointers into an array.
11001 Change ordered_release field into gomp_sem_t ** from flexible array
11002 member. Add implicit_task and initial_work_shares fields.
11003 Move close to the end of the struct.
11004 (struct gomp_team_state): Add single_count, last_work_share,
11005 active_level and level fields, remove work_share_generation.
11006 (gomp_barrier_handle_tasks): New prototype.
11007 (gomp_finish_task): New inline function.
11008 (struct gomp_work_share): Move chunk_size, end, incr into
11009 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
11010 next_ll fields. Reshuffle fields. Add next_alloc,
11011 next_ws, next_free and inline_ordered_team_ids fields, change
11012 ordered_team_ids into pointer from flexible array member.
11013 Add mode field. Put lock and next into a different cache line
11014 from most of the write-once fields.
11015 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
11016 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
11017 gomp_iter_ull_guided_next): New prototypes.
11018 (gomp_new_icv): New prototype.
11019 (struct gomp_thread): Add thread_pool and task fields.
11020 (struct gomp_thread_pool): New type.
11021 (gomp_new_team): New prototype.
11022 (gomp_team_start): Change type of last argument.
11023 (gomp_new_work_share): Removed.
11024 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
11025 (gomp_work_share_init_done): New static inline.
11026 (gomp_throttled_spin_count_var, gomp_available_cpus,
11027 gomp_managed_threads): New extern decls.
11028 (gomp_init_task): New prototype.
11029 (gomp_spin_count_var): New extern var decl.
11030 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
11031 or no alias support, or if not PIC.
11032 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
11033 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
11034 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
11035 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
11036 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
11037 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
11038 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
11039 gomp_test_nest_lock_25): New prototypes.
11040 (omp_lock_symver, strong_alias): Define.
11041 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
11042 decls.
11043 (gomp_end_task): New.
11044 (struct gomp_task_icv, gomp_global_icv): New.
11045 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
11046 (struct gomp_task): New.
11047 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11048 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11049 (gomp_icv): New.
11050 (gomp_schedule_type): Reorder enum to match
11051 omp_sched_t.
11052 * team.c (struct gomp_thread_start_data): Add thread_pool and task
11053 fields.
11054 (gomp_thread_start): Add gomp_team_barrier_wait call.
11055 For non-nested case remove clearing of docked thread thr fields.
11056 Use pool fields instead of global gomp_* variables. Use
11057 gomp_barrier_wait_last when needed. Initialize ts.active_level.
11058 Create tasks for each member thread.
11059 (free_team): Only destroy team barrier, task_lock here and free it.
11060 (gomp_free_thread): Free last_team if non-NULL.
11061 (gomp_team_end): Call gomp_team_barrier_wait instead of
11062 gomp_barrier_wait. For nested case call one extra
11063 gomp_barrier_wait. Move here some destruction from free_team.
11064 Call free_team on pool->last_team if any, rather than freeing
11065 current team. Destroy work_share_list_free_lock ifndef
11066 HAVE_SYNC_BUILTINS.
11067 (gomp_new_icv): New function.
11068 (gomp_threads, gomp_threads_size, gomp_threads_used,
11069 gomp_threads_dock): Removed.
11070 (gomp_thread_destructor): New variable.
11071 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
11072 functions.
11073 (gomp_team_start): Create new pool if current thread doesn't have
11074 one. Use pool fields instead of global gomp_* variables.
11075 Initialize thread_pool field for new threads. Clear single_count.
11076 Change last argument from ws to team, don't create
11077 new team, set ts.work_share to &team->work_shares[0] and clear
11078 ts.last_work_share. Don't clear ts.work_share_generation.
11079 If number of threads changed, adjust atomically gomp_managed_threads.
11080 Use gomp_init_task instead of gomp_new_task,
11081 set thr->task to the corresponding implicit_task array entry.
11082 Create tasks for each member thread. Initialize ts.level.
11083 (initialize_team): Call pthread_key_create on
11084 gomp_thread_destructor.
11085 (team_destructor): New function.
11086 (new_team): Removed.
11087 (gomp_new_team): New function.
11088 (free_team): Free gomp_work_share blocks chained through next_alloc,
11089 instead of freeing work_shares and destroying work_share_lock.
11090 (gomp_team_end): Call gomp_fini_work_share. If number of threads
11091 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
11092 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
11093 of gomp_barrier_wait.
11094 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
11095 instead of gomp_barrier_wait. Call gomp_work_share_init_done
11096 if gomp_work_share_start returned true. Don't unlock ws->lock.
11097 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
11098 of gomp_barrier_wait.
11099 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
11100 gomp_work_share_init_done if gomp_work_share_start returned true.
11101 Don't unlock ws->lock.
11102 * work.c: Include stddef.h.
11103 (free_work_share): Use work_share_list_free_lock instead
11104 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
11105 Call gomp_fini_work_share and then either free ws if orphaned, or
11106 put it into work_share_list_free list of the current team.
11107 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
11108 functions.
11109 (gomp_work_share_start, gomp_work_share_end,
11110 gomp_work_share_end_nowait): Rewritten.
11111 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
11112 (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 interfaces.
11119 * omp_lib.h.in (openmp_version): Set to 200805.
11120 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11121 omp_sched_guided, omp_sched_auto): New parameters.
11122 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11123 omp_set_max_active_levels, omp_get_max_active_levels,
11124 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11125 omp_get_active_level): New externals.
11126 * loop.c: Include limits.h.
11127 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
11128 GFS_AUTO.
11129 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
11130 Likewise. Use gomp_icv.
11131 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
11132 ts.static_trip here.
11133 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
11134 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
11135 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
11136 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
11137 don't unlock ws->lock, otherwise lock it.
11138 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
11139 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
11140 (gomp_parallel_loop_start): Call gomp_new_team instead of
11141 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
11142 Adjust gomp_team_start caller. Pass 0 as second argument to
11143 gomp_resolve_num_threads.
11144 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
11145 If adding ws->chunk_size nthreads + 1 times after end won't
11146 overflow, set ws->mode to 1.
11147 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
11148 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
11149 GOMP_loop_ull_ordered_static_start,
11150 GOMP_loop_ull_ordered_dynamic_start,
11151 GOMP_loop_ull_ordered_guided_start,
11152 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
11153 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
11154 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
11155 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
11156 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
11157 prototypes.
11158 * libgomp.map: Export lock routines also @@OMP_2.0.
11159 (GOMP_loop_ordered_dynamic_first,
11160 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
11161 GOMP_loop_ordered_static_first): Remove.
11162 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
11163 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
11164 GOMP_loop_ull_ordered_dynamic_next,
11165 GOMP_loop_ull_ordered_dynamic_start,
11166 GOMP_loop_ull_ordered_guided_next,
11167 GOMP_loop_ull_ordered_guided_start,
11168 GOMP_loop_ull_ordered_runtime_next,
11169 GOMP_loop_ull_ordered_runtime_start,
11170 GOMP_loop_ull_ordered_static_next,
11171 GOMP_loop_ull_ordered_static_start,
11172 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
11173 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
11174 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
11175 (omp_set_schedule, omp_get_schedule,
11176 omp_get_thread_limit, omp_set_max_active_levels,
11177 omp_get_max_active_levels, omp_get_level,
11178 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
11179 omp_set_schedule_, omp_set_schedule_8_,
11180 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11181 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11182 omp_get_max_active_levels_, omp_get_level_,
11183 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11184 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11185 New exports @@OMP_3.0.
11186 * omp.h.in (omp_sched_t): New type.
11187 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11188 omp_set_max_active_levels, omp_get_max_active_levels,
11189 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11190 omp_get_active_level): New prototypes.
11191 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
11192 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
11193 gomp_thread_limit_var, gomp_remaining_threads_count,
11194 gomp_remaining_threads_lock): New variables.
11195 (parse_spincount): New function.
11196 (initialize_env): Call gomp_init_num_threads unconditionally.
11197 Initialize gomp_available_cpus. Call parse_spincount,
11198 initialize gomp_{,throttled_}spin_count_var
11199 depending on presence and value of OMP_WAIT_POLICY and
11200 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
11201 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
11202 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
11203 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
11204 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
11205 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11206 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11207 (gomp_global_icv): New.
11208 (parse_schedule): Use it. Parse "auto".
11209 (omp_set_num_threads): Use gomp_icv.
11210 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
11211 Likewise.
11212 (omp_get_max_threads): Move from parallel.c.
11213 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11214 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
11215 add ialias.
11216 (parse_stacksize, parse_wait_policy): New functions.
11217 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
11218 both wrappers for compatibility and new locks.
11219 (omp_set_schedule, omp_get_schedule,
11220 omp_get_thread_limit, omp_set_max_active_levels,
11221 omp_get_max_active_levels, omp_get_level,
11222 omp_get_ancestor_thread_num, omp_get_team_size,
11223 omp_get_active_level): New ialias_redirect.
11224 (omp_set_schedule_, omp_set_schedule_8_,
11225 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11226 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11227 omp_get_max_active_levels_, omp_get_level_,
11228 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11229 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11230 New functions.
11231 * parallel.c: Include limits.h.
11232 (gomp_resolve_num_threads): Add count argument. Rewritten.
11233 (GOMP_parallel_start): Call gomp_new_team and pass that as last
11234 argument to gomp_team_start. Pass 0 as second argument to
11235 gomp_resolve_num_threads.
11236 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
11237 if gomp_thread_limit_var != ULONG_MAX.
11238 (omp_in_parallel): Implement using ts.active_level.
11239 (omp_get_max_threads): Move to env.c.
11240 (omp_get_level, omp_get_ancestor_thread_num,
11241 omp_get_team_size, omp_get_active_level): New functions,
11242 add ialias.
11243 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
11244 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
11245 gomp_iter_dynamic_next instead of the _locked variant and don't take
11246 lock around it, otherwise acquire it before calling
11247 gomp_iter_dynamic_next_locked.
11248 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
11249 gomp_iter_dynamic_next instead of the _locked variant and don't take
11250 lock around it.
11251 (GOMP_parallel_sections_start): Call gomp_new_team instead of
11252 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
11253 Adjust gomp_team_start caller. Pass count as second argument to
11254 gomp_resolve_num_threads, don't adjust num_threads after the call.
11255 Use gomp_icv.
11256 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
11257 ws->chunk_size by incr.
11258 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
11259 code.
11260 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
11261 types.
11262 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
11263 (omp_check_defines): Check even the compat defines.
11264 * config/linux/ptrlock.c: New file.
11265 * config/linux/ptrlock.h: New file.
11266 * config/linux/wait.h: New file.
11267 * config/posix/ptrlock.c: New file.
11268 * config/posix/ptrlock.h: New file.
11269 * config/linux/bar.h (gomp_team_barrier_wait,
11270 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11271 (gomp_team_barrier_set_task_pending,
11272 gomp_team_barrier_clear_task_pending,
11273 gomp_team_barrier_set_waiting_for_tasks,
11274 gomp_team_barrier_waiting_for_tasks,
11275 gomp_team_barrier_done): New inlines.
11276 (gomp_barrier_t): Rewritten.
11277 (gomp_barrier_state_t): New typedef.
11278 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
11279 gomp_barrier_wait_start): Rewritten.
11280 (gomp_barrier_wait_end): Change second argument to
11281 gomp_barrier_state_t.
11282 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11283 inlines.
11284 * config/linux/bar.c: Include wait.h instead of libgomp.h and
11285 futex.h.
11286 (gomp_barrier_wait_end): Rewritten.
11287 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11288 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
11289 * config/posix/bar.h (gomp_barrier_t): Add generation field.
11290 (gomp_barrier_state_t): New typedef.
11291 (gomp_team_barrier_wait,
11292 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11293 (gomp_barrier_wait_start): Or all but low 2 bits from generation
11294 into the return value. Return gomp_barrier_state_t.
11295 (gomp_team_barrier_set_task_pending,
11296 gomp_team_barrier_clear_task_pending,
11297 gomp_team_barrier_set_waiting_for_tasks,
11298 gomp_team_barrier_waiting_for_tasks,
11299 gomp_team_barrier_done): New inlines.
11300 (gomp_barrier_wait_end): Change second argument to
11301 gomp_barrier_state_t.
11302 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11303 inlines.
11304 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
11305 (gomp_barrier_wait_end): Change second argument to
11306 gomp_barrier_state_t.
11307 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11308 gomp_team_barrier_wake): New functions.
11309 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
11310 futex.h.
11311 (gomp_futex_wake, gomp_futex_wait): New variables.
11312 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
11313 * config/linux/lock.c: Rewrite to make locks task owned,
11314 for backwards compatibility provide the old entrypoints
11315 if symbol versioning. Include wait.h instead of libgomp.h and
11316 futex.h.
11317 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
11318 * config/posix95/lock.c: Rewrite to make locks task owned,
11319 for backwards compatibility provide the old entrypoints
11320 if symbol versioning.
11321 * config/posix/lock.c: Rewrite to make locks task owned,
11322 for backwards compatibility provide the old entrypoints
11323 if symbol versioning.
11324 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
11325 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
11326 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
11327 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11328 (sys_futex0): Return error code.
11329 (futex_wake, futex_wait): If ENOSYS was returned, clear
11330 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11331 (cpu_relax, atomic_write_barrier): New static inlines.
11332 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11333 (futex_wake, futex_wait): If ENOSYS was returned, clear
11334 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11335 (cpu_relax, atomic_write_barrier): New static inlines.
11336 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11337 (sys_futex0): Return error code.
11338 (futex_wake, futex_wait): If ENOSYS was returned, clear
11339 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11340 (cpu_relax, atomic_write_barrier): New static inlines.
11341 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11342 (sys_futex0): Return error code.
11343 (futex_wake, futex_wait): If ENOSYS was returned, clear
11344 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11345 (cpu_relax, atomic_write_barrier): New static inlines.
11346 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11347 (sys_futex0): Return error code.
11348 (futex_wake, futex_wait): If ENOSYS was returned, clear
11349 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11350 (cpu_relax, atomic_write_barrier): New static inlines.
11351 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11352 (sys_futex0): Return error code.
11353 (futex_wake, futex_wait): If ENOSYS was returned, clear
11354 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11355 (cpu_relax, atomic_write_barrier): New static inlines.
11356 * config/linux/sem.c: Include wait.h instead of libgomp.h and
11357 futex.h.
11358 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
11359 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
11360 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
11361 types.
11362 (omp_nest_lock_t): Change owner into void *, add lock field.
11363 * config/posix95/omp-lock.h: Include semaphore.h.
11364 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11365 (omp_lock_t): Use sem_t instead of mutex if semaphores
11366 aren't broken.
11367 (omp_nest_lock_t): Likewise. Change owner to void *.
11368 * config/posix/omp-lock.h: Include semaphore.h.
11369 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11370 (omp_lock_t): Use sem_t instead of mutex if semaphores
11371 aren't broken.
11372 (omp_nest_lock_t): Likewise. Add owner field.
11373
11374 2008-06-06 Jakub Jelinek <jakub@redhat.com>
11375
11376 * testsuite/libgomp.c/collapse-1.c: New test.
11377 * testsuite/libgomp.c/collapse-2.c: New test.
11378 * testsuite/libgomp.c/collapse-3.c: New test.
11379 * testsuite/libgomp.c/icv-1.c: New test.
11380 * testsuite/libgomp.c/icv-2.c: New test.
11381 * testsuite/libgomp.c/lib-2.c: New test.
11382 * testsuite/libgomp.c/lock-1.c: New test.
11383 * testsuite/libgomp.c/lock-2.c: New test.
11384 * testsuite/libgomp.c/lock-3.c: New test.
11385 * testsuite/libgomp.c/loop-4.c: New test.
11386 * testsuite/libgomp.c/loop-5.c: New test.
11387 * testsuite/libgomp.c/loop-6.c: New test.
11388 * testsuite/libgomp.c/loop-7.c: New test.
11389 * testsuite/libgomp.c/loop-8.c: New test.
11390 * testsuite/libgomp.c/loop-9.c: New test.
11391 * testsuite/libgomp.c/nested-3.c: New test.
11392 * testsuite/libgomp.c/nestedfn-6.c: New test.
11393 * testsuite/libgomp.c/sort-1.c: New test.
11394 * testsuite/libgomp.c/task-1.c: New test.
11395 * testsuite/libgomp.c/task-2.c: New test.
11396 * testsuite/libgomp.c/task-3.c: New test.
11397 * testsuite/libgomp.c/task-4.c: New test.
11398 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
11399 to C++ testsuite default compiler options.
11400 * testsuite/libgomp.c++/collapse-1.C: New test.
11401 * testsuite/libgomp.c++/collapse-2.C: New test.
11402 * testsuite/libgomp.c++/ctor-10.C: New test.
11403 * testsuite/libgomp.c++/for-1.C: New test.
11404 * testsuite/libgomp.c++/for-2.C: New test.
11405 * testsuite/libgomp.c++/for-3.C: New test.
11406 * testsuite/libgomp.c++/for-4.C: New test.
11407 * testsuite/libgomp.c++/for-5.C: New test.
11408 * testsuite/libgomp.c++/loop-8.C: New test.
11409 * testsuite/libgomp.c++/loop-9.C: New test.
11410 * testsuite/libgomp.c++/loop-10.C: New test.
11411 * testsuite/libgomp.c++/task-1.C: New test.
11412 * testsuite/libgomp.c++/task-2.C: New test.
11413 * testsuite/libgomp.c++/task-3.C: New test.
11414 * testsuite/libgomp.c++/task-4.C: New test.
11415 * testsuite/libgomp.c++/task-5.C: New test.
11416 * testsuite/libgomp.c++/task-6.C: New test.
11417 * testsuite/libgomp.fortran/allocatable1.f90: New test.
11418 * testsuite/libgomp.fortran/allocatable2.f90: New test.
11419 * testsuite/libgomp.fortran/allocatable3.f90: New test.
11420 * testsuite/libgomp.fortran/allocatable4.f90: New test.
11421 * testsuite/libgomp.fortran/collapse1.f90: New test.
11422 * testsuite/libgomp.fortran/collapse2.f90: New test.
11423 * testsuite/libgomp.fortran/collapse3.f90: New test.
11424 * testsuite/libgomp.fortran/collapse4.f90: New test.
11425 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
11426 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
11427 * testsuite/libgomp.fortran/lib4.f90: New test.
11428 * testsuite/libgomp.fortran/lock-1.f90: New test.
11429 * testsuite/libgomp.fortran/lock-2.f90: New test.
11430 * testsuite/libgomp.fortran/nested1.f90: New test.
11431 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
11432 * testsuite/libgomp.fortran/strassen.f90: New test.
11433 * testsuite/libgomp.fortran/tabs1.f90: New test.
11434 * testsuite/libgomp.fortran/tabs2.f: New test.
11435 * testsuite/libgomp.fortran/task1.f90: New test.
11436 * testsuite/libgomp.fortran/task2.f90: New test.
11437 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
11438 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11439 * testsuite/libgomp.c/pr26943-2.c: Likewise.
11440 * testsuite/libgomp.c/pr26943-3.c: Likewise.
11441 * testsuite/libgomp.c/pr26943-4.c: Likewise.
11442
11443 2008-05-23 Jakub Jelinek <jakub@redhat.com>
11444
11445 PR c++/36308
11446 * testsuite/libgomp.c++/ctor-11.C: New test.
11447 * testsuite/libgomp.c++/ctor-12.C: New test.
11448
11449 2008-05-15 Janis Johnson <janis187@us.ibm.com>
11450
11451 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
11452
11453 2008-05-07 Jakub Jelinek <jakub@redhat.com>
11454
11455 PR middle-end/36106
11456 * testsuite/libgomp.c/atomic-5.c: New test.
11457 * testsuite/libgomp.c/atomic-6.c: New test.
11458 * testsuite/libgomp.c/autopar-1.c: New test.
11459
11460 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11461
11462 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
11463 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
11464 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
11465 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
11466 * configure: Regenerate.
11467 * Makefile.in, testsuite/Makefile.in: Likewise.
11468
11469 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
11470
11471 PR bootstrap/35457
11472 * aclocal.m4: Regenerate.
11473 * configure: Regenerate.
11474
11475 2008-03-18 Jakub Jelinek <jakub@redhat.com>
11476
11477 PR middle-end/35611
11478 * testsuite/libgomp.c/atomic-4.c: New test.
11479
11480 PR libgomp/35625
11481 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
11482 (gomp_iter_guided_next): Likewise.
11483 * testsuite/libgomp.c/pr35625.c: New test.
11484
11485 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11486
11487 * aclocal.m4: Regenerate.
11488 * configure: Likewise.
11489 * Makefile.in: Likewise.
11490 * testsuite/Makefile.in: Likewise.
11491
11492 2008-03-13 Jakub Jelinek <jakub@redhat.com>
11493
11494 PR middle-end/35185
11495 * testsuite/libgomp.c++/pr35185.C: New test.
11496
11497 2008-03-12 Jakub Jelinek <jakub@redhat.com>
11498
11499 PR middle-end/35549
11500 * testsuite/libgomp.c/pr35549.c: New test.
11501
11502 2008-03-06 Jakub Jelinek <jakub@redhat.com>
11503
11504 * testsuite/libgomp.c/atomic-3.c: New test.
11505
11506 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11507
11508 PR fortran/33197
11509 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
11510 .F08 file suffixes.
11511
11512 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
11513
11514 PR libgomp/33131
11515 * configure.ac: Add ACX_HEADER_STRING.
11516 * env.c: Include strings.h.
11517 * aclocal.m4: Regenerate.
11518 * config.h.in: Regenerate.
11519 * configure: Regenerate.
11520 * Makefile.in: Regenerate.
11521 * testsuite/Makefile.in: Regenerate.
11522
11523 2008-02-15 Jakub Jelinek <jakub@redhat.com>
11524
11525 PR middle-end/35196
11526 * testsuite/libgomp.c/pr35196.c: New test.
11527
11528 PR middle-end/35130
11529 * testsuite/libgomp.fortran/pr35130.f90: New test.
11530 * testsuite/libgomp.c/pr35130.c: New test.
11531
11532 2008-01-25 Jakub Jelinek <jakub@redhat.com>
11533
11534 PR middle-end/33880
11535 * testsuite/libgomp.c/pr33880.c: New test.
11536 * testsuite/libgomp.fortran/pr33880.f90: New test.
11537
11538 2008-01-24 David Edelsohn <edelsohn@gnu.org>
11539
11540 * configure: Regenerate.
11541
11542 2008-01-08 Jakub Jelinek <jakub@redhat.com>
11543
11544 * configure.ac: Move futex checking into ../config/futex.m4.
11545 * configure: Rebuilt.
11546 * aclocal.m4: Rebuilt.
11547 * Makefile.in: Rebuilt.
11548
11549 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
11550 2007-10-15 ../config/tls.m4 change.
11551
11552 2007-12-19 Jakub Jelinek <jakub@redhat.com>
11553
11554 PR c++/34513
11555 * testsuite/libgomp.c/pr34513.c: New test.
11556 * testsuite/libgomp.c++/pr34513.C: New test.
11557
11558 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
11559
11560 PR target/32765
11561 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
11562
11563 2007-12-04 Jakub Jelinek <jakub@redhat.com>
11564
11565 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
11566
11567 2007-12-03 Jakub Jelinek <jakub@redhat.com>
11568
11569 * testsuite/libgomp.c/private-1.c: New test.
11570
11571 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
11572 Paolo Bonzini <bonzini@gnu.org>
11573
11574 * Makefile.am: Use space as vpath separator. Use 'vpath %'
11575 instead of 'VPATH ='.
11576 * Makefile.in: Regenerate.
11577
11578 2007-11-23 Matthias Klose <doko@ubuntu.com>
11579
11580 * configure.ac: Adjust makeinfo version check.
11581 * configure: Regenerate.
11582
11583 2007-11-10 Jakub Jelinek <jakub@redhat.com>
11584
11585 PR fortran/34020
11586 * testsuite/libgomp.fortran/pr34020.f90: New test.
11587
11588 2007-11-06 Jakub Jelinek <jakub@redhat.com>
11589
11590 PR c++/33894
11591 * testsuite/libgomp.c++/atomic-1.C: New test.
11592
11593 2007-10-25 Jakub Jelinek <jakub@redhat.com>
11594
11595 PR libgomp/33275
11596 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
11597 Make x and y integers rather than (implicit) reals. Add private (j)
11598 clause to the last omp parallel.
11599
11600 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
11601
11602 * configure: Regenerate following changes to ../config/tls.m4.
11603
11604 2007-09-28 Jakub Jelinek <jakub@redhat.com>
11605
11606 * testsuite/libgomp.fortran/stack.f90: New test.
11607
11608 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
11609
11610 * config/mingw32/proc.c: New file.
11611
11612 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
11613
11614 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
11615 (main): Use __get_cpuid to get i386 target fetaures.
11616 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
11617 (main): Use __get_cpuid to get x86_64 target fetaures.
11618
11619 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
11620
11621 PR target/32765
11622 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
11623 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
11624
11625 2007-07-12 Jakub Jelinek <jakub@redhat.com>
11626
11627 PR fortran/32550
11628 * testsuite/libgomp.fortran/pr32550.f90: New test.
11629 * testsuite/libgomp.fortran/crayptr2.f90: New test.
11630
11631 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
11632
11633 * aclocal.m4: Regenerated.
11634
11635 2007-07-05 Tobias Burnus <burnus@net-b.de>
11636
11637 PR fortran/32359
11638 * testsuite/libgomp.fortran/pr32359.f90: New.
11639
11640 2007-07-02 Jakub Jelinek <jakub@redhat.com>
11641
11642 PR libgomp/32468
11643 * sections.c (GOMP_parallel_sections_start): Only decrease
11644 number of threads to COUNT if dyn_var is true.
11645 * testsuite/libgomp.c/pr32468.c: New test.
11646
11647 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11648
11649 PR libgomp/26308
11650 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
11651
11652 2007-06-21 Jakub Jelinek <jakub@redhat.com>
11653
11654 PR middle-end/32362
11655 * testsuite/libgomp.c/pr32362-1.c: New test.
11656 * testsuite/libgomp.c/pr32362-2.c: New test.
11657 * testsuite/libgomp.c/pr32362-3.c: New test.
11658
11659 2007-06-07 Jakub Jelinek <jakub@redhat.com>
11660
11661 * team.c (gomp_team_start): Fix setting up thread_attr
11662 stack size.
11663
11664 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
11665
11666 * configure: Regenerate.
11667
11668 2007-05-23 Steve Ellcey <sje@cup.hp.com>
11669
11670 * Makefile.in: Regenerate.
11671 * configure: Regenerate.
11672 * aclocal.m4: Regenerate.
11673 * testsuite/Makefile.in: Regenerate.
11674
11675 2007-05-04 Jakub Jelinek <jakub@redhat.com>
11676
11677 * config/linux/proc.c: New file.
11678
11679 PR libgomp/28482
11680 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
11681
11682 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
11683
11684 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
11685
11686 2007-04-16 Matthias Klose <doko@debian.org>
11687
11688 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
11689 flags if not building with -m64.
11690 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
11691 flag for i?86-*-* targets, if current target matches -m64.
11692
11693 2007-04-14 Steve Ellcey <sje@cup.hp.com>
11694
11695 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
11696 * Makefile.in: Regenerate.
11697
11698 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11699
11700 PR testsuite/31369
11701 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
11702 ld_library_path.
11703 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11704
11705 2007-04-04 Jakub Jelinek <jakub@redhat.com>
11706
11707 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
11708 decls.
11709 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
11710 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
11711 (parse_affinity): New function.
11712 (initialize_env): Call it and gomp_init_affinity.
11713 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
11714 create new pthread_attr_t and call gomp_init_thread_affinity
11715 on it for each thread before passing the attribute to pthread_create.
11716 * config/linux/affinity.c: New file.
11717 * config/posix/affinity.c: New file.
11718 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
11719 * configure: Rebuilt.
11720 * config.h.in: Rebuilt.
11721 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
11722 * Makefile.in: Rebuilt.
11723
11724 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
11725
11726 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
11727 *-*-darwin*.
11728 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
11729 and use it if found.
11730
11731 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
11732
11733 * testsuite/config/default.exp: New file.
11734 * testsuite/lib/libgomp.exp: New file.
11735 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
11736 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
11737 load_lib *, load_gcc_lib *): Move to libgomp.exp.
11738 (libgomp_load): Remove.
11739 * testsuite/lib/libgomp.exp (libgomp_init): Compute
11740 always_ld_library_path, not ld_library_path. Set additional_flags
11741 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
11742 (target_compile): Do not call libgomp_init. Append lang_library_path
11743 and lang_link_flags to options.
11744 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
11745 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
11746 here.
11747 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
11748 always_ld_library_path. Set LD_LIBRARY_PATH here.
11749 * testsuite/libgomp.fortran/fortran.exp: Ditto.
11750 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
11751 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
11752 CX8 flag.
11753 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
11754 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
11755 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
11756 * testsuite/libgomp.c/pr29947-1.c: Ditto.
11757 * testsuite/libgomp.c/atomic-10.c: Ditto.
11758
11759 2007-03-21 Jakub Jelinek <jakub@redhat.com>
11760
11761 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
11762 dg-final cleanup-modules line.
11763 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
11764 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
11765 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
11766 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11767 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11768 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11769 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11770
11771 2007-03-18 Andreas Schwab <schwab@suse.de>
11772
11773 * acinclude.m4: Adjust regular expression for ld version
11774 extraction.
11775 * configure: Regenerate.
11776
11777 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
11778
11779 * Makefile.am: Add install-pdf target as copied from
11780 automake v1.10 rules.
11781 * Makefile.in: Regenerate
11782
11783 2007-02-07 Jakub Jelinek <jakub@redhat.com>
11784
11785 PR libgomp/28486
11786 * configure: Regenerate.
11787
11788 PR c++/30703
11789 * testsuite/libgomp.c++/pr30703.C: New test.
11790
11791 2007-02-02 Jakub Jelinek <jakub@redhat.com>
11792
11793 Revert:
11794 2006-07-05 Eric Christopher <echristo@apple.com>
11795 * configure.ac: Depend addition of -pthread on host OS.
11796 * configure: Regenerate.
11797
11798 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11799
11800 * libgomp.texi: Fix spacing after abbreviations.
11801
11802 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
11803
11804 PR libgomp/30546
11805 * configure.ac: Add check for makeinfo
11806 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
11807 if an appropriate version of makeinfo is found.
11808 * aclocal.m4: Regenerated.
11809 * configure: Regenerated.
11810 * Makefile.in: Regenerated.
11811 * testsuite/Makefile.in: Regenerated.
11812
11813 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
11814
11815 PR libgomp/30540
11816 * libgomp.texi: More about implementation-dependent settings.
11817
11818 2007-01-26 Tobias Burnus <burnus@net-b.de>
11819
11820 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
11821
11822 2007-01-24 Jakub Jelinek <jakub@redhat.com>
11823
11824 PR middle-end/30494
11825 * testsuite/libgomp.c/pr30494.c: New test.
11826
11827 2007-01-15 Tom Tromey <tromey@redhat.com>
11828
11829 * configure: Rebuilt.
11830 * configure.ac: Fixed comment.
11831
11832 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
11833
11834 * libgomp.texi: Document implementation specific default values of
11835 environment variables.
11836
11837 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
11838
11839 PR libgomp/28209
11840 * libgomp.texi: New file.
11841 * configure.ac: Add --enable-generated-files-in-srcdir option.
11842 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
11843 files to srcdir.
11844 * Makefile.in: Regenerated.
11845 * config.h.in: Regenerated.
11846 * testsuite/Makefile.in: Regenerated.
11847 * NOTES: Removed.
11848
11849 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
11850
11851 PR libgomp/29949
11852 * env.c (omp_set_num_threads): Set illegal thread count to 1.
11853
11854 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
11855
11856 * configure: Regenerate.
11857
11858 2006-12-04 Jakub Jelinek <jakub@redhat.com>
11859
11860 PR libgomp/29947
11861 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
11862 start if there shouldn't be any loop iterations.
11863 (gomp_loop_ordered_static_start): Remove start == end test.
11864 * testsuite/libgomp.c/pr29947-1.c: New test.
11865 * testsuite/libgomp.c/pr29947-2.c: New test.
11866
11867 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
11868
11869 * configure.tgt: Force initial-exec TLS model on Linux only.
11870
11871 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
11872
11873 * configure: Regenerated.
11874
11875 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
11876
11877 * env.c (parse_schedule): Reject out of range values.
11878 (parse_unsigned_long): Reject out of range, negative or zero values.
11879
11880 2006-10-29 Jakub Jelinek <jakub@redhat.com>
11881
11882 PR fortran/29629
11883 * testsuite/libgomp.fortran/pr29629.f90: New test.
11884
11885 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
11886
11887 PR libgomp/29494
11888 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
11889 * config/posix95: New directory.
11890 * config/posix95/omp-lock.h: New file.
11891 * config/posix95/lock.c: Likewise.
11892
11893 2006-10-14 Geoffrey Keating <geoffk@apple.com>
11894
11895 * aclocal.m4: Regenerate.
11896 * configure: Regenerate.
11897
11898 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11899
11900 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
11901 '<' to '<='.
11902
11903 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11904
11905 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
11906 test.
11907 * configure: Regenerate.
11908 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
11909
11910 2006-09-26 Jakub Jelinek <jakub@redhat.com>
11911
11912 PR middle-end/25261
11913 PR middle-end/28790
11914 * testsuite/libgomp.c/nestedfn-4.c: New test.
11915 * testsuite/libgomp.c/nestedfn-5.c: New test.
11916 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
11917
11918 PR fortran/29097
11919 * testsuite/libgomp.fortran/condinc1.f: New test.
11920 * testsuite/libgomp.fortran/condinc2.f: New test.
11921 * testsuite/libgomp.fortran/condinc3.f90: New test.
11922 * testsuite/libgomp.fortran/condinc4.f90: New test.
11923 * testsuite/libgomp.fortran/condinc1.inc: New file.
11924
11925 2006-09-18 Tom Tromey <tromey@redhat.com>
11926
11927 * configure: Rebuilt.
11928
11929 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
11930
11931 PR c/28768
11932 PR preprocessor/14634
11933 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
11934 to AC_DEFINE.
11935 * configure: Regenerate.
11936
11937 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
11938
11939 * testsuite/libgomp.fortran/reduction3.f90: Change
11940 -2147483648 to -huge(i)-1 to avoid overflow.
11941 * testsuite/libgomp.fortran/reduction4.f90: Change
11942 Z'ffffffff' to not(0) to avoid overflow.
11943
11944 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
11945
11946 PR libgomp/25938
11947 * Makefile.am (libsubincludedir): New.
11948 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
11949 * Makefile.in: Regenerate.
11950
11951 2006-08-17 Jakub Jelinek <jakub@redhat.com>
11952
11953 PR libgomp/28725
11954 * env.c: Include ctype.h.
11955 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
11956 leading and/or trailing whitespace and compare strings case
11957 insensitively.
11958
11959 2006-07-16 Jakub Jelinek <jakub@redhat.com>
11960
11961 PR fortran/28390
11962 * testsuite/libgomp.fortran/pr28390.f: New test.
11963
11964 2006-07-05 Eric Christopher <echristo@apple.com>
11965
11966 * configure.ac: Depend addition of -pthread on host OS.
11967 * configure: Regenerate.
11968
11969 2006-06-21 Jakub Jelinek <jakub@redhat.com>
11970
11971 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
11972 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
11973 defined.
11974
11975 2006-06-20 Jakub Jelinek <jakub@redhat.com>
11976
11977 PR libgomp/26175
11978 PR libgomp/26477
11979 * configure.ac: If neither --enable-linux-futex nor
11980 --disable-linux-futex is passed, determine the default by checking
11981 for compiling and/or running against NPTL. With --enable-linux-futex,
11982 check if SYS_gettid and SYS_futex are defined.
11983 * configure: Rebuilt.
11984
11985 2006-06-14 Richard Henderson <rth@redhat.com>
11986
11987 PR libgomp/28008
11988 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
11989 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
11990
11991 2006-06-09 Richard Henderson <rth@redhat.com>
11992
11993 * env.c (gomp_nthreads_var): Change to unsigned long.
11994 (gomp_run_sched_chunk): Likewise.
11995 (parse_unsigned_long): Rename from parse_num_threads and generalize.
11996 (initialize_env): Initialize gomp_thread_attr.
11997 * libgomp.h (gomp_nthreads_var): Update decl.
11998 (gomp_run_sched_chunk): Likewise.
11999 (gomp_thread_attr): Declare.
12000 * team.c (gomp_thread_attr): Export.
12001 (initialize_team): Don't initialize it.
12002
12003 2006-06-09 Jakub Jelinek <jakub@redhat.com>
12004
12005 PR fortran/27916
12006 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
12007 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
12008
12009 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12010
12011 * config/mingw32/time.c: New file.
12012 * configure.tgt: Use it.
12013
12014 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
12015
12016 * Makefile.am: Add install-html target. Add install-html to .PHONY
12017 * Makefile.in: Regenerate.
12018
12019 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12020
12021 PR libgomp/27612
12022 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
12023 * testsuite/libgomp.c/critical-1.c: Likewise.
12024 * testsuite/libgomp.c/loop-1.c: Likewise.
12025 * testsuite/libgomp.c/loop-2.c: Likewise.
12026 * testsuite/libgomp.c/single-1.c: Likewise.
12027 * testsuite/libgomp.c/ordered-1.c: Likewise.
12028 * testsuite/libgomp.c/ordered-2.c: Likewise.
12029
12030 2006-05-15 Jakub Jelinek <jakub@redhat.com>
12031
12032 PR middle-end/27416
12033 * libgomp.fortran/pr27416-1.f90: New test.
12034
12035 2006-05-03 Jakub Jelinek <jakub@redhat.com>
12036
12037 PR fortran/27395
12038 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
12039 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
12040
12041 2006-05-02 Jakub Jelinek <jakub@redhat.com>
12042
12043 PR c++/26943
12044 * testsuite/libgomp.c/pr26943-1.c: New test.
12045 * testsuite/libgomp.c/pr26943-2.c: New test.
12046 * testsuite/libgomp.c/pr26943-3.c: New test.
12047 * testsuite/libgomp.c/pr26943-4.c: New test.
12048 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
12049 * testsuite/libgomp.c++/pr26943.C: New test.
12050
12051 2006-05-02 Jakub Jelinek <jakub@redhat.com>
12052
12053 PR middle-end/27337
12054 * testsuite/libgomp.c++/pr27337.C: New test.
12055
12056 2006-04-26 Jakub Jelinek <jakub@redhat.com>
12057
12058 PR c/26171
12059 * testsuite/libgomp.c/pr26171.c: New test.
12060
12061 2006-04-25 Richard Henderson <rth@redhat.com>
12062
12063 PR libgomp/25865
12064 * configure.ac: Use GCC_CHECK_TLS.
12065 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
12066 * Makefile.in, aclocal.m4, configure: Regenerate.
12067
12068 2006-04-10 Matthias Klose <doko@debian.org>
12069
12070 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
12071 directory names containing underscores.
12072
12073 2006-03-21 Jakub Jelinek <jakub@redhat.com>
12074
12075 PR c++/26691
12076 * testsuite/libgomp.c++/pr26691.C: New test.
12077
12078 2006-03-13 Jakub Jelinek <jakub@redhat.com>
12079
12080 * testsuite/libgomp.fortran/retval2.f90: New test.
12081
12082 2006-03-09 Diego Novillo <dnovillo@redhat.com>
12083
12084 * testsuite/libgomp.c++: New directory.
12085
12086 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
12087
12088 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
12089 * config/posix/sem.c: Implement the above.
12090
12091 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
12092
12093 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
12094 define HAVE_BROKEN_POSIX_SEMAPHORES.
12095 * configure: Rebuilt.
12096 * config.h.in: Rebuilt.
12097
12098 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12099
12100 PR bootstrap/26161
12101 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
12102 for the other pthread check.
12103 * configure: Regenerate.
12104 * config.h.in: Regenerate.
12105
12106 2006-02-15 Jakub Jelinek <jakub@redhat.com>
12107
12108 PR libgomp/25938
12109 PR libgomp/25984
12110 * Makefile.am (fincludedir): New variable.
12111 (nodist_include_HEADERS): Remove Fortran files.
12112 (nodist_finclude_HEADERS): New variable.
12113 * Makefile.in: Regenerated.
12114
12115 2006-02-13 Jakub Jelinek <jakub@redhat.com>
12116
12117 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
12118 Remove tests for returning assumed character length arrays.
12119
12120 2006-02-12 Roger Sayle <roger@eyesopen.com>
12121 John David Anglin <dave@hiauly1.hia.nrc.ca>
12122
12123 PR libgomp/25936
12124 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
12125
12126 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
12127
12128 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
12129
12130 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
12131
12132 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
12133 part of LD_LIBRARY_PATH manually.
12134
12135 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
12136
12137 PR libgomp/25852
12138 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
12139 libgomp_init.
12140
12141 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
12142
12143 PR libgomp/25884
12144 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
12145 * configure.ac (PERL): Don't set.
12146 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
12147 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
12148 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
12149 * omp.h.in: Wrap the new configure substitutions with @ characters.
12150 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
12151 * aclocal.m4, configure, Makefile.in: Regenerate.
12152 * mkomp_h.pl: Delete.
12153
12154 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
12155
12156 PR libgomp/25259
12157 * configure.ac: Use GCC_HEADER_STDINT.
12158 * libgomp.h: Include gstdint.h.
12159 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
12160 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
12161
12162 2006-01-24 Richard Henderson <rth@redhat.com>
12163
12164 PR libgomp/25942
12165 * configure.ac: Add AM_MAINTAINER_MODE.
12166 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
12167
12168 2006-01-24 Diego Novillo <dnovillo@redhat.com>
12169
12170 * Makefile.in: Regenerate.
12171 * testsuite/Makefile.in: Regenerate.
12172 * aclocal.m4: Regenerate.
12173
12174 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
12175
12176 * config/posix/proc.c: Conditional include of sys/loadavg.h for
12177 Solaris.
12178 * configure.ac: Add check for loadavg.h.
12179 (link_gomp): Adjust comment.
12180 * configure: Regenerate.
12181 * config.h.in: Regenerate.
12182
12183 2006-01-21 Steve Ellcey <sje@cup.hp.com>
12184
12185 PR libgomp/25877
12186 * configure.ac: Remove check for alloca.h.
12187 * configure: Regenerate.
12188 * config.h.in: Regenerate.
12189 * libgomp.h: define gomp_alloca to be __builtin_alloca.
12190 * team.c: Remove use of alloca.h.
12191 Call gomp_alloca instead of alloca.
12192
12193 2006-01-20 Steve Ellcey <sje@cup.hp.com>
12194
12195 PR libgomp/25877
12196 * team.c: Add include of alloca.h.
12197 * configure.ac: Add check for alloca.h.
12198 * configure: Regenerate.
12199 * config.h.in: Regenerate.
12200
12201 2006-01-17 Jakub Jelinek <jakub@redhat.com>
12202
12203 PR fortran/25219
12204 * testsuite/libgomp.fortran/pr25219.f90: New test.
12205
12206 2005-12-05 Uros Bizjak <uros@kss-loka.si>
12207
12208 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
12209 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
12210 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12211 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12212 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
12213 testsuite/libgomp.fortran/threadprivate1.f90,
12214 testsuite/libgomp.fortran/threadprivate2.f90,
12215 testsuite/libgomp.fortran/threadprivate3.f90,
12216 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12217 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12218 testsuite/libgomp.fortran/omp_parse3.f90: Change required
12219 effective-target to TLS runtime.
12220
12221 * testsuite/libgomp.fortran/pr25162.f: Require
12222 effective-target TLS runtime.
12223
12224 2005-12-01 Jakub Jelinek <jakub@redhat.com>
12225
12226 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
12227 * testsuite/libgomp.c/nestedfn-3.c: New test.
12228
12229 2005-11-30 Jakub Jelinek <jakub@redhat.com>
12230
12231 PR fortran/25162
12232 * testsuite/libgomp.fortran/pr25162.f: New test.
12233
12234 2005-11-28 Jakub Jelinek <jakub@redhat.com>
12235
12236 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
12237 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
12238
12239 2005-11-25 Jakub Jelinek <jakub@redhat.com>
12240
12241 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
12242 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
12243 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
12244 single.c, team.c, work.c, config/linux/alpha/futex.h,
12245 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
12246 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
12247 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
12248 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
12249 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
12250 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
12251 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
12252 FSF address.
12253
12254 2005-11-18 Jakub Jelinek <jakub@redhat.com>
12255
12256 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
12257 to nodist_noinst_HEADERS.
12258 * Makefile.in: Rebuilt.
12259
12260 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
12261 add integer count field.
12262 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
12263 omp_nest_lock_t type change.
12264 (omp_init_nest_lock): Likewise. Initialize count to 0.
12265 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
12266 Increment count.
12267 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
12268 Decrement count.
12269 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
12270 Increment count if successful and return the new nesting level.
12271 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
12272 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
12273 * testsuite/libgomp.c/lib-1.c: New test.
12274 * testsuite/libgomp.fortran/lib1.f90: New test.
12275 * testsuite/libgomp.fortran/lib2.f: New test.
12276 * testsuite/libgomp.fortran/lib3.f: New test.
12277
12278 2005-11-17 Richard Henderson <rth@redhat.com>
12279
12280 PR 24845
12281 * Makefile.am (nodist_toolexeclib_HEADERS): New.
12282 * configure.ac (link_gomp): New. Substitute it.
12283 (AC_CONFIG_FILES): Add libgomp.spec.
12284 * libgomp.spec.in: New file.
12285 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
12286 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
12287
12288 2005-11-18 Jakub Jelinek <jakub@redhat.com>
12289
12290 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
12291 reduction(-:var) behaving the same as reduction(+:var).
12292 * testsuite/libgomp.c/reduction-4.c: New test.
12293
12294 2005-11-15 Uros Bizjak <uros@kss-loka.si>
12295
12296 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
12297 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
12298 testsuite/libgomp.c/copyin-3.c,
12299 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12300 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12301 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
12302 testsuite/libgomp.c++/pr24455.C,
12303 testsuite/libgomp.fortran/threadprivate1.f90,
12304 testsuite/libgomp.fortran/threadprivate2.f90,
12305 testsuite/libgomp.fortran/threadprivate3.f90,
12306 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12307 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12308 testsuite/libgomp.fortran/omp_parse3.f90: Require
12309 effective-target TLS.
12310
12311 2005-11-14 Diego Novillo <dnovillo@redhat.com>
12312
12313 * HEADER: Remove.
12314
12315 2005-11-13 Jakub Jelinek <jakub@redhat.com>
12316
12317 PR libgomp/24797
12318 * team.c (initialize_team): Pass NULL rather than free as
12319 pthread_key_create destructor. Initialize thread specific data
12320 pointer in initial thread to a static local variable rather than
12321 malloced memory.
12322
12323 2005-11-11 Uros Bizjak <uros@kss-loka.si>
12324
12325 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
12326 its location to ld_library_path.
12327
12328 2005-11-10 Diego Novillo <dnovillo@redhat.com>
12329
12330 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
12331
12332 2005-11-10 Diego Novillo <dnovillo@redhat.com>
12333
12334 * testsuite/libgomp.c: Rename from libgomp.dg.
12335
12336 2005-11-09 Diego Novillo <dnovillo@redhat.com>
12337
12338 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
12339 threadprivate variable 'i'.
12340
12341 2005-11-09 Jakub Jelinek <jakub@redhat.com>
12342
12343 * config/linux/s390/futex.h: New file.
12344 * configure.tgt: Use it.
12345
12346 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
12347 before the parallel.
12348
12349 2005-11-08 Jakub Jelinek <jakub@redhat.com>
12350
12351 PR c++/24734
12352 * testsuite/libgomp.c++/master-1.C: New test.
12353
12354 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12355
12356 * testsuite/libgomp.dg/copyin-3.c: New test.
12357
12358 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12359
12360 * testsuite/libgomp.fortran/retval1.f90: New test.
12361 * testsuite/libgomp.fortran/vla7.f90: New test.
12362
12363 2005-11-06 Jakub Jelinek <jakub@redhat.com>
12364
12365 * testsuite/libgomp.fortran/vla2.f90: New test.
12366 * testsuite/libgomp.fortran/vla3.f90: New test.
12367 * testsuite/libgomp.fortran/vla4.f90: New test.
12368 * testsuite/libgomp.fortran/vla5.f90: New test.
12369 * testsuite/libgomp.fortran/vla6.f90: New test.
12370
12371 2005-11-01 Jakub Jelinek <jakub@redhat.com>
12372
12373 * config/linux/sparc/futex.h: New file.
12374 * configure.tgt: Use it.
12375 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
12376
12377 * critical.c: Include stdlib.h.
12378 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
12379 ignoring return value.
12380 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
12381 LIBGOMP_CHECK_SYNC_BUILTINS check.
12382 * configure: Rebuilt.
12383
12384 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12385
12386 * testsuite/libgomp.fortran/vla1.f90: New test.
12387
12388 2005-10-31 Richard Henderson <rth@redhat.com>
12389
12390 * testsuite/libgomp.fortran/character2.f90: Fix race condition
12391 setting 's' in different threads.
12392
12393 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12394
12395 * libgomp.h (attribute_hidden, ialias): Define.
12396 * config/posix/proc.c (omp_get_num_procs): Add ialias.
12397 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
12398 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
12399 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12400 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12401 omp_test_lock, omp_test_nest_lock): Likewise.
12402 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
12403 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12404 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12405 omp_test_lock, omp_test_nest_lock): Likewise.
12406 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
12407 omp_get_dynamic, omp_get_nested): Likewise.
12408 * parallel.c (omp_get_num_threads, omp_get_max_threads,
12409 omp_get_thread_num, omp_in_parallel): Likewise.
12410 * fortran.c (ialias_redirect): Define.
12411 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
12412 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
12413 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
12414 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
12415 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
12416 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
12417 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
12418 omp_get_wtime): Add ialias_redirect.
12419
12420 2005-10-30 Jakub Jelinek <jakub@redhat.com>
12421
12422 * fortran.c: Include stdlib.h.
12423
12424 2005-10-29 Jakub Jelinek <jakub@redhat.com>
12425
12426 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
12427 * Makefile.in: Regenerated.
12428
12429 2005-10-28 Jakub Jelinek <jakub@redhat.com>
12430
12431 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
12432 * libgomp_f.h.in (omp_check_defines): New function.
12433 * env.c: Include libgomp_f.h.
12434 (initialize_env): Call omp_check_defines.
12435
12436 * testsuite/libgomp.dg/copyin-2.c: New test.
12437 * testsuite/libgomp.c++/copyin-2.C: New test.
12438 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
12439
12440 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
12441 * testsuite/libgomp.fortran/sharing2.f90: New test.
12442
12443 * testsuite/libgomp.dg/copyin-1.c: New test.
12444 * testsuite/libgomp.c++/copyin-1.C: New test.
12445
12446 2005-10-26 Jakub Jelinek <jakub@redhat.com>
12447
12448 * testsuite/libgomp.fortran/crayptr1.f90: New test.
12449
12450 * testsuite/libgomp.fortran/workshare1.f90: New test.
12451
12452 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
12453 only test.
12454 * libgomp.fortran/sharing1.f90: New test.
12455
12456 2005-10-24 Jakub Jelinek <jakub@redhat.com>
12457
12458 PR c++/24502
12459 * testsuite/libgomp.c++/loop-7.C: New test.
12460
12461 * testsuite/libgomp.dg/nestedfn-2.c: New test.
12462
12463 * testsuite/libgomp.dg/nestedfn-1.c: New test.
12464 * testsuite/libgomp.fortran/reduction6.f90: New test.
12465 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
12466
12467 2005-10-23 Richard Henderson <rth@redhat.com>
12468
12469 * testsuite/libgomp.c++/ctor-1.C: New.
12470 * testsuite/libgomp.c++/ctor-2.C: New.
12471 * testsuite/libgomp.c++/ctor-3.C: New.
12472 * testsuite/libgomp.c++/ctor-4.C: New.
12473 * testsuite/libgomp.c++/ctor-5.C: New.
12474 * testsuite/libgomp.c++/ctor-6.C: New.
12475 * testsuite/libgomp.c++/ctor-7.C: New.
12476 * testsuite/libgomp.c++/ctor-8.C: New.
12477 * testsuite/libgomp.c++/ctor-9.C: New.
12478
12479 2005-10-21 Diego Novillo <dnovillo@redhat.com>
12480
12481 PR 24455
12482 * testsuite/libgomp.c++/pr24455-1.C: New test.
12483 * testsuite/libgomp.c++/pr24455.C: New test.
12484 * testsuite/libgomp.dg/pr24455-1.c: New test.
12485 * testsuite/libgomp.dg/pr24455.c: New test.
12486
12487 2005-10-20 Richard Henderson <rth@redhat.com>
12488
12489 * testsuite/libgomp.c++/loop-6.C: New.
12490 * testsuite/libgomp.dg/loop-3.c: New.
12491
12492 2005-10-20 Jakub Jelinek <jakub@redhat.com>
12493
12494 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
12495 explicitly private.
12496 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
12497 explicitly shared.
12498
12499 2005-10-19 Diego Novillo <dnovillo@redhat.com>
12500
12501 * testsuite/libgomp.fortran/jacobi.f: New test.
12502
12503 2005-10-19 Richard Henderson <rth@redhat.com>
12504
12505 * configure.tgt (i?86-linux): Default to with_arch instead of
12506 CFLAGS. Add -mtune to match target_cpu.
12507 (x86_64-linux): Tune to i686.
12508
12509 * fortran.c (omp_test_nest_lock_): Fix typo.
12510
12511 2005-10-19 Jakub Jelinek <jakub@redhat.com>
12512
12513 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12514 gomp_ordered_sync): Do nothing if team->nthreads == 1.
12515 * testsuite/libgomp.dg/ordered-3.c: New test.
12516
12517 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
12518 Remove volatile keyword.
12519
12520 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
12521 in COMMON block to avoid warnings on 64-bit targets.
12522
12523 2005-10-18 Diego Novillo <dnovillo@redhat.com>
12524
12525 * testsuite/libgomp.dg/shared-3.c: New test.
12526
12527 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12528
12529 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
12530 * testsuite/libgomp.fortran/reduction5.f90: New test.
12531
12532 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12533
12534 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
12535 dg-options.
12536 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
12537 flush loop now that __sync_synchronize has proper memory barrier.
12538 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
12539 Add -ffixed-form to dg-options.
12540
12541 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12542
12543 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
12544 from subdirectories.
12545 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
12546 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
12547 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
12548 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
12549 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
12550 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
12551 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
12552 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
12553 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
12554 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
12555 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
12556 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
12557 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
12558 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
12559 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
12560 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
12561 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
12562 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
12563 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
12564 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
12565 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
12566 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
12567 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
12568 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
12569 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
12570
12571 2005-10-17 Jakub Jelinek <jakub@redhat.com>
12572
12573 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
12574 lang_library_path exists. Use find instead of glob to gather tests.
12575 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
12576
12577 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12578
12579 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
12580 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
12581 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
12582 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
12583 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
12584 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
12585 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
12586 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
12587 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
12588 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
12589 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
12590 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
12591 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
12592
12593 2005-10-15 Jakub Jelinek <jakub@redhat.com>
12594
12595 * testsuite/libgomp.dg/vla-1.c: New test.
12596
12597 * testsuite/libgomp.fortran/reference2.f90: New test.
12598
12599 * testsuite/libgomp.fortran/character2.f90: Remove explicit
12600 declaration of omp_get_thread_num.
12601 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
12602 use omp_lib.
12603
12604 * testsuite/libgomp.fortran/reduction1.f90: New test.
12605 * testsuite/libgomp.fortran/reduction2.f90: New test.
12606 * testsuite/libgomp.fortran/reduction3.f90: New test.
12607 * testsuite/libgomp.fortran/reduction4.f90: New test.
12608
12609 2005-10-13 Richard Henderson <rth@redhat.com>
12610
12611 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
12612 * Makefile.in: Regenerate.
12613 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
12614 * libgomp.h: Include bar.h.
12615 (struct gomp_barrier): Remove.
12616 (struct gomp_team): Add barrier. Replace master_barrier with
12617 master_release. Replace threads with ordered_release.
12618 (struct gomp_thread): Replace barrier with release.
12619 * ordered.c (gomp_ordered_first): Update for ordered_release change.
12620 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
12621 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
12622 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
12623 (GOMP_single_copy_end): Likewise.
12624 * team.c (gomp_threads_dock): New.
12625 (gomp_barrier_init, gomp_barrier_destroy): Remove.
12626 (gomp_thread_start): Use gomp_barrier_wait.
12627 (new_team, free_team): Update for gomp_team changes.
12628 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
12629 (gomp_team_end): Use gomp_barrier_wait.
12630 (initialize_team): Update for gomp_thread changes.
12631 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
12632 (gomp_work_share_end_nowait): Use atomic ops when available.
12633 * config/linux/bar.c, config/linux/bar.h: New files.
12634 * config/posix/bar.c, config/posix/bar.h: New files.
12635
12636 2005-10-13 Jakub Jelinek <jakub@redhat.com>
12637
12638 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
12639 * testsuite/libgomp.dg/single-2.c: New test.
12640
12641 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
12642 lang_link_flags): Unset, so that they aren't inherited from previously
12643 sourced *.exp.
12644
12645 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
12646
12647 2005-10-12 Richard Henderson <rth@redhat.com>
12648
12649 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
12650 (libgomp_init): Use lang_test_file, lang_library_path, and
12651 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
12652
12653 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
12654 (lang_test_file, lang_link_flags): New.
12655 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
12656
12657 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
12658 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
12659 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
12660 testsuite/libgomp.c++/parallel-1.C,
12661 testsuite/libgomp.c++/reduction-1.C,
12662 testsuite/libgomp.c++/reduction-2.C,
12663 testsuite/libgomp.c++/reduction-3.C,
12664 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
12665 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
12666 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
12667 New files, largely cribbed from the C testsuite.
12668
12669 2005-10-12 Jakub Jelinek <jakub@redhat.com>
12670
12671 * testsuite/libgomp.fortran/character1.f90: New test.
12672 * testsuite/libgomp.fortran/character2.f90: New test.
12673
12674 * testsuite/libgomp.dg/nested-1.c: New test.
12675 * testsuite/libgomp.dg/nested-2.c: New test.
12676 * testsuite/libgomp.fortran/do1.f90: New test.
12677 * testsuite/libgomp.fortran/do2.f90: New test.
12678
12679 * testsuite/libgomp.fortran/reference1.f90: New test.
12680
12681 2005-10-11 Jakub Jelinek <jakub@redhat.com>
12682
12683 * testsuite/libgomp.dg/reduction-1.c: New test.
12684 * testsuite/libgomp.dg/reduction-2.c: New test.
12685 * testsuite/libgomp.dg/reduction-3.c: New test.
12686
12687 2005-10-10 Jakub Jelinek <jakub@redhat.com>
12688
12689 * testsuite/libgomp.dg/atomic-1.c: New test.
12690 * testsuite/libgomp.dg/atomic-2.c: New test.
12691
12692 2005-10-09 Richard Henderson <rth@redhat.com>
12693
12694 * critical.c (atomic_lock): New.
12695 (initialize_critical): Initialize it.
12696 (GOMP_atomic_start, GOMP_atomic_end): New.
12697 * libgomp.map: Export them.
12698 * libgomp_g.h: Declare them.
12699
12700 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
12701
12702 2005-10-02 Richard Henderson <rth@redhat.com>
12703
12704 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
12705 to XCFLAGS instead of CFLAGS.
12706
12707 2005-09-30 Richard Henderson <rth@redhat.com>
12708
12709 * configure.ac: Determine whether -pthread or -lpthread is needed.
12710 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
12711 * Makefile.in, configure: Rebuild.
12712
12713 2005-09-28 Richard Henderson <rth@redhat.com>
12714
12715 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
12716 * testsuite/libgomp.dg/omp-single-3.c: New test.
12717
12718 2005-09-28 Diego Novillo <dnovillo@redhat.com>
12719
12720 * testsuite/libgomp.dg/omp-single-2.c: New test.
12721 * testsuite/libgomp.dg/shared-2.c: Fix return code.
12722
12723 2005-09-27 Richard Henderson <rth@redhat.com>
12724
12725 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
12726 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
12727
12728 2005-09-27 Jakub Jelinek <jakub@redhat.com>
12729
12730 * testsuite/libgomp.dg/omp-loop03.c: New test.
12731
12732 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12733
12734 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
12735
12736 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12737
12738 * testsuite/libgomp.dg/omp-single-1.c: New test.
12739 * testsuite/libgomp.dg/shared-1.c: Return 0.
12740 Add prototype for abort.
12741 * testsuite/libgomp.dg/shared-2.c: Likewise.
12742
12743 2005-09-26 Jakub Jelinek <jakub@redhat.com>
12744
12745 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
12746 constructs.
12747
12748 2005-09-26 Diego Novillo <dnovillo@redhat.com>
12749
12750 * testsuite/libgomp.dg/shared-1.c: New test.
12751 * testsuite/libgomp.dg/shared-2.c: New test.
12752
12753 2005-09-24 Richard Henderson <rth@redhat.com>
12754
12755 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
12756
12757 2005-09-24 Richard Henderson <rth@redhat.com>
12758
12759 * iter.c (gomp_iter_static_next): Round up when computing number
12760 of iterations. Don't bother distributing a remainder equally.
12761
12762 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
12763 Don't call srand. Zero b before testing.
12764 (main): New.
12765
12766 2005-09-24 Jakub Jelinek <jakub@redhat.com>
12767
12768 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
12769 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
12770
12771 2005-09-23 Jakub Jelinek <jakub@redhat.com>
12772
12773 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
12774 without !$omp end do, followed immediately by subroutine end.
12775
12776 2005-09-23 Diego Novillo <dnovillo@redhat.com>
12777
12778 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
12779
12780 2005-09-22 Richard Henderson <rth@redhat.com>
12781
12782 * critical.c (GOMP_critical_name_start): Change argument to void**.
12783 Reuse the pointer space if the mutex fits.
12784 (GOMP_critical_name_end): Likewise.
12785 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
12786 * libgomp_g.h (GOMP_critical_name_start): Update decl.
12787 (GOMP_critical_name_end): Likewise.
12788 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
12789 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
12790
12791 2005-09-20 Richard Henderson <rth@redhat.com>
12792
12793 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
12794 (create_lock_lock): New.
12795 (initialize_critical): Initialize it.
12796 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
12797 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
12798
12799 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12800
12801 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
12802
12803 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12804
12805 * testsuite/libgomp.dg/omp-loop01.c: New test.
12806 * testsuite/libgomp.dg/omp-loop02.c: New test.
12807
12808 2005-09-20 Jakub Jelinek <jakub@redhat.com>
12809
12810 * configure.ac (AC_PROG_FC): Add.
12811 (USE_FORTRAN): New automake conditional.
12812 * configure: Rebuilt.
12813 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
12814 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
12815 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
12816 Add rules to build them.
12817 * Makefile.in: Rebuilt.
12818 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
12819 OMP_NEST_LOCK_KIND.
12820 * libgomp.map: Add Fortran wrappers.
12821 * libgomp_f.h.in: New file.
12822 * omp_lib.h.in: New file.
12823 * omp_lib.f90.in: New file.
12824 * fortran.c: New file.
12825 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
12826 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
12827 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
12828 libgfortran has been built.
12829 * testsuite/libgomp.fortran/fortran.exp: New file.
12830 * testsuite/libgomp.fortran/omp_cond1.f: New test.
12831 * testsuite/libgomp.fortran/omp_cond2.f: New test.
12832 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
12833 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
12834 * testsuite/libgomp.fortran/omp_hello.f: New test.
12835 * testsuite/libgomp.fortran/omp_orphan.f: New test.
12836 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
12837 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
12838 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
12839 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
12840 * testsuite/libgomp.fortran/omp_reduction.f: New test.
12841 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
12842 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
12843
12844 2005-08-30 Richard Henderson <rth@redhat.com>
12845
12846 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
12847 function for when aliases are not usable.
12848 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
12849 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12850 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
12851 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
12852 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
12853 GOMP_loop_ordered_guided_next): Likewise.
12854 * ordered.c (GOMP_ordered_start): Likewise.
12855
12856 2005-08-01 Diego Novillo <dnovillo@redhat.com>
12857
12858 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
12859 * testsuite/libgomp.dg/omp_hello.c: Fix return code
12860 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
12861 * testsuite/libgomp.dg/omp_orphan.c: Likewise
12862 * testsuite/libgomp.dg/omp_reduction.c: Likewise
12863 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
12864 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
12865 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
12866 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
12867
12868 2005-07-07 Eric Christopher <echristo@redhat.com>
12869 Diego Novillo <dnovillo@redhat.com>
12870
12871 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
12872 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
12873 up code.
12874 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
12875 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
12876 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
12877 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
12878 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
12879 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
12880 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
12881
12882 2005-06-13 Diego Novillo <dnovillo@redhat.com>
12883
12884 * TOPLEVEL.patch: Remove.
12885
12886 2005-05-16 Richard Henderson <rth@redhat.com>
12887
12888 * configure.ac: Test for clock_gettime.
12889 * config.h.in, configure: Rebuild.
12890 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
12891 (omp_get_wtime): Use clock_gettime if available.
12892 (omp_get_wtick): Use clock_getres if available.
12893
12894 2005-05-11 Richard Henderson <rth@redhat.com>
12895
12896 * config/linux/ia64/futex.h: New file.
12897 * configure.tgt: Use it.
12898
12899 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
12900
12901 2005-05-07 Richard Henderson <rth@redhat.com>
12902
12903 * config/linux/powerpc/futex.h: New file.
12904 * configure.tgt: Use it.
12905
12906 * config/linux/i486/futex.h: Merge ...
12907 * config/linux/x86_64/futex.h: ... into ...
12908 * config/linux/x86/futex.h: ... here.
12909 * configure.tgt: Update to match.
12910
12911 2005-05-06 Richard Henderson <rth@redhat.com>
12912
12913 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
12914 * config/linux/i486/futex.h: Likewise.
12915 * config/linux/x86_64/futex.h: Likewise.
12916
12917 * config/linux/lock.c: New file.
12918 * config/linux/omp-lock.h: New file.
12919
12920 * critical.c, env.h: Don't include omp.h
12921 * config/posix/lock.c: Include libgomp.h instead of omp.h.
12922 * config/posix/time.c: Likewise.
12923 * config/posix/omp-lock.h: New file.
12924 * libgomp.h: Include omp-lock.h and omp.h.
12925 * Makefile.am (nodist_include_HEADERS): New.
12926 (omp.h): New rule.
12927 * configure.ac (PERL): New.
12928 * mkomp_h.pl: New file.
12929 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
12930 with templates.
12931 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
12932
12933 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
12934 build directory. Re-add -march=i486 hack.
12935
12936 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
12937 (libgomp_link_flags): Remove.
12938 (libgomp_initialized): Remove.
12939 (libgomp_init): Don't protect from reinitialization. Copy code
12940 from libstdc++ for getting the multilib set correctly.
12941
12942 2005-05-05 Richard Henderson <rth@redhat.com>
12943
12944 * config/linux/alpha/futex.h: New file.
12945 * configure.tgt (alpha*-*-linux*): Use it.
12946
12947 * config/posix/mutex.c: New file.
12948 * config/posix/sem.c: Use libgomp.h.
12949
12950 * configure.tgt (x86_64-linux): Also test CC for -m32.
12951 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
12952
12953 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
12954 after $gccpath.
12955
12956 * Makefile.am (SUBDIRS): New.
12957 (libgomp_la_LDFLAGS): Add -lpthread.
12958 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
12959 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
12960
12961 * libgomp_g.h: New file.
12962 * libgomp.h: Split out all public declarations to libgomp_g.h.
12963 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
12964 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
12965 * config/linux/sem.h: Likewise.
12966 * config/posix/sem.h: Likewise.
12967
12968 * Makefile.am (AM_LDFLAGS): New.
12969 (libgomp_version_script): Split out from ...
12970 (libgomp_la_LDFLAGS): ... here.
12971 (libgomp_version_info): New.
12972 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
12973 (LIBGOMP_ENABLE): New.
12974 (LIBGOMP_CHECK_LINKER_FEATURES): New.
12975 (LIBGOMP_ENABLE_SYMVERS): New.
12976 * configure.ac (AC_INIT): Version 1.0.
12977 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
12978 (enable-linux-futex): Likewise. Rename from enable-futex.
12979 (libtool_VERSION): New.
12980 (LIBGOMP_ENABLE_SYMVERS): Use it.
12981 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
12982 * Makefile.in, aclocal.m4, configure: Rebuild.
12983
12984 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
12985 (gomp_mutex_unlock_slow): Fix typo.
12986 * config/linux/sem.c: Similarly.
12987 (gomp_sem_post_slow): Fix typo.
12988 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
12989 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
12990 [__PIC__] (sys_futex0): Don't use tmp output in asm.
12991
12992 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
12993 (libgomp_la_LDFLAGS): Add top_srcdir to path.
12994 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
12995 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
12996 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
12997 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
12998 LDFLAGS. Pull enable_futex check to top-level.
12999 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
13000 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
13001
13002 First attempt at real configury.
13003 * Makefile, config.h: Remove file.
13004 * Makefile.am, Makefile.in: New file.
13005 * acinclude.m4 aclocal.m4: New file.
13006 * configure.ac, configure.tgt, configure: New file.
13007
13008 * config/posix/lock.c: Rename from sys-lock.c.
13009 * config/posix/mutex.h: Rename from sys-mutex.h.
13010 * config/posix/sem.c: Rename from sys-sem.c.
13011 * config/posix/sem.h: Rename from sys-sem.h.
13012 * config/posix/proc.c: Rename from sys-proc.c.
13013 * config/posix/time.c: Rename from sys-proc.c.
13014
13015 * config/linux/mutex.c: New file.
13016 * config/linux/mutex.h: New file.
13017 * config/linux/sem.c: New file.
13018 * config/linux/sem.h: New file.
13019 * config/linux/i486/futex.h: New file.
13020 * config/linux/x86_64/futex.h: New file.
13021
13022 2005-05-04 Richard Henderson <rth@redhat.com>
13023
13024 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
13025 * libgomp.h: Declare them.
13026 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
13027 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
13028
13029 2005-05-04 Richard Henderson <rth@redhat.com>
13030
13031 * libgomp-1 code drop
13032
13033 2005-05-04 Richard Henderson <rth@redhat.com>
13034
13035 * iter.c (gomp_iter_static_next): Return tri-state on 0.
13036 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
13037 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
13038 (gomp_iter_static_next): Update.
13039 (gomp_ordered_static_next): Update.
13040 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
13041 (gomp_loop_ordered_static_start): Likewise. Exit early for a
13042 totally empty range.
13043 (gomp_loop_ordered_static_next): Refine test for calling
13044 gomp_ordered_static_next.
13045 * testsuite/ordered-1.c: Add case for more threads than iterations.
13046
13047 * iter.c (gomp_iter_runtime_next_locked): Remove.
13048 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
13049 gomp_loop_guided_start, gomp_loop_ordered_static_start,
13050 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
13051 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
13052 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
13053 gomp_loop_ordered_guided_next): Downcase name, make static, add
13054 an external alias with the old name.
13055 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
13056 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
13057 switch and call one of the above static functions.
13058 * libgomp.h: Update.
13059
13060 * work.c (gomp_work_share_start): Lock the mutex for !first too.
13061 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
13062 GOMP_loop_guided_start, GOMP_loop_runtime_start,
13063 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
13064 GOMP_loop_ordered_guided_start): Update to match.
13065 * sections.c (GOMP_sections_start): Likewise.
13066 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
13067
13068 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
13069 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
13070 Use bounds check instead of modulus.
13071 (gomp_ordered_sync): Split out of GOMP_ordered_start.
13072 (gomp_ordered_last): Don't sync with ordered_owner here.
13073 (gomp_ordered_next): Likewise.
13074 (gomp_ordered_static_loop_next): Likewise.
13075 * loop.c, libgomp.h: Update to match.
13076
13077 * libgomp.h (GOMP_barrier): Declare.
13078
13079 * testsuite/barrier-1.c: New file.
13080 * testsuite/critical-1.c: New file.
13081 * testsuite/ordered-2.c: New file.
13082 * testsuite/ordered-1.c: New file.
13083 * testsuite/sections-1.c: New file.
13084 * testsuite/single-1.c: New file.
13085 * testsuite/Makefile (TESTS): Add them.
13086
13087 2005-05-04 Richard Henderson <rth@redhat.com>
13088
13089 * libgomp.h (struct gomp_work_share): Add ordered_owner.
13090 * loop.c (GOMP_loop_static_start): If not the startup thread,
13091 acquire the mutex to wait for initialization complete.
13092 (GOMP_loop_ordered_static_start): Likewise.
13093 (GOMP_loop_ordered_runtime_start): Likewise.
13094 (GOMP_loop_ordered_static_first): Remove.
13095 (GOMP_loop_ordered_dynamic_first): Remove.
13096 (GOMP_loop_ordered_guided_first): Remove.
13097 (GOMP_loop_ordered_runtime_first): Remove.
13098 * ordered.c (gomp_ordered_loop_first): Post to own release when
13099 we're the first thread.
13100 (gomp_ordered_loop_last): Wait on release if not owner.
13101 (gomp_ordered_loop_next): Likewise.
13102 (gomp_ordered_static_loop_init): New.
13103 (gomp_ordered_static_loop_next): Use ordered_owner.
13104 (GOMP_ordered_start): Likewise.
13105 * work.c (gomp_new_work_share): Initialize ordered_owner.
13106
13107 2005-05-03 Richard Henderson <rth@redhat.com>
13108
13109 * Makefile (OPT): New.
13110 (CFLAGS): Use it.
13111
13112 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
13113 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
13114 * libgomp.h, libgomp.map, NOTES: Update to match.
13115
13116 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
13117 Add initialized and thr members.
13118 (gomp_thread_start): Pause when initially spawned to wait for
13119 the whole team to be created.
13120 (gomp_team_start): Release team members at the end.
13121
13122 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
13123 (f_foo_1): Use GOMP_loop_end.
13124 (f_foo_2): Use GOMP_loop_end_nowait.
13125
13126 * testsuite/loop-2.c: New file.
13127 * testsuite/Makefile (TESTS): Add it.
13128
13129 2005-05-03 Richard Henderson <rth@redhat.com>
13130
13131 * iter.c (gomp_iter_static_next): Fix overflow check typo.
13132 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
13133 * team.c (new_team): Initialize oldest_live_gen to 1 if no
13134 initial work_share.
13135
13136 * testsuite/Makefile: New file.
13137 * testsuite/loop-1.c: New file.
13138
13139 2005-05-03 Richard Henderson <rth@redhat.com>
13140
13141 Initial implementation and checkin.
13142 \f
13143 Copyright (C) 2005-2020 Free Software Foundation, Inc.
13144
13145 Copying and distribution of this file, with or without modification,
13146 are permitted in any medium without royalty provided the copyright
13147 notice and this notice are preserved.