1 2020-03-18 Julian Brown <julian@codesourcery.com>
2 Tobias Burnus <tobias@codesourcery.com>
4 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Really make
7 2020-03-18 Tobias Burnus <tobias@codesourcery.com>
9 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: Add
10 #define DO_LONG_DOUBLE; set to 1, except for nvidia + gcn.
11 * libgomp.oacc-c-c++-common/firstprivate-mappings-1.c: Likewise.
13 2020-03-14 Jakub Jelinek <jakub@redhat.com>
16 * testsuite/libgomp.c/pr93566.c: New test.
18 2020-02-21 Frederik Harwath <frederik@codesourcery.com>
20 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Adapt to
21 changes from 2020-02-19, i.e. use integer(c_size_t) instead of
22 integer(acc_device_property) for the type of the return value of
25 2020-02-19 Tobias Burnus <tobias@codesourcery.com>
27 * .gitattributes: New; whitespace handling for Fortran's openacc_lib.h.
28 * config/accel/openacc.f90 (openacc_kinds): Add acc_device_current.
29 (openacc_internal, acc_on_device_h): Fix argument name; minor cleanup.
30 * libgomp.texi (Enabling OpenACC): No longer mark as experimental.
31 (acc_set_device_num): Fix Fortran argument name, use same name for C.
32 (acc_get_property): Update Fortran interface to post-OpenACC 3.0
33 corrections; add note about the previous interface and named constant.
34 (OpenACC library and environment variables): Fix two typos.
35 * openacc.f90: Use for all procedures the argument names from the spec
36 as for …_h they are user visible.
37 (openacc_kinds): Rename acc_device_property to
38 acc_device_property_kinds and change value to int32 ; and update users.
39 Re-add acc_device_property for for backward compatibility.
40 (acc_get_property_string_h): Clean up as acc_device_property_kind
42 (acc_get_property_h): Likewise and return c_size_t instead of
44 (openacc): Also export acc_device_property_kinds.
45 (acc_async_test_h, acc_async_test_all_h, acc_on_device_h,
46 acc_is_present_32_h, acc_is_present_64_h): Simplify logical-return-value
47 handling; check against /= 0 instead of == 1 to match C.
48 * openacc_lib.h: Use for all procedures the argument names from the spec
49 as for …_h they are user visible. Place !GCC$ into the first column to
50 be active also for fixed-form souce form.
51 (acc_device_current, acc_device_property_kind, acc_device_property,
52 acc_property_memory, acc_property_free_memory, acc_property_name,
53 acc_property_vendor, acc_property_driver): New named constants.
54 (acc_get_property, acc_get_property_string): New generic interface.
56 2020-02-13 Frederik Harwath <frederik@codesourcery.com>
59 * plugin/plugin-nvptx.c: Remove GOMP_OFFLOAD_async_run stub.
60 * target.c (gomp_load_plugin_for_device): Make "async_run" loading
62 (gomp_target_task_fn): Assert "devicep->async_run_func".
63 (clear_unsupported_flags): New function to remove unsupported flags
64 (right now only GOMP_TARGET_FLAG_NOWAIT) that can be be ignored.
65 (GOMP_target_ext): Apply clear_unsupported_flags to flags.
66 * testsuite/libgomp.c/target-33.c:
67 Remove xfail for offload_target_nvptx.
68 * testsuite/libgomp.c/target-34.c: Likewise.
70 2020-02-10 Frederik Harwath <frederik@codesourcery.com>
72 * testsuite/libgomp.c/target-33.c: Add xfail for execution on
73 offload_target_nvptx, cf. https://gcc.gnu.org/PR81688.
74 * testsuite/libgomp.c/target-34.c: Likewise.
75 * testsuite/libgomp.c/target-link-1.c: Add xfail for
76 offload_target_nvptx, cf. https://gcc.gnu.org/PR81689.
78 2020-02-09 Jakub Jelinek <jakub@redhat.com>
80 * testsuite/libgomp.c/target-38.c: New test.
82 2020-02-06 Jakub Jelinek <jakub@redhat.com>
85 * testsuite/libgomp.c-c++-common/pr93515.c: New test.
87 2020-02-05 Tobias Burnus <tobias@codesourcery.com>
89 * testsuite/lib/libgomp.exp
90 (check_effective_target_offload_target_nvptx): Pass flags as 'options'
91 and not as 'source' argument to libgomp_target_compile.
93 2020-02-03 Andrew Stubbs <ams@codesourcery.com>
95 * plugin/plugin-gcn.c (EF_AMDGPU_MACH_AMDGCN_GFX801): Remove.
96 (gcn_gfx801_s): Remove.
97 (isa_hsa_name): Remove gfx801.
98 (isa_gcc_name): Remove gfx801/carizzo.
99 (isa_code): Remove gfx801.
101 2020-02-03 Julian Brown <julian@codesourcery.com>
102 Tobias Burnus <tobias@codesourcery.com>
104 * libgomp.texi (OpenACC Runtime Library Routines): Document *_async
105 and *_finalize variants; document acc_attach and acc_detach; update
106 references from OpenACC 2.0 to 2.6.
107 * openacc.f90 (openacc_version): Update to 201711.
108 * openacc_lib.h (openacc_version): Update to 201711.
109 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Update expected
110 openacc_version to 201711.
111 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
113 2020-01-31 Kwok Cheung Yeung <kcy@codesourcery.com>
115 * plugin/plugin-gcn.c (struct hsa_kernel_description): Add sgpr_count
116 and vgpr_count fields.
117 (struct kernel_info): Add a field for a hsa_kernel_description.
118 (run_kernel): Reduce the number of threads/workers if the requested
119 number would require too many VGPRs.
120 (init_basic_kernel_info): Initialize description field with
121 the hsa_kernel_description entry for the kernel.
123 2020-01-29 Tobias Burnus <tobias@codesourcery.com>
126 * plugin/configfrag.ac (enable_offload_targets): Skip
127 HSA and GCN plugin besides -m32 also for -mx32.
128 * configure: Regenerate.
130 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
132 * oacc-init.c (name_of_acc_device_t): Handle acc_device_radeon.
134 2020-01-29 Frederik Harwath <frederik@codesourcery.com>
136 * plugin-gcn.c (struct agent_info): Add fields "name" and
138 (GOMP_OFFLOAD_init_device): ... and init from here.
139 (struct hsa_context_info): Add field "driver_version_s" ...
140 (init_hsa_contest): ... and init from here.
141 (GOMP_OFFLOAD_openacc_get_property): Replace stub with a proper
143 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
144 Enable test execution for amdgcn and host offloading targets.
145 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: Likewise.
146 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
147 (expect_device_properties): Split function into ...
148 (expect_device_string_properties): ... this new function ...
149 (expect_device_memory): ... and this new function.
150 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-gcn.c:
153 2020-01-28 Julian Brown <julian@codesourcery.com>
155 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: Remove test from here.
156 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: Don't use mixed
157 component/non-component variable refs in a single directive.
158 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: Likewise.
160 2020-01-24 Maciej W. Rozycki <macro@wdc.com>
162 * configure.ac: Handle `--with-toolexeclibdir='.
163 * Makefile.in: Regenerate.
164 * aclocal.m4: Regenerate.
165 * configure: Regenerate.
166 * testsuite/Makefile.in: Regenerate.
168 2020-01-24 Frederik Harwath <frederik@codesourcery.com>
170 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c
171 (expect_device_properties): Remove "expected_free_mem" argument,
172 change "expected_total_mem" argument type to size_t;
173 change types of acc_get_property results to size_t,
174 adapt format strings.
175 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c:
176 Use %zu instead of %zd to print size_t values.
177 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: Adapt and
179 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-nvptx.c: ... this.
180 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: Adapt and
182 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-host.c: ... this.
184 2020-01-23 Andrew Stubbs <ams@codesourcery.com>
186 * plugin/plugin-gcn.c (parse_target_attributes): Use correct mask for
189 2020-01-20 Andrew Stubbs <ams@codesourcery.com>
191 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Skip test on gcn.
192 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c (main):
193 Adjust test dimensions for amdgcn.
194 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c (main): Adjust
195 gang/worker/vector expectations dynamically.
196 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c
198 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c (main): Likewise.
199 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c (main): Likewise.
200 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c (main): Likewise.
201 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c (main): Likewise.
202 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c (main): Likewise.
203 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c (main): Likewise.
204 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c (main): Likewise.
205 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c (main): Likewise.
206 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c
207 (acc_gang): Recognise acc_device_radeon.
208 (acc_worker): Likewise.
209 (acc_vector): Likewise.
210 (main): Set expectations for amdgcn.
211 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c
212 (main): Adjust gang/worker/vector expectations dynamically.
213 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c (main): Likewise.
214 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c (main): Likewise.
215 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c (main): Likewise.
216 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Set expectations
219 2020-01-17 Andrew Stubbs <ams@codesourcery.com>
221 * config/accel/openacc.f90 (openacc_kinds): Rename acc_device_gcn to
224 * openacc.f90 (openacc_kinds): Likewise.
226 * openacc.h (acc_device_t): Likewise.
227 * openacc_lib.h: Likewise.
228 * testsuite/lib/libgomp.exp
229 (check_effective_target_openacc_amdgcn_accel_present): Likewise.
230 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c
231 (cb_compute_construct_end): Likewise.
232 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c
233 (cb_enqueue_launch_start): Likewise.
234 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c
235 (cb_enter_data_end): Likewise.
236 (cb_exit_data_start): Likewise.
237 (cb_exit_data_end): Likewise.
238 (cb_compute_construct_end): Likewise.
239 (cb_enqueue_launch_start): Likewise.
240 (cb_enqueue_launch_end): Likewise.
241 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c
244 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
246 * libgomp-plugin.h (enum goacc_property): New. Adjust all users
247 to use this instead of 'enum gomp_device_property'.
248 (GOMP_OFFLOAD_get_property): Rename to...
249 (GOMP_OFFLOAD_openacc_get_property): ... this. Adjust all users.
250 * libgomp.h (struct gomp_device_descr): Move
251 'GOMP_OFFLOAD_openacc_get_property'...
252 (struct acc_dispatch_t): ... here. Adjust all users.
253 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): Remove.
255 * target.c (gomp_map_vars_internal)
256 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
259 2020-01-10 Jakub Jelinek <jakub@redhat.com>
262 * libgomp.h (gomp_print_string): Change return type from void to int.
263 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
264 not all characters have been written.
266 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
268 * libgomp.texi: Fix typos, use https.
270 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
272 * testsuite/libgomp.fortran/optional-map.f90: Add test for
273 unallocated/disassociated actual arguments to nonallocatable/nonpointer
274 dummy arguments; those are/shall be regarded as absent arguments.
275 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
276 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
278 2020-01-01 Jakub Jelinek <jakub@redhat.com>
280 Update copyright years.
282 * libgomp.texi: Bump @copying's copyright year.
284 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
287 * oacc-init.c (goacc_runtime_deinitialize): New function.
289 2019-12-28 Jakub Jelinek <jakub@redhat.com>
292 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
293 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
295 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
296 Frederik Harwath <frederik@codesourcery.com>
297 Thomas Schwinge <tschwinge@codesourcery.com>
299 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
300 * libgomp-plugin.h (gomp_device_property_value): New union.
301 (gomp_device_property_value): New prototype.
302 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
304 (acc_device_property_t): New enum.
305 (acc_get_property, acc_get_property_string): New prototypes.
306 * oacc-init.c (acc_get_device_type): Also assert that result
307 is not `acc_device_current'.
308 (get_property_any, acc_get_property, acc_get_property_string):
310 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
311 `acc_property_memory', `acc_property_free_memory',
312 `acc_property_name', `acc_property_vendor' and
313 `acc_property_driver' constants. Add `acc_device_property' data
315 (openacc_internal): Add `acc_get_property' and
316 `acc_get_property_string' interfaces. Add `acc_get_property_h',
317 `acc_get_property_string_h', `acc_get_property_l' and
318 `acc_get_property_string_l'.
319 * oacc-host.c (host_get_property): New function.
320 (host_dispatch): Wire it.
321 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
322 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
323 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
324 * libgomp.texi (OpenACC Runtime Library Routines): Add
326 (acc_get_property): New node.
327 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
329 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
330 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
331 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
333 (GOMP_OFFLOAD_get_property): New function.
334 (struct ptx_device): Add new field "name".
335 (cuda_driver_version_s): Add new static variable ...
336 (nvptx_init): ... and init from here.
338 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
339 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
340 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
341 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
342 with test helper functions.
344 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
346 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
348 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
351 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
353 * target.c (gomp_map_vars_internal): Restore 'omp declare target
356 2019-12-19 Julian Brown <julian@codesourcery.com>
358 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
359 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
360 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
362 2019-12-19 Julian Brown <julian@codesourcery.com>
363 Cesar Philippidis <cesar@codesourcery.com>
365 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
366 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
367 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
368 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
369 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
370 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
371 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
372 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
373 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
374 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
375 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
376 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
377 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
379 2019-12-19 Julian Brown <julian@codesourcery.com>
381 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
382 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
383 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
384 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
385 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
386 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
387 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
388 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
389 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
390 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
391 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
392 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
394 2019-12-19 Julian Brown <julian@codesourcery.com>
396 * libgomp.h (struct target_var_desc): Add do_detach flag.
397 * oacc-init.c (acc_shutdown_1): Free aux block if present.
398 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
399 struct components. Tidy up and add some new checks.
400 (goacc_enter_data_internal): Update call to find_group_last.
401 (goacc_exit_data_internal): Support detach operations and
403 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
404 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
405 attach/detach in enter/exit data detection code.
406 * target.c (gomp_map_vars_existing): Initialise do_detach field of
408 (gomp_map_vars_internal): Support attach.
409 (gomp_unmap_vars_internal): Support detach.
411 2019-12-19 Julian Brown <julian@codesourcery.com>
412 Thomas Schwinge <thomas@codesourcery.com>
414 * libgomp.h (struct splay_tree_aux): Add attach_count field.
415 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
416 * libgomp.map (OACC_2.6): New section. Add acc_attach,
417 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
418 acc_detach_finalize_async.
419 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
420 acc_detach, acc_detach_async, acc_detach_finalize,
421 acc_detach_finalize_async): New functions.
422 * openacc.h (acc_attach, acc_attach_async, acc_detach,
423 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
425 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
426 (gomp_remove_var_internal): Free attachment counts if present.
427 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
428 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
430 2019-12-19 Julian Brown <julian@codesourcery.com>
431 Cesar Philippidis <cesar@codesourcery.com>
433 * libgomp.h (gomp_map_val): Add prototype.
434 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
435 open-coding device-address calculation.
436 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
439 2019-12-19 Julian Brown <julian@codesourcery.com>
441 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
442 field for virtual_refcount.
443 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
444 (gomp_free_memmap): Remove prototype.
445 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
446 instead of calling gomp_free_memmap.
447 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
449 (acc_unmap_data): Open code instead of forcing target_mem_desc's
450 to_free field to NULL then calling gomp_unmap_vars. Handle
451 REFCOUNT_INFINITY on target blocks.
452 (goacc_enter_data): Rename to...
453 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
454 handling for mapping groups. Use virtual_refcount instead of
455 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
456 map_map_vars_async call. Re-do lookup for target pointer return value.
457 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
458 renamed goacc_enter_datum function.
459 (goacc_exit_data): Rename to...
460 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
461 (acc_delete, acc_delete_async, acc_delete_finalize,
462 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
463 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
464 goacc_exit_datum function.
465 (gomp_acc_remove_pointer, find_pointer): Remove functions.
466 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
468 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
469 goacc_exit_data_internal helper functions.
470 * target.c (gomp_map_vars_internal): Handle
471 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
473 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
474 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
475 virtual_refcount field instead of dynamic_refcount.
476 (gomp_free_memmap): Remove function.
477 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
478 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
479 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
481 2019-12-19 Julian Brown <julian@codesourcery.com>
482 Thomas Schwinge <thomas@codesourcery.com>
484 * libgomp.h (struct splay_tree_aux): New.
485 (struct splay_tree_key_s): Replace link_key field with aux pointer.
486 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
488 (gomp_remove_var_internal): Free aux block if present.
489 (gomp_load_image_to_device): Zero-initialise aux field instead of
491 (omp_target_associate_pointer): Zero-initialise aux field.
493 2019-12-18 Jakub Jelinek <jakub@redhat.com>
496 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
498 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
501 2019-12-19 Julian Brown <julian@codesourcery.com>
502 Maciej W. Rozycki <macro@codesourcery.com>
503 Tobias Burnus <tobias@codesourcery.com>
504 Thomas Schwinge <thomas@codesourcery.com>
506 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
507 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
508 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
509 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
510 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
511 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
512 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
513 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
514 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
516 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
518 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
520 (goacc_insert_pointer): ... from here, "present" case.
521 (goacc_insert_pointer): Inline function into...
522 (GOACC_enter_exit_data): ... here, and simplify.
524 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
526 (goacc_insert_pointer): ... from here, "not present" case.
528 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
531 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
532 'goacc_enter_data', 'goacc_exit_data'.
534 * oacc-mem.c (delete_copyout): Refactor into...
535 (goacc_exit_data): ... this. Adjust all users.
537 * oacc-mem.c (present_create_copy): Refactor into...
538 (goacc_enter_data): ... this. Adjust all users.
540 * target.c (gomp_unmap_vars_internal): Add a safeguard to
543 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
544 like 'GOMP_MAP_FROM'.
549 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
551 (GOACC_enter_exit_data): Simplify accordingly.
552 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
554 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
555 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
557 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
559 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
560 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
562 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
564 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
566 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
570 * oacc-mem.c (acc_map_data, present_create_copy)
571 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
572 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
573 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
574 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
575 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
576 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
577 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
578 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
581 * target.c (gomp_unmap_tgt): Make it 'static'.
582 * libgomp.h (gomp_unmap_tgt): Remove.
584 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
587 * testsuite/libgomp.c/pr86416-1.c: New.
588 * testsuite/libgomp.c/pr86416-2.c: New.
590 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
592 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
593 all symbols as public except for the 'use …, only' imported symbol,
595 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
596 all symbols from module openacc_kinds as PUBLIC
597 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
599 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
601 2019-12-13 Julian Brown <julian@codesourcery.com>
605 * libgomp.h (gomp_remove_var_async): Add prototype.
606 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
608 * target.c (gomp_unref_tgt): Change return type to bool, indicating
609 whether target_mem_desc was unmapped.
610 (gomp_unref_tgt_void): New.
611 (gomp_remove_var): Reimplement in terms of...
612 (gomp_remove_var_internal): ...this new helper function.
613 (gomp_remove_var_async): New, implemented using above helper function.
614 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
617 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
619 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
620 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
621 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
622 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
623 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
625 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
626 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
628 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
630 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
631 as public except for the 'use …, only' imported symbol, which is
633 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
634 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
635 attributes for acc_copyout_finalize and acc_delete_finalize.
637 2019-12-11 Jakub Jelinek <jakub@redhat.com>
640 * testsuite/libgomp.fortran/atomic1.f90: New test.
642 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
645 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
646 reference counting for structured 'REFCOUNT_INFINITY'. Add some
648 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
649 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
650 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
651 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
652 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
654 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
655 * oacc-mem.c: ... here.
656 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
657 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
658 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
660 * libgomp_g.h: Update.
662 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
663 * oacc-async.c: ... here.
664 * oacc-int.h (goacc_wait): Declare.
665 * libgomp_g.h: Update
668 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
670 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
672 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
674 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
676 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
678 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
681 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
682 Julian Brown <julian@codesourcery.com>
684 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
685 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
687 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
689 * omp_lib.h.in: Fix spelling of function declaration
690 omp_get_cancell(l)ation.
691 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
693 * env.c: Fix comment typos.
694 * oacc-host.c: Likewise.
695 * ordered.c: Likewise.
698 * config/gcn/task.c: Likewise.
699 * config/gcn/team.c: Likewise.
700 * config/nvptx/task.c: Likewise.
701 * config/nvptx/team.c: Likewise.
702 * plugin/plugin-gcn.c: Likewise.
703 * testsuite/libgomp.fortran/jacobi.f: Likewise.
704 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
705 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
707 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
709 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
710 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
711 unnecessary 'dg-additional-options "-w"'.
713 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
714 Julian Brown <julian@codesourcery.com>
719 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
720 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
722 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
724 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
726 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
728 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
731 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
732 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
734 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
736 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
738 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
740 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
742 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
744 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
745 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
746 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
747 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
748 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
749 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
750 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
751 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
752 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
753 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
756 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
757 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
758 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
760 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
762 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
764 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
765 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
768 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
770 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
772 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
774 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
776 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
777 ... with their content moved into, and extended in this new file.
778 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
780 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
782 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
784 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
787 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
790 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
792 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
794 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
796 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
798 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
800 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
801 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
802 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
803 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
805 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
806 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
808 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
810 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
812 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
813 Kwok Cheung Yeung <kcy@codesourcery.com>
815 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
816 if input it a NULL pointer.
817 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
818 diagnostic of NULL pointer.
819 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
820 * testsuite/libgomp.fortran/optional-map.f90: New.
821 * testsuite/libgomp.fortran/use_device_addr-1.f90
822 (test_dummy_opt_callee_1_absent): New.
823 (test_dummy_opt_call_1): Call it.
824 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
825 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
826 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
827 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
828 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
829 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
830 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
831 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
832 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
833 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
834 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
835 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
836 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
837 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
838 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
839 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
841 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
843 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
844 expect dg-output of 'Error termination.' for GCN.
845 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
846 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
848 2019-12-04 Jakub Jelinek <jakub@redhat.com>
851 * testsuite/libgomp.fortran/teams1.f90: New test.
852 * testsuite/libgomp.fortran/teams2.f90: New test.
854 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
856 * oacc-init.c (acc_known_device_type): Add function.
857 (unknown_device_type_error): Add function.
858 (name_of_acc_device_t): Change to call unknown_device_type_error
860 (resolve_device): Use acc_known_device_type.
861 (acc_init): Fail if acc_device_t argument is not valid.
862 (acc_shutdown): Likewise.
863 (acc_get_num_devices): Likewise.
864 (acc_set_device_type): Likewise.
865 (acc_get_device_num): Likewise.
866 (acc_set_device_num): Likewise.
867 (acc_on_device): Add comment that argument validity is not checked.
869 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
871 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
873 (check_effective_target_openacc_amdgcn_accel_present): New proc.
874 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
875 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
876 * testsuite/libgomp.oacc-c/c.exp: Likewise.
877 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
879 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
882 * configure.tgt: Avoid IE tls on *-*-musl*.
884 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
886 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
887 adding a common-block test case.
889 2019-11-29 Jakub Jelinek <jakub@redhat.com>
892 * testsuite/libgomp.c++/udr-20.C: New test.
893 * testsuite/libgomp.c++/udr-21.C: New test.
895 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
897 * testsuite/lib/libgomp.exp
898 (check_effective_target_offload_target_nvptx): New proc.
899 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
901 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
902 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
903 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
905 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
907 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
908 * testsuite/libgomp.c/pr39591-2.c: Likewise.
909 * testsuite/libgomp.c/pr39591-3.c: Likewise.
910 * testsuite/libgomp.c/private-1.c: Likewise.
911 * testsuite/libgomp.c/task-1.c: Likewise.
912 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
914 2019-11-20 Julian Brown <julian@codesourcery.com>
916 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
918 (queue_push_launch): Lock aq->mutex before calling
919 wait_for_queue_nonfull.
920 (queue_push_callback): Likewise.
921 (queue_push_asyncwait): Likewise.
922 (queue_push_placeholder): Likewise.
924 2019-11-20 Julian Brown <julian@codesourcery.com>
926 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
927 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
928 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
931 2019-11-20 Julian Brown <julian@codesourcery.com>
935 * oacc-mem.c (present_create_copy): Fix device pointer return value in
936 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
937 in non-present/create case.
938 (delete_copyout): Change error condition to fail only on copies outside
939 of mapped block. Adjust error message accordingly.
940 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
941 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
942 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
944 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
945 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
946 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
948 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
950 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
951 libatomic in build-tree testing.
953 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
955 * testsuite/Makefile.in: Regenerate.
957 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
959 * testsuite/libgomp.c/target-print-1.c: New file.
960 * testsuite/libgomp.fortran/target-print-1.f90: New file.
961 * testsuite/libgomp.oacc-c/print-1.c: New file.
962 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
964 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
965 Kwok Cheung Yeung <kcy@codesourcery.com>
966 Julian Brown <julian@codesourcery.com>
967 Tom de Vries <tom@codesourcery.com>
969 * plugin/Makefrag.am: Add amdgcn plugin support.
970 * plugin/configfrag.ac: Likewise.
971 * plugin/plugin-gcn.c: New file.
972 * configure: Regenerate.
973 * Makefile.in: Regenerate.
974 * testsuite/Makefile.in: Regenerate.
976 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
978 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
979 and use team_malloc variants.
980 (gomp_gcn_exit_kernel): Use team_free.
981 * libgomp.h (TEAM_ARENA_SIZE): Define.
982 (TEAM_ARENA_START): Define.
983 (TEAM_ARENA_FREE): Define.
984 (TEAM_ARENA_END): Define.
985 (team_malloc): New function.
986 (team_malloc_cleared): New function.
987 (team_free): New function.
988 * team.c (gomp_new_team): Initialize and use team_malloc.
989 (free_team): Use team_free.
990 (gomp_free_thread): Use team_free.
991 (gomp_pause_host): Use team_free.
992 * work.c (gomp_init_work_share): Use team_malloc.
993 (gomp_fini_work_share): Use team_free.
995 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
996 Kwok Cheung Yeung <kcy@codesourcery.com>
997 Julian Brown <julian@codesourcery.com>
998 Tom de Vries <tom@codesourcery.com>
1000 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
1001 * Makefile.in: Regenerate.
1002 * config.h.in (PLUGIN_GCN): Add new undef.
1003 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
1004 * config/gcn/affinity-fmt.c: New file.
1005 * config/gcn/bar.c: New file.
1006 * config/gcn/bar.h: New file.
1007 * config/gcn/doacross.h: New file.
1008 * config/gcn/icv-device.c: New file.
1009 * config/gcn/oacc-target.c: New file.
1010 * config/gcn/simple-bar.h: New file.
1011 * config/gcn/target.c: New file.
1012 * config/gcn/task.c: New file.
1013 * config/gcn/team.c: New file.
1014 * config/gcn/time.c: New file.
1015 * configure.ac: Add amdgcn*-*-*.
1016 * configure: Regenerate.
1017 * configure.tgt: Add amdgcn*-*-*.
1018 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
1019 * libgomp.h (gcn_thrs): Add amdgcn variant.
1020 (set_gcn_thrs): Likewise.
1021 (gomp_thread): Likewise.
1022 * oacc-int.h (goacc_thread): Likewise.
1023 * oacc-target.c: New file.
1024 * openacc.f90 (acc_device_gcn): New parameter.
1025 * openacc.h (acc_device_t): Add acc_device_gcn.
1026 * team.c (gomp_free_pool_helper): Add amdgcn support.
1028 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1029 Julian Brown <julian@codesourcery.com>
1031 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
1033 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
1035 * oacc-host.c (host_openacc_async_construct): Add device parameter.
1036 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
1039 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1041 * configure.tgt (nvptx*-*-*): Add "accel" directory.
1042 * config/nvptx/libgomp-plugin.c: Move ...
1043 * config/accel/libgomp-plugin.c: ... to here.
1044 * config/nvptx/lock.c: Move ...
1045 * config/accel/lock.c: ... to here.
1046 * config/nvptx/mutex.c: Move ...
1047 * config/accel/mutex.c: ... to here.
1048 * config/nvptx/mutex.h: Move ...
1049 * config/accel/mutex.h: ... to here.
1050 * config/nvptx/oacc-async.c: Move ...
1051 * config/accel/oacc-async.c: ... to here.
1052 * config/nvptx/oacc-cuda.c: Move ...
1053 * config/accel/oacc-cuda.c: ... to here.
1054 * config/nvptx/oacc-host.c: Move ...
1055 * config/accel/oacc-host.c: ... to here.
1056 * config/nvptx/oacc-init.c: Move ...
1057 * config/accel/oacc-init.c: ... to here.
1058 * config/nvptx/oacc-mem.c: Move ...
1059 * config/accel/oacc-mem.c: ... to here.
1060 * config/nvptx/oacc-plugin.c: Move ...
1061 * config/accel/oacc-plugin.c: ... to here.
1062 * config/nvptx/omp-lock.h: Move ...
1063 * config/accel/omp-lock.h: ... to here.
1064 * config/nvptx/openacc.f90: Move ...
1065 * config/accel/openacc.f90: ... to here.
1066 * config/nvptx/pool.h: Move ...
1067 * config/accel/pool.h: ... to here.
1068 * config/nvptx/proc.c: Move ...
1069 * config/accel/proc.c: ... to here.
1070 * config/nvptx/ptrlock.c: Move ...
1071 * config/accel/ptrlock.c: ... to here.
1072 * config/nvptx/ptrlock.h: Move ...
1073 * config/accel/ptrlock.h: ... to here.
1074 * config/nvptx/sem.c: Move ...
1075 * config/accel/sem.c: ... to here.
1076 * config/nvptx/sem.h: Move ...
1077 * config/accel/sem.h: ... to here.
1078 * config/nvptx/thread-stacksize.h: Move ...
1079 * config/accel/thread-stacksize.h: ... to here.
1081 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
1082 Tobias Burnus <tobias@codesourcery.com>
1083 Frederik Harwath <frederik@codesourcery.com>
1084 Thomas Schwinge <thomas@codesourcery.com>
1087 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
1088 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
1089 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
1091 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
1092 Kwok Cheung Yeung <kcy@codesourcery.com>
1094 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
1095 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
1097 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
1099 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
1101 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
1103 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
1104 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
1106 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
1108 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
1109 Add expected warnings about missing reduction clauses.
1110 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
1112 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
1114 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
1117 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
1119 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
1120 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
1121 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
1122 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1123 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1124 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1126 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
1129 * testsuite/libgomp.fortran/allocatable2.f90: Use
1130 unique numbers with 'stop'.
1131 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1132 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1133 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
1134 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
1135 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
1137 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
1139 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
1140 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
1141 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
1142 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
1143 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
1144 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
1146 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1148 * testsuite/libgomp.fortran/target9.f90: New.
1150 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1152 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
1153 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
1154 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
1155 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
1156 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
1157 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
1158 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
1159 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
1160 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
1161 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
1162 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
1163 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
1164 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
1165 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
1166 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
1167 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
1168 * testsuite/libgomp.fortran/associate1.f90: Ditto.
1169 * testsuite/libgomp.fortran/associate2.f90: Ditto.
1170 * testsuite/libgomp.fortran/associate3.f90: Ditto.
1171 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
1172 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
1173 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
1174 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
1175 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
1176 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
1177 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
1178 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
1179 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
1180 * testsuite/libgomp.fortran/character1.f90: Ditto.
1181 * testsuite/libgomp.fortran/character2.f90: Ditto.
1182 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
1183 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
1184 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
1185 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
1186 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
1187 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
1188 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
1189 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
1190 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
1191 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
1192 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
1193 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
1194 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
1195 * testsuite/libgomp.fortran/do1.f90: Ditto.
1196 * testsuite/libgomp.fortran/do2.f90: Ditto.
1197 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
1198 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
1199 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
1200 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
1201 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
1202 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
1203 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
1204 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
1205 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
1206 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
1207 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
1208 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
1209 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
1210 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
1211 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
1212 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
1213 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
1214 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
1215 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
1216 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
1217 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
1218 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
1219 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
1220 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
1221 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
1222 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
1223 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
1224 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
1225 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
1226 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
1227 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
1228 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
1229 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
1230 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
1231 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
1232 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
1233 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
1234 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
1235 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
1236 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
1237 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
1238 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
1239 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
1240 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
1241 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
1242 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
1243 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
1244 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
1245 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
1246 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1247 * testsuite/libgomp.fortran/lib1.f90: Ditto.
1248 * testsuite/libgomp.fortran/lib4.f90: Ditto.
1249 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
1250 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
1251 * testsuite/libgomp.fortran/nested1.f90: Ditto.
1252 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
1253 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
1254 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
1255 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1256 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
1257 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
1258 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1259 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
1260 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
1261 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
1262 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
1263 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
1264 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
1265 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
1266 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1267 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
1268 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1269 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
1270 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
1271 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
1272 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
1273 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
1274 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
1275 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
1276 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1277 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
1278 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
1279 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
1280 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
1281 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
1282 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1283 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
1284 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1285 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
1286 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
1287 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1288 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
1289 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
1290 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
1291 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
1292 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
1293 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
1294 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
1295 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
1296 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
1297 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
1298 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
1299 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
1300 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
1301 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
1302 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
1303 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
1304 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
1305 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
1306 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
1307 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
1308 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1309 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
1310 * testsuite/libgomp.fortran/reference1.f90: Ditto.
1311 * testsuite/libgomp.fortran/reference2.f90: Ditto.
1312 * testsuite/libgomp.fortran/retval1.f90: Ditto.
1313 * testsuite/libgomp.fortran/retval2.f90: Ditto.
1314 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
1315 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
1316 * testsuite/libgomp.fortran/simd1.f90: Ditto.
1317 * testsuite/libgomp.fortran/simd2.f90: Ditto.
1318 * testsuite/libgomp.fortran/simd3.f90: Ditto.
1319 * testsuite/libgomp.fortran/simd4.f90: Ditto.
1320 * testsuite/libgomp.fortran/simd5.f90: Ditto.
1321 * testsuite/libgomp.fortran/simd6.f90: Ditto.
1322 * testsuite/libgomp.fortran/simd7.f90: Ditto.
1323 * testsuite/libgomp.fortran/stack.f90: Ditto.
1324 * testsuite/libgomp.fortran/strassen.f90: Ditto.
1325 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
1326 * testsuite/libgomp.fortran/tabs2.f: Ditto.
1327 * testsuite/libgomp.fortran/target1.f90: Ditto.
1328 * testsuite/libgomp.fortran/target2.f90: Ditto.
1329 * testsuite/libgomp.fortran/target3.f90: Ditto.
1330 * testsuite/libgomp.fortran/target4.f90: Ditto.
1331 * testsuite/libgomp.fortran/target5.f90: Ditto.
1332 * testsuite/libgomp.fortran/target6.f90: Ditto.
1333 * testsuite/libgomp.fortran/target7.f90: Ditto.
1334 * testsuite/libgomp.fortran/target8.f90: Ditto.
1335 * testsuite/libgomp.fortran/task1.f90: Ditto.
1336 * testsuite/libgomp.fortran/task2.f90: Ditto.
1337 * testsuite/libgomp.fortran/task3.f90: Ditto.
1338 * testsuite/libgomp.fortran/task4.f90: Ditto.
1339 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1340 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1341 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1342 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1343 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1344 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
1345 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
1346 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
1347 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
1348 * testsuite/libgomp.fortran/udr1.f90: Ditto.
1349 * testsuite/libgomp.fortran/udr10.f90: Ditto.
1350 * testsuite/libgomp.fortran/udr11.f90: Ditto.
1351 * testsuite/libgomp.fortran/udr12.f90: Ditto.
1352 * testsuite/libgomp.fortran/udr13.f90: Ditto.
1353 * testsuite/libgomp.fortran/udr14.f90: Ditto.
1354 * testsuite/libgomp.fortran/udr15.f90: Ditto.
1355 * testsuite/libgomp.fortran/udr2.f90: Ditto.
1356 * testsuite/libgomp.fortran/udr3.f90: Ditto.
1357 * testsuite/libgomp.fortran/udr4.f90: Ditto.
1358 * testsuite/libgomp.fortran/udr5.f90: Ditto.
1359 * testsuite/libgomp.fortran/udr6.f90: Ditto.
1360 * testsuite/libgomp.fortran/udr7.f90: Ditto.
1361 * testsuite/libgomp.fortran/udr8.f90: Ditto.
1362 * testsuite/libgomp.fortran/udr9.f90: Ditto.
1363 * testsuite/libgomp.fortran/vla1.f90: Ditto.
1364 * testsuite/libgomp.fortran/vla2.f90: Ditto.
1365 * testsuite/libgomp.fortran/vla3.f90: Ditto.
1366 * testsuite/libgomp.fortran/vla4.f90: Ditto.
1367 * testsuite/libgomp.fortran/vla5.f90: Ditto.
1368 * testsuite/libgomp.fortran/vla6.f90: Ditto.
1369 * testsuite/libgomp.fortran/vla7.f90: Ditto.
1370 * testsuite/libgomp.fortran/vla8.f90: Ditto.
1371 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1372 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1374 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1376 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
1377 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
1378 Ditto; add 'dg-do run' for torture testing.
1379 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
1380 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1381 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1382 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1383 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1384 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1385 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
1386 * testsuite/libgomp.fortran/task2.f90: Ditto.
1387 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1388 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1389 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1390 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1391 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1392 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1394 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
1396 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
1397 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
1398 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
1399 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
1400 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
1401 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
1402 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
1403 Use 'stop' not abort().
1404 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
1405 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
1406 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
1407 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
1408 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
1409 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
1410 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
1411 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
1412 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
1413 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
1414 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
1415 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
1416 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
1417 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
1418 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
1419 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
1420 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1422 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1424 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1426 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1428 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1430 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
1432 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
1434 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
1436 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
1438 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
1440 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
1442 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
1444 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
1446 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
1448 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
1449 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
1450 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
1451 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
1452 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1453 Likewise and also add 'dg-do run'.
1454 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1457 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
1458 Tobias Burnus <tobias@codesourcery.com>
1460 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
1461 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
1462 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
1464 2019-10-14 Jakub Jelinek <jakub@redhat.com>
1467 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
1470 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
1472 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
1473 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
1475 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
1478 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
1481 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
1484 * testsuite/libgomp.fortran/fortran.exp: Conditionally
1486 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
1488 2019-10-09 Jakub Jelinek <jakub@redhat.com>
1491 * target.c (gomp_map_vars_internal): Readd the previous
1492 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
1493 though do that just in the !not_found_cnt case.
1495 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
1497 * gfortran.dg/gomp/target-simd.f90: New.
1499 2019-10-02 Julian Brown <julian@codesourcery.com>
1500 Cesar Philippidis <cesar@codesourcery.com>
1502 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
1503 * target.c (FIELD_TGT_EMPTY): Define.
1504 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
1505 as switch instead of list of ifs.
1506 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
1508 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
1510 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
1511 include. Replace alloca () with __builtin_alloca ().
1512 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
1514 2019-10-01 Jakub Jelinek <jakub@redhat.com>
1516 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
1517 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
1518 * oacc-parallel.c: Don't include "libgomp_g.h".
1519 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
1520 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
1521 * aclocal.m4: Regenerated.
1522 * config.h.in: Regenerated.
1523 * configure: Regenerated.
1524 * Makefile.in: Regenerated.
1526 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
1528 * libgomp_g.h: Include stdint.h instead of gstdint.h.
1530 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
1532 * configure: Regenerate.
1534 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
1536 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
1537 string is initialized.
1539 2019-09-06 Florian Weimer <fweimer@redhat.com>
1541 * configure: Regenerate.
1543 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
1546 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
1547 scanning to conform to the GNU Coding Standards.
1548 * configure: Regenerate.
1550 2019-08-28 Jakub Jelinek <jakub@redhat.com>
1553 * testsuite/libgomp.c/scan-21.c: New test.
1554 * testsuite/libgomp.c/scan-22.c: New test.
1556 2019-08-27 Jakub Jelinek <jakub@redhat.com>
1559 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
1561 * testsuite/libgomp.c/scan-12.c: Likewise.
1562 * testsuite/libgomp.c/scan-13.c: Likewise.
1563 * testsuite/libgomp.c/scan-14.c: Likewise.
1564 * testsuite/libgomp.c/scan-15.c: Likewise.
1565 * testsuite/libgomp.c/scan-16.c: Likewise.
1566 * testsuite/libgomp.c/scan-17.c: Likewise.
1567 * testsuite/libgomp.c/scan-18.c: Likewise.
1568 * testsuite/libgomp.c/scan-19.c: Likewise.
1569 * testsuite/libgomp.c/scan-20.c: Likewise.
1570 * testsuite/libgomp.c++/scan-9.C: Likewise.
1571 * testsuite/libgomp.c++/scan-10.C: Likewise.
1572 * testsuite/libgomp.c++/scan-11.C: Likewise.
1573 * testsuite/libgomp.c++/scan-12.C: Likewise.
1574 * testsuite/libgomp.c++/scan-14.C: Likewise.
1575 * testsuite/libgomp.c++/scan-15.C: Likewise.
1576 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
1577 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
1578 * testsuite/libgomp.c++/scan-16.C: Likewise.
1580 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
1583 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
1584 -std=legacy so invalid code in the test case is accepted.
1586 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
1589 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
1592 2019-08-08 Jakub Jelinek <jakub@redhat.com>
1594 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
1595 perform the lookup in the first loop only if !not_found_cnt, otherwise
1596 perform lookups for it in the second loop guarded with
1597 if (not_found_cnt || has_firstprivate).
1598 * testsuite/libgomp.c/target-37.c: New test.
1599 * testsuite/libgomp.c++/target-22.C: New test.
1601 2019-08-07 Jakub Jelinek <jakub@redhat.com>
1603 * testsuite/libgomp.c/target-18.c (struct S): New type.
1604 (foo): Use use_device_addr clause instead of use_device_ptr clause
1605 where required by OpenMP 5.0, add further tests for both use_device_ptr
1606 and use_device_addr clauses.
1607 * testsuite/libgomp.c++/target-9.C (struct S): New type.
1608 (foo): Use use_device_addr clause instead of use_device_ptr clause
1609 where required by OpenMP 5.0, add further tests for both use_device_ptr
1610 and use_device_addr clauses. Add t and u arguments.
1611 (main): Adjust caller.
1613 2019-08-06 Jakub Jelinek <jakub@redhat.com>
1615 * testsuite/libgomp.c++/loop-13.C: New test.
1616 * testsuite/libgomp.c++/loop-14.C: New test.
1617 * testsuite/libgomp.c++/loop-15.C: New test.
1619 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1622 * testsuite/libgomp.c++/for-27.C: New test.
1624 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
1626 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
1627 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1629 2019-07-20 Jakub Jelinek <jakub@redhat.com>
1631 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
1633 2019-07-08 Jakub Jelinek <jakub@redhat.com>
1635 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
1636 * testsuite/libgomp.c++/scan-16.C: Likewise.
1638 2019-07-06 Jakub Jelinek <jakub@redhat.com>
1640 * testsuite/libgomp.c/scan-19.c: New test.
1641 * testsuite/libgomp.c/scan-20.c: New test.
1643 * testsuite/libgomp.c/scan-11.c: New test.
1644 * testsuite/libgomp.c/scan-12.c: New test.
1645 * testsuite/libgomp.c/scan-13.c: New test.
1646 * testsuite/libgomp.c/scan-14.c: New test.
1647 * testsuite/libgomp.c/scan-15.c: New test.
1648 * testsuite/libgomp.c/scan-16.c: New test.
1649 * testsuite/libgomp.c/scan-17.c: New test.
1650 * testsuite/libgomp.c/scan-18.c: New test.
1651 * testsuite/libgomp.c++/scan-9.C: New test.
1652 * testsuite/libgomp.c++/scan-10.C: New test.
1653 * testsuite/libgomp.c++/scan-11.C: New test.
1654 * testsuite/libgomp.c++/scan-12.C: New test.
1655 * testsuite/libgomp.c++/scan-13.C: New test.
1656 * testsuite/libgomp.c++/scan-14.C: New test.
1657 * testsuite/libgomp.c++/scan-15.C: New test.
1658 * testsuite/libgomp.c++/scan-16.C: New test.
1660 2019-07-04 Jakub Jelinek <jakub@redhat.com>
1662 * testsuite/libgomp.c/scan-9.c: New test.
1663 * testsuite/libgomp.c/scan-10.c: New test.
1665 2019-07-03 Jakub Jelinek <jakub@redhat.com>
1667 * testsuite/libgomp.c++/scan-1.C: New test.
1668 * testsuite/libgomp.c++/scan-2.C: New test.
1669 * testsuite/libgomp.c++/scan-3.C: New test.
1670 * testsuite/libgomp.c++/scan-4.C: New test.
1671 * testsuite/libgomp.c++/scan-5.C: New test.
1672 * testsuite/libgomp.c++/scan-6.C: New test.
1673 * testsuite/libgomp.c++/scan-7.C: New test.
1674 * testsuite/libgomp.c++/scan-8.C: New test.
1675 * testsuite/libgomp.c/scan-1.c: New test.
1676 * testsuite/libgomp.c/scan-2.c: New test.
1677 * testsuite/libgomp.c/scan-3.c: New test.
1678 * testsuite/libgomp.c/scan-4.c: New test.
1679 * testsuite/libgomp.c/scan-5.c: New test.
1680 * testsuite/libgomp.c/scan-6.c: New test.
1681 * testsuite/libgomp.c/scan-7.c: New test.
1682 * testsuite/libgomp.c/scan-8.c: New test.
1684 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1686 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
1687 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
1690 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
1693 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
1695 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
1698 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1701 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
1703 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
1704 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
1705 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
1706 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
1709 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
1712 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
1714 2019-06-16 Tom de Vries <tdevries@suse.de>
1716 PR tree-optimization/89376
1717 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
1719 2019-06-15 Tom de Vries <tdevries@suse.de>
1721 PR tree-optimization/89713
1722 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
1723 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
1725 2019-06-15 Jakub Jelinek <jakub@redhat.com>
1728 * testsuite/libgomp.c/pr90779.c: New test.
1729 * testsuite/libgomp.fortran/pr90779.f90: New test.
1731 2019-06-15 Tom de Vries <tdevries@suse.de>
1733 PR tree-optimization/90009
1734 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
1736 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
1738 PR tree-optimization/89713
1739 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
1741 2019-06-11 Jakub Jelinek <jakub@redhat.com>
1744 * testsuite/libgomp.c/pr90811.c: New test.
1746 2019-06-05 Jakub Jelinek <jakub@redhat.com>
1748 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
1749 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
1751 2019-06-04 Jakub Jelinek <jakub@redhat.com>
1753 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
1754 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
1755 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
1756 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
1758 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1760 * configure.ac: Call AX_COUNT_CPUS.
1761 Substitute CPU_COUNT.
1762 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
1764 * aclocal.m4: Regenerate.
1765 * configure: Regenerate.
1766 * Makefile.in, testsuite/Makefile.in: Regenerate.
1768 2019-05-29 Jakub Jelinek <jakub@redhat.com>
1770 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
1772 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
1773 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
1774 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
1776 2019-05-27 Jakub Jelinek <jakub@redhat.com>
1778 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
1780 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
1783 * work.c (gomp_init_work_share): Instead of aligning final ordered
1784 value to multiples of long long alignment, align to that the
1785 first part (ordered team ids) and if inline_ordered_team_ids
1786 is not on a long long alignment boundary within the structure,
1787 use __alignof__ (long long) - 1 pad size always.
1788 * loop.c (GOMP_loop_start): Fix *mem computation if
1789 inline_ordered_team_ids is not aligned on long long alignment boundary
1790 within the structure.
1791 * loop-ull.c (GOMP_loop_ull_start): Likewise.
1792 * sections.c (GOMP_sections2_start): Likewise.
1794 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1796 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
1797 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
1800 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
1801 HAVE_INTTYPES_H is defined.
1802 (print_uint64_t): New typedef.
1803 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
1804 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
1805 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
1806 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
1807 before casting to void *.
1808 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
1809 * oacc-mem.c: Don't include config.h nor stdint.h.
1810 * target.c: Don't include config.h.
1811 * oacc-cuda.c: Likewise.
1812 * oacc-host.c: Don't include stdint.h.
1814 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1817 * alloc.c (_GNU_SOURCE): Define.
1819 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
1821 * acc_prof.h: New file.
1822 * oacc-profiling.c: Likewise.
1823 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
1824 Add these, respectively.
1825 * Makefile.in: Regenerate.
1826 * env.c (initialize_env): Call goacc_profiling_initialize.
1827 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
1828 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
1829 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
1830 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
1831 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
1832 acc_prof_register, acc_prof_unregister, and acc_register_library.
1833 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
1834 GOMP_PLUGIN_goacc_thread.
1835 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
1836 prof_callbacks_enabled members.
1837 (goacc_prof_enabled, goacc_profiling_initialize)
1838 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
1839 (goacc_profiling_dispatch): Declare.
1840 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
1841 (GOACC_PROFILING_SETUP_P): Define.
1842 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
1843 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
1844 OpenACC Profiling Interface.
1845 * oacc-cuda.c (acc_get_current_cuda_device)
1846 (acc_get_current_cuda_context, acc_get_cuda_stream)
1847 (acc_set_cuda_stream): Likewise.
1848 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
1849 (acc_init, acc_set_device_type, acc_get_device_type)
1850 (acc_get_device_num, goacc_lazy_initialize): Likewise.
1851 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
1852 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
1853 (acc_unmap_data, present_create_copy, delete_copyout)
1854 (update_dev_host): Likewise.
1855 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
1856 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
1858 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
1859 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1861 * libgomp.texi: Update.
1862 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
1864 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
1865 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1867 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1869 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
1871 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
1874 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
1876 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
1877 (struct goacc_asyncqueue_list): Likewise.
1878 (goacc_aq): Likewise.
1879 (goacc_aq_list): Likewise.
1880 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1881 (GOMP_OFFLOAD_openacc_async_test): Remove.
1882 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1883 (GOMP_OFFLOAD_openacc_async_wait): Remove.
1884 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1885 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1886 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1887 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1888 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
1889 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
1890 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
1891 (GOMP_OFFLOAD_openacc_async_exec): Declare.
1892 (GOMP_OFFLOAD_openacc_async_construct): Declare.
1893 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
1894 (GOMP_OFFLOAD_openacc_async_test): Declare.
1895 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
1896 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
1897 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
1898 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
1899 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
1901 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
1902 (gomp_acc_insert_pointer): Adjust declaration.
1903 (gomp_copy_host2dev): New declaration.
1904 (gomp_copy_dev2host): Likewise.
1905 (gomp_map_vars_async): Likewise.
1906 (gomp_unmap_tgt): Likewise.
1907 (gomp_unmap_vars_async): Likewise.
1908 (gomp_fini_device): Likewise.
1910 * oacc-async.c (get_goacc_thread): New function.
1911 (get_goacc_thread_device): New function.
1912 (lookup_goacc_asyncqueue): New function.
1913 (get_goacc_asyncqueue): New function.
1914 (acc_async_test): Adjust code to use new async design.
1915 (acc_async_test_all): Likewise.
1916 (acc_wait): Likewise.
1917 (acc_wait_async): Likewise.
1918 (acc_wait_all): Likewise.
1919 (acc_wait_all_async): Likewise.
1920 (goacc_async_free): New function.
1921 (goacc_init_asyncqueues): Likewise.
1922 (goacc_fini_asyncqueues): Likewise.
1923 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
1925 (acc_set_cuda_stream): Likewise.
1926 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
1927 (host_openacc_register_async_cleanup): Remove.
1928 (host_openacc_async_exec): New function.
1929 (host_openacc_async_test): Adjust parameters.
1930 (host_openacc_async_test_all): Remove.
1931 (host_openacc_async_wait): Remove.
1932 (host_openacc_async_wait_async): Remove.
1933 (host_openacc_async_wait_all): Remove.
1934 (host_openacc_async_wait_all_async): Remove.
1935 (host_openacc_async_set_async): Remove.
1936 (host_openacc_async_synchronize): New function.
1937 (host_openacc_async_serialize): New function.
1938 (host_openacc_async_host2dev): New function.
1939 (host_openacc_async_dev2host): New function.
1940 (host_openacc_async_queue_callback): New function.
1941 (host_openacc_async_construct): New function.
1942 (host_openacc_async_destruct): New function.
1943 (struct gomp_device_descr host_dispatch): Remove initialization of old
1944 interface, add initialization of new async sub-struct.
1945 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
1946 (goacc_attach_host_thread_to_device): Remove old async code usage.
1947 * oacc-int.h (goacc_init_asyncqueues): New declaration.
1948 (goacc_fini_asyncqueues): Likewise.
1949 (goacc_async_copyout_unmap_vars): Likewise.
1950 (goacc_async_free): Likewise.
1951 (get_goacc_asyncqueue): Likewise.
1952 (lookup_goacc_asyncqueue): Likewise.
1953 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
1955 (present_create_copy): Adjust code to use new async design.
1956 (delete_copyout): Likewise.
1957 (update_dev_host): Likewise.
1958 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
1960 (gomp_acc_remove_pointer): Adjust code to use new async design.
1961 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
1963 (GOACC_enter_exit_data): Likewise.
1964 (goacc_wait): Likewise.
1965 (GOACC_update): Likewise.
1966 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
1967 when called, warn as obsolete in comment.
1968 * target.c (goacc_device_copy_async): New function.
1969 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
1970 add goacc_device_copy_async case.
1971 (gomp_copy_dev2host): Likewise.
1972 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
1973 (gomp_map_pointer): Likewise.
1974 (gomp_map_fields_existing): Likewise.
1975 (gomp_map_vars_internal): New always_inline function, renamed from
1977 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
1978 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
1979 passing goacc_asyncqueue argument.
1980 (gomp_unmap_tgt): Remove static, add attribute_hidden.
1981 (gomp_unref_tgt): New function.
1982 (gomp_unmap_vars_internal): New always_inline function, renamed from
1984 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
1985 (gomp_unmap_vars_async): Implement by calling
1986 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
1987 (gomp_fini_device): New function.
1988 (gomp_exit_data): Adjust gomp_copy_dev2host call.
1989 (gomp_load_plugin_for_device): Remove old interface, adjust to load
1990 new async interface.
1991 (gomp_target_fini): Adjust code to call gomp_fini_device.
1993 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
1994 (struct ptx_stream): Remove.
1995 (struct nvptx_thread): Remove current_stream field.
1996 (cuda_map_create): Remove.
1997 (cuda_map_destroy): Remove.
2002 (struct goacc_asyncqueue): Define.
2003 (struct nvptx_callback): Define.
2004 (struct ptx_free_block): Define.
2005 (struct ptx_device): Remove null_stream, active_streams, async_streams,
2006 stream_lock, and next fields.
2007 (enum ptx_event_type): Remove.
2008 (struct ptx_event): Remove.
2009 (ptx_event_lock): Remove.
2010 (ptx_events): Remove.
2011 (init_streams_for_device): Remove.
2012 (fini_streams_for_device): Remove.
2013 (select_stream_for_async): Remove.
2014 (nvptx_init): Remove ptx_events and ptx_event_lock references.
2015 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
2017 (nvptx_open_device): Add free_blocks initialization, remove
2018 init_streams_for_device call.
2019 (nvptx_close_device): Remove fini_streams_for_device call, add
2020 free_blocks destruct code.
2022 (event_add): Remove.
2023 (nvptx_exec): Adjust parameters and code.
2024 (nvptx_free): Likewise.
2025 (nvptx_host2dev): Remove.
2026 (nvptx_dev2host): Remove.
2027 (nvptx_set_async): Remove.
2028 (nvptx_async_test): Remove.
2029 (nvptx_async_test_all): Remove.
2030 (nvptx_wait): Remove.
2031 (nvptx_wait_async): Remove.
2032 (nvptx_wait_all): Remove.
2033 (nvptx_wait_all_async): Remove.
2034 (nvptx_get_cuda_stream): Remove.
2035 (nvptx_set_cuda_stream): Remove.
2036 (GOMP_OFFLOAD_alloc): Adjust code.
2037 (GOMP_OFFLOAD_free): Likewise.
2038 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
2039 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
2040 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
2041 (GOMP_OFFLOAD_openacc_async_wait): Remove.
2042 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
2043 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
2044 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
2045 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
2046 (cuda_free_argmem): New function.
2047 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
2048 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
2049 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
2050 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
2051 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
2052 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
2053 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
2054 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
2055 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
2056 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
2057 (cuda_callback_wrapper): New function.
2058 (cuda_memcpy_sanity_check): New function.
2059 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
2060 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
2061 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
2062 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
2064 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
2067 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
2069 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
2071 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
2073 2019-03-27 Kevin Buettner <kevinb@redhat.com>
2075 * team.c (gomp_team_start): Initialize pool->threads[0].
2077 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
2079 * testsuite/libgomp.oacc-c++/c++.exp: Specify
2080 "-foffload=$offload_target".
2081 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2082 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2083 * testsuite/lib/libgomp.exp
2084 (check_effective_target_openacc_nvidia_accel_configured): Remove,
2085 as (conceptually) merged into
2086 check_effective_target_openacc_nvidia_accel_selected. Adjust all
2089 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
2090 * testsuite/libgomp-test-support.exp.in: Adjust.
2091 * testsuite/lib/libgomp.exp: Likewise. Don't populate
2092 openacc_device_types_s.
2093 (offload_target_to_openacc_device_type): New proc.
2094 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
2095 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2096 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2097 * Makefile.in: Regenerate.
2098 * configure: Likewise.
2099 * testsuite/Makefile.in: Likewise.
2101 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
2102 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
2103 instead of OFFLOAD_TARGETS.
2104 * target.c (gomp_target_init): Adjust.
2105 * testsuite/libgomp-test-support.exp.in: Likewise.
2106 * testsuite/lib/libgomp.exp: Likewise. Populate
2107 openacc_device_types_s instead of offload_targets_s_openacc.
2108 (check_effective_target_openacc_nvidia_accel_selected)
2109 (check_effective_target_openacc_host_selected): Adjust.
2110 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
2111 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2112 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2113 * Makefile.in: Regenerate.
2114 * config.h.in: Likewise.
2115 * configure: Likewise.
2116 * testsuite/Makefile.in: Likewise.
2118 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
2119 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
2120 "offloading: supported, but hardware not accessible".
2121 * testsuite/libgomp.oacc-c/c.exp: Likewise.
2122 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
2124 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
2127 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
2129 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
2130 and related adjustment.
2132 2019-01-30 Jakub Jelinek <jakub@redhat.com>
2135 * testsuite/libgomp.c++/pr88988.C: New test.
2137 2019-01-28 Jakub Jelinek <jakub@redhat.com>
2140 * testsuite/libgomp.c/pr89002.c: New test.
2142 2019-01-28 Richard Biener <rguenther@suse.de>
2145 PR tree-optimization/86865
2146 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
2148 2019-01-24 Tom de Vries <tdevries@suse.de>
2150 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
2151 once instantiated_devices drops to 0.
2153 2019-01-23 Tom de Vries <tdevries@suse.de>
2156 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
2158 (nvptx_exec): Don't call map_push if mapnum == 0.
2159 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
2161 2019-01-23 Tom de Vries <tdevries@suse.de>
2165 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
2166 (map_fini): Remove "assert (!s->map->active)".
2167 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
2169 2019-01-23 Tom de Vries <tdevries@suse.de>
2172 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
2173 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
2175 2019-01-15 Tom de Vries <tdevries@suse.de>
2178 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
2181 2019-01-12 Tom de Vries <tdevries@suse.de>
2183 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
2184 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
2185 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
2186 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
2188 2019-01-12 Tom de Vries <tdevries@suse.de>
2190 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
2192 2019-01-12 Tom de Vries <tdevries@suse.de>
2194 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
2195 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
2196 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
2198 2019-01-12 Tom de Vries <tdevries@suse.de>
2201 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
2202 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
2204 2019-01-12 Tom de Vries <tdevries@suse.de>
2207 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
2208 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
2210 2019-01-12 Tom de Vries <tdevries@suse.de>
2212 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
2213 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
2214 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
2216 2019-01-12 Tom de Vries <tdevries@suse.de>
2218 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
2219 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
2220 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
2222 2019-01-12 Tom de Vries <tdevries@suse.de>
2224 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
2225 resources diagnostic.
2227 2019-01-12 Tom de Vries <tdevries@suse.de>
2229 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
2230 vector length to be 128.
2231 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
2232 length 2097152 to be reduced to 1024 instead of 32.
2234 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
2235 James Norris <jnorris@codesourcery.com>
2237 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
2238 Library Routines", and "Environment Variables".
2240 2019-01-11 Tom de Vries <tdevries@suse.de>
2242 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
2245 2019-01-11 Tom de Vries <tdevries@suse.de>
2247 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
2249 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
2250 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
2251 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
2252 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
2254 2019-01-11 Tom de Vries <tdevries@suse.de>
2256 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
2259 2019-01-10 Nathan Sidwell <nathan@acm.org>
2260 Julian Brown <julian@codesourcery.com>
2263 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
2264 * testsuite/libgomp.oacc-c++/pr71959.C: New.
2266 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2268 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
2271 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2273 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
2274 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2277 2019-01-09 Tom de Vries <tdevries@suse.de>
2280 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
2281 #define instead of "const int".
2282 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
2283 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
2284 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
2285 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
2287 2019-01-09 Tom de Vries <tdevries@suse.de>
2289 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
2292 2019-01-07 Tom de Vries <tdevries@suse.de>
2294 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
2295 GOMP_OPENACC_DIM argument.
2297 2019-01-03 Tom de Vries <tdevries@suse.de>
2299 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
2300 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
2302 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2304 Update copyright years.
2306 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2308 * libgomp.texi: Bump @copying's copyright year.
2310 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2312 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
2313 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
2314 (GOACC_declare): Redefine the "device" argument to "flags".
2316 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2317 Cesar Philippidis <cesar@codesourcery.com>
2319 * target.c (struct gomp_coalesce_chunk): New structure.
2320 (struct gomp_coalesce_buf): Update the chunks member to use that
2321 type. Adjust all users.
2323 2018-12-19 Tom de Vries <tdevries@suse.de>
2325 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
2326 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
2327 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
2329 2018-12-19 Tom de Vries <tdevries@suse.de>
2331 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
2332 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
2333 gcc/testsuite/gcc.dg/goacc.
2334 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
2336 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2337 Chung-Lin Tang <cltang@codesourcery.com>
2339 * oacc-mem.c (acc_present_or_create): Remove definition and change
2340 to alias of acc_create.
2341 (acc_present_or_copyin): Remove definition and change to alias of
2343 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
2344 of acc_present_or_create.
2345 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
2346 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2347 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
2348 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
2349 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
2350 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
2351 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
2352 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2353 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2354 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2355 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2356 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2357 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2358 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2359 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2360 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2362 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2365 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
2366 "identical parameters".
2367 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
2368 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
2371 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
2372 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
2375 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
2376 (nvptx_wait_async): Unseen async-argument is a no-op.
2377 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
2378 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
2379 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2380 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2381 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
2382 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
2383 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
2384 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
2385 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
2387 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
2388 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2390 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
2392 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
2393 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2394 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
2396 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2399 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
2400 (acc_set_cuda_stream): Clarify.
2401 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
2403 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
2405 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
2406 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
2407 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
2408 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2410 2018-12-14 Tom de Vries <tdevries@suse.de>
2412 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
2413 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
2414 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
2415 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
2416 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
2418 2018-12-13 Tom de Vries <tdevries@suse.de>
2420 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
2421 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
2422 * fortran.c (omp_display_affinity_): ... here.
2423 * libgomp.h (gomp_print_string): Declare.
2424 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
2425 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2428 2018-12-13 Jakub Jelinek <jakub@redhat.com>
2431 * testsuite/libgomp.c++/for-24.C (results): Include it in
2432 omp declare target region.
2433 (main): Use map (always, tofrom: results) instead of
2434 map (tofrom: results).
2436 2018-12-12 Jakub Jelinek <jakub@redhat.com>
2439 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
2440 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
2442 * testsuite/libgomp.c-c++-common/for-16.c: New test.
2444 2018-12-12 Andreas Schwab <schwab@suse.de>
2446 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
2449 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
2452 * testsuite/libgomp.fortran/async_io_8.f90: New test.
2454 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
2455 Jakub Jelinek <jakub@redhat.com>
2457 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
2458 devicep->host2dev_func.
2460 2018-12-08 Jakub Jelinek <jakub@redhat.com>
2463 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
2464 tls_runtime effective target.
2465 (t): New threadprivate variable.
2466 (main): Set t in threads which execute iterations of the worksharing
2467 loop. Propagate that to the task after the loop and don't abort
2468 if the current taskgroup hasn't been cancelled.
2470 2018-12-02 Jakub Jelinek <jakub@redhat.com>
2472 * testsuite/libgomp.c/task-reduction-3.c: New test.
2474 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
2476 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
2479 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
2480 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
2482 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
2484 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
2486 2018-10-19 Richard Biener <rguenther@suse.de>
2488 PR tree-optimization/88182
2489 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
2491 2018-11-26 Jakub Jelinek <jakub@redhat.com>
2493 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
2494 (RUNTEST): Don't define.
2495 (RUNTESTDEFAULTFLAGS): Add.
2496 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
2497 (distclean-am): Depend on distclean-DEJAGNU.
2498 (check-am): If -j% option is present in MFLAGS and if
2499 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
2500 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
2501 * testsuite/Makefile.in: Regenerated.
2503 2018-11-26 Richard Biener <rguenther@suse.de>
2505 PR tree-optimization/88182
2506 * testsuite/libgomp.c++/pr88182.C: New testcase.
2508 2018-11-20 Jakub Jelinek <jakub@redhat.com>
2511 * config/mingw32/affinity-fmt.c: New file.
2513 2018-11-09 Jakub Jelinek <jakub@redhat.com>
2515 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
2516 (gomp_display_affinity): Use __builtin_choose_expr to handle
2517 properly handle argument having integral, or pointer or some other
2518 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
2519 with uint64_t type instead of %llx and unsigned long long.
2521 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
2522 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
2524 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2526 * affinity.c: Include <string.h>, <stdio.h>.
2527 (gomp_display_affinity_place): Remove cpusetp.
2528 * teams.c: Include <limits.h>.
2530 2018-11-08 Jakub Jelinek <jakub@redhat.com>
2532 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
2533 in_reduction clause for s[0].
2535 * affinity.c (gomp_display_affinity_place): New function.
2536 * affinity-fmt.c: New file.
2537 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
2538 * config/linux/affinity.c (gomp_display_affinity_place): New function.
2539 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
2540 Move these functions to ...
2541 * config/nvptx/teams.c: ... here. New file.
2542 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
2544 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
2546 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
2547 and _aligned_malloc.
2548 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
2549 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
2550 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
2551 gomp_affinity_format_len): New variables.
2552 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
2553 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
2554 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
2555 modifiers. Display (non-default) chunk sizes. Print
2556 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
2557 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
2558 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
2559 * fortran.c: Include stdio.h and string.h.
2560 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
2561 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
2562 (omp_set_affinity_format_, omp_get_affinity_format_,
2563 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
2564 omp_pause_resource_all_): New functions.
2565 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
2567 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
2569 * teams.c: ... here. New file.
2570 * libgomp_g.h: Include gstdint.h.
2571 (GOMP_loop_nonmonotonic_runtime_start,
2572 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
2573 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
2574 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
2575 GOMP_parallel_loop_nonmonotonic_runtime,
2576 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2577 GOMP_loop_ull_nonmonotonic_runtime_start,
2578 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
2579 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
2580 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2581 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
2582 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
2583 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2584 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2585 GOMP_teams_reg): Declare.
2586 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
2587 gomp_aligned_alloc uses fallback implementation.
2588 (gomp_aligned_alloc, gomp_aligned_free): Declare.
2589 (enum gomp_schedule_type): Add GFS_MONOTONIC.
2590 (struct gomp_doacross_work_share): Add extra field.
2591 (struct gomp_work_share): Add task_reductions field.
2592 (struct gomp_taskgroup): Add workshare and reductions fields.
2593 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
2594 (gomp_thread_handle): New typedef.
2595 (gomp_display_affinity_place, gomp_set_affinity_format,
2596 gomp_display_string, gomp_display_affinity,
2597 gomp_display_affinity_thread): Declare.
2598 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
2599 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
2600 gomp_workshare_task_reduction_register): Declare.
2601 (gomp_team_start): Add taskgroup argument.
2602 (gomp_pause_host): Declare.
2603 (gomp_init_work_share, gomp_work_share_start): Change bool argument
2605 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
2606 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
2607 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
2608 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2609 GOMP_loop_ull_doacross_start,
2610 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2611 GOMP_loop_maybe_nonmonotonic_runtime_next,
2612 GOMP_loop_maybe_nonmonotonic_runtime_start,
2613 GOMP_loop_nonmonotonic_runtime_next,
2614 GOMP_loop_nonmonotonic_runtime_start,
2615 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2616 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2617 GOMP_loop_ull_nonmonotonic_runtime_next,
2618 GOMP_loop_ull_nonmonotonic_runtime_start,
2619 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2620 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
2621 GOMP_taskgroup_reduction_register,
2622 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2623 GOMP_teams_reg and GOMP_taskwait_depend.
2624 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
2625 omp_{capture,display}_affinity{,_}, and
2626 omp_[gs]et_affinity_format{,_}.
2627 * loop.c: Include string.h.
2628 (GOMP_loop_runtime_next): Add ialias.
2629 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2630 (gomp_loop_static_start, gomp_loop_dynamic_start,
2631 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2632 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2633 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
2634 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
2635 or gomp_doacross_init callers.
2636 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
2637 GOMP_loop_doacross_start): New functions.
2638 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2639 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
2640 Mask off GFS_MONOTONIC bit.
2641 (GOMP_loop_maybe_nonmonotonic_runtime_next,
2642 GOMP_loop_maybe_nonmonotonic_runtime_start,
2643 GOMP_loop_nonmonotonic_runtime_next,
2644 GOMP_loop_nonmonotonic_runtime_start,
2645 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2646 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
2648 (gomp_parallel_loop_start): Pass NULL as taskgroup to
2650 * loop_ull.c: Include string.h.
2651 (GOMP_loop_ull_runtime_next): Add ialias.
2652 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2653 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
2654 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
2655 gomp_loop_ull_ordered_dynamic_start,
2656 gomp_loop_ull_ordered_guided_start,
2657 gomp_loop_ull_doacross_static_start,
2658 gomp_loop_ull_doacross_dynamic_start,
2659 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
2660 and gomp_doacross_ull_init callers.
2661 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2662 GOMP_loop_ull_doacross_start): New functions.
2663 (GOMP_loop_ull_runtime_start,
2664 GOMP_loop_ull_ordered_runtime_start,
2665 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
2666 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2667 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2668 GOMP_loop_ull_nonmonotonic_runtime_next,
2669 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
2670 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
2671 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
2672 (omp_pause_resource_t, omp_depend_t): New typedefs.
2673 (enum omp_lock_hint_t): Renamed to ...
2674 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
2675 enumerators using numbers and omp_lock_hint_* as their aliases.
2676 (omp_lock_hint_t): New typedef. Rename to ...
2677 (omp_sync_hint_t): ... this.
2678 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
2679 omp_sync_hint_t instead of omp_lock_hint_t.
2680 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2681 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2683 (omp_target_is_present, omp_target_disassociate_ptr):
2684 Change first argument from void * to const void *.
2685 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
2686 from void * to const void *.
2687 (omp_target_associate_ptr): Change first and second arguments from
2688 void * to const void *.
2689 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
2690 omp_pause_hard): New parameters.
2691 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2692 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2694 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
2695 omp_pause_hard): New parameters.
2696 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2697 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2699 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
2700 EXTRA argument. If not needed to prepare array, if extra is 0,
2701 clear ws->doacross, otherwise allocate just doacross structure and
2702 extra payload. If array is needed, allocate also extra payload.
2703 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
2704 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
2706 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
2708 (GOMP_parallel): Likewise. Formatting fix.
2709 (GOMP_parallel_reductions): New function.
2710 (GOMP_cancellation_point): If taskgroup has workshare
2711 flag set, check cancelled of prev taskgroup if any.
2712 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
2713 on prev taskgroup if any.
2714 * sections.c: Include string.h.
2715 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2716 (GOMP_sections_start): Adjust gomp_work_share_start caller.
2717 (GOMP_sections2_start): New function.
2718 (GOMP_parallel_sections_start, GOMP_parallel_sections):
2719 Pass NULL as taskgroup to gomp_team_start.
2720 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
2721 gomp_work_share_start callers.
2722 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
2723 If taskgroup has workshare flag set, check cancelled on prev
2724 taskgroup if any. Guard all cancellation tests with
2725 gomp_cancel_var test.
2726 (omp_target_is_present, omp_target_disassociate_ptr):
2727 Change ptr argument from void * to const void *.
2728 (omp_target_memcpy): Change src argument from void * to const void *.
2729 (omp_target_memcpy_rect): Likewise.
2730 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
2731 instead of char * where needed.
2732 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
2733 from void * to const void *.
2734 (omp_pause_resource, omp_pause_resource_all): New functions.
2735 * task.c (gomp_task_handle_depend): Handle new depend array format
2736 in addition to the old. Handle mutexinoutset kinds the same as
2737 inout for now, handle unspecified kinds.
2738 (gomp_create_target_task): If taskgroup has workshare flag set, check
2739 cancelled on prev taskgroup if any. Guard all cancellation tests with
2740 gomp_cancel_var test. Handle new depend array format count in
2741 addition to the old.
2742 (GOMP_task): Likewise. Adjust function comment.
2743 (gomp_task_run_pre): If taskgroup has workshare flag set, check
2744 cancelled on prev taskgroup if any. Guard all cancellation tests with
2745 gomp_cancel_var test.
2746 (GOMP_taskwait_depend): New function.
2747 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
2748 format in addition to the old. Handle mutexinoutset kinds the same as
2749 inout for now, handle unspecified kinds. Fix a function comment typo.
2750 (gomp_taskgroup_init): New function.
2751 (GOMP_taskgroup_start): Use it.
2752 (gomp_reduction_register, gomp_create_artificial_team,
2753 GOMP_taskgroup_reduction_register,
2754 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2755 gomp_parallel_reduction_register,
2756 gomp_workshare_task_reduction_register,
2757 gomp_workshare_taskgroup_start,
2758 GOMP_workshare_task_reduction_unregister): New functions.
2759 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
2760 check cancelled on prev taskgroup if any. Guard all cancellation
2761 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
2762 by calling GOMP_taskgroup_reduction_register.
2763 * team.c (gomp_thread_attr): Remove comment.
2764 (struct gomp_thread_start_data): Add handle field.
2765 (gomp_thread_start): Call pthread_detach.
2766 (gomp_new_team): Adjust gomp_init_work_share caller.
2767 (gomp_free_pool_helper): Call pthread_detach.
2768 (gomp_team_start): Add taskgroup argument, initialize implicit
2769 tasks' taskgroup field to that. Don't call
2770 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
2771 (gomp_team_end): Determine nesting by thr->ts.level != 0
2772 rather than thr->ts.team != NULL.
2773 (gomp_pause_pool_helper, gomp_pause_host): New functions.
2774 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
2775 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
2776 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
2777 if more than 1 allocate also extra payload at the end of array. Never
2778 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
2779 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
2780 return true instead of ws.
2781 * Makefile.in: Regenerated.
2782 * configure: Regenerated.
2783 * config.h.in: Regenerated.
2784 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
2786 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
2787 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
2788 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
2789 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
2790 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
2791 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
2792 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
2793 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
2794 * testsuite/libgomp.c-c++-common/for-10.c: New test.
2795 * testsuite/libgomp.c-c++-common/for-11.c: New test.
2796 * testsuite/libgomp.c-c++-common/for-12.c: New test.
2797 * testsuite/libgomp.c-c++-common/for-13.c: New test.
2798 * testsuite/libgomp.c-c++-common/for-14.c: New test.
2799 * testsuite/libgomp.c-c++-common/for-15.c: New test.
2800 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
2801 define a different N(test), don't define N(f0) to N(f14), but instead
2802 define N(f20) to N(f34) using != comparisons.
2803 * testsuite/libgomp.c-c++-common/for-7.c: New test.
2804 * testsuite/libgomp.c-c++-common/for-8.c: New test.
2805 * testsuite/libgomp.c-c++-common/for-9.c: New test.
2806 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
2807 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
2808 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
2809 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
2810 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
2811 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
2812 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
2813 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
2814 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
2815 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
2816 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
2817 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
2818 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
2819 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
2820 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
2821 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
2822 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
2823 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
2824 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
2825 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
2826 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
2827 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
2828 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
2829 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
2830 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
2831 * testsuite/libgomp.c++/depend-1.C: New test.
2832 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
2833 * testsuite/libgomp.c++/depobj-1.C: New test.
2834 * testsuite/libgomp.c++/for-16.C: New test.
2835 * testsuite/libgomp.c++/for-21.C: New test.
2836 * testsuite/libgomp.c++/for-22.C: New test.
2837 * testsuite/libgomp.c++/for-23.C: New test.
2838 * testsuite/libgomp.c++/for-24.C: New test.
2839 * testsuite/libgomp.c++/for-25.C: New test.
2840 * testsuite/libgomp.c++/for-26.C: New test.
2841 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
2842 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
2843 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
2844 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
2845 * testsuite/libgomp.c++/task-reduction-10.C: New test.
2846 * testsuite/libgomp.c++/task-reduction-11.C: New test.
2847 * testsuite/libgomp.c++/task-reduction-12.C: New test.
2848 * testsuite/libgomp.c++/task-reduction-13.C: New test.
2849 * testsuite/libgomp.c++/task-reduction-14.C: New test.
2850 * testsuite/libgomp.c++/task-reduction-15.C: New test.
2851 * testsuite/libgomp.c++/task-reduction-16.C: New test.
2852 * testsuite/libgomp.c++/task-reduction-17.C: New test.
2853 * testsuite/libgomp.c++/task-reduction-18.C: New test.
2854 * testsuite/libgomp.c++/task-reduction-19.C: New test.
2855 * testsuite/libgomp.c/task-reduction-1.c: New test.
2856 * testsuite/libgomp.c++/task-reduction-1.C: New test.
2857 * testsuite/libgomp.c/task-reduction-2.c: New test.
2858 * testsuite/libgomp.c++/task-reduction-2.C: New test.
2859 * testsuite/libgomp.c++/task-reduction-3.C: New test.
2860 * testsuite/libgomp.c++/task-reduction-4.C: New test.
2861 * testsuite/libgomp.c++/task-reduction-5.C: New test.
2862 * testsuite/libgomp.c++/task-reduction-6.C: New test.
2863 * testsuite/libgomp.c++/task-reduction-7.C: New test.
2864 * testsuite/libgomp.c++/task-reduction-8.C: New test.
2865 * testsuite/libgomp.c++/task-reduction-9.C: New test.
2866 * testsuite/libgomp.c/teams-1.c: New test.
2867 * testsuite/libgomp.c/teams-2.c: New test.
2868 * testsuite/libgomp.c/thread-limit-4.c: New test.
2869 * testsuite/libgomp.c/thread-limit-5.c: New test.
2870 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
2872 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
2874 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
2875 acc_memcpy_to/from_device functions, now with async parameter.
2876 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
2877 (acc_memcpy_from_device): Likewise.
2878 (acc_memcpy_to_device_async): New API function.
2879 (acc_memcpy_from_device_async): Likewise.
2880 (present_create_copy): Add async parameter and async setting/unsetting.
2881 (acc_create): Adjust present_create_copy call.
2882 (acc_copyin): Likewise.
2883 (acc_present_or_create): Likewise.
2884 (acc_present_or_copyin): Likewise.
2885 (acc_create_async): New API function.
2886 (acc_copyin_async): New API function.
2887 (delete_copyout): Add async parameter and async setting/unsetting.
2888 (acc_delete): Adjust delete_copyout call.
2889 (acc_copyout): Likewise.
2890 (acc_delete_async): New API function.
2891 (acc_copyout_async): Likewise.
2892 (update_dev_host): Add async parameter and async setting/unsetting.
2893 (acc_update_device): Adjust update_dev_host call.
2894 (acc_update_self): Likewise.
2895 (acc_update_device_async): New API function.
2896 (acc_update_self_async): Likewise.
2897 * openacc.h (acc_copyin_async): Declare new API function.
2898 (acc_create_async): Likewise.
2899 (acc_copyout_async): Likewise.
2900 (acc_delete_async): Likewise.
2901 (acc_update_device_async): Likewise.
2902 (acc_update_self_async): Likewise.
2903 (acc_memcpy_to_device_async): Likewise.
2904 (acc_memcpy_from_device_async): Likewise.
2905 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
2906 (acc_copyin_async_64_h): New subroutine.
2907 (acc_copyin_async_array_h): New subroutine.
2908 (acc_create_async_32_h): New subroutine.
2909 (acc_create_async_64_h): New subroutine.
2910 (acc_create_async_array_h): New subroutine.
2911 (acc_copyout_async_32_h): New subroutine.
2912 (acc_copyout_async_64_h): New subroutine.
2913 (acc_copyout_async_array_h): New subroutine.
2914 (acc_delete_async_32_h): New subroutine.
2915 (acc_delete_async_64_h): New subroutine.
2916 (acc_delete_async_array_h): New subroutine.
2917 (acc_update_device_async_32_h): New subroutine.
2918 (acc_update_device_async_64_h): New subroutine.
2919 (acc_update_device_async_array_h): New subroutine.
2920 (acc_update_self_async_32_h): New subroutine.
2921 (acc_update_self_async_64_h): New subroutine.
2922 (acc_update_self_async_array_h): New subroutine.
2923 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
2924 (acc_copyin_async_64_h): New subroutine.
2925 (acc_copyin_async_array_h): New subroutine.
2926 (acc_create_async_32_h): New subroutine.
2927 (acc_create_async_64_h): New subroutine.
2928 (acc_create_async_array_h): New subroutine.
2929 (acc_copyout_async_32_h): New subroutine.
2930 (acc_copyout_async_64_h): New subroutine.
2931 (acc_copyout_async_array_h): New subroutine.
2932 (acc_delete_async_32_h): New subroutine.
2933 (acc_delete_async_64_h): New subroutine.
2934 (acc_delete_async_array_h): New subroutine.
2935 (acc_update_device_async_32_h): New subroutine.
2936 (acc_update_device_async_64_h): New subroutine.
2937 (acc_update_device_async_array_h): New subroutine.
2938 (acc_update_self_async_32_h): New subroutine.
2939 (acc_update_self_async_64_h): New subroutine.
2940 (acc_update_self_async_array_h): New subroutine.
2941 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
2942 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
2943 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
2944 acc_memcpy_to_device_async*, acc_update_device_async*, and
2945 acc_update_self_async* entries.
2946 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
2947 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
2948 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
2950 2018-10-31 Joseph Myers <joseph@codesourcery.com>
2953 * Makefile.am: Include multilib.am
2954 (AUTOMAKE_OPTIONS): Add info-in-builddir.
2955 (CLEANFILES): Remove libgomp.info.
2956 * configure.ac: Remove AC_PREREQ.
2957 * testsuite/Makefile.am (RUNTEST): Remove quotes.
2958 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
2961 2018-10-29 Joseph Myers <joseph@codesourcery.com>
2962 Julian Brown <julian@codesourcery.com>
2964 * testsuite/libgomp.oacc-c++/this.C: New.
2966 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
2968 * plugin/plugin-nvptx.c (struct cuda_map): New.
2969 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
2970 h_tail with (cuda_map *) map.
2971 (cuda_map_create): New function.
2972 (cuda_map_destroy): New function.
2973 (map_init): Update to use a linked list of cuda_map objects.
2974 (map_fini): Likewise.
2975 (map_pop): Likewise.
2976 (map_push): Likewise. Return CUdeviceptr instead of void.
2977 (init_streams_for_device): Remove stales references to ptx_stream
2979 (select_stream_for_async): Likewise.
2980 (nvptx_exec): Update call to map_init.
2982 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
2983 Julian Brown <julian@codesourcery.com>
2986 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
2988 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
2989 Thomas Koenig <tkoenig@gcc.gnu.org>
2992 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2993 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2994 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2995 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2996 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2997 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2998 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3000 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
3001 Tom de Vries <tdevries@suse.de>
3004 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
3005 (cuOccupancyMaxPotentialBlockSize): Declare.
3006 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
3007 CUDA_ONE_CALL_MAYBE_NULL.
3008 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
3009 CUoccupancyB2DSize and declare
3010 cuOccupancyMaxPotentialBlockSize.
3011 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
3012 default num_gangs and num_workers when the driver supports it.
3014 2018-08-08 Tom de Vries <tdevries@suse.de>
3016 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
3017 CUDA_ONE_CALL_MAYBE_NULL.
3018 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
3019 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
3020 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
3023 2018-08-08 Tom de Vries <tdevries@suse.de>
3025 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
3026 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
3029 2018-08-08 Tom de Vries <tdevries@suse.de>
3031 * plugin/plugin-nvptx.c
3032 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
3033 (nvptx_open_device): Use
3034 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
3036 2018-08-08 Tom de Vries <tdevries@suse.de>
3038 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
3039 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
3041 2018-08-07 Tom de Vries <tdevries@suse.de>
3043 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
3044 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
3045 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
3046 corresponding call in CUDA_ONE_CALL. Add def/undef of
3047 CUDA_ONE_CALL_MAYBE_NULL.
3048 (CUDA_CALL_EXISTS): Define.
3050 2018-08-07 Tom de Vries <tdevries@suse.de>
3052 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
3053 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
3054 corresponding undefs right after.
3056 2018-08-04 Tom de Vries <tdevries@suse.de>
3058 * plugin/configfrag.ac: For --without-cuda-driver, set
3059 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
3060 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
3061 * configure: Regenerate.
3063 2018-08-02 Tom de Vries <tdevries@suse.de>
3066 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
3067 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
3068 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
3070 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
3071 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
3072 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
3074 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
3075 Thomas Schwinge <thomas@codesourcery.com>
3077 * config/nvptx/oacc-parallel.c: Truncate.
3079 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
3080 James Norris <jnorris@codesourcery.com>
3082 * plugin/plugin-nvptx.c (struct map): Removed.
3083 (map_init, map_pop): Remove use of struct map.
3084 (map_push): Likewise and change argument list.
3085 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
3087 2018-08-01 Tom de Vries <tdevries@suse.de>
3089 * plugin/cuda-lib.def: New file. Factor out of ...
3090 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
3091 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
3094 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
3096 Revert 'AsyncI/O patch committed'.
3097 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
3098 Thomas Koenig <tkoenig@gcc.gnu.org>
3101 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3102 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3103 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3104 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3105 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3106 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3107 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3109 2018-07-30 Tom de Vries <tdevries@suse.de>
3111 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
3112 (nvptx_exec): Ensure worker and vector default dims don't exceed
3113 targ_fn->max_threads_per_block.
3115 2018-07-30 Tom de Vries <tdevries@suse.de>
3117 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
3118 (nvptx_open_device): Init default_dims for device.
3119 (nvptx_exec): Use default_dims from device.
3121 2018-07-26 Jakub Jelinek <jakub@redhat.com>
3124 * testsuite/libgomp.c++/for-15.C (results): Include it in
3125 omp declare target region.
3126 (main): Use map (always, tofrom: results) instead of
3127 map (tofrom: results).
3130 * testsuite/libgomp.c/pr86660.c: New test.
3132 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3133 Tom de Vries <tdevries@suse.de>
3135 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
3136 sufficient resources to launch a kernel, and give a hint on how to fix
3139 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
3140 Tom de Vries <tdevries@suse.de>
3142 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
3143 max_threads_per_block and max_threads_per_multiprocessor fields.
3144 (nvptx_open_device): Initialize new fields.
3145 (nvptx_exec): Use num_sms, and new fields.
3147 2018-07-26 Tom de Vries <tdevries@suse.de>
3149 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
3150 to correct locations. Remove xfail.
3152 2018-07-26 Tom de Vries <tdevries@suse.de>
3154 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
3155 acc_wait. Move acc_async_test calls to correct locations. Remove
3158 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
3159 Thomas Koenig <tkoenig@gcc.gnu.org>
3162 * testsuite/libgomp.fortran/async_io_1.f90: New test.
3163 * testsuite/libgomp.fortran/async_io_2.f90: New test.
3164 * testsuite/libgomp.fortran/async_io_3.f90: New test.
3165 * testsuite/libgomp.fortran/async_io_4.f90: New test.
3166 * testsuite/libgomp.fortran/async_io_5.f90: New test.
3167 * testsuite/libgomp.fortran/async_io_6.f90: New test.
3168 * testsuite/libgomp.fortran/async_io_7.f90: New test.
3170 2018-07-17 Jakub Jelinek <jakub@redhat.com>
3173 * testsuite/libgomp.c++/pr86542.C: New test.
3176 * testsuite/libgomp.c++/pr86539.C: New test.
3178 2018-07-11 Jakub Jelinek <jakub@redhat.com>
3181 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
3182 (results): Make sure the variable is not inside declare target region.
3183 (qux): Remove unused function.
3185 2018-07-10 Jakub Jelinek <jakub@redhat.com>
3188 * testsuite/libgomp.c++/for-15.C: New test.
3190 2018-06-26 Jakub Jelinek <jakub@redhat.com>
3193 * testsuite/libgomp.c++/pr86291.C: New test.
3195 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
3197 * libgomp.texi (Top): Move www.openmp.org to https.
3198 (Enabling OpenMP): Ditto.
3199 (omp_get_active_level): Ditto.
3200 (omp_get_ancestor_thread_num): Ditto.
3201 (omp_get_cancellation): Ditto.
3202 (omp_get_default_device): Ditto.
3203 (omp_get_dynamic): Ditto.
3204 (omp_get_level): Ditto.
3205 (omp_get_max_active_levels): Ditto.
3206 (omp_get_max_task_priority): Ditto.
3207 (omp_get_max_threads): Ditto.
3208 (omp_get_nested): Ditto.
3209 (omp_get_num_devices): Ditto.
3210 (omp_get_num_procs): Ditto.
3211 (omp_get_num_teams): Ditto.
3212 (omp_get_num_threads): Ditto.
3213 (omp_get_proc_bind): Ditto.
3214 (omp_get_schedule): Ditto.
3215 (omp_get_team_num): Ditto.
3216 (omp_get_team_size): Ditto.
3217 (omp_get_thread_limit): Ditto.
3218 (omp_get_thread_num): Ditto.
3219 (omp_in_parallel): Ditto.
3220 (omp_in_final): Ditto.
3221 (omp_is_initial_device): Ditto.
3222 (omp_set_default_device): Ditto.
3223 (omp_set_dynamic): Ditto.
3224 (omp_set_max_active_levels): Ditto.
3225 (omp_set_nested): Ditto.
3226 (omp_set_num_threads): Ditto.
3227 (omp_set_schedule): Ditto.
3228 (omp_init_lock): Ditto.
3229 (omp_set_lock): Ditto.
3230 (omp_test_lock): Ditto.
3231 (omp_unset_lock): Ditto.
3232 (omp_destroy_lock): Ditto.
3233 (omp_init_nest_lock): Ditto.
3234 (omp_set_nest_lock): Ditto.
3235 (omp_test_nest_lock): Ditto.
3236 (omp_unset_nest_lock): Ditto.
3237 (omp_destroy_nest_lock): Ditto.
3238 (omp_get_wtick): Ditto.
3239 (omp_get_wtime): Ditto.
3240 (OMP_CANCELLATION): Ditto.
3241 (OMP_DISPLAY_ENV): Ditto.
3242 (OMP_DEFAULT_DEVICE): Ditto.
3243 (OMP_DYNAMIC): Ditto.
3244 (OMP_MAX_ACTIVE_LEVELS): Ditto.
3245 (OMP_MAX_TASK_PRIORITY): Ditto.
3246 (OMP_NESTED): Ditto.
3247 (OMP_NUM_THREADS): Ditto.
3248 (OMP_PROC_BIND): Ditto.
3249 (OMP_PLACES): Ditto.
3250 (OMP_STACKSIZE): Ditto.
3251 (OMP_SCHEDULE): Ditto.
3252 (OMP_THREAD_LIMIT): Ditto.
3253 (OMP_WAIT_POLICY): Ditto.
3255 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
3256 James Norris <jnorris@codesourcery.com>
3257 Julian Brown <julian@codesourcery.com>
3258 Thomas Schwinge <thomas@codesourcery.com>
3259 Tom de Vries <tom@codesourcery.com>
3261 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
3262 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
3263 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
3264 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
3265 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3266 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3267 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
3268 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
3269 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
3270 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
3272 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
3274 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
3276 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
3278 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
3280 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
3282 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3284 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3286 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3288 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3290 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3292 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3294 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3296 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3298 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3300 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3302 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3304 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3306 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3308 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3310 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3312 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3314 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3316 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3318 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3320 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3322 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3324 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
3325 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
3326 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
3327 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
3328 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
3329 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
3330 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
3331 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
3332 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
3334 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
3336 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
3337 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
3338 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
3340 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
3341 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
3342 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
3344 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3346 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3348 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3350 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3352 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3354 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3356 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3358 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3360 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3362 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3364 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3366 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3368 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3370 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3372 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
3373 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
3374 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
3375 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
3376 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
3377 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
3378 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
3380 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
3381 Thomas Schwinge <thomas@codesourcery.com>
3382 Cesar Philippidis <cesar@codesourcery.com>
3384 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
3385 (gomp_acc_remove_pointer): Update declaration.
3386 (gomp_acc_declare_allocate): Declare.
3387 (gomp_remove_var): Declare.
3388 * libgomp.map (OACC_2.5): Define.
3389 * oacc-mem.c (acc_map_data): Update refcount.
3390 (acc_unmap_data): Likewise.
3391 (present_create_copy): Likewise.
3392 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
3393 (acc_copyin): Likewise.
3394 (FLAG_FINALIZE): Define.
3395 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
3396 (acc_delete_finalize): New function.
3397 (acc_delete_finalize_async): New function.
3398 (acc_copyout_finalize): New function.
3399 (acc_copyout_finalize_async): New function.
3400 (gomp_acc_insert_pointer): Update refcounts.
3401 (gomp_acc_remove_pointer): Return if data is not present on the
3403 * oacc-parallel.c (find_pset): Rename to find_pointer.
3404 (find_pointer): Add support for GOMP_MAP_POINTER.
3405 (handle_ftn_pointers): New function.
3406 (GOACC_parallel_keyed): Update refcounts of variables.
3407 (GOACC_enter_exit_data): Add support for finalized data mappings.
3408 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
3410 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
3411 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
3412 for GOMP_MAP_FORCE_FROM.
3413 * openacc.f90 (module openacc_internal): Add
3414 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
3415 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
3416 acc_copyout_finalize and acc_delete_finalize.
3417 (acc_copyout_finalize_32_h): New subroutine.
3418 (acc_copyout_finalize_64_h): New subroutine.
3419 (acc_copyout_finalize_array_h): New subroutine.
3420 (acc_delete_finalize_32_h): New subroutine.
3421 (acc_delete_finalize_64_h): New subroutine.
3422 (acc_delete_finalize_array_h): New subroutine.
3423 * openacc.h (acc_copyout_finalize): Declare.
3424 (acc_copyout_finalize_async): Declare.
3425 (acc_delete_finalize): Declare.
3426 (acc_delete_finalize_async): Declare.
3427 * openacc_lib.h (acc_copyout_finalize): New interface.
3428 (acc_delete_finalize): New interface.
3429 * target.c (gomp_map_vars): Update dynamic_refcount.
3430 (gomp_remove_var): New function.
3431 (gomp_unmap_vars): Use it.
3432 (gomp_unload_image_from_device): Likewise.
3433 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
3434 case to utilize OpenACC 2.5 data clause semantics.
3435 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3436 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3437 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3438 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3439 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3440 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3441 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3442 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3443 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3444 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
3445 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
3446 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
3447 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
3448 utilize OpenACC 2.5 data clause semantics.
3449 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3450 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3451 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3452 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3453 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3454 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3455 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3456 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3457 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3459 2018-05-21 Janus Weil <janus@gcc.gnu.org>
3463 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
3464 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
3465 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
3466 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
3467 * testsuite/libgomp.fortran/task2.f90: Ditto.
3468 * testsuite/libgomp.fortran/vla1.f90: Ditto.
3469 * testsuite/libgomp.fortran/vla2.f90: Ditto.
3470 * testsuite/libgomp.fortran/vla3.f90: Ditto.
3471 * testsuite/libgomp.fortran/vla4.f90: Ditto.
3472 * testsuite/libgomp.fortran/vla5.f90: Ditto.
3473 * testsuite/libgomp.fortran/vla6.f90: Ditto.
3474 * testsuite/libgomp.fortran/vla8.f90: Ditto.
3475 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
3476 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
3478 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
3481 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
3483 2018-05-09 Tom de Vries <tom@codesourcery.com>
3486 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
3487 to GOACC_enter_exit_data.
3489 2018-05-09 Tom de Vries <tom@codesourcery.com>
3492 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
3493 (async_synchronous_p): New function.
3494 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
3496 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
3497 async_valid_stream_id_p.
3498 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
3499 * oacc-parallel.c (GOACC_parallel_keyed): Same.
3501 2018-05-07 Tom de Vries <tom@codesourcery.com>
3504 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
3505 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
3507 2018-05-03 Tom de Vries <tom@codesourcery.com>
3510 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
3511 extra_tool_flags if it contains an -foffload=-fdump-* flag.
3512 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
3513 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
3515 2018-05-02 Tom de Vries <tom@codesourcery.com>
3518 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
3519 GOMP_OPENACC_DIM ...
3520 * env.c (parse_gomp_openacc_dim): ... here. New function.
3521 (initialize_env): Call parse_gomp_openacc_dim.
3522 (goacc_default_dims): Define.
3523 * libgomp.h (goacc_default_dims): Declare.
3524 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
3525 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
3526 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
3527 GOMP_PLUGIN_acc_default_dim.
3528 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
3529 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
3531 2018-05-02 Tom de Vries <tom@codesourcery.com>
3534 * testsuite/libgomp.c++/udr-9.C: Update.
3535 * testsuite/libgomp.c++/atomic-16.C: Remove.
3536 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
3537 * testsuite/libgomp.c++/loop-13.C: Remove.
3538 * testsuite/libgomp.c++/loop-14.C: Remove.
3539 * testsuite/libgomp.c++/loop-15.C: Remove.
3540 * testsuite/libgomp.c++/monotonic-1.C: Remove.
3541 * testsuite/libgomp.c++/monotonic-2.C: Remove.
3542 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
3543 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
3544 * testsuite/libgomp.c++/ordered-1.C: Remove.
3545 * testsuite/libgomp.c++/pr45784.C: Remove.
3546 * testsuite/libgomp.c++/pr64824.C: Remove.
3547 * testsuite/libgomp.c++/pr64868.C: Remove.
3548 * testsuite/libgomp.c++/pr66199-1.C: Remove.
3549 * testsuite/libgomp.c++/pr66199-2.C: Remove.
3550 * testsuite/libgomp.c++/pr66199-3.C: Remove.
3551 * testsuite/libgomp.c++/pr66199-4.C: Remove.
3552 * testsuite/libgomp.c++/pr66199-5.C: Remove.
3553 * testsuite/libgomp.c++/pr66199-6.C: Remove.
3554 * testsuite/libgomp.c++/pr66199-7.C: Remove.
3555 * testsuite/libgomp.c++/pr66199-8.C: Remove.
3556 * testsuite/libgomp.c++/pr66199-9.C: Remove.
3557 * testsuite/libgomp.c++/pr69389.C: Remove.
3558 * testsuite/libgomp.c++/simd10.C: Remove.
3559 * testsuite/libgomp.c++/simd11.C: Remove.
3560 * testsuite/libgomp.c++/simd12.C: Remove.
3561 * testsuite/libgomp.c++/simd13.C: Remove.
3562 * testsuite/libgomp.c++/target-1.C: Remove.
3563 * testsuite/libgomp.c++/target-3.C: Remove.
3564 * testsuite/libgomp.c++/target-4.C: Remove.
3565 * testsuite/libgomp.c++/target-5.C: Remove.
3566 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
3567 * testsuite/libgomp.c++/taskloop-1.C: Remove.
3568 * testsuite/libgomp.c++/taskloop-2.C: Remove.
3569 * testsuite/libgomp.c++/taskloop-3.C: Remove.
3570 * testsuite/libgomp.c++/taskloop-4.C: Remove.
3571 * testsuite/libgomp.c++/udr-9.C: Remove.
3572 * testsuite/libgomp.c++/for-10.C: Remove.
3573 * testsuite/libgomp.c++/for-11.C: Remove.
3574 * testsuite/libgomp.c++/for-12.C: Remove.
3575 * testsuite/libgomp.c++/for-13.C: Remove.
3576 * testsuite/libgomp.c++/for-14.C: Remove.
3577 * testsuite/libgomp.c++/for-9.C: Remove.
3578 * testsuite/libgomp.c/atomic-18.c: Move ...
3579 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
3580 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
3581 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
3582 * testsuite/libgomp.c/loop-13.c: Move ...
3583 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
3584 * testsuite/libgomp.c/loop-14.c: Move ...
3585 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
3586 * testsuite/libgomp.c/loop-15.c: Remove.
3587 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
3588 * testsuite/libgomp.c/monotonic-1.c: Move ...
3589 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
3590 * testsuite/libgomp.c/monotonic-2.c: Move ...
3591 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
3592 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
3593 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
3594 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
3595 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
3596 * testsuite/libgomp.c/ordered-4.c: Move ...
3597 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
3598 * testsuite/libgomp.c/pr45784.c: Move ...
3599 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
3600 * testsuite/libgomp.c/pr64824.c: Move ...
3601 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
3602 * testsuite/libgomp.c/pr64868.c: Move ...
3603 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
3604 * testsuite/libgomp.c/pr66199-1.c: Move ...
3605 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
3606 * testsuite/libgomp.c/pr66199-2.c: Move ...
3607 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
3608 * testsuite/libgomp.c/pr66199-3.c: Move ...
3609 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
3610 * testsuite/libgomp.c/pr66199-4.c: Move ...
3611 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
3612 * testsuite/libgomp.c/pr66199-5.c: Move ...
3613 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
3614 * testsuite/libgomp.c/pr66199-6.c: Move ...
3615 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
3616 * testsuite/libgomp.c/pr66199-7.c: Move ...
3617 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
3618 * testsuite/libgomp.c/pr66199-8.c: Move ...
3619 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
3620 * testsuite/libgomp.c/pr66199-9.c: Move ...
3621 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
3622 * testsuite/libgomp.c/pr69389.c: Move ...
3623 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
3624 * testsuite/libgomp.c/simd-14.c: Move ...
3625 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
3626 * testsuite/libgomp.c/simd-15.c: Move ...
3627 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
3628 * testsuite/libgomp.c/simd-16.c: Move ...
3629 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
3630 * testsuite/libgomp.c/simd-17.c: Move ...
3631 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
3632 * testsuite/libgomp.c/target-1.c: Move ...
3633 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
3634 * testsuite/libgomp.c/target-10.c: Move ...
3635 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
3636 * testsuite/libgomp.c/target-13.c: Move ...
3637 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
3638 * testsuite/libgomp.c/target-2.c: Move ...
3639 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
3640 * testsuite/libgomp.c/taskgroup-1.c: Move ...
3641 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
3642 * testsuite/libgomp.c/taskloop-1.c: Move ...
3643 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
3644 * testsuite/libgomp.c/taskloop-2.c: Move ...
3645 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
3646 * testsuite/libgomp.c/taskloop-3.c: Move ...
3647 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
3648 * testsuite/libgomp.c/taskloop-4.c: Move ...
3649 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
3650 * testsuite/libgomp.c/udr-1.c: Move ...
3651 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
3652 * testsuite/libgomp.c/for-1.c: Move ...
3653 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
3654 * testsuite/libgomp.c/for-1.h: Move ...
3655 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
3656 * testsuite/libgomp.c/for-2.c: Move ...
3657 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
3658 * testsuite/libgomp.c/for-2.h: Move ...
3659 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
3660 * testsuite/libgomp.c/for-3.c: Move ...
3661 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
3662 * testsuite/libgomp.c/for-4.c: Move ...
3663 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
3664 * testsuite/libgomp.c/for-5.c: Move ...
3665 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
3666 * testsuite/libgomp.c/for-6.c: Move ...
3667 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
3669 2018-05-02 Tom de Vries <tom@codesourcery.com>
3672 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
3673 __builtin_goacc_parlevel_{id,size}.
3674 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
3675 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
3676 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
3677 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
3678 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
3679 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
3680 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
3681 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
3682 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
3683 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
3684 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
3685 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
3686 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
3687 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
3688 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
3689 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
3690 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
3691 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
3692 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
3693 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
3694 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
3695 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
3696 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
3698 2018-05-02 Tom de Vries <tom@codesourcery.com>
3701 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
3703 2018-05-02 Tom de Vries <tom@codesourcery.com>
3706 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
3708 2018-04-29 Julian Brown <julian@codesourcery.com>
3709 Tom de Vries <tom@codesourcery.com>
3712 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
3713 arbitrary order for iterations of atomic subtract check.
3715 2018-04-28 Tom de Vries <tom@codesourcery.com>
3718 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
3719 atomic capture results obtained in parallel loop to an array, instead of
3722 2018-04-26 Tom de Vries <tom@codesourcery.com>
3725 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
3726 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
3727 (process_GOMP_NVPTX_JIT): New function.
3728 (link_ptx): Use process_GOMP_NVPTX_JIT.
3730 2018-04-26 Richard Biener <rguenther@suse.de>
3731 Tom de Vries <tom@codesourcery.com>
3734 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
3736 2018-04-26 Tom de Vries <tom@codesourcery.com>
3739 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3740 recursion depth from 25 to 23.
3741 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3743 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
3745 * configure: Regenerated.
3747 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
3748 Tom de Vries <tom@codesourcery.com>
3751 * testsuite/libgomp.oacc-c++/ref-1.C: New.
3753 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
3756 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
3757 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3758 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3759 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
3760 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
3761 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
3764 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
3766 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3768 2018-04-19 Jakub Jelinek <jakub@redhat.com>
3770 * configure: Regenerated.
3772 2018-04-18 David Malcolm <dmalcolm@redhat.com>
3775 * configure: Regenerate.
3777 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
3778 Tom de Vries <tom@codesourcery.com>
3781 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3782 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3784 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
3788 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
3789 test from gfortran.dg to here.
3791 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3793 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
3794 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
3796 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3799 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3800 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3802 2018-04-05 Tom de Vries <tom@codesourcery.com>
3805 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
3807 2018-03-26 Tom de Vries <tom@codesourcery.com>
3809 PR tree-optimization/85063
3810 * testsuite/libgomp.c/switch-conversion-2.c: New test.
3811 * testsuite/libgomp.c/switch-conversion.c: New test.
3812 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
3813 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
3815 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
3818 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
3819 call abort by STOP n.
3820 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
3821 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
3822 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
3823 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
3824 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
3825 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
3826 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
3827 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
3828 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
3829 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
3830 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
3831 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
3832 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
3833 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
3834 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
3835 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
3836 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
3837 * testsuite/libgomp.fortran/associate1.f90: Likewise.
3838 * testsuite/libgomp.fortran/associate2.f90: Likewise.
3839 * testsuite/libgomp.fortran/associate3.f90: Likewise.
3840 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
3841 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
3842 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
3843 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
3844 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
3845 * testsuite/libgomp.fortran/character1.f90: Likewise.
3846 * testsuite/libgomp.fortran/character2.f90: Likewise.
3847 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
3848 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
3849 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
3850 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
3851 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
3852 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
3853 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
3854 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
3855 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
3856 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
3857 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
3858 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
3859 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
3860 * testsuite/libgomp.fortran/do1.f90: Likewise.
3861 * testsuite/libgomp.fortran/do2.f90: Likewise.
3862 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
3863 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
3864 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
3865 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
3866 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
3867 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
3868 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
3869 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
3870 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
3871 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
3872 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
3873 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
3874 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
3875 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
3876 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
3877 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
3878 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
3879 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
3880 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
3881 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
3882 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
3883 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
3884 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
3885 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
3886 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
3887 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
3888 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
3889 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
3890 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
3891 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
3892 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
3893 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
3894 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
3895 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
3896 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
3897 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
3898 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
3899 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
3900 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
3901 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
3902 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
3903 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
3904 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
3905 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
3906 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
3907 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
3908 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
3909 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
3910 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
3911 * testsuite/libgomp.fortran/lib1.f90: Likewise.
3912 * testsuite/libgomp.fortran/lib2.f: Likewise.
3913 * testsuite/libgomp.fortran/lib3.f: Likewise.
3914 * testsuite/libgomp.fortran/lib4.f90: Likewise.
3915 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
3916 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
3917 * testsuite/libgomp.fortran/nested1.f90: Likewise.
3918 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
3919 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
3920 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
3921 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
3922 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
3923 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
3924 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
3925 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
3926 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
3927 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
3928 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
3929 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
3930 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
3931 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
3932 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
3933 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
3934 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
3935 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
3936 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
3937 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3938 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
3939 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
3940 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
3941 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
3942 * testsuite/libgomp.fortran/pr25162.f: Likewise.
3943 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
3944 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
3945 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
3946 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
3947 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
3948 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
3949 * testsuite/libgomp.fortran/pr28390.f: Likewise.
3950 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
3951 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
3952 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
3953 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
3954 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
3955 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
3956 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
3957 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
3958 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
3959 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
3960 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
3961 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
3962 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
3963 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
3964 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
3965 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
3966 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
3967 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
3968 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
3969 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
3970 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
3971 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
3972 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
3973 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
3974 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
3975 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3976 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
3977 * testsuite/libgomp.fortran/reference1.f90: Likewise.
3978 * testsuite/libgomp.fortran/reference2.f90: Likewise.
3979 * testsuite/libgomp.fortran/retval1.f90: Likewise.
3980 * testsuite/libgomp.fortran/retval2.f90: Likewise.
3981 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
3982 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
3983 * testsuite/libgomp.fortran/simd1.f90: Likewise.
3984 * testsuite/libgomp.fortran/simd2.f90: Likewise.
3985 * testsuite/libgomp.fortran/simd3.f90: Likewise.
3986 * testsuite/libgomp.fortran/simd4.f90: Likewise.
3987 * testsuite/libgomp.fortran/simd5.f90: Likewise.
3988 * testsuite/libgomp.fortran/simd6.f90: Likewise.
3989 * testsuite/libgomp.fortran/simd7.f90: Likewise.
3990 * testsuite/libgomp.fortran/stack.f90: Likewise.
3991 * testsuite/libgomp.fortran/strassen.f90: Likewise.
3992 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
3993 * testsuite/libgomp.fortran/tabs2.f: Likewise.
3994 * testsuite/libgomp.fortran/target1.f90: Likewise.
3995 * testsuite/libgomp.fortran/target2.f90: Likewise.
3996 * testsuite/libgomp.fortran/target3.f90: Likewise.
3997 * testsuite/libgomp.fortran/target4.f90: Likewise.
3998 * testsuite/libgomp.fortran/target5.f90: Likewise.
3999 * testsuite/libgomp.fortran/target6.f90: Likewise.
4000 * testsuite/libgomp.fortran/target7.f90: Likewise.
4001 * testsuite/libgomp.fortran/target8.f90: Likewise.
4002 * testsuite/libgomp.fortran/task1.f90: Likewise.
4003 * testsuite/libgomp.fortran/task2.f90: Likewise.
4004 * testsuite/libgomp.fortran/task3.f90: Likewise.
4005 * testsuite/libgomp.fortran/task4.f90: Likewise.
4006 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
4007 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
4008 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
4009 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
4010 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
4011 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
4012 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
4013 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
4014 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
4015 * testsuite/libgomp.fortran/udr1.f90: Likewise.
4016 * testsuite/libgomp.fortran/udr10.f90: Likewise.
4017 * testsuite/libgomp.fortran/udr11.f90: Likewise.
4018 * testsuite/libgomp.fortran/udr12.f90: Likewise.
4019 * testsuite/libgomp.fortran/udr13.f90: Likewise.
4020 * testsuite/libgomp.fortran/udr14.f90: Likewise.
4021 * testsuite/libgomp.fortran/udr15.f90: Likewise.
4022 * testsuite/libgomp.fortran/udr2.f90: Likewise.
4023 * testsuite/libgomp.fortran/udr3.f90: Likewise.
4024 * testsuite/libgomp.fortran/udr4.f90: Likewise.
4025 * testsuite/libgomp.fortran/udr5.f90: Likewise.
4026 * testsuite/libgomp.fortran/udr6.f90: Likewise.
4027 * testsuite/libgomp.fortran/udr7.f90: Likewise.
4028 * testsuite/libgomp.fortran/udr8.f90: Likewise.
4029 * testsuite/libgomp.fortran/udr9.f90: Likewise.
4030 * testsuite/libgomp.fortran/vla1.f90: Likewise.
4031 * testsuite/libgomp.fortran/vla2.f90: Likewise.
4032 * testsuite/libgomp.fortran/vla3.f90: Likewise.
4033 * testsuite/libgomp.fortran/vla4.f90: Likewise.
4034 * testsuite/libgomp.fortran/vla5.f90: Likewise.
4035 * testsuite/libgomp.fortran/vla6.f90: Likewise.
4036 * testsuite/libgomp.fortran/vla7.f90: Likewise.
4037 * testsuite/libgomp.fortran/vla8.f90: Likewise.
4038 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
4039 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
4040 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
4041 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
4042 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
4043 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
4044 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
4045 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
4046 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
4047 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
4048 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
4049 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
4050 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
4051 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
4052 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
4053 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
4054 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
4055 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
4056 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
4057 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
4058 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
4059 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
4060 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
4061 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
4062 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
4063 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
4064 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
4065 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
4066 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4067 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
4068 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
4069 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4070 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4071 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4072 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4073 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4074 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
4075 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
4076 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
4077 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
4078 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
4079 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4080 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
4081 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
4082 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
4083 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
4084 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
4085 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
4086 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
4087 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
4088 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
4089 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
4090 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
4091 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4092 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
4093 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
4094 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
4095 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
4096 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
4097 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
4098 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
4099 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
4100 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
4101 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4102 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
4103 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
4104 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
4105 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4106 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
4107 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
4108 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
4109 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
4110 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
4111 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
4112 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
4113 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
4114 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
4115 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
4116 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
4117 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
4118 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
4119 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
4120 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
4121 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
4122 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
4123 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
4124 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
4125 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
4126 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
4127 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
4128 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
4129 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
4130 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
4131 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
4133 2018-03-20 Richard Biener <rguenther@suse.de>
4135 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
4136 parallelizable loop.
4138 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
4141 * configure: Regenerate.
4143 2018-02-16 Jakub Jelinek <jakub@redhat.com>
4146 * libgomp.fortran/pr84418-1.f90: New test.
4147 * libgomp.fortran/pr84418-2.f90: New test.
4149 2018-02-14 Jakub Jelinek <jakub@redhat.com>
4152 * testsuite/libgomp.fortran/threadprivate4.f90: Add
4153 -std=f2003 -fall-intrinsics into dg-additional-options.
4155 2018-02-08 Martin Jambor <mjambor@suse.cz>
4157 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
4160 2018-02-08 Martin Jambor <mjambor@suse.cz>
4162 * testsuite/libgomp.hsa.c/staticvar.c: New test.
4164 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4166 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
4167 [__cplusplus]: Declare extern "C".
4169 2018-02-07 Tom de Vries <tom@codesourcery.com>
4172 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
4174 2018-01-29 Christoph Spiel <cspiel@freenet.de>
4175 Jakub Jelinek <jakub@redhat.com>
4178 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
4179 instead of omp_lock_t.
4181 2018-01-25 Tom de Vries <tom@codesourcery.com>
4184 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
4186 2018-01-24 Tom de Vries <tom@codesourcery.com>
4189 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
4191 2018-01-24 Tom de Vries <tom@codesourcery.com>
4194 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
4196 2018-01-19 Tom de Vries <tom@codesourcery.com>
4197 Cesar Philippidis <cesar@codesourcery.com>
4200 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
4201 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
4203 2018-01-03 Jakub Jelinek <jakub@redhat.com>
4205 Update copyright years.
4207 * libgomp.texi: Bump @copying's copyright year.
4209 2017-12-30 Tom de Vries <tom@codesourcery.com>
4212 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
4213 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
4215 2017-12-27 Tom de Vries <tom@codesourcery.com>
4218 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
4219 (test_nonstatic): Fix return type to workaround PR83046.
4221 2017-12-05 Jakub Jelinek <jakub@redhat.com>
4224 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
4225 j suffix instead of i.
4226 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
4229 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
4231 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
4232 call to acc_wait (1).
4234 2017-11-24 Jakub Jelinek <jakub@redhat.com>
4237 * testsuite/libgomp.fortran/pr81304.f90: New test.
4239 2017-11-23 Jakub Jelinek <jakub@redhat.com>
4242 * libgomp.fortran/pr81841.f90: New test.
4244 2017-11-22 Jakub Jelinek <jakub@redhat.com>
4247 * target.c (gomp_target_init): Compute lengths just once and
4248 use them in both malloc size and subsequent copying.
4250 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
4252 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
4253 * acinclude.m4: Add cet.m4.
4254 * configure: Regenerate.
4255 * Makefile.in: Likewise.
4256 * testsuite/Makefile.in: Likewise.
4258 2017-11-15 Tom de Vries <tom@codesourcery.com>
4260 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
4261 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
4262 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
4263 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
4264 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
4265 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
4267 2017-11-14 Tom de Vries <tom@codesourcery.com>
4269 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
4272 2017-11-07 Jakub Jelinek <jakub@redhat.com>
4275 * testsuite/libgomp.c++/pr82835.C: New test.
4277 2017-11-06 Martin Liska <mliska@suse.cz>
4279 * testsuite/libgomp.c++/loop-2.C: Return a value
4280 for functions with non-void return type, or change type to void,
4281 or add -Wno-return-type for test.
4282 * testsuite/libgomp.c++/loop-4.C: Likewise.
4283 * testsuite/libgomp.c++/parallel-1.C: Likewise.
4284 * testsuite/libgomp.c++/shared-1.C: Likewise.
4285 * testsuite/libgomp.c++/single-1.C: Likewise.
4286 * testsuite/libgomp.c++/single-2.C: Likewise.
4288 2017-10-31 Tom de Vries <tom@codesourcery.com>
4290 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
4291 "do {} while (false)".
4292 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
4293 after HSA_DEBUG call.
4295 2017-10-28 Jakub Jelinek <jakub@redhat.com>
4297 * target.c (struct gomp_coalesce_buf): New type.
4298 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
4299 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
4300 (gomp_copy_host2dev): Add CBUF argument, if copying into
4301 the cached ranges, memcpy into buffer instead of copying
4303 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
4304 Add CBUF argument, pass it through to other calls.
4305 (gomp_map_vars): Aggregate copies from host to device if small enough
4306 and with small enough gaps in between into memcpy into a buffer and
4307 fewer host to device copies from the buffer.
4308 (gomp_update): Adjust gomp_copy_host2dev caller.
4310 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
4312 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
4314 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4315 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4316 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4317 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4319 2017-10-16 Tom de Vries <tom@codesourcery.com>
4321 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
4322 openacc_nvidia_accel_selected.
4323 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
4324 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
4325 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
4326 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
4327 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
4328 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
4329 openacc_nvidia_accel_selected. Skip for shared memory device.
4330 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
4331 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
4333 2017-10-09 Martin Jambor <mjambor@suse.cz>
4336 * testsuite/libgomp.hsa.c/pr82416.c: New test.
4338 2017-10-07 Tom de Vries <tom@codesourcery.com>
4340 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
4341 Remove acc_device_nvidia references.
4342 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
4345 2017-10-05 Tom de Vries <tom@codesourcery.com>
4347 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
4348 vector_length(32) clause from acc parallel directive.
4349 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
4351 2017-10-04 Tom de Vries <tom@codesourcery.com>
4353 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
4354 (main): Reduce sum of arr elements. Assert that hres is exactly
4355 representable in 32-bit floating point.
4356 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
4357 (main): Reduce sum of arr elements. Assert that hres and hmres are
4358 exactly representable in 32-bit floating point.
4359 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
4361 2017-09-28 Tom de Vries <tom@codesourcery.com>
4363 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
4365 * testsuite/libgomp.c++/pr69393.C: Same.
4366 * testsuite/libgomp.c++/taskloop-1.C: Same.
4367 * testsuite/libgomp.c++/taskloop-3.C: Same.
4368 * testsuite/libgomp.c++/taskloop-4.C: Same.
4369 * testsuite/libgomp.c/for-4.c: Same.
4370 * testsuite/libgomp.c/pr66199-3.c: Same.
4371 * testsuite/libgomp.c/pr66199-4.c: Same.
4372 * testsuite/libgomp.c/pr66199-6.c: Same.
4373 * testsuite/libgomp.c/taskloop-1.c: Same.
4374 * testsuite/libgomp.c/taskloop-3.c: Same.
4375 * testsuite/libgomp.c/taskloop-4.c: Same.
4376 * testsuite/libgomp.fortran/aligned1.f03: Same.
4377 * testsuite/libgomp.fortran/condinc1.f: Same.
4378 * testsuite/libgomp.fortran/condinc3.f90: Same.
4379 * testsuite/libgomp.fortran/crayptr1.f90: Same.
4380 * testsuite/libgomp.fortran/crayptr2.f90: Same.
4381 * testsuite/libgomp.fortran/crayptr3.f90: Same.
4382 * testsuite/libgomp.fortran/omp_cond1.f: Same.
4383 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
4384 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
4385 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
4386 * testsuite/libgomp.fortran/recursion1.f90: Same.
4387 * testsuite/libgomp.fortran/target2.f90: Same.
4388 * testsuite/libgomp.fortran/target5.f90: Same.
4389 * testsuite/libgomp.fortran/task3.f90: Same.
4391 2017-09-28 Tom de Vries <tom@codesourcery.com>
4393 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
4394 vector_length(32) clause from acc parallel directive.
4395 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
4397 2017-09-27 Tom de Vries <tom@codesourcery.com>
4399 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
4400 Remove acc_device_nvidia references.
4402 2017-09-16 Tom de Vries <tom@codesourcery.com>
4405 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
4407 2017-09-14 Tom de Vries <tom@codesourcery.com>
4409 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
4410 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
4411 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
4412 * testsuite/libgomp.c/c.exp: Include test-cases from
4413 libgomp.c-c++-common.
4414 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
4417 2017-09-14 Jakub Jelinek <jakub@redhat.com>
4420 * testsuite/libgomp.c++/pr81314.C: New test.
4422 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
4424 * libgomp.texi (Top): www.openacc.org now uses https.
4425 (Enabling OpenACC): Ditto.
4426 (acc_get_num_devices): Ditto.
4427 (acc_set_device_type): Ditto.
4428 (acc_get_device_type): Ditto.
4429 (acc_set_device_num): Ditto.
4430 (acc_get_device_num): Ditto.
4431 (acc_async_test): Ditto.
4432 (acc_async_test_all): Ditto.
4434 (acc_wait_all): Ditto.
4435 (acc_wait_all_async): Ditto.
4436 (acc_wait_async): Ditto.
4438 (acc_shutdown): Ditto.
4439 (acc_on_device): Ditto.
4440 (acc_malloc): Ditto.
4442 (acc_copyin): Ditto.
4443 (acc_present_or_copyin): Ditto.
4444 (acc_create): Ditto.
4445 (acc_present_or_create): Ditto.
4446 (acc_copyout): Ditto.
4447 (acc_delete): Ditto.
4448 (acc_update_device): Ditto.
4449 (acc_update_self): Ditto.
4450 (acc_map_data): Ditto.
4451 (acc_unmap_data): Ditto.
4452 (acc_deviceptr): Ditto.
4453 (acc_hostptr): Ditto.
4454 (acc_is_present): Ditto.
4455 (acc_memcpy_to_device): Ditto.
4456 (acc_memcpy_from_device): Ditto.
4457 (acc_get_current_cuda_device): Ditto.
4458 (acc_get_current_cuda_context): Ditto.
4459 (acc_get_cuda_stream): Ditto.
4460 (acc_set_cuda_stream): Ditto.
4461 (ACC_DEVICE_TYPE): Ditto.
4462 (ACC_DEVICE_NUM): Ditto.
4463 (OpenACC Library Interoperability): Ditto.
4465 2017-08-09 Jakub Jelinek <jakub@redhat.com>
4468 * testsuite/libgomp.c/pr81687-1.c: New test.
4469 * testsuite/libgomp.c/pr81687-2.c: New test.
4471 2017-08-07 Jakub Jelinek <jakub@redhat.com>
4474 * testsuite/libgomp.c/pr69389.c: New test.
4475 * testsuite/libgomp.c++/pr69389.C: New test.
4477 2017-08-07 Tom de Vries <tom@codesourcery.com>
4480 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
4481 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
4483 2017-07-27 Jakub Jelinek <jakub@redhat.com>
4486 * testsuite/libgomp.c/pr45784.c: New test.
4487 * testsuite/libgomp.c++/pr45784.C: New test.
4489 2017-07-19 Tom de Vries <tom@codesourcery.com>
4491 * testsuite/libgomp.oacc-c/vec.c: New test.
4493 2017-07-03 Tom de Vries <tom@codesourcery.com>
4495 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
4497 2017-06-27 Tom de Vries <tom@codesourcery.com>
4499 * plugin/plugin-nvptx.c (notify_var): New function.
4500 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
4502 2017-06-27 Tom de Vries <tom@codesourcery.com>
4504 * env.c (parse_unsigned_long_1): Factor out of ...
4505 (parse_unsigned_long): ... here.
4506 (parse_int_1): Factor out of ...
4507 (parse_int): ... here.
4508 (parse_int_secure): New function.
4509 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
4510 * secure_getenv.h: Factor out of ...
4511 * plugin/plugin-hsa.c: ... here.
4512 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
4514 2017-06-21 Jakub Jelinek <jakub@redhat.com>
4517 * testsuite/libgomp.c++/pr81130.C: New test.
4519 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4521 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
4523 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
4524 dg-xfail-run-if default args.
4526 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4528 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
4529 * testsuite/libgomp.c/pr39591-3.c: Likewise.
4531 2017-05-30 Jakub Jelinek <jakub@redhat.com>
4534 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
4535 (gomp_affinity_init_level): Use it. Always analyze the core and thread
4536 sibling lists, depending on level just pick up what CPUs to put
4537 together into a place vs. whether add multiple ordered places.
4539 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
4541 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
4542 * libgomp.map (OACC_2.0.1): Add these.
4543 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
4544 for "acc_wait", and "acc_wait_all", respectively.
4545 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
4546 for "acc_wait", and "acc_wait_all", respectively.
4547 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
4548 * libgomp.texi (acc_wait, acc_wait_all): Update.
4549 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
4550 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
4551 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4553 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
4554 acc_present_or_copyin and acc_present_or_create procedures,
4556 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
4557 generally different variants of OpenACC Runtime Library functions.
4558 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4560 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
4561 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4563 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
4564 of preprocessor definitions.
4565 * libgomp.h (strong_alias): Guard by "#ifdef
4566 HAVE_ATTRIBUTE_ALIAS".
4567 * oacc-mem.c: Provide "acc_pcreate" as alias for
4568 "acc_present_or_create", and "acc_pcopyin" as alias for
4569 "acc_present_or_copyin".
4570 * libgomp.map: New version "OACC_2.0.1".
4571 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
4572 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
4574 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
4577 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
4578 when disabling nvptx offloading.
4580 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
4582 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
4583 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4584 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4586 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
4587 * testsuite/lib/libgomp.exp
4588 (check_effective_target_openacc_nvidia_accel_configured): New
4590 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
4591 (check_effective_target_c++): New procs.
4592 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
4593 (check_effective_target_c++): Likewise.
4595 2017-05-22 Jakub Jelinek <jakub@redhat.com>
4598 * testsuite/libgomp.c/pr80809-2.c: New test.
4599 * testsuite/libgomp.c/pr80809-3.c: New test.
4602 * testsuite/libgomp.c/pr80809-1.c: New test.
4605 * testsuite/libgomp.c/pr80853.c: New test.
4607 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
4609 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
4610 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
4611 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4612 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4613 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4615 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
4616 Debug output for failure.
4618 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4620 * testsuite/lib/libgomp.exp: Load scanlang.exp.
4622 2017-04-27 Jakub Jelinek <jakub@redhat.com>
4625 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
4626 bootstrap compare failures.
4628 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
4630 * testsuite/libgomp.c/target-36.c: New testcase.
4632 2017-04-13 Jakub Jelinek <jakub@redhat.com>
4634 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
4637 2017-04-11 Jakub Jelinek <jakub@redhat.com>
4640 * testsuite/libgomp.c/pr80394.c: New test.
4642 2017-04-04 Jakub Jelinek <jakub@redhat.com>
4645 * config/posix/thread-stacksize.h: New file.
4646 * config/darwin/thread-stacksize.h: New file.
4647 * config/nvptx/thread-stacksize.h: New file.
4648 * env.c: Include thread-stacksize.h.
4649 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
4650 instead of 0. Call pthread_attr_setstacksize even if
4651 GOMP_DEFAULT_STACKSIZE is non-zero.
4653 2017-03-30 Jakub Jelinek <jakub@redhat.com>
4655 * env.c (initialize_env): Initialize stacksize to 0.
4657 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
4660 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
4662 2017-03-08 Jakub Jelinek <jakub@redhat.com>
4665 * testsuite/libgomp.c/pr79940.c: New test.
4667 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4669 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
4671 Add __float128 options.
4673 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
4675 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
4676 hppa*-*-* dg-skip-if directive.
4678 2017-02-09 Jakub Jelinek <jakub@redhat.com>
4680 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
4681 dg-skip-if directive into a comment.
4683 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
4684 Chung-Lin Tang <cltang@codesourcery.com>
4686 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
4687 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
4688 add additional case.
4689 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
4690 "openacc_nvidia_accel_selected".
4691 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
4692 Add num_workers(8) clause.
4694 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
4696 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
4698 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
4699 include complex.h on hppa*-*-hpux*.
4700 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4702 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
4704 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
4706 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
4707 GOMP_OFFLOAD_openacc_exec. Adjust all users.
4708 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
4709 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
4710 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
4711 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
4712 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
4713 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
4714 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
4715 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
4717 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
4719 * libgomp-plugin.h: #include <stdbool.h>.
4720 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
4721 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
4722 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
4723 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
4724 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
4725 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
4726 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
4727 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
4728 (GOMP_OFFLOAD_openacc_register_async_cleanup)
4729 (GOMP_OFFLOAD_openacc_async_test)
4730 (GOMP_OFFLOAD_openacc_async_test_all)
4731 (GOMP_OFFLOAD_openacc_async_wait)
4732 (GOMP_OFFLOAD_openacc_async_wait_async)
4733 (GOMP_OFFLOAD_openacc_async_wait_all)
4734 (GOMP_OFFLOAD_openacc_async_wait_all_async)
4735 (GOMP_OFFLOAD_openacc_async_set_async)
4736 (GOMP_OFFLOAD_openacc_create_thread_data)
4737 (GOMP_OFFLOAD_openacc_destroy_thread_data)
4738 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
4739 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
4740 (GOMP_OFFLOAD_openacc_get_cuda_stream)
4741 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
4742 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
4744 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
4745 (GOMP_OFFLOAD_unload_image): Fix argument types.
4747 2017-01-26 Jakub Jelinek <jakub@redhat.com>
4749 * testsuite/lib/libgomp.exp
4750 (check_effective_target_hsa_offloading_selected_nocache): Fix up
4751 check_compile invocation. Fix up removal of executable. Drop
4752 bogus "2>&1" argument.
4754 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
4757 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
4758 Martin Jambor <mjambor@suse.cz>
4760 * plugin/hsa.h: Moved to top level include.
4761 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
4763 2017-01-21 Jakub Jelinek <jakub@redhat.com>
4766 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
4767 of cat to get version from BASE-VER file.
4768 * testsuite/Makefile.in: Regenerated.
4770 2017-01-19 Jakub Jelinek <jakub@redhat.com>
4772 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
4775 2017-01-17 Jakub Jelinek <jakub@redhat.com>
4777 * plugin/hsa.h: Add GCC runtime library exception.
4778 * plugin/hsa_ext_finalize.h: Likewise.
4780 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
4781 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
4782 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
4783 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
4784 plugin/include/cuda as include dir and -ldl instead of -lcuda as
4785 library to link ptx plugin against.
4786 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
4787 (CUDA_CALLS): Define.
4788 (cuda_lib, cuda_lib_inited): New variables.
4789 (init_cuda_lib): New function.
4790 (CUDA_CALL_PREFIX): Define.
4791 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
4792 (CUDA_CALL): Use FN instead of (FN).
4793 (CUDA_CALL_NOCHECK): Define.
4794 (cuda_error, fini_streams_for_device, select_stream_for_async,
4795 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
4796 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
4797 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
4798 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
4800 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
4802 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
4803 Use CUDA_CALL_NOCHECK.
4804 * plugin/cuda/cuda.h: New file.
4805 * config.h.in: Regenerated.
4806 * configure: Regenerated.
4809 * configure.ac: Add GCC_BASE_VER.
4810 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
4811 get version from BASE-VER file.
4812 * testsuite/Makefile.in: Regenerated.
4813 * configure: Regenerated.
4814 * Makefile.in: Regenerated.
4816 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4819 * Makefile.am: Make fincludedir multilib-aware.
4820 * Makefile.in: Regenerate.
4822 2017-01-01 Jakub Jelinek <jakub@redhat.com>
4824 Update copyright years.
4826 * libgomp.texi: Bump @copying's copyright year.
4828 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4830 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
4831 pthread_spinlock_t instead of gomp_mutex_t lock.
4832 (gomp_get_thread_pool): Likewise.
4833 (gomp_release_thread_pool): Likewise.
4834 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
4837 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4839 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
4840 thread pool in case nthreads == 1.
4842 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4844 * config/nvptx/env.c: Delete.
4845 * icv.c: Move definitions of ICV variables back ...
4846 * env.c: ...here. Do not compile environment-related functionality if
4847 LIBGOMP_OFFLOADED_ONLY is set.
4849 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4851 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
4852 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
4853 * configure: Regenerate.
4854 * config.h.in: Likewise.
4856 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4858 * Makefile.in: Regenerate with automake-1.11.6.
4859 * aclocal.m4: Likewise.
4860 * configure: Likewise.
4861 * testsuite/Makefile.in: Likewise.
4863 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
4865 * config/nvptx/critical.c: Delete to use generic implementation.
4867 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
4869 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
4870 ../../affinity.c as fallback.
4871 * config/nvptx/affinity.c: Delete to use fallback implementation.
4873 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
4874 Jakub Jelinek <jakub@redhat.com>
4875 Dmitry Melnik <dm@ispras.ru>
4877 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
4878 * Makefile.in. Regenerate.
4879 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
4880 (LIBGOMP_USE_PTHREADS): ...here; new define.
4881 * configure: Regenerate.
4882 * config.h.in: Likewise.
4883 * config/posix/affinity.c: Move to...
4884 * affinity.c: ...here (new file). Guard use of Pthreads-specific
4885 interface by LIBGOMP_USE_PTHREADS.
4886 * critical.c: Split out GOMP_atomic_{start,end} into...
4887 * atomic.c: ...here (new file).
4888 * env.c: Split out ICV definitions into...
4889 * icv.c: ...here (new file) and...
4890 * icv-device.c: ...here. New file.
4891 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
4892 (gomp_destroy_lock_30): Ditto.
4893 (gomp_set_lock_30): Ditto.
4894 (gomp_unset_lock_30): Ditto.
4895 (gomp_test_lock_30): Ditto.
4896 (gomp_init_nest_lock_30): Ditto.
4897 (gomp_destroy_nest_lock_30): Ditto.
4898 (gomp_set_nest_lock_30): Ditto.
4899 (gomp_unset_nest_lock_30): Ditto.
4900 (gomp_test_nest_lock_30): Ditto.
4902 * config/nvptx/lock.c: New.
4903 * config/nvptx/bar.c: New.
4904 * config/nvptx/bar.h: New.
4905 * config/nvptx/doacross.h: New.
4906 * config/nvptx/error.c: New.
4907 * config/nvptx/icv-device.c: New.
4908 * config/nvptx/mutex.h: New.
4909 * config/nvptx/pool.h: New.
4910 * config/nvptx/proc.c: New.
4911 * config/nvptx/ptrlock.h: New.
4912 * config/nvptx/sem.h: New.
4913 * config/nvptx/simple-bar.h: New.
4914 * config/nvptx/target.c: New.
4915 * config/nvptx/task.c: New.
4916 * config/nvptx/team.c: New.
4917 * config/nvptx/time.c: New.
4918 * config/posix/simple-bar.h: New.
4919 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
4920 (gomp_num_teams_var): Declare.
4921 (struct gomp_thread_pool): Change threads_dock member to
4922 gomp_simple_barrier_t.
4923 [__nvptx__] (gomp_thread): New implementation.
4924 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
4925 (gomp_thread_destructor): Ditto.
4926 (gomp_init_thread_affinity): Ditto.
4927 * team.c: Guard uses of Pthreads-specific interfaces by
4928 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
4929 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
4930 * config/nvptx/alloc.c: Delete.
4931 * config/nvptx/barrier.c: Ditto.
4932 * config/nvptx/fortran.c: Ditto.
4933 * config/nvptx/iter.c: Ditto.
4934 * config/nvptx/iter_ull.c: Ditto.
4935 * config/nvptx/loop.c: Ditto.
4936 * config/nvptx/loop_ull.c: Ditto.
4937 * config/nvptx/ordered.c: Ditto.
4938 * config/nvptx/parallel.c: Ditto.
4939 * config/nvptx/priority_queue.c: Ditto.
4940 * config/nvptx/sections.c: Ditto.
4941 * config/nvptx/single.c: Ditto.
4942 * config/nvptx/splay-tree.c: Ditto.
4943 * config/nvptx/work.c: Ditto.
4944 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
4945 -foffload=-lgfortran in addition to -lgfortran.
4946 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
4947 * plugin/plugin-nvptx.c: Include <limits.h>.
4948 (struct targ_fn_descriptor): Add new fields.
4949 (struct ptx_device): Ditto. Set them...
4950 (nvptx_open_device): ...here.
4951 (nvptx_adjust_launch_bounds): New.
4952 (nvptx_host2dev): Allow NULL 'nvthd'.
4953 (nvptx_dev2host): Ditto.
4954 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
4955 (link_ptx): Adjust log sizes.
4956 (nvptx_host2dev): Allow NULL 'nvthd'.
4957 (nvptx_dev2host): Ditto.
4958 (nvptx_set_clocktick): New. Use it...
4959 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
4961 (GOMP_OFFLOAD_dev2dev): New.
4962 (nvptx_adjust_launch_bounds): New.
4963 (nvptx_stacks_size): New.
4964 (nvptx_stacks_alloc): New.
4965 (nvptx_stacks_free): New.
4966 (GOMP_OFFLOAD_run): New.
4967 (GOMP_OFFLOAD_async_run): New (stub).
4969 2016-11-23 Martin Jambor <mjambor@suse.cz>
4971 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
4972 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
4973 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4975 2016-11-23 Martin Liska <mliska@suse.cz>
4976 Martin Jambor <mjambor@suse.cz>
4978 * plugin/hsa.h: New file.
4979 * plugin/hsa_ext_finalize.h: New file.
4980 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
4981 header file unistd.h, and functions secure_getenv, __secure_getenv,
4982 getuid, geteuid, getgid and getegid.
4983 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
4985 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
4986 Handle various cases of secure_getenv presence, add an implementation
4987 when we can test effective UID and GID.
4988 (struct hsa_runtime_fn_info): New structure.
4989 (hsa_runtime_fn_info hsa_fns): New variable.
4990 (hsa_runtime_lib): Likewise.
4991 (support_cpu_devices): Likewise.
4992 (init_enviroment_variables): Load newly introduced ENV
4994 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
4995 (hsa_fatal): Likewise.
4996 (DLSYM_FN): New macro.
4997 (init_hsa_runtime_functions): New function.
4998 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
4999 structure. Depending on environment, also allow CPU devices.
5000 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
5001 (get_kernarg_memory_region): Likewise.
5002 (GOMP_OFFLOAD_init_device): Likewise.
5003 (destroy_hsa_program): Likewise.
5004 (init_basic_kernel_info): New function.
5005 (GOMP_OFFLOAD_load_image): Use it.
5006 (create_and_finalize_hsa_program): Call hsa run-time functions via
5008 (create_single_kernel_dispatch): Likewise.
5009 (release_kernel_dispatch): Likewise.
5010 (init_single_kernel): Likewise.
5011 (parse_target_attributes): Allow up multiple HSA grid dimensions.
5012 (get_group_size): New function.
5013 (run_kernel): Likewise.
5014 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
5015 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
5017 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
5018 * testsuite/libgomp-test-support.exp.in: Likewise.
5019 * Makefile.in: Regenerated.
5020 * aclocal.m4: Likewise.
5021 * config.h.in: Likewise.
5022 * configure: Likewise.
5023 * testsuite/Makefile.in: Likewise.
5025 2016-11-15 Martin Jambor <mjambor@suse.cz>
5026 Alexander Monakov <amonakov@ispras.ru>
5028 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
5029 mapping clauses to target constructs.
5030 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
5032 2016-11-15 Matthias Klose <doko@ubuntu.com>
5034 * configure: Regenerate.
5036 2016-11-10 Jakub Jelinek <jakub@redhat.com>
5038 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
5039 * omp_lib.h.in (openmp_version): Likewise.
5040 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
5042 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
5044 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
5045 (fib_wrapper): Add map(from: x) clause.
5046 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
5048 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
5049 (accum): Add map(tmp) clause.
5050 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
5051 (accum): Add map(tofrom: tmp) clause.
5052 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
5053 (gramSchmidt): Likewise.
5054 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
5055 map(tofrom: sum) clause.
5056 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
5057 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
5058 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
5059 only allowed on the loop iterator.
5060 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
5061 * testsuite/libgomp.fortran/taskloop2.f90: New test.
5062 * testsuite/libgomp.fortran/taskloop4.f90: New test.
5063 * testsuite/libgomp.fortran/doacross1.f90: New test.
5064 * testsuite/libgomp.fortran/doacross3.f90: New test.
5065 * testsuite/libgomp.fortran/taskloop1.f90: New test.
5066 * testsuite/libgomp.fortran/taskloop3.f90: New test.
5067 * testsuite/libgomp.fortran/doacross2.f90: New test.
5068 * testsuite/libgomp.c/doacross-1.c (main): Add missing
5069 #pragma omp atomic read.
5070 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5071 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
5073 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
5074 Nathan Sidwell <nathan@acm.org>
5076 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
5077 to determine default geometry.
5078 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
5081 2016-11-01 Jakub Jelinek <jakub@redhat.com>
5083 * hashtab.h: Use standard GPLv3 with runtime exception
5086 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
5088 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
5089 size when allocating new thread.
5091 2016-09-14 Marek Polacek <polacek@redhat.com>
5093 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
5095 2016-08-19 Jakub Jelinek <jakub@redhat.com>
5098 * testsuite/libgomp.fortran/pr71014.f90: New test.
5100 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
5103 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
5104 firstprivate clauses.
5105 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
5107 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5108 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
5109 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
5110 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
5111 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5112 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
5113 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5114 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
5115 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5116 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5117 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5118 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
5120 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
5123 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
5125 2016-08-08 Jakub Jelinek <jakub@redhat.com>
5128 * testsuite/libgomp.c++/pr58706.C: New test.
5130 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
5132 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
5133 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
5134 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
5136 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
5137 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
5139 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
5141 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
5142 test, and don't hardcode -O0.
5144 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
5146 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
5148 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
5150 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
5153 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
5156 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
5157 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
5159 2016-07-01 Jakub Jelinek <jakub@redhat.com>
5162 * testsuite/libgomp.fortran/associate3.f90: New test.
5164 2016-06-17 Jakub Jelinek <jakub@redhat.com>
5166 * testsuite/libgomp.c++/target-21.C: New test.
5168 2016-06-16 Jakub Jelinek <jakub@redhat.com>
5170 * testsuite/libgomp.c++/target-20.C: New test.
5172 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5173 Cesar Philippidis <cesar@codesourcery.com>
5176 * libgomp.oacc-c/nested-function-1.c: New file.
5177 * libgomp.oacc-c/nested-function-2.c: Likewise.
5178 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
5179 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
5180 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
5182 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
5185 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
5186 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
5187 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
5189 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
5191 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
5192 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
5194 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
5197 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
5199 2016-05-26 Jakub Jelinek <jakub@redhat.com>
5201 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
5202 instead of invalid schedule(static, 0).
5203 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
5205 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
5207 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
5208 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
5209 parameter, use to set async stream around call to gomp_unmap_vars,
5210 call gomp_unmap_vars() with 'do_copyfrom' set to true.
5211 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
5212 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
5213 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
5214 (event_add): Add int parameter, initialize 'val' field when
5215 adding new ptx_event struct.
5216 (nvptx_evec): Adjust event_add() call arguments.
5217 (nvptx_host2dev): Likewise.
5218 (nvptx_dev2host): Likewise.
5219 (nvptx_wait_async): Likewise.
5220 (nvptx_wait_all_async): Likewise.
5221 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
5222 pass to event_add() call.
5223 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
5225 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
5226 call openacc.register_async_cleanup_func() hook.
5227 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
5228 * target.c (gomp_copy_from_async): Delete function.
5229 (gomp_map_vars): Remove async_refcount.
5230 (gomp_unmap_vars): Likewise.
5231 (gomp_load_image_to_device): Likewise.
5232 (omp_target_associate_ptr): Likewise.
5233 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
5234 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
5235 (gomp_copy_from_async): Remove.
5237 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
5239 * target.c (gomp_device_copy): New function.
5240 (gomp_copy_host2dev): Likewise.
5241 (gomp_copy_dev2host): Likewise.
5242 (gomp_free_device_memory): Likewise.
5243 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
5244 (gomp_map_pointer): Likewise.
5245 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
5246 NULL value from alloc_func plugin hook.
5247 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
5248 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
5249 (gomp_unmap_vars): Likewise.
5250 (gomp_update): Adjust to call gomp_copy_dev2host and
5251 gomp_copy_host2dev functions.
5252 (gomp_unload_image_from_device): Handle false value from
5253 unload_image_func plugin hook.
5254 (gomp_init_device): Handle false value from init_device_func
5256 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
5257 (omp_target_free): Adjust to call gomp_free_device_memory.
5258 (omp_target_memcpy): Handle return values from host2dev_func,
5259 dev2host_func, and dev2dev_func plugin hooks.
5260 (omp_target_memcpy_rect_worker): Likewise.
5261 (gomp_target_fini): Handle false value from fini_device_func
5263 * libgomp.h (struct gomp_device_descr): Adjust return type of
5264 init_device_func, fini_device_func, unload_image_func, free_func,
5265 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
5266 * oacc-init.c (acc_shutdown_1): Handle false value from
5267 fini_device_func plugin hook.
5268 * oacc-host.c (host_init_device): Change return type to bool.
5269 (host_fini_device): Likewise.
5270 (host_unload_image): Likewise.
5271 (host_free): Likewise.
5272 (host_dev2host): Likewise.
5273 (host_host2dev): Likewise.
5274 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
5275 (acc_memcpy_to_device): Likewise.
5276 (acc_memcpy_from_device): Likewise.
5277 (delete_copyout): Add libfnname parameter, handle free_func
5278 hook fatal error case.
5279 (acc_delete): Adjust delete_copyout call.
5280 (acc_copyout): Likewise.
5281 (update_dev_host): Move gomp_mutex_unlock to after
5282 host2dev/dev2host hook calls.
5284 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
5285 to 'hsa_error_msg', for clarity.
5286 (hsa_fatal): Likewise.
5287 (hsa_error): New function.
5288 (init_hsa_context): Change return type to bool, adjust to return
5290 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
5292 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
5293 return false on error.
5294 (get_agent_info): Adjust to return NULL on error.
5295 (destroy_hsa_program): Change return type to bool, adjust to
5296 return false on error.
5297 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
5298 (destroy_module): Change return type to bool, adjust to
5299 return false on error.
5300 (GOMP_OFFLOAD_unload_image): Likewise.
5301 (GOMP_OFFLOAD_fini_device): Likewise.
5302 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
5303 (GOMP_OFFLOAD_free): Change to return false when called.
5304 (GOMP_OFFLOAD_dev2host): Likewise.
5305 (GOMP_OFFLOAD_host2dev): Likewise.
5306 (GOMP_OFFLOAD_dev2dev): Likewise.
5308 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
5309 (CUDA_CALL): Likewise.
5310 (CUDA_CALL_ASSERT): Likewise.
5311 (map_init): Change return type to bool, use CUDA_CALL* macros.
5312 (map_fini): Likewise.
5313 (init_streams_for_device): Change return type to bool, adjust
5315 (fini_streams_for_device): Change return type to bool, adjust
5317 (select_stream_for_async): Release stream_lock before calls to
5318 GOMP_PLUGIN_fatal, adjust call to map_init.
5319 (nvptx_init): Use CUDA_CALL* macros.
5320 (nvptx_attach_host_thread_to_device): Change return type to bool,
5321 use CUDA_CALL* macros.
5322 (nvptx_open_device): Use CUDA_CALL* macros.
5323 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
5325 (nvptx_get_num_devices): Use CUDA_CALL* macros.
5326 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
5327 (nvptx_exec): Use CUDA_CALL* macros.
5328 (nvptx_alloc): Use CUDA_CALL* macros.
5329 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
5330 (nvptx_host2dev): Likewise.
5331 (nvptx_dev2host): Likewise.
5332 (nvptx_wait): Use CUDA_CALL* macros.
5333 (nvptx_wait_async): Likewise.
5334 (nvptx_wait_all): Likewise.
5335 (nvptx_wait_all_async): Likewise.
5336 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
5337 use CUDA_CALL* macros, adjust call to map_fini.
5338 (GOMP_OFFLOAD_init_device): Change return type to bool,
5339 adjust code accordingly.
5340 (GOMP_OFFLOAD_fini_device): Likewise.
5341 (GOMP_OFFLOAD_load_image): Adjust calls to
5342 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
5343 use CUDA_CALL* macros.
5344 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
5346 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
5347 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
5348 handle error return.
5349 (GOMP_OFFLOAD_dev2host): Likewise.
5350 (GOMP_OFFLOAD_host2dev): Likewise.
5351 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
5352 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
5354 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
5356 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
5357 (acc_free): Likewise.
5358 (acc_memcpy_to_device): Likewise.
5359 (acc_memcpy_from_device): Likewise.
5360 (acc_deviceptr): Likewise.
5361 (acc_hostptr): Likewise.
5362 (acc_is_present): Likewise.
5363 (acc_map_data): Likewise.
5364 (acc_unmap_data): Likewise.
5365 (present_create_copy): Likewise.
5366 (delete_copyout): Likewise.
5367 (update_dev_host): Likewise.
5368 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
5369 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
5370 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
5371 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5372 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
5373 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
5374 it only runs on nvptx targets.
5375 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5376 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5377 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5378 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5379 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5380 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5381 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5382 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5383 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5384 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5385 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5386 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5387 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5388 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5389 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5390 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5391 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5392 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5393 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5394 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5395 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5396 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5397 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5399 2016-05-23 Martin Jambor <mjambor@suse.cz>
5401 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
5403 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
5405 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
5406 to gomp_init_targets_once.
5407 (acc_set_device_type): Remove !cached_base_dev condition on call to
5408 gomp_init_targets_once, move call to before acc_device_lock acquire,
5410 (acc_get_device_num): Remove !cached_base_dev condition on call to
5411 gomp_init_targets_once.
5412 (acc_set_device_num): Likewise.
5414 2016-05-16 Martin Jambor <mjambor@suse.cz>
5416 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
5418 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
5420 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
5421 expected partitioning.
5423 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
5426 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
5427 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
5428 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
5430 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
5432 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
5435 2016-04-19 Jakub Jelinek <jakub@redhat.com>
5438 * testsuite/libgomp.c/pr70680-1.c: New test.
5439 * testsuite/libgomp.c/pr70680-2.c: New test.
5441 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5443 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
5444 pass parameter variables to subroutines.
5446 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5449 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
5451 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
5454 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
5455 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5457 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
5459 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
5460 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
5461 GOACC_declare prototype.
5463 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
5464 Merge this file, and...
5465 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
5466 ... this file, and...
5467 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
5468 ... this file, and...
5469 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
5470 ... this file, and...
5471 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
5472 ... this file, and...
5473 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
5474 ... this file, and...
5475 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
5476 ... this file, and...
5477 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
5478 ... this file, and...
5479 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
5480 ... this file, and...
5481 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
5482 ... this file, and...
5483 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
5484 ... this file, and...
5485 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
5486 ... this file, and...
5487 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
5488 ... this file into...
5489 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
5492 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
5493 Make failure observable.
5495 2016-04-12 Jakub Jelinek <jakub@redhat.com>
5497 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
5499 * target.c (gomp_target_fallback_firstprivate,
5500 gomp_target_unshare_firstprivate): Removed.
5501 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
5502 before waiting for dependencies.
5503 (gomp_target_task_fn): Don't copy firstprivate vars here.
5504 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
5505 firstprivate_copies here.
5506 (gomp_create_target_task): Don't initialize firstprivate_copies field.
5507 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
5508 explicit/implicit firstprivate.
5510 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
5514 PR tree-optimization/70373
5518 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
5520 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
5522 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
5524 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
5526 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
5528 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
5530 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
5532 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
5534 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
5536 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
5537 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
5538 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
5539 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
5541 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
5543 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
5545 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
5547 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
5549 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5550 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5551 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
5552 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
5553 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
5554 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
5556 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5557 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5558 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5559 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5560 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
5561 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
5562 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
5563 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
5564 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
5565 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5566 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5567 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5568 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5569 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5570 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
5572 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
5573 James Norris <jnorris@codesourcery.com>
5574 Nathan Sidwell <nathan@codesourcery.com>
5575 Julian Brown <julian@codesourcery.com>
5576 Cesar Philippidis <cesar@codesourcery.com>
5577 Chung-Lin Tang <cltang@codesourcery.com>
5578 Tom de Vries <tom@codesourcery.com>
5580 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
5581 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
5582 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
5583 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
5584 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5585 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
5586 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
5587 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5588 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
5590 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5592 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
5594 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
5595 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
5596 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
5597 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
5599 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5601 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5602 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
5603 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5604 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5605 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
5606 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5607 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
5608 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
5609 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5610 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
5612 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
5613 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5614 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
5616 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
5618 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
5620 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
5622 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
5624 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
5625 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
5626 ... this new file. Update.
5627 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
5628 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
5629 ... this new file. Update.
5630 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
5631 file. Incorporate...
5632 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
5634 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
5636 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
5638 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
5640 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
5642 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
5643 set-torture-options.
5645 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
5647 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
5649 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5650 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
5651 -fno-builtin-acc_on_device instead of -O0.
5652 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
5654 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5655 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
5657 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5658 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5659 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5660 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5661 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5662 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5663 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5664 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5665 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5666 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5667 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5668 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5669 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5670 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5671 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5672 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5673 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5674 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
5676 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
5678 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
5681 2016-03-24 Martin Liska <mliska@suse.cz>
5683 * plugin/plugin-hsa.c (packet_store_release): New function
5684 that is taken from the HSA runtime manual.
5685 (GOMP_OFFLOAD_run): Use the function.
5687 2016-03-23 Jakub Jelinek <jakub@redhat.com>
5690 * testsuite/libgomp.c++/pr70376.C: New test.
5692 2016-03-23 Tom de Vries <tom@codesourcery.com>
5694 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
5695 initialization of lresult and lvresult.
5696 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
5698 2016-03-23 James Norris <jnorris@codesourcery.com>
5699 Daichi Fukuoka <dc-fukuoka@sgi.com>
5702 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
5703 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
5704 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
5705 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
5707 2016-03-23 Martin Liska <mliska@suse.cz>
5710 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
5711 argument just in case a dispatched kernel uses that argument.
5713 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
5715 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
5716 -ftree-parallelize-loops/-fopenacc changes.
5717 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
5719 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5721 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
5723 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
5725 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
5726 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
5728 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
5730 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
5731 always_ld_library_path the path to libgcc_s.
5733 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
5736 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
5738 2016-03-09 Tom de Vries <tom@codesourcery.com>
5740 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
5741 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
5742 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5744 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
5745 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
5746 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
5747 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
5749 2016-03-07 Martin Jambor <mjambor@suse.cz>
5751 * testsuite/lib/libgomp.exp
5752 (check_effective_target_hsa_offloading_selected_nocache): New.
5753 (check_effective_target_hsa_offloading_selected): Likewise.
5754 * testsuite/libgomp.hsa.c/c.exp: Likewise.
5755 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
5756 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5757 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5758 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5759 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5760 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5761 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5762 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5763 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
5764 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
5765 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
5766 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
5767 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
5768 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
5769 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
5770 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
5772 2016-03-07 Martin Jambor <mjambor@suse.cz>
5774 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
5775 non-shared memory accelerators.
5776 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
5777 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
5778 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
5779 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
5780 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
5781 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
5782 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
5783 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
5784 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
5786 2016-03-07 Martin Jambor <mjambor@suse.cz>
5788 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
5791 2016-03-02 Jakub Jelinek <jakub@redhat.com>
5794 * testsuite/libgomp.c++/pr69555-1.C: New test.
5795 * testsuite/libgomp.c++/pr69555-2.C: New test.
5797 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
5798 Martin Jambor <mjambor@suse.cz>
5800 * testsuite/lib/libgomp.exp
5801 (check_effective_target_offload_device_shared_as): New proc.
5802 * testsuite/libgomp.c++/declare_target-1.C: New test.
5804 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
5807 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
5809 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
5811 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
5812 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
5814 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
5815 -ftree-parallelize-loops/-fopenacc changes.
5816 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
5817 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
5819 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
5821 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
5823 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
5825 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
5827 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
5829 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
5831 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
5832 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
5834 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
5835 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
5837 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
5838 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
5841 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
5843 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
5845 2016-02-19 Jakub Jelinek <jakub@redhat.com>
5848 * testsuite/libgomp.c/pr69805.c: New test.
5850 2016-02-16 Tom de Vries <tom@codesourcery.com>
5853 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
5855 2016-02-09 Tom de Vries <tom@codesourcery.com>
5857 PR tree-optimization/69599
5858 * testsuite/libgomp.c/omp-nested-3.c: New test.
5859 * testsuite/libgomp.c/pr46032-2.c: New test.
5860 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
5861 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
5863 2016-02-09 Tom de Vries <tom@codesourcery.com>
5866 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
5868 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5870 * testsuite/libgomp.c/target-31.c: Fix testcase.
5872 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5874 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
5876 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
5877 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
5878 reduction and map clauses.
5879 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
5881 2016-02-02 James Norris <jnorris@codesourcery.com>
5883 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
5885 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
5887 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
5888 * oacc-parallel.c (GOACC_host_data): Remove function definition.
5890 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
5893 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
5895 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
5896 (hsa_kmt_lib): Set variables.
5897 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
5898 always_ld_library_path.
5899 * Makefile.in: Regenerate.
5900 * configure: Likewise.
5901 * testsuite/Makefile.in: Likewise.
5903 * plugin/configfrag.ac (offload_additional_options)
5904 (offload_additional_lib_paths): Don't amend for hsa offloading.
5905 * configure: Regenerate.
5907 * plugin/configfrag.ac: Don't configure for offloading target if
5908 we don't build the corresponding plugin.
5909 * configure: Regenerate.
5911 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
5913 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
5914 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
5916 2016-01-26 Tom de Vries <tom@codesourcery.com>
5918 PR tree-optimization/69110
5919 * testsuite/libgomp.c/pr69110.c: New test.
5921 2016-01-25 Richard Biener <rguenther@suse.de>
5924 * testsuite/libgomp.c++/pr69393.C: New testcase.
5926 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
5928 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
5929 function wasn't mapped to the device with non-shared memory.
5931 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
5933 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
5935 2016-01-19 Martin Jambor <mjambor@suse.cz>
5936 Martin Liska <mliska@suse.cz>
5938 * plugin/Makefrag.am: Add HSA plugin requirements.
5939 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
5940 (HSA_RUNTIME_LIB): Likewise.
5941 (HSA_RUNTIME_CPPFLAGS): Likewise.
5942 (HSA_RUNTIME_INCLUDE): New substitution.
5943 (HSA_RUNTIME_LIB): Likewise.
5944 (HSA_RUNTIME_LDFLAGS): Likewise.
5945 (hsa-runtime): New configure option.
5946 (hsa-runtime-include): Likewise.
5947 (hsa-runtime-lib): Likewise.
5948 (PLUGIN_HSA): New substitution variable.
5949 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
5951 (PLUGIN_HSA_CPPFLAGS): Likewise.
5952 (PLUGIN_HSA_LDFLAGS): Likewise.
5953 (PLUGIN_HSA_LIBS): Likewise.
5954 Check that we have access to HSA run-time.
5955 * libgomp-plugin.h (offload_target_type): New element
5956 OFFLOAD_TARGET_TYPE_HSA.
5957 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
5959 (bool gomp_create_target_task): Updated.
5960 (gomp_device_descr): Extra parameter of run_func and async_run_func,
5961 new field can_run_func.
5962 * libgomp_g.h (GOMP_target_ext): Update prototype.
5963 * oacc-host.c (host_run): Added a new parameter args.
5964 * target.c (calculate_firstprivate_requirements): New function.
5965 (copy_firstprivate_data): Likewise.
5966 (gomp_target_fallback_firstprivate): Use them.
5967 (gomp_target_unshare_firstprivate): New function.
5968 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
5970 (GOMP_target): Do host fallback for all shared memory devices. Do not
5971 pass any args to plugins.
5972 (GOMP_target_ext): Introduce device-specific argument parameter args.
5973 Allow host fallback if device shares memory. Do not remap data if
5974 device has shared memory.
5975 (gomp_target_task_fn): Likewise. Also treat shared memory devices
5976 like host fallback for mappings.
5977 (GOMP_target_data): Treat shared memory devices like host fallback.
5978 (GOMP_target_data_ext): Likewise.
5979 (GOMP_target_update): Likewise.
5980 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
5981 gomp_create_target_task.
5982 (GOMP_target_enter_exit_data): Likewise.
5983 (omp_target_alloc): Treat shared memory devices like host fallback.
5984 (omp_target_free): Likewise.
5985 (omp_target_is_present): Likewise.
5986 (omp_target_memcpy): Likewise.
5987 (omp_target_memcpy_rect): Likewise.
5988 (omp_target_associate_ptr): Likewise.
5989 (gomp_load_plugin_for_device): Also load can_run.
5990 * task.c (GOMP_PLUGIN_target_task_completion): Free
5991 firstprivate_copies.
5992 (gomp_create_target_task): Accept new argument args and store it to
5994 * plugin/plugin-hsa.c: New file.
5996 2016-01-18 Tom de Vries <tom@codesourcery.com>
5998 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
5999 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
6000 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
6001 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
6002 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
6003 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
6004 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
6005 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
6006 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
6007 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
6008 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
6010 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
6012 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
6013 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
6014 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
6015 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
6016 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
6017 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
6018 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
6019 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
6021 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
6023 2016-01-15 Jakub Jelinek <jakub@redhat.com>
6025 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
6027 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
6029 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
6031 2016-01-12 James Norris <jnorris@codesourcery.com>
6033 * libgomp.texi: Updates for OpenACC.
6035 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
6037 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
6039 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
6042 * testsuite/libgomp.fortran/pr66680.f90: New test.
6044 2016-01-07 Jakub Jelinek <jakub@redhat.com>
6047 * testsuite/libgomp.c/pr68960.c: New test.
6049 2016-01-06 Nathan Sidwell <nathan@acm.org>
6051 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
6052 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
6054 2016-01-04 Jakub Jelinek <jakub@redhat.com>
6056 Update copyright years.
6058 * libgomp.texi: Bump @copying's copyright year.
6060 2015-12-31 Nathan Sidwell <nathan@acm.org>
6062 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
6063 dg-additional-options syntax.
6064 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
6065 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
6066 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
6067 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
6068 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
6069 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
6070 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
6071 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
6072 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
6073 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
6074 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
6075 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
6076 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
6077 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
6078 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
6079 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
6080 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
6081 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
6083 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
6085 * libgomp.h (REFCOUNT_LINK): Define.
6086 (struct splay_tree_key_s): Add link_key.
6087 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
6088 Replace target address of the pointer with target address of newly
6089 mapped object in the splay tree. Set link pointer on target to the
6090 device address of the mapped object.
6091 (gomp_unmap_vars): Restore target address of the pointer in the splay
6092 tree for REFCOUNT_LINK objects after unmapping.
6093 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
6094 declare target link" objects.
6095 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
6096 "omp declare target link" objects, which were mapped for the image.
6097 (gomp_exit_data): Restore target address of the pointer in the splay
6098 tree for REFCOUNT_LINK objects after unmapping.
6099 * testsuite/libgomp.c/target-link-1.c: New file.
6101 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
6103 * libgomp.h (gomp_device_state): New enum.
6104 (struct gomp_device_descr): Replace is_initialized with state.
6105 (gomp_fini_device): Remove declaration.
6106 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
6107 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
6108 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
6109 (acc_set_device_type): Use state instead of is_initialized.
6110 (acc_set_device_num): Likewise.
6111 * target.c (resolve_device): Use state instead of is_initialized.
6112 Do not initialize finalized device.
6113 (gomp_map_vars): Do nothing if device is finalized.
6114 (gomp_unmap_vars): Likewise.
6115 (gomp_update): Likewise.
6116 (GOMP_offload_register_ver): Use state instead of is_initialized.
6117 (GOMP_offload_unregister_ver): Likewise.
6118 (gomp_init_device): Likewise.
6119 (gomp_unload_device): Likewise.
6120 (gomp_fini_device): Remove.
6121 (gomp_get_target_fn_addr): Do nothing if device is finalized.
6122 (GOMP_target): Go to host fallback if device is finalized.
6123 (GOMP_target_ext): Likewise.
6124 (gomp_exit_data): Do nothing if device is finalized.
6125 (gomp_target_task_fn): Go to host fallback if device is finalized.
6126 (gomp_target_fini): New static function.
6127 (gomp_target_init): Use state instead of is_initialized.
6128 Call gomp_target_fini at exit.
6130 2015-12-09 Tom de Vries <tom@codesourcery.com>
6132 PR tree-optimization/68716
6133 * testsuite/libgomp.c/omp-nested-2.c: New test.
6135 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
6137 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
6138 target openacc_nvidia_accel_selected.
6139 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
6140 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
6141 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
6142 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
6144 2015-12-01 Julian Brown <julian@codesourcery.com>
6145 James Norris <James_Norris@mentor.com>
6147 * oacc-parallel.c (GOACC_host_data): New function.
6148 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
6149 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
6150 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
6151 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
6152 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
6153 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
6154 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
6156 2015-11-30 James Norris <jnorris@codesourcery.com>
6157 Cesar Philippidis <cesar@codesourcery.com>
6160 * libgomp.oacc-fortran/routine-5.f90: New test.
6161 * libgomp.oacc-fortran/routine-7.f90: New test.
6162 * libgomp.oacc-fortran/routine-9.f90: New test.
6164 2015-11-30 Tom de Vries <tom@codesourcery.com>
6166 PR tree-optimization/46032
6167 * testsuite/libgomp.c/pr46032.c: New test.
6169 2015-11-27 Jakub Jelinek <jakub@redhat.com>
6172 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
6173 (gomp_create_target_task): Call it before freeing
6174 GOMP_TARGET_TASK_DATA tasks.
6177 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
6178 in between case label and OpenMP standalone directives.
6179 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
6181 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
6183 * configure: Regenerate.
6185 2015-11-26 Jakub Jelinek <jakub@redhat.com>
6187 * testsuite/libgomp.c/target-35.c: New test.
6189 2015-11-22 James Norris <jnorris@codesourcery.com>
6190 Cesar Philippidis <cesar@codesourcery.com>
6192 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
6193 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
6194 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
6195 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
6196 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
6198 2015-11-20 Jakub Jelinek <jakub@redhat.com>
6201 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
6202 * testsuite/libgomp.c/reduction-12.c: Likewise.
6203 * testsuite/libgomp.c++/reduction-11.C: Likewise.
6204 * testsuite/libgomp.c++/reduction-12.C: Likewise.
6206 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
6208 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
6209 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
6210 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
6211 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
6212 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
6214 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6215 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6217 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
6219 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
6220 worker & gang cases.
6221 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
6223 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
6225 * config/nvptx/priority_queue.c: New file.
6227 2015-11-14 Jakub Jelinek <jakub@redhat.com>
6229 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
6232 2015-11-14 Jakub Jelinek <jakub@redhat.com>
6233 Aldy Hernandez <aldyh@redhat.com>
6234 Ilya Verbin <ilya.verbin@intel.com>
6236 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
6237 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
6238 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
6239 iterators or IV by chunk size.
6240 * parallel.c (gomp_resolve_num_threads): Don't assume that
6241 if thr->ts.team is non-NULL, then pool must be non-NULL.
6242 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
6243 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
6244 GOMP_PLUGIN_target_task_completion.
6245 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
6246 * Makefile.in: Regenerate.
6247 * libgomp.h: Shuffle prototypes and forward definitions around so
6248 priority queues can be defined.
6249 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
6250 (enum gomp_target_task_state): New enum.
6251 (struct gomp_target_task): Add state, tgt, task and team fields.
6252 (gomp_create_target_task): Change return type to bool, add
6254 (gomp_target_task_fn): Change return type to bool.
6255 (struct gomp_device_descr): Add async_run_func.
6256 (struct gomp_task): Remove children, next_child, prev_child,
6257 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
6259 (struct gomp_taskgroup): Remove children.
6260 Add taskgroup_queue.
6261 (struct gomp_team): Change task_queue type to a priority queue.
6262 (splay_compare): Define inline.
6263 (priority_queue_offset): New.
6264 (priority_node_to_task): New.
6265 (task_to_priority_node): New.
6266 * oacc-mem.c: Do not include splay-tree.h.
6267 * priority_queue.c: New file.
6268 * priority_queue.h: New file.
6269 * splay-tree.c: Do not include splay-tree.h.
6270 (splay_tree_foreach_internal): New.
6271 (splay_tree_foreach): New.
6272 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
6273 (splay_tree_callback): Define typedef.
6274 * target.c (splay_compare): Move to libgomp.h.
6275 (GOMP_target): Don't adjust *thr in any way around running offloaded
6277 (GOMP_target_ext): Likewise. Handle target nowait.
6278 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
6279 return value from gomp_create_target_task, if false, fallthrough
6280 as if no dependencies exist.
6281 (gomp_target_task_fn): Change return type to bool, return true
6282 if the task should have another part scheduled later. Handle
6284 (gomp_load_plugin_for_device): Initialize async_run.
6285 * task.c (gomp_init_task): Initialize children_queue.
6286 (gomp_clear_parent_in_list): New.
6287 (gomp_clear_parent_in_tree): New.
6288 (gomp_clear_parent): Handle priorities.
6289 (GOMP_task): Likewise.
6290 (priority_queue_move_task_first,
6291 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
6293 (gomp_create_target_task): Use priority queues. Change return type
6294 to bool, add state argument, return false if for async
6295 {{enter,exit} data,update} constructs no dependencies need to be
6296 waited for, handle target nowait. Set task->fn to NULL instead of
6297 gomp_target_task_fn.
6298 (verify_children_queue): Remove.
6299 (priority_list_upgrade_task): New.
6300 (priority_queue_upgrade_task): New.
6301 (verify_task_queue): Remove.
6302 (priority_list_downgrade_task): New.
6303 (priority_queue_downgrade_task): New.
6304 (gomp_task_run_pre): Use priority queues.
6305 Abstract code out to priority_queue_downgrade_task.
6306 (gomp_task_run_post_handle_dependers): Use priority queues.
6307 (gomp_task_run_post_remove_parent): Likewise.
6308 (gomp_task_run_post_remove_taskgroup): Likewise.
6309 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
6311 (GOMP_taskwait): Likewise.
6312 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
6313 priority-queue_upgrade_task.
6314 (GOMP_taskgroup_start): Use priority queues.
6315 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
6316 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
6318 * taskloop.c (GOMP_taskloop): Handle priorities.
6319 * team.c (gomp_new_team): Call priority_queue_init.
6320 (free_team): Call priority_queue_free.
6321 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
6322 team created for target nowait in implicit parallel region.
6323 (gomp_team_start): For nested check, test thr->ts.level instead of
6324 thr->ts.team != NULL.
6325 * testsuite/libgomp.c/doacross-3.c: New test.
6326 * testsuite/libgomp.c/ordered-5.c: New test.
6327 * testsuite/libgomp.c/priority.c: New test.
6328 * testsuite/libgomp.c/target-31.c: New test.
6329 * testsuite/libgomp.c/target-32.c: New test.
6330 * testsuite/libgomp.c/target-33.c: New test.
6331 * testsuite/libgomp.c/target-34.c: New test.
6333 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6335 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
6337 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
6340 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6342 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
6343 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
6345 2015-11-12 James Norris <jnorris@codesourcery.com>
6346 Joseph Myers <joseph@codesourcery.com>
6348 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
6349 * oacc-parallel.c (GOACC_declare): New function.
6350 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
6351 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
6352 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
6353 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
6354 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
6356 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
6358 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
6360 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
6362 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
6363 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
6365 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6367 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
6370 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6372 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
6373 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
6374 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
6375 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
6376 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
6378 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
6380 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
6381 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6383 2015-11-05 Jakub Jelinek <jakub@redhat.com>
6384 Ilya Verbin <ilya.verbin@intel.com>
6386 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
6387 GOMP_loop_nonmonotonic_dynamic_start,
6388 GOMP_loop_nonmonotonic_guided_next,
6389 GOMP_loop_nonmonotonic_guided_start,
6390 GOMP_loop_ull_nonmonotonic_dynamic_next,
6391 GOMP_loop_ull_nonmonotonic_dynamic_start,
6392 GOMP_loop_ull_nonmonotonic_guided_next,
6393 GOMP_loop_ull_nonmonotonic_guided_start,
6394 GOMP_parallel_loop_nonmonotonic_dynamic,
6395 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
6396 (GOMP_target_41): Renamed to ...
6397 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6399 (GOMP_target_data_41): Renamed to ...
6400 (GOMP_target_data_ext): ... this.
6401 (GOMP_target_update_41): Renamed to ...
6402 (GOMP_target_update_ext): ... this.
6403 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
6404 GOMP_target_data_ext and GOMP_target_update_ext instead of
6405 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
6406 Export GOMP_loop_nonmonotonic_dynamic_next,
6407 GOMP_loop_nonmonotonic_dynamic_start,
6408 GOMP_loop_nonmonotonic_guided_next,
6409 GOMP_loop_nonmonotonic_guided_start,
6410 GOMP_loop_ull_nonmonotonic_dynamic_next,
6411 GOMP_loop_ull_nonmonotonic_dynamic_start,
6412 GOMP_loop_ull_nonmonotonic_guided_next,
6413 GOMP_loop_ull_nonmonotonic_guided_start,
6414 GOMP_parallel_loop_nonmonotonic_dynamic and
6415 GOMP_parallel_loop_nonmonotonic_guided.
6416 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
6417 GOMP_parallel_loop_nonmonotonic_guided,
6418 GOMP_loop_nonmonotonic_dynamic_start,
6419 GOMP_loop_nonmonotonic_guided_start,
6420 GOMP_loop_nonmonotonic_dynamic_next,
6421 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
6422 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
6423 GOMP_loop_ull_nonmonotonic_guided_start,
6424 GOMP_loop_ull_nonmonotonic_dynamic_next,
6425 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
6426 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
6428 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
6429 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
6430 Use gomp_map_val function.
6431 (gomp_target_fallback_firstprivate): New static function.
6432 (GOMP_target_41): Renamed to ...
6433 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6434 arguments. Move firstprivate fallback handling into a new
6436 (GOMP_target_data_41): Renamed to ...
6437 (GOMP_target_data_ext): ... this.
6438 (GOMP_target_update_41): Renamed to ...
6439 (GOMP_target_update_ext): ... this.
6440 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
6441 gomp_map_0len_lookup instead of gomp_map_lookup.
6442 (omp_target_is_present): Use gomp_map_0len_lookup instead of
6444 * testsuite/libgomp.c/target-28.c: Likewise.
6445 * testsuite/libgomp.c/monotonic-1.c: New test.
6446 * testsuite/libgomp.c/monotonic-2.c: New test.
6447 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
6448 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
6449 * testsuite/libgomp.c/pr66199-5.c: New test.
6450 * testsuite/libgomp.c/pr66199-6.c: New test.
6451 * testsuite/libgomp.c/pr66199-7.c: New test.
6452 * testsuite/libgomp.c/pr66199-8.c: New test.
6453 * testsuite/libgomp.c/pr66199-9.c: New test.
6454 * testsuite/libgomp.c/reduction-11.c: New test.
6455 * testsuite/libgomp.c/reduction-12.c: New test.
6456 * testsuite/libgomp.c/reduction-13.c: New test.
6457 * testsuite/libgomp.c/reduction-14.c: New test.
6458 * testsuite/libgomp.c/reduction-15.c: New test.
6459 * testsuite/libgomp.c/target-12.c (main): Adjust for
6460 omp_target_is_present change for one-past-last element.
6461 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
6462 the same var is both mapped and privatized.
6463 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
6464 handling of zero-length array sections.
6465 * testsuite/libgomp.c/target-28.c: New test.
6466 * testsuite/libgomp.c/target-29.c: New test.
6467 * testsuite/libgomp.c/target-30.c: New test.
6468 * testsuite/libgomp.c/target-teams-1.c: New test.
6469 * testsuite/libgomp.c++/member-6.C: New test.
6470 * testsuite/libgomp.c++/member-7.C: New test.
6471 * testsuite/libgomp.c++/monotonic-1.C: New test.
6472 * testsuite/libgomp.c++/monotonic-2.C: New test.
6473 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
6474 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
6475 * testsuite/libgomp.c++/pr66199-3.C: New test.
6476 * testsuite/libgomp.c++/pr66199-4.C: New test.
6477 * testsuite/libgomp.c++/pr66199-5.C: New test.
6478 * testsuite/libgomp.c++/pr66199-6.C: New test.
6479 * testsuite/libgomp.c++/pr66199-7.C: New test.
6480 * testsuite/libgomp.c++/pr66199-8.C: New test.
6481 * testsuite/libgomp.c++/pr66199-9.C: New test.
6482 * testsuite/libgomp.c++/reduction-11.C: New test.
6483 * testsuite/libgomp.c++/reduction-12.C: New test.
6484 * testsuite/libgomp.c++/target-13.C: New test.
6485 * testsuite/libgomp.c++/target-14.C: New test.
6486 * testsuite/libgomp.c++/target-15.C: New test.
6487 * testsuite/libgomp.c++/target-16.C: New test.
6488 * testsuite/libgomp.c++/target-17.C: New test.
6489 * testsuite/libgomp.c++/target-18.C: New test.
6490 * testsuite/libgomp.c++/target-19.C: New test.
6492 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6494 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
6496 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6497 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6498 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6499 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6500 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6501 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6502 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6503 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6504 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6505 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
6506 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6507 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6508 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6509 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
6511 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6513 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
6514 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
6515 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
6516 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
6517 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
6518 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
6519 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
6520 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
6522 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
6524 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
6525 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
6526 (GOMP_OFFLOAD_openacc_parallel): Likewise.
6527 * oacc-host.c (host_openacc_exec): Likewise.
6528 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
6530 2015-11-03 Julian Brown <julian@codesourcery.com>
6531 Thomas Schwinge <thomas@codesourcery.com>
6533 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
6534 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6535 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
6537 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
6538 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
6540 2015-11-03 James Norris <jnorris@codesourcery.com>
6542 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
6544 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
6546 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
6547 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
6548 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
6549 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
6550 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
6552 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
6554 * openacc.h (enum acc_device_t): Reformat. Ensure layout
6556 (enum acc_async_t): Reformat.
6557 (acc_on_device): Declare compatible with builtin and provide C++
6559 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
6561 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
6562 Cesar Philippidis <cesar@codesourcery.com>
6564 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
6565 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
6566 ... this. Add a description of the test at the top of the file.
6567 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
6568 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
6569 ... this. Add a description of the test at the top of the file.
6571 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6573 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
6574 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
6575 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
6576 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
6577 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
6578 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
6580 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6582 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
6585 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
6588 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
6590 2015-10-27 James Norris <jnorris@codesourcery.com>
6592 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
6593 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
6595 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
6597 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
6598 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6600 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
6601 acc_device_nvidia usage.
6602 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6603 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6604 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6606 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
6607 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
6610 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
6614 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
6615 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
6617 2015-10-23 Tom de Vries <tom@codesourcery.com>
6620 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
6622 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
6624 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
6626 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6628 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
6629 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
6631 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
6632 to 0 when mapnum is 0.
6634 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
6636 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
6637 Cast to int from int32_t.
6639 2015-10-13 Jakub Jelinek <jakub@redhat.com>
6640 Aldy Hernandez <aldyh@redhat.com>
6641 Ilya Verbin <ilya.verbin@intel.com>
6643 * config/linux/affinity.c (omp_get_place_num_procs,
6644 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6645 * config/linux/doacross.h: New file.
6646 * config/posix/affinity.c (omp_get_place_num_procs,
6647 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6648 * config/posix/doacross.h: New file.
6649 * env.c: Include gomp-constants.h.
6650 (struct gomp_task_icv): Rename run_sched_modifier to
6651 run_sched_chunk_size.
6652 (gomp_max_task_priority_var): New variable.
6653 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
6654 (handle_omp_display_env): Change _OPENMP value from 201307 to
6655 201511. Print OMP_MAX_TASK_PRIORITY.
6656 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
6657 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
6658 chunk_size and run_sched_modifier to run_sched_chunk_size.
6659 (omp_get_max_task_priority, omp_get_initial_device,
6660 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
6661 omp_get_partition_place_nums): New functions.
6662 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
6663 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
6665 (omp_get_num_places_, omp_get_place_num_procs_,
6666 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
6667 omp_get_place_proc_ids_8_, omp_get_place_num_,
6668 omp_get_partition_num_places_, omp_get_partition_place_nums_,
6669 omp_get_partition_place_nums_8_, omp_get_initial_device_,
6670 omp_get_max_task_priority_): New functions.
6671 * libgomp_g.h (GOMP_loop_doacross_static_start,
6672 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
6673 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
6674 GOMP_loop_ull_doacross_dynamic_start,
6675 GOMP_loop_ull_doacross_guided_start,
6676 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
6677 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
6678 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
6679 GOMP_target_data_41, GOMP_target_update_41,
6680 GOMP_target_enter_exit_data): New prototypes.
6681 (GOMP_task): Add prototype argument.
6682 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
6683 (struct gomp_doacross_work_share): New type.
6684 (struct gomp_work_share): Add doacross field.
6685 (struct gomp_task_icv): Rename run_sched_modifier to
6686 run_sched_chunk_size.
6687 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
6688 GOMP_TASK_UNDEFERRED. Add comments.
6689 (struct gomp_task_depend_entry): Add comments.
6690 (struct gomp_task): Likewise.
6691 (struct gomp_taskgroup): Likewise.
6692 (struct gomp_target_task): New type.
6693 (struct gomp_team): Add comment.
6694 (gomp_get_place_proc_ids_8, gomp_doacross_init,
6695 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
6696 gomp_create_target_task, gomp_target_task_fn): New prototypes.
6697 (struct target_var_desc): New type.
6698 (struct target_mem_desc): Adjust comment. Use struct
6699 target_var_desc instead of splay_tree_key for list.
6700 (REFCOUNT_INFINITY): Define.
6701 (struct splay_tree_key_s): Remove copy_from field.
6702 (struct gomp_device_descr): Add dev2dev_func field.
6703 (enum gomp_map_vars_kind): New enum.
6704 (gomp_map_vars): Add one argument.
6705 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
6706 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
6707 omp_get_place_num_procs, omp_get_place_num_procs_,
6708 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
6709 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
6710 omp_get_place_num_, omp_get_partition_num_places,
6711 omp_get_partition_num_places_, omp_get_partition_place_nums,
6712 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
6713 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
6714 omp_target_free, omp_target_is_present, omp_target_memcpy,
6715 omp_target_memcpy_rect, omp_target_associate_ptr and
6716 omp_target_disassociate_ptr.
6717 (GOMP_4.0.2): Renamed to ...
6718 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
6719 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
6720 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
6721 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6722 GOMP_loop_doacross_static_start, GOMP_doacross_post,
6723 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
6724 GOMP_loop_ull_doacross_guided_start,
6725 GOMP_loop_ull_doacross_runtime_start,
6726 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
6727 GOMP_doacross_ull_wait.
6728 * libgomp.texi: Document omp_get_max_task_priority.
6729 Rename modifier argument to chunk_size for omp_set_schedule and
6730 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
6731 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
6732 to run_sched_chunk_size renaming.
6733 (GOMP_loop_ordered_runtime_start): Likewise.
6734 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
6735 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6736 GOMP_parallel_loop_runtime_start): New functions.
6737 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
6738 to run_sched_chunk_size renaming.
6739 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
6740 GOMP_loop_doacross_guided_start): New functions or aliases.
6741 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
6742 run_sched_modifier to run_sched_chunk_size renaming.
6743 (GOMP_loop_ull_ordered_runtime_start): Likewise.
6744 (gomp_loop_ull_doacross_static_start,
6745 gomp_loop_ull_doacross_dynamic_start,
6746 gomp_loop_ull_doacross_guided_start,
6747 GOMP_loop_ull_doacross_runtime_start): New functions.
6748 (GOMP_loop_ull_doacross_static_start,
6749 GOMP_loop_ull_doacross_dynamic_start,
6750 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
6751 * oacc-mem.c (acc_map_data, present_create_copy,
6752 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
6754 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
6755 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
6756 instead of false to gomp_map_vars.
6757 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
6758 * omp.h.in (omp_lock_hint_t): New type.
6759 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6760 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6761 omp_get_place_num, omp_get_partition_num_places,
6762 omp_get_partition_place_nums, omp_get_initial_device,
6763 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
6764 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
6765 omp_target_associate_ptr, omp_target_disassociate_ptr): New
6767 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
6768 (omp_lock_hint_none, omp_lock_hint_uncontended,
6769 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6770 omp_lock_hint_speculative): New parameters.
6771 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6772 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6773 omp_get_place_num, omp_get_partition_num_places,
6774 omp_get_partition_place_nums, omp_get_initial_device,
6775 omp_get_max_task_priority): New interfaces.
6776 (omp_set_schedule, omp_get_schedule): Rename modifier argument
6778 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
6779 (omp_lock_hint_none, omp_lock_hint_uncontended,
6780 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6781 omp_lock_hint_speculative): New parameters.
6782 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6783 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6784 omp_get_place_num, omp_get_partition_num_places,
6785 omp_get_partition_place_nums, omp_get_initial_device,
6786 omp_get_max_task_priority): New functions and subroutines.
6787 * ordered.c: Include stdarg.h and string.h.
6788 (MAX_COLLAPSED_BITS): Define.
6789 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
6790 gomp_doacross_ull_init, GOMP_doacross_ull_post,
6791 GOMP_doacross_ull_wait): New functions.
6792 * target.c: Include errno.h.
6793 (resolve_device): If device is not initialized, call
6794 gomp_init_device on it.
6795 (gomp_map_lookup): New function.
6796 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
6797 Don't bump refcount if REFCOUNT_INFINITY. Handle
6798 GOMP_MAP_ALWAYS_TO_P.
6799 (get_kind): Rename is_openacc argument to short_mapkind.
6800 (gomp_map_pointer): Use gomp_map_lookup.
6801 (gomp_map_fields_existing): New function.
6802 (gomp_map_vars): Rename is_openacc argument to short_mapkind
6803 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
6804 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
6805 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
6806 Adjust for tgt->list changed type and copy_from living in there.
6807 (gomp_copy_from_async): Adjust for tgt->list changed type and
6808 copy_from living in there.
6809 (gomp_unmap_vars): Likewise.
6810 (gomp_update): Likewise. Rename is_openacc argument to
6811 short_mapkind. Don't fail if object is not mapped.
6812 (gomp_load_image_to_device): Initialize refcount to
6814 (gomp_target_fallback): New function.
6815 (gomp_get_target_fn_addr): Likewise.
6816 (GOMP_target): Adjust gomp_map_vars caller, use
6817 gomp_get_target_fn_addr and gomp_target_fallback.
6818 (GOMP_target_41): New function.
6819 (gomp_target_data_fallback): New function.
6820 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
6821 (GOMP_target_data_41): New function.
6822 (GOMP_target_update): Adjust gomp_update caller.
6823 (GOMP_target_update_41): New function.
6824 (gomp_exit_data, GOMP_target_enter_exit_data,
6825 gomp_target_task_fn, omp_target_alloc, omp_target_free,
6826 omp_target_is_present, omp_target_memcpy,
6827 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
6828 omp_target_associate_ptr, omp_target_disassociate_ptr,
6829 gomp_load_plugin_for_device): New functions.
6830 * task.c: Include gomp-constants.h. Include taskloop.c
6831 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
6832 (gomp_task_handle_depend): New function.
6833 (GOMP_task): Use it. Add priority argument. Use
6834 gomp-constant.h constants instead of hardcoded numbers.
6835 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
6836 (gomp_create_target_task): New function.
6837 (verify_children_queue, verify_taskgroup_queue,
6838 verify_task_queue): New functions.
6839 (gomp_task_run_pre): Call verify_*_queue functions.
6840 If an upcoming tied task is about to leave the sibling or
6841 taskgroup queues in an invalid state, adjust appropriately.
6842 Remove taskgroup argument. Add comments.
6843 (gomp_task_run_post_handle_dependers): Add comments.
6844 (gomp_task_run_post_remove_parent): Likewise.
6845 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
6846 (GOMP_taskwait): Likewise. Add comments.
6847 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
6848 problem such that the first non parent_depends_on task does not
6849 end up at the end of the children queue.
6850 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
6851 GOMP_TASK_UNDEFERRED.
6852 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
6853 * taskloop.c: New file.
6854 * testsuite/lib/libgomp.exp
6855 (check_effective_target_offload_device_nonshared_as): New proc.
6856 * testsuite/libgomp.c/affinity-2.c: New test.
6857 * testsuite/libgomp.c/doacross-1.c: New test.
6858 * testsuite/libgomp.c/doacross-2.c: New test.
6859 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
6860 Add map clause to target.
6861 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
6862 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
6863 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
6864 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
6865 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
6867 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
6868 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
6869 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
6870 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
6871 not defined. Use those where needed.
6872 * testsuite/libgomp.c/for-4.c: New test.
6873 * testsuite/libgomp.c/for-5.c: New test.
6874 * testsuite/libgomp.c/for-6.c: New test.
6875 * testsuite/libgomp.c/linear-1.c: New test.
6876 * testsuite/libgomp.c/ordered-4.c: New test.
6877 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
6878 only allowed on the loop iterator.
6879 * testsuite/libgomp.c/pr66199-3.c: New test.
6880 * testsuite/libgomp.c/pr66199-4.c: New test.
6881 * testsuite/libgomp.c/reduction-7.c: New test.
6882 * testsuite/libgomp.c/reduction-8.c: New test.
6883 * testsuite/libgomp.c/reduction-9.c: New test.
6884 * testsuite/libgomp.c/reduction-10.c: New test.
6885 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
6887 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
6888 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
6889 * testsuite/libgomp.c/target-11.c: New test.
6890 * testsuite/libgomp.c/target-12.c: New test.
6891 * testsuite/libgomp.c/target-13.c: New test.
6892 * testsuite/libgomp.c/target-14.c: New test.
6893 * testsuite/libgomp.c/target-15.c: New test.
6894 * testsuite/libgomp.c/target-16.c: New test.
6895 * testsuite/libgomp.c/target-17.c: New test.
6896 * testsuite/libgomp.c/target-18.c: New test.
6897 * testsuite/libgomp.c/target-19.c: New test.
6898 * testsuite/libgomp.c/target-20.c: New test.
6899 * testsuite/libgomp.c/target-21.c: New test.
6900 * testsuite/libgomp.c/target-22.c: New test.
6901 * testsuite/libgomp.c/target-23.c: New test.
6902 * testsuite/libgomp.c/target-24.c: New test.
6903 * testsuite/libgomp.c/target-25.c: New test.
6904 * testsuite/libgomp.c/target-26.c: New test.
6905 * testsuite/libgomp.c/target-27.c: New test.
6906 * testsuite/libgomp.c/taskloop-1.c: New test.
6907 * testsuite/libgomp.c/taskloop-2.c: New test.
6908 * testsuite/libgomp.c/taskloop-3.c: New test.
6909 * testsuite/libgomp.c/taskloop-4.c: New test.
6910 * testsuite/libgomp.c++/ctor-13.C: New test.
6911 * testsuite/libgomp.c++/doacross-1.C: New test.
6912 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
6913 Replace offload_device with offload_device_nonshared_as.
6914 * testsuite/libgomp.c++/for-12.C: New test.
6915 * testsuite/libgomp.c++/for-13.C: New test.
6916 * testsuite/libgomp.c++/for-14.C: New test.
6917 * testsuite/libgomp.c++/linear-1.C: New test.
6918 * testsuite/libgomp.c++/member-1.C: New test.
6919 * testsuite/libgomp.c++/member-2.C: New test.
6920 * testsuite/libgomp.c++/member-3.C: New test.
6921 * testsuite/libgomp.c++/member-4.C: New test.
6922 * testsuite/libgomp.c++/member-5.C: New test.
6923 * testsuite/libgomp.c++/ordered-1.C: New test.
6924 * testsuite/libgomp.c++/reduction-5.C: New test.
6925 * testsuite/libgomp.c++/reduction-6.C: New test.
6926 * testsuite/libgomp.c++/reduction-7.C: New test.
6927 * testsuite/libgomp.c++/reduction-8.C: New test.
6928 * testsuite/libgomp.c++/reduction-9.C: New test.
6929 * testsuite/libgomp.c++/reduction-10.C: New test.
6930 * testsuite/libgomp.c++/reference-1.C: New test.
6931 * testsuite/libgomp.c++/simd14.C: New test.
6932 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
6933 * testsuite/libgomp.c++/target-5.C: New test.
6934 * testsuite/libgomp.c++/target-6.C: New test.
6935 * testsuite/libgomp.c++/target-7.C: New test.
6936 * testsuite/libgomp.c++/target-8.C: New test.
6937 * testsuite/libgomp.c++/target-9.C: New test.
6938 * testsuite/libgomp.c++/target-10.C: New test.
6939 * testsuite/libgomp.c++/target-11.C: New test.
6940 * testsuite/libgomp.c++/target-12.C: New test.
6941 * testsuite/libgomp.c++/taskloop-1.C: New test.
6942 * testsuite/libgomp.c++/taskloop-2.C: New test.
6943 * testsuite/libgomp.c++/taskloop-3.C: New test.
6944 * testsuite/libgomp.c++/taskloop-4.C: New test.
6945 * testsuite/libgomp.c++/taskloop-5.C: New test.
6946 * testsuite/libgomp.c++/taskloop-6.C: New test.
6947 * testsuite/libgomp.c++/taskloop-7.C: New test.
6948 * testsuite/libgomp.c++/taskloop-8.C: New test.
6949 * testsuite/libgomp.c++/taskloop-9.C: New test.
6950 * testsuite/libgomp.fortran/affinity1.f90: New test.
6951 * testsuite/libgomp.fortran/affinity2.f90: New test.
6953 2015-10-13 Tom de Vries <tom@codesourcery.com>
6955 PR tree-optimization/67476
6956 * testsuite/libgomp.c/autopar-3.c: New test.
6957 * testsuite/libgomp.c/autopar-4.c: New test.
6958 * testsuite/libgomp.c/autopar-5.c: New test.
6959 * testsuite/libgomp.c/autopar-6.c: New test.
6960 * testsuite/libgomp.c/autopar-7.c: New test.
6961 * testsuite/libgomp.c/autopar-8.c: New test.
6963 2015-10-12 James Norris <jnorris@codesourcery.com>
6965 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
6968 2015-10-09 David Malcolm <dmalcolm@redhat.com>
6970 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
6973 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
6975 * oacc-ptx.h: Remove file, moving its content into...
6976 * config/nvptx/fortran.c: ... here...
6977 * config/nvptx/oacc-init.c: ..., here...
6978 * config/nvptx/oacc-parallel.c: ..., and here.
6979 * config/nvptx/openacc.f90: New file.
6980 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
6981 (link_ptx): Don't link in predefined bits of PTX code.
6983 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
6984 Bernd Schmidt <bernds@codesourcery.com>
6986 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
6987 (struct targ_ptx_obj): New.
6988 (nvptx_tdata): Move earlier, change data format.
6989 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
6991 (GOMP_OFFLOAD_load_image): Adjust.
6993 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
6995 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
6996 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6997 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6998 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6999 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7000 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7001 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7002 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7003 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7004 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7005 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7006 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7007 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7008 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7009 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7010 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7011 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7012 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7013 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7014 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7015 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7016 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7017 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7018 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7019 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7020 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7021 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7022 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7023 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7024 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7025 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7026 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7027 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7028 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7029 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7030 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7031 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7032 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7033 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7034 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7035 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7036 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7037 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7038 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7039 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7040 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7041 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7042 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7043 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7044 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7045 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7046 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7047 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7048 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7049 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
7050 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7051 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7052 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
7053 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
7054 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
7055 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
7056 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
7057 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7059 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7061 * oacc-init.c (acc_on_device): Force optimization level.
7063 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7065 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
7066 (cuda_errlist): Delete.
7067 (cuda_error): Reimplement.
7069 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
7071 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
7073 * libgomp.map (GOACC_parallel_keyed): New.
7074 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
7076 (GOACC_parallel_keyed): New interface. Lose geometry arguments
7077 and take keyed varargs list. Adjust call to exec_func.
7078 (GOACC_parallel): Force host fallback.
7079 * libgomp_g.h (GOACC_parallel): Remove.
7080 (GOACC_parallel_keyed): Declare.
7081 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
7082 (struct targ_gn_descriptor): Replace name field with launch field.
7083 (nvptx_exec): Lose separate geometry args, take array. Process
7084 dynamic dimensions and adjust.
7085 (struct nvptx_tdata): Replace fn_names field with fn_descs.
7086 (GOMP_OFFLOAD_load_image): Adjust for change in function table
7088 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
7090 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
7093 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
7096 * oacc-int.h (goacc_host_init): Add declaration.
7097 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
7098 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
7100 2015-09-08 Aditya Kumar <hiraditya@msn.com>
7101 Sebastian Pop <s.pop@samsung.com>
7103 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
7105 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
7106 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
7107 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
7108 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
7109 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
7111 2015-09-03 Jakub Jelinek <jakub@redhat.com>
7113 * configure.tgt: Add missing ;; in between nvptx and rtems
7116 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7118 * config/posix/pool.h (gomp_adjust_thread_attr): New.
7119 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
7120 (gomp_thread_pool_reservoir): Add priority member.
7121 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
7123 (parse_thread_pools): Likewise.
7124 * team.c (gomp_team_start): Call configuration provided
7125 gomp_adjust_thread_attr(). Destroy thread attributes if
7127 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
7129 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7131 * config/posix/pool.h: New.
7132 * config/rtems/pool.h: Likewise.
7133 * config/rtems/proc.c: Likewise.
7134 * libgomp.h (gomp_thread_destructor): Declare.
7135 * team.c: Include configuration provided "pool.h".
7136 (gomp_get_thread_pool): Define in configuration.
7137 (gomp_team_end): Call configuration defined
7138 gomp_release_thread_pool().
7140 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7142 * config/rtems/bar.c: New.
7143 * config/rtems/bar.h: Likewise.
7144 * config/rtems/mutex.c: Likewise.
7145 * config/rtems/mutex.h: Likewise.
7146 * config/rtems/sem.c: Likewise.
7147 * config/rtems/sem.h: Likewise.
7148 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
7149 <sys/lock.h> header file.
7150 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
7151 supported by Newlib.
7152 * configure: Regenerate.
7154 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
7156 * team.c (gomp_new_thread_pool): Delete and move content to ...
7157 (gomp_get_thread_pool): ... new function. Allocate and
7158 initialize thread pool on demand.
7159 (get_last_team): Use gomp_get_thread_pool().
7160 (gomp_team_start): Delete thread pool initialization.
7162 2015-09-03 Tom de Vries <tom@codesourcery.com>
7164 PR tree-optimization/65637
7165 * testsuite/libgomp.c/autopar-2.c: New test.
7167 2015-08-29 Tom de Vries <tom@codesourcery.com>
7169 PR tree-optimization/46193
7170 * testsuite/libgomp.c/pr46193.c: New test.
7172 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
7175 * libgomp.map: Add 4.0.2 version.
7176 * target.c (offload_image_descr): Add version field.
7177 (gomp_load_image_to_device): Add version argument. Adjust plugin
7178 call. Improve load mismatch diagnostic.
7179 (gomp_unload_image_from_device): Add version argument. Adjust plugin
7181 (GOMP_offload_regster): Make stub function, move bulk to ...
7182 (GOMP_offload_register_ver): ... here. Process version argument.
7183 (GOMP_offload_unregister): Make stub function, move bulk to ...
7184 (GOMP_offload_unregister_ver): ... here. Process version argument.
7185 (gomp_init_device): Process version field.
7186 (gomp_unload_device): Process version field.
7187 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
7188 macros. Check plugin version.
7189 * libgomp.h (gomp_device_descr): Add version function field. Adjust
7190 loader and unloader types.
7191 * oacc-host.c: Include gomp-constants.h.
7192 (host_version): New.
7193 (host_load_image, host_unload_image): Adjust.
7194 (host_dispatch): Add host_version.
7195 * plugin/plugin-nvptx.c: Include gomp-constants.h.
7196 (GOMP_OFFLOAD_version): New.
7197 (GOMP_OFFLOAD_load_image): Add version arg and check it.
7198 (GOMP_OFFLOAD_unload_image): Likewise.
7199 * plugin/plugin-host.c: Include gomp-constants.h.
7200 (GOMP_OFFLOAD_version): New.
7201 (GOMP_OFFLOAD_load_image): Add version arg.
7202 (GOMP_OFFLOAD_unload_image): Likewise.
7204 2015-08-24 Tom de Vries <tom@codesourcery.com>
7206 PR tree-optimization/65468
7207 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
7209 2015-08-24 Tom de Vries <tom@codesourcery.com>
7211 PR tree-optimization/65468
7212 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
7214 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
7218 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
7219 (gomp_iter_guided_next): Idem.
7220 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
7221 (gomp_iter_ull_guided_next): Idem.
7222 * config/linux/wait.h (do_spin): Idem.
7224 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7226 * libgomp-plugin.h (enum offload_target_type): Remove
7227 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
7228 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
7229 * openacc.h (enum acc_device_t): Likewise.
7230 * openacc_lib.h: Likewise.
7231 * oacc-init.c (name_of_acc_device_t): Don't handle it.
7232 (acc_on_device): Just use __builtin_acc_on_device.
7233 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
7234 of acc_on_device builtin.
7235 * plugin/plugin-host.h: Remove file.
7236 * plugin/plugin-host.c: Likewise, but salvage some content into...
7237 * oacc-host.c: ... this file.
7238 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
7239 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
7240 * Makefile.in: Regenerate.
7241 * configure: Likewise.
7242 * testsuite/lib/libgomp.exp
7243 (check_effective_target_openacc_host_nonshm_selected): Remove.
7244 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
7245 ACC_DEVICE_TYPE=host_nonshm.
7246 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7247 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7248 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
7249 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
7250 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
7251 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7253 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7254 Jakub Jelinek <jakub@redhat.com>
7256 * config/nvptx/affinity.c: New file.
7257 * config/nvptx/alloc.c: Likewise.
7258 * config/nvptx/bar.c: Likewise.
7259 * config/nvptx/barrier.c: Likewise.
7260 * config/nvptx/critical.c: Likewise.
7261 * config/nvptx/env.c: Likewise.
7262 * config/nvptx/error.c: Likewise.
7263 * config/nvptx/fortran.c: Likewise.
7264 * config/nvptx/iter.c: Likewise.
7265 * config/nvptx/iter_ull.c: Likewise.
7266 * config/nvptx/libgomp-plugin.c: Likewise.
7267 * config/nvptx/lock.c: Likewise.
7268 * config/nvptx/loop.c: Likewise.
7269 * config/nvptx/loop_ull.c: Likewise.
7270 * config/nvptx/mutex.c: Likewise.
7271 * config/nvptx/oacc-async.c: Likewise.
7272 * config/nvptx/oacc-cuda.c: Likewise.
7273 * config/nvptx/oacc-host.c: Likewise.
7274 * config/nvptx/oacc-init.c: Likewise.
7275 * config/nvptx/oacc-mem.c: Likewise.
7276 * config/nvptx/oacc-parallel.c: Likewise.
7277 * config/nvptx/oacc-plugin.c: Likewise.
7278 * config/nvptx/omp-lock.h: Likewise.
7279 * config/nvptx/ordered.c: Likewise.
7280 * config/nvptx/parallel.c: Likewise.
7281 * config/nvptx/proc.c: Likewise.
7282 * config/nvptx/ptrlock.c: Likewise.
7283 * config/nvptx/sections.c: Likewise.
7284 * config/nvptx/sem.c: Likewise.
7285 * config/nvptx/single.c: Likewise.
7286 * config/nvptx/splay-tree.c: Likewise.
7287 * config/nvptx/target.c: Likewise.
7288 * config/nvptx/task.c: Likewise.
7289 * config/nvptx/team.c: Likewise.
7290 * config/nvptx/time.c: Likewise.
7291 * config/nvptx/work.c: Likewise.
7292 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
7293 * configure: Regenerate.
7294 * configure.tgt (config_path): Set to "nvptx" for target
7297 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7299 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
7301 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
7303 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
7304 (cuda_errlist): Constify.
7305 (errmsg): Move into ...
7306 (cuda_error): ... here. Make smaller.
7307 (_XSTR, _STR): Delete.
7308 (cuda_synames): Delete.
7309 (verify_device_library): Delete.
7310 (nvptx_init): Don't call it.
7312 2015-07-28 Tom de Vries <tom@codesourcery.com>
7314 * testsuite/libgomp.c/uns-outer-4.c: New test.
7316 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
7318 * testsuite/libgomp.c/pr66714.c: New test.
7320 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
7323 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
7324 (fib_ref): New function.
7325 (fib): Correct corner cases in the recursion.
7326 (main): Replace the non-simd loop with fib_ref call.
7327 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
7329 (fibonacci): Lower the parameter N to 30. Correct accordingly check
7330 for the last array element value. Replace the non-simd loop with
7331 fib_ref call. Remove redundant b_ref array. Remove the comparison
7332 of the last array element with according Fibonacci sequence element.
7333 (fib): Correct corner cases in the recursion.
7335 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
7337 * target.c (gomp_offload_image_to_device): Rename to ...
7338 (gomp_load_image_to_device): ... here.
7339 (GOMP_offload_register): Adjust call.
7340 (gomp_init_device): Likewise.
7341 (gomp_unload_image_from_device): New. Broken out of ...
7342 (GOMP_offload_unregister): ... here. Call it.
7343 (gomp_unload_device): New.
7344 * libgomp.h (gomp_unload_device): Declare.
7345 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
7348 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
7350 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
7352 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
7354 (goacc_waits): Move !num_waits handling to ...
7355 (GOACC_wait): ... here, the only caller that might have zero waits.
7357 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
7358 (struct ptx_image_data): Move earlier, add fns field.
7359 (struct ptx_device): Add images and image_lock fields.
7360 (ptx_images, ptx_image_lock): Delete.
7361 (nvptx_open_device): Initialize images and image_lock fields.
7362 (nvptx_close_device): Destroy image_lock.
7363 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
7364 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
7367 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7369 * target.c (GOMP_offload_register): Use int for device type arg.
7370 (GOMP_offload_unregister): Likewise.
7372 * target.c (struct_offload_image_descr): Constify host_table.
7373 (gomp_offload_image_to_device): Likewise.
7374 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
7376 * libgomp.h (gomp_device_descr): Constify target data arguments.
7377 * target.c (struct offload_image_descr): Constify target_data.
7378 (gomp_offload_image_to_device): Likewise.
7379 (GOMP_offload_register): Likewise.
7380 (GOMP_offload_unregister): Likewise.
7381 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
7382 GOMP_OFFLOAD_unload_image): Constify target data.
7383 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
7384 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
7386 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
7388 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
7389 Workaround driver library const error.
7390 (struct nvptx_tdata, nvptx_tdata_t): New.
7391 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
7394 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
7396 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
7397 of EPS parameter from integer to real.
7398 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
7399 type of EPS parameter from integer to real.
7401 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
7403 * team.c (get_last_team): New.
7404 (gomp_new_team): Recycle last non-nested team if possible.
7405 (gomp_team_end): Move team work share list free lock destruction
7407 (free_team): ... here.
7409 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
7411 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
7412 and ref from int to double. Replaced their comparison with
7413 an inequality of their difference and EPS.
7414 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
7415 comparison of pri and a reference number with an inequality of their
7417 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
7418 the comparison of sum and sum_ref with an inequality of their
7420 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
7421 the comparison of pri and a reference number with an inequality of
7422 their difference and EPS.
7424 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
7426 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
7427 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
7428 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
7429 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
7430 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
7431 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
7432 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
7433 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
7434 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
7435 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
7436 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
7437 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
7438 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
7440 (vec_mult): Likewise. Add #pragma omp taskwait.
7441 (main): Adjust caller.
7442 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
7443 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
7444 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
7445 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
7446 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
7447 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
7448 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
7449 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
7450 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
7451 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
7452 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
7453 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
7454 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
7455 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
7456 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
7457 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
7458 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
7459 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
7460 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
7461 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
7462 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
7463 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
7464 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
7465 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
7466 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
7467 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
7468 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
7469 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
7470 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
7471 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
7472 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
7473 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
7474 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
7475 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
7476 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
7477 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
7478 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
7479 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
7480 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
7481 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
7482 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
7483 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
7484 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
7485 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
7486 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
7487 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
7488 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
7489 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
7490 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
7491 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
7492 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
7493 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
7494 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
7495 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
7496 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
7497 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
7498 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
7499 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
7500 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
7501 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
7502 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
7503 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
7504 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
7505 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
7506 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
7507 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
7508 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
7509 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
7510 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
7511 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
7512 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
7513 (vec_mult): Add !$omp taskwait.
7514 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
7515 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
7516 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
7517 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
7518 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
7519 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
7520 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
7521 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
7522 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
7523 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
7524 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
7525 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
7526 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
7527 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
7528 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
7529 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
7530 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
7531 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
7532 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
7533 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
7534 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
7535 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
7536 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
7537 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
7538 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
7539 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
7540 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
7541 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
7542 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
7543 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
7544 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
7545 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
7546 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
7547 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
7548 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
7549 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
7550 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
7551 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
7552 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
7553 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
7554 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
7555 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
7556 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
7557 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
7558 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
7559 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
7560 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
7561 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
7562 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
7563 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
7564 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
7565 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
7566 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
7567 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
7568 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
7569 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
7570 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
7571 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
7572 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
7573 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
7574 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
7575 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
7576 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
7577 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
7578 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
7579 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
7580 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
7582 2015-07-10 Tom de Vries <tom@codesourcery.com>
7584 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
7585 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
7587 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
7590 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
7591 in a 64-bit configuration.
7592 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
7593 offloading testing if no such device is available.
7594 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7595 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7597 2015-07-08 Tom de Vries <tom@codesourcery.com>
7599 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
7601 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7603 2015-07-07 Tom de Vries <tom@codesourcery.com>
7605 PR tree-optimization/66642
7606 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
7607 iteration count case.
7608 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
7609 function, factor out of ...
7610 (main): ... here. Test low iteration count case.
7612 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
7614 * libgomp.h (gomp_thread_pool): Comment last_team field.
7616 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
7618 * testsuite/libgomp.c++/pr66702-1.C: Require
7619 vect_simd_clones effective target.
7620 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
7622 2015-06-30 Tom de Vries <tom@codesourcery.com>
7624 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7625 already set. Use DEFAULT_CFLAGS in dg-runtest.
7626 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
7629 2015-06-30 Tom de Vries <tom@codesourcery.com>
7631 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7632 already set. Use DEFAULT_CFLAGS in dg-runtest.
7633 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
7634 * testsuite/libgomp.c++/pr64824.C: Same.
7635 * testsuite/libgomp.c++/pr64868.C: Same.
7636 * testsuite/libgomp.c++/pr66199-1.C: Same.
7637 * testsuite/libgomp.c++/pr66199-2.C: Same.
7638 * testsuite/libgomp.c++/target-2.C: Same.
7639 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
7640 -std=<standard> option.
7641 * testsuite/libgomp.c++/udr-11.C: Same.
7642 * testsuite/libgomp.c++/udr-12.C: Same.
7643 * testsuite/libgomp.c++/udr-13.C: Same.
7644 * testsuite/libgomp.c++/udr-14.C: Same.
7645 * testsuite/libgomp.c++/udr-15.C: Same.
7646 * testsuite/libgomp.c++/udr-16.C: Same.
7647 * testsuite/libgomp.c++/udr-17.C: Same.
7648 * testsuite/libgomp.c++/udr-18.C: Same.
7649 * testsuite/libgomp.c++/udr-19.C: Same.
7650 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
7651 * testsuite/libgomp.c++/simd-1.C: Same.
7652 * testsuite/libgomp.c++/simd-2.C: Same.
7653 * testsuite/libgomp.c++/simd-3.C: Same.
7654 * testsuite/libgomp.c++/simd-4.C: Same.
7655 * testsuite/libgomp.c++/simd-5.C: Same.
7656 * testsuite/libgomp.c++/simd-6.C: Same.
7657 * testsuite/libgomp.c++/simd-7.C: Same.
7658 * testsuite/libgomp.c++/simd-8.C: Same.
7659 * testsuite/libgomp.c++/simd-9.C: Same.
7660 * testsuite/libgomp.c++/simd10.C: Same.
7661 * testsuite/libgomp.c++/simd11.C: Same.
7662 * testsuite/libgomp.c++/simd12.C: Same.
7663 * testsuite/libgomp.c++/simd13.C: Same.
7665 2015-06-30 Jakub Jelinek <jakub@redhat.com>
7668 * testsuite/libgomp.c++/pr66702-1.C: New test.
7669 * testsuite/libgomp.c++/pr66702-2.C: New test.
7671 2015-06-30 Tom de Vries <tom@codesourcery.com>
7673 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
7674 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
7675 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
7676 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
7678 2015-06-30 Tom de Vries <tom@codesourcery.com>
7680 PR tree-optimization/66652
7681 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
7682 using restrict pointers.
7683 (main): Add arguments to calls to f.
7684 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7686 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
7688 * configure.ac: Fix check for header <sys/sysctl.h>.
7689 * configure: Regenerate.
7690 * config.h.in: Likewise.
7692 2015-06-23 Tom de Vries <tom@codesourcery.com>
7694 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
7696 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
7698 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
7700 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
7704 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
7705 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7707 2015-06-15 Tom de Vries <tom@codesourcery.com>
7709 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
7710 dg-additional-options for any remaining options.
7711 * testsuite/libgomp.c/atomic-2.c: Same.
7712 * testsuite/libgomp.c/atomic-4.c: Same.
7713 * testsuite/libgomp.c/atomic-5.c: Same.
7714 * testsuite/libgomp.c/atomic-6.c: Same.
7715 * testsuite/libgomp.c/autopar-1.c: Same.
7716 * testsuite/libgomp.c/copyin-1.c: Same.
7717 * testsuite/libgomp.c/copyin-2.c: Same.
7718 * testsuite/libgomp.c/copyin-3.c: Same.
7719 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
7720 * testsuite/libgomp.c/nestedfn-5.c: Same.
7721 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
7722 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
7723 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
7724 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7725 * testsuite/libgomp.c/pr32362-1.c: Same.
7726 * testsuite/libgomp.c/pr32362-2.c: Same.
7727 * testsuite/libgomp.c/pr32362-3.c: Same.
7728 * testsuite/libgomp.c/pr39591-1.c: Same.
7729 * testsuite/libgomp.c/pr39591-2.c: Same.
7730 * testsuite/libgomp.c/pr39591-3.c: Same.
7731 * testsuite/libgomp.c/pr58392.c: Same.
7732 * testsuite/libgomp.c/pr58756.c: Same.
7733 * testsuite/libgomp.c/simd-1.c: Same.
7734 * testsuite/libgomp.c/simd-10.c: Same.
7735 * testsuite/libgomp.c/simd-11.c: Same.
7736 * testsuite/libgomp.c/simd-12.c: Same.
7737 * testsuite/libgomp.c/simd-13.c: Same.
7738 * testsuite/libgomp.c/simd-14.c: Same.
7739 * testsuite/libgomp.c/simd-15.c: Same.
7740 * testsuite/libgomp.c/simd-2.c: Same.
7741 * testsuite/libgomp.c/simd-3.c: Same.
7742 * testsuite/libgomp.c/simd-4.c: Same.
7743 * testsuite/libgomp.c/simd-5.c: Same.
7744 * testsuite/libgomp.c/simd-6.c: Same.
7745 * testsuite/libgomp.c/simd-7.c: Same.
7746 * testsuite/libgomp.c/simd-8.c: Same.
7747 * testsuite/libgomp.c/simd-9.c: Same.
7749 2015-06-15 Tom de Vries <tom@codesourcery.com>
7751 * testsuite/libgomp.c/pr35625.c: Fix typo.
7753 2015-06-15 Tom de Vries <tom@codesourcery.com>
7755 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
7757 * testsuite/libgomp.c/atomic-3.c: Same.
7758 * testsuite/libgomp.c/debug-1.c: Same.
7759 * testsuite/libgomp.c/nqueens-1.c: Same.
7760 * testsuite/libgomp.c/pr26171.c: Same.
7761 * testsuite/libgomp.c/pr48591.c: Same.
7762 * testsuite/libgomp.c/pr64824.c: Same.
7763 * testsuite/libgomp.c/pr64868.c: Same.
7764 * testsuite/libgomp.c/pr66133.c: Same.
7765 * testsuite/libgomp.c/pr66199-1.c: Same.
7766 * testsuite/libgomp.c/pr66199-2.c: Same.
7767 * testsuite/libgomp.c/target-8.c: Same.
7769 2015-06-15 Tom de Vries <tom@codesourcery.com>
7771 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
7773 * testsuite/libgomp.c/for-1.c: Same.
7774 * testsuite/libgomp.c/for-2.c: Same.
7775 * testsuite/libgomp.c/for-3.c: Same.
7776 * testsuite/libgomp.c/pr35625.c: Same.
7777 * testsuite/libgomp.c/pr39154.c: Same.
7778 * testsuite/libgomp.c/simd-16.c: Same.
7779 * testsuite/libgomp.c/simd-17.c: Same.
7781 2015-06-13 Tom de Vries <tom@codesourcery.com>
7783 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
7785 2015-06-13 Tom de Vries <tom@codesourcery.com>
7787 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
7788 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7789 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
7791 (main): Use N instead of hardcoded constants.
7793 2015-06-05 Tom de Vries <tom@codesourcery.com>
7795 merge from gomp4 branch:
7796 2015-05-28 Tom de Vries <tom@codesourcery.com>
7798 PR tree-optimization/65443
7799 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
7800 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
7801 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
7803 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7805 * testsuite/libgomp.graphite/bounds.c: Adjust for
7806 cleanup-tree-dump removal.
7807 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
7808 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7809 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7810 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7811 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7812 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7813 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7814 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7815 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7816 * testsuite/libgomp.graphite/pr41118.c: Likewise.
7818 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
7820 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
7821 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
7822 (futex_wake) [!__x86_64__]: Ditto.
7824 2015-05-28 Julian Brown <julian@codesourcery.com>
7826 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
7827 function comment. Only call gomp_fatal if new argument is true.
7828 (acc_dev_num_out_of_range): New function.
7829 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
7830 acc_dev_num_out_of_range as appropriate.
7831 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7832 (acc_get_device_num, acc_set_device_num): Update calls to
7834 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
7837 2015-05-28 Julian Brown <julian@codesourcery.com>
7840 * oacc-init.c (plugin/plugin-host.h): Include.
7841 (acc_on_device): Check whether we're in an offloaded region for
7843 plugin. Don't use __builtin_acc_on_device.
7844 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
7845 nonshm_exec flag in thread-local data.
7846 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
7847 data for host_nonshm plugin.
7848 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
7849 for host_nonshm plugin.
7850 * plugin/plugin-host.h: New.
7852 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7854 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
7856 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7858 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
7860 (FUTEX_PRIVATE_FLAG): Remove L suffix.
7861 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
7864 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7866 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
7868 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
7870 * target.c (gomp_map_pointer): New function abstracting out
7871 GOMP_MAP_POINTER handling.
7872 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
7875 2015-05-19 Jakub Jelinek <jakub@redhat.com>
7878 * testsuite/libgomp.c/pr66199-1.c: New test.
7879 * testsuite/libgomp.c/pr66199-2.c: New test.
7880 * testsuite/libgomp.c++/pr66199-1.C: New test.
7881 * testsuite/libgomp.c++/pr66199-2.C: New test.
7882 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
7883 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
7885 2015-05-19 Julian Brown <julian@codesourcery.com>
7887 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
7890 2015-05-13 Jakub Jelinek <jakub@redhat.com>
7893 * testsuite/libgomp.c/pr66133.c: New test.
7895 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
7897 * Makefile.in: Regenerated with automake-1.11.6.
7898 * aclocal.m4: Likewise.
7899 * config.h.in: Likewise.
7900 * configure: Likewise.
7901 * testsuite/Makefile.in: Likewise.
7903 2015-05-08 Jason Merrill <jason@redhat.com>
7905 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
7908 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
7910 2015-05-06 Julian Brown <julian@codesourcery.com>
7912 * oacc-init.c (acc_device_lock): Add explanatory comment.
7913 (resolve_device): Add comment about locking requirement.
7914 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
7915 gomp_init_device and gomp_fini_device calls.
7916 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7917 (acc_get_device_num, acc_set_device_num): Add locking around
7918 resolve_device and gomp_init_device calls.
7920 2015-05-06 Julian Brown <julian@codesourcery.com>
7922 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
7923 goacc_thread_lock on error paths.
7924 * oacc-mem.c (lookup_host): Remove locking from function. Note
7925 locking requirement for caller in function comment.
7926 (lookup_dev): Likewise.
7927 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
7928 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
7929 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7932 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
7936 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
7937 don't expect "0x" prefix for "%p" format specifier, don't expect
7938 "(nil)" for NULL pointer.
7939 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7940 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7941 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7942 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7943 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7944 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7945 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7946 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7947 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7948 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7949 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7950 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7951 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7952 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7953 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7954 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7955 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7956 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7957 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7958 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7959 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7960 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7961 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7962 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7963 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7964 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7965 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7966 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7967 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
7968 accurately specify what we're looking for.
7969 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7970 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7971 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7972 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7973 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7975 2015-04-30 James Norris <jnorris@codesourcery.com>
7978 * testsuite/lib/libgomp.exp
7979 (check_effective_target_openacc_host_selected)
7980 (check_effective_target_openacc_host_nonshm_selected): New
7982 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
7984 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7985 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7986 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7987 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7988 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7989 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7990 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7991 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7992 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7993 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7994 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7995 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7996 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7997 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7998 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7999 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8000 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8001 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8002 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8003 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8004 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8005 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8006 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8007 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8008 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8009 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8010 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8011 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8012 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8013 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8014 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8015 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8016 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8017 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8018 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8019 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8020 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8021 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8022 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8023 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8024 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8025 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8026 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8028 2015-04-08 Julian Brown <julian@codesourcery.com>
8030 * libgomp.h (target_mem_desc: Remove mem_map field.
8031 (acc_dispatch_t): Remove open_device_func, close_device_func,
8032 get_device_num_func, set_device_num_func, target_data members.
8033 Change create_thread_data_func argument to device number instead of
8035 * oacc-async.c (assert.h): Include.
8036 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
8037 (acc_wait_all, acc_wait_all_async): Use current host thread's
8038 active device, not base_dev.
8039 * oacc-cuda.c (acc_get_current_cuda_device)
8040 (acc_get_current_cuda_context, acc_get_cuda_stream)
8041 (acc_set_cuda_stream): Likewise.
8042 * oacc-host.c (host_dispatch): Don't set open_device_func,
8043 close_device_func, get_device_num_func or set_device_num_func.
8044 * oacc-init.c (base_dev, init_key): Remove.
8045 (cached_base_dev): New.
8046 (name_of_acc_device_t): New.
8047 (acc_init_1): Initialise default-numbered device, not zeroth.
8048 (acc_shutdown_1): Close all devices of a given type.
8049 (goacc_destroy_thread): Don't use base_dev.
8050 (lazy_open, lazy_init, lazy_init_and_open): Remove.
8051 (goacc_attach_host_thread_to_device): New.
8052 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
8053 (acc_get_num_devices): Don't use base_dev.
8054 (acc_set_device_type): Reimplement.
8055 (acc_get_device_type): Don't use base_dev.
8056 (acc_get_device_num): Tweak logic.
8057 (acc_set_device_num): Likewise.
8058 (acc_on_device): Use acc_get_device_type.
8059 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
8060 (goacc_lazy_initialize): Reimplement with acc_init and
8061 goacc_attach_host_thread_to_device.
8062 * oacc-int.h (goacc_thread): Add base_dev field.
8063 (base_dev): Remove extern declaration.
8064 (goacc_attach_host_thread_to_device): Add prototype.
8065 * oacc-mem.c (acc_malloc): Use current thread's device instead of
8067 (acc_free): Likewise.
8068 (acc_memcpy_to_device): Likewise.
8069 (acc_memcpy_from_device): Likewise.
8070 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
8071 goacc_lazy_initialize (throughout).
8072 (GOACC_parallel): Use tgt_offset to locate target functions.
8073 * target.c (gomp_map_vars): Don't set tgt->mem_map.
8074 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
8075 (gomp_load_plugin_for_device): Remove open_device, close_device,
8076 get_device_num, set_device_num openacc hook initialisation. Don't set
8077 openacc.target_data.
8078 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
8079 (GOMP_OFFLOAD_openacc_close_device)
8080 (GOMP_OFFLOAD_openacc_get_device_num)
8081 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
8082 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
8084 * plugin/plugin-nvptx.c (ptx_inited): Remove.
8085 (instantiated_devices, ptx_dev_lock): New.
8086 (struct ptx_image_data): New.
8087 (ptx_devices, ptx_images, ptx_image_lock): New.
8088 (fini_streams_for_device): Reorder cuStreamDestroy call.
8089 (nvptx_get_num_devices): Remove forward declaration.
8090 (nvptx_init): Change return type to bool.
8091 (nvptx_fini): Remove.
8092 (nvptx_attach_host_thread_to_device): New.
8093 (nvptx_open_device): Return struct ptx_device* instead of void*.
8094 (nvptx_close_device): Change argument type to struct ptx_device*,
8095 return type to void.
8096 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
8097 (kernel_target_data, kernel_host_table): Remove static globals.
8098 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
8099 (GOMP_OFFLOAD_init_device): Reimplement.
8100 (GOMP_OFFLOAD_fini_device): Likewise.
8101 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
8102 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
8103 (GOMP_OFFLOAD_host2dev): Use ORD argument.
8104 (GOMP_OFFLOAD_openacc_open_device)
8105 (GOMP_OFFLOAD_openacc_close_device)
8106 (GOMP_OFFLOAD_openacc_set_device_num)
8107 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
8108 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
8112 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
8114 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
8116 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
8117 * libgomp.h (struct gomp_memory_mapping): Remove.
8118 (struct target_mem_desc): Change type of mem_map from
8119 gomp_memory_mapping * to splay_tree_s *.
8120 (struct gomp_device_descr): Remove register_image_func, get_table_func.
8121 Add load_image_func, unload_image_func.
8122 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
8123 Remove offload_regions_registered.
8124 (gomp_init_tables): Remove.
8125 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8127 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
8128 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
8129 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
8130 offload_regions_registered.
8131 Initialize load_image_func, unload_image_func, mem_map.root.
8132 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
8133 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
8134 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
8135 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
8136 gomp_memory_mapping *. Use dev's lock and splay_tree.
8137 (lookup_dev): Use dev's lock.
8138 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
8139 (acc_is_present): Likewise.
8140 (acc_map_data): Likewise.
8141 (acc_unmap_data): Likewise. Use dev's lock.
8142 (present_create_copy): Likewise.
8143 (delete_copyout): Pass dev to lookup_host instead of mem_map.
8144 (update_dev_host): Likewise.
8145 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
8146 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
8147 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
8148 (GOMP_OFFLOAD_get_table): Remove
8149 (GOMP_OFFLOAD_load_image): New function.
8150 (GOMP_OFFLOAD_unload_image): New function.
8151 * target.c (register_lock): New mutex for offload image registration.
8152 (num_devices): Do not guard with PLUGIN_SUPPORT.
8153 (gomp_realloc_unlock): New static function.
8154 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
8156 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
8157 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
8158 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
8160 (gomp_unmap_vars): Likewise.
8161 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
8162 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
8163 (gomp_offload_image_to_device): New static function.
8164 (GOMP_offload_register): Add mutex lock.
8165 Call gomp_offload_image_to_device for all initialized devices.
8166 Replace gomp_realloc with gomp_realloc_unlock.
8167 (GOMP_offload_unregister): New function.
8168 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
8169 get_table_func from the plugin with calls to init_device_func and
8170 gomp_offload_image_to_device.
8171 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
8173 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
8174 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
8175 (GOMP_target_data): Do not call gomp_init_tables.
8176 (GOMP_target_update): Likewise. Remove argument from gomp_update.
8177 (gomp_load_plugin_for_device): Replace register_image and get_table
8178 with load_image and unload_image in DLSYM ().
8179 (gomp_register_images_for_device): Remove function.
8180 (gomp_target_init): Do not initialize current_device.mem_map.*,
8181 current_device.offload_regions_registered.
8182 Remove call to gomp_register_images_for_device.
8183 Do not free offload_images and num_offload_images.
8185 2015-03-30 Jakub Jelinek <jakub@redhat.com>
8188 * testsuite/libgomp.fortran/pr65597.f90: New test.
8190 2015-03-27 Tom de Vries <tom@codesourcery.com>
8193 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
8194 (init, check): New function.
8195 (foo): Change return type to void.
8196 (main): Call init and check.
8198 2015-03-27 Tom de Vries <tom@codesourcery.com>
8201 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
8202 (foo): Use M for non-inner loops to scale down test-case.
8204 2015-03-25 Kai Tietz <ktietz@redhat.com>
8207 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
8208 (GOACC_data_start): Likewise.
8209 * target.c (gomp_map_vars): Likewise.
8211 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
8213 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
8216 2015-03-19 Jakub Jelinek <jakub@redhat.com>
8218 * testsuite/libgomp.c/target-10.c: New test.
8219 * testsuite/libgomp.c++/target-4.C: New test.
8221 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
8223 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
8224 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
8226 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
8228 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
8229 * configure.ac (*-*-rtems*): Assume Pthread is supported.
8230 (pthread.h): Check for this header file.
8231 * configure: Regenerate.
8233 2015-02-25 Tom de Vries <tom@codesourcery.com>
8235 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
8236 (check_reduction_op, check_reduction_macro, max, min):
8238 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
8240 (main): Use new functions.
8242 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
8244 * target.c (gomp_load_plugin_for_device): Use const char * instead of
8245 char * for variables holding dlerror return values.
8248 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
8250 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
8252 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
8253 Cesar Philippidis <cesar@codesourcery.com>
8255 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
8256 GOACC_ctaid, and GOACC_nctaid routines.
8258 2015-02-11 Jakub Jelinek <jakub@redhat.com>
8261 * testsuite/libgomp.c/atomic-18.c: New test.
8262 * testsuite/libgomp.c++/atomic-16.C: New test.
8264 2015-02-04 Jakub Jelinek <jakub@redhat.com>
8268 * testsuite/libgomp.c/pr64824.c: New test.
8269 * testsuite/libgomp.c/pr64868.c: New test.
8270 * testsuite/libgomp.c++/pr64824.C: New test.
8271 * testsuite/libgomp.c++/pr64868.C: New test.
8273 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
8276 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
8277 Link with -lpthread.
8278 * config/aix/plugin-suffix.h: Delete.
8280 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
8283 * configure.tgt (*-*-aix*): Use config_path "aix posix".
8284 (*-*-darwin*): Use config_path "bsd darwin posix".
8285 (*-*-hpux*): Use config_path "hpux posix".
8286 * target.c: Add include of plugin-suffix.h and use
8287 SONAME_SUFFIX macro.
8288 * config/aix/plugin-suffix.h: New file.
8289 * config/darwin/plugin-suffix.h: New file.
8290 * config/hpux/plugin-suffix.h: New file.
8291 * config/posix/plugin-suffix.h: New file.
8293 2015-01-23 Jakub Jelinek <jakub@redhat.com>
8296 * libgomp.c/pr64734.c: New test.
8298 2015-01-23 Tom de Vries <tom@codesourcery.com>
8301 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
8303 2015-01-23 Tom de Vries <tom@codesourcery.com>
8306 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
8309 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
8312 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
8313 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
8314 formal parameter. Update all users.
8315 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
8316 Document unused formal parameter.
8318 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
8320 * oacc-parallel.c: Don't include <alloca.h>.
8321 (GOACC_parallel): Use gomp_alloca instead of alloca.
8323 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
8325 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
8327 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
8328 James Norris <jnorris@codesourcery.com>
8329 Tom de Vries <tom@codesourcery.com>
8330 Julian Brown <julian@codesourcery.com>
8331 Cesar Philippidis <cesar@codesourcery.com>
8332 Nathan Sidwell <nathan@codesourcery.com>
8333 Tobias Burnus <burnus@net-b.de>
8335 * Makefile.am (search_path): Add $(top_srcdir)/../include.
8336 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
8337 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
8338 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
8339 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
8340 Include $(top_srcdir)/plugin/Makefrag.am.
8341 (nodist_libsubinclude_HEADERS): Add openacc.h.
8342 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
8343 openacc.f90, openacc.mod, openacc_kinds.mod.
8344 (omp_lib.mod): Generalize into...
8345 (%.mod): ... this new rule.
8346 (openacc_kinds.mod, openacc.mod): New rules.
8347 * plugin/configfrag.ac: New file.
8348 * configure.ac: Move plugin/offloading support into it. Include
8349 it. Instantiate testsuite/libgomp-test-support.pt.exp.
8350 * plugin/Makefrag.am: New file.
8351 * testsuite/Makefile.am (OFFLOAD_TARGETS)
8352 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
8354 (libgomp-test-support.exp): New rule.
8355 (all-local): Depend on it.
8356 * Makefile.in: Regenerate.
8357 * testsuite/Makefile.in: Regenerate.
8358 * config.h.in: Likewise.
8359 * configure: Likewise.
8360 * configure.tgt: Harden shell syntax.
8361 * env.c: Include "oacc-int.h".
8362 (parse_acc_device_type): New function.
8363 (gomp_debug_var, goacc_device_type, goacc_device_num): New
8365 (initialize_env): Initialize those. Call
8366 goacc_runtime_initialize.
8367 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
8368 (gomp_fatal): Call gomp_vfatal.
8369 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
8370 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
8371 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
8372 (splay_tree_node, splay_tree, splay_tree_key)
8373 (struct target_mem_desc, struct splay_tree_key_s)
8374 (struct gomp_memory_mapping, struct acc_dispatch_t)
8375 (struct gomp_device_descr, gomp_acc_insert_pointer)
8376 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
8377 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
8378 (gomp_free_memmap, gomp_fini_device): New declarations.
8379 (gomp_vdebug, gomp_debug): New macros.
8380 Include "splay-tree.h".
8381 * libgomp.map (OACC_2.0): New symbol version. Use for
8382 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
8383 acc_set_device_type_h_, acc_get_device_type,
8384 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
8385 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
8386 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
8387 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
8388 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
8389 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
8390 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
8391 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
8392 acc_copyin_array_h_, acc_present_or_copyin,
8393 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
8394 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
8395 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
8396 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
8397 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
8398 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
8399 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
8400 acc_update_device, acc_update_device_32_h_,
8401 acc_update_device_64_h_, acc_update_device_array_h_,
8402 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
8403 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
8404 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
8405 acc_is_present_64_h_, acc_is_present_array_h_,
8406 acc_memcpy_to_device, acc_memcpy_from_device,
8407 acc_get_current_cuda_device, acc_get_current_cuda_context,
8408 acc_get_cuda_stream, acc_set_cuda_stream.
8409 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
8410 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
8411 GOACC_update, GOACC_wait, GOACC_get_thread_num,
8412 GOACC_get_num_threads.
8413 (GOMP_PLUGIN_1.0): New symbol version. Use for
8414 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
8415 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
8416 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
8417 GOMP_PLUGIN_acc_thread.
8418 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
8419 environment variable.
8420 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
8421 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
8422 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
8423 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
8424 (splay_tree_remove): New declarations.
8425 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
8426 (splay_tree_remove, splay_tree_lookup): Move into...
8427 * splay-tree.c: ... this new file.
8428 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
8429 (splay_tree_node, splay_tree, splay_tree_key)
8430 (struct target_mem_desc, struct splay_tree_key_s)
8431 (struct gomp_device_descr): Don't declare.
8432 (num_devices_openmp): New variable.
8433 (gomp_get_num_devices ): Use it.
8434 (gomp_init_targets_once): New function.
8435 (gomp_get_num_devices ): Use it.
8436 (get_kind, gomp_copy_from_async, gomp_free_memmap)
8437 (gomp_fini_device, gomp_register_image_for_device): New functions.
8438 (gomp_map_vars): Add devaddrs parameter.
8439 (gomp_update): Add mm parameter.
8440 (gomp_init_device): Move most of it into...
8441 (gomp_init_tables): ... this new function.
8442 (gomp_register_images_for_device): Remove function.
8443 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
8444 Make them hidden instead of static.
8445 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
8446 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
8447 (GOMP_target_end_data, GOMP_target_update)
8448 (gomp_load_plugin_for_device, gomp_target_init): Update for
8450 * oacc-async.c: New file.
8451 * oacc-cuda.c: Likewise.
8452 * oacc-host.c: Likewise.
8453 * oacc-init.c: Likewise.
8454 * oacc-int.h: Likewise.
8455 * oacc-mem.c: Likewise.
8456 * oacc-parallel.c: Likewise.
8457 * oacc-plugin.c: Likewise.
8458 * oacc-plugin.h: Likewise.
8459 * oacc-ptx.h: Likewise.
8460 * openacc.f90: Likewise.
8461 * openacc.h: Likewise.
8462 * openacc_lib.h: Likewise.
8463 * plugin/plugin-host.c: Likewise.
8464 * plugin/plugin-nvptx.c: Likewise.
8465 * libgomp-plugin.c: Likewise.
8466 * libgomp-plugin.h: Likewise.
8467 * libgomp_target.h: Remove file after merging content into the
8468 former file. Update all users.
8469 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
8470 (offload_targets_s, offload_targets_s_openacc): New variables.
8471 (check_effective_target_openacc_nvidia_accel_present)
8472 (check_effective_target_openacc_nvidia_accel_selected): New
8474 (libgomp_init): Update for OpenACC changes.
8475 * testsuite/libgomp-test-support.exp.in: New file.
8476 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
8477 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8478 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8479 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
8480 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
8481 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
8482 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
8483 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
8484 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8485 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
8486 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
8487 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
8488 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
8489 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8490 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
8491 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8492 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8493 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8494 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8495 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8496 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
8497 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8498 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8499 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
8500 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8501 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8502 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8503 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8504 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8505 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8506 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8507 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8508 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8509 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
8510 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
8511 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8512 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
8513 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8514 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
8515 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8516 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8517 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8518 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8519 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8520 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8521 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
8522 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8523 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8524 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8525 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8526 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8527 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8528 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8529 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8530 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8531 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8532 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8533 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8534 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8535 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
8536 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8537 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
8538 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8539 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8540 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8541 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
8542 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
8543 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8544 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8545 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8546 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
8547 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8548 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8549 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8550 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
8551 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
8552 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8553 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8554 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
8555 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
8556 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
8557 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
8558 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8559 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8560 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8561 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
8562 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
8563 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8564 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8565 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
8566 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
8567 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
8568 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
8569 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8570 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8571 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8572 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8573 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
8574 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8575 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8576 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
8577 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
8578 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
8579 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8580 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
8581 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
8582 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
8583 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
8584 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
8585 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8586 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
8587 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8588 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8589 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
8590 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8591 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8592 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
8593 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8594 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
8595 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
8596 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
8597 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
8598 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
8599 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
8600 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8601 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
8602 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8603 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
8604 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
8605 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
8606 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
8607 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
8608 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8609 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
8610 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
8611 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8612 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8613 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8614 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8615 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
8617 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
8618 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
8619 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
8620 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8621 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
8622 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8623 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8624 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8625 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8626 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8627 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8628 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8629 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8630 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
8631 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8632 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
8633 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
8634 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
8635 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
8636 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
8637 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
8638 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8639 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8640 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
8641 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
8642 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
8643 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8644 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8645 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8646 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8647 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8648 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8649 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8650 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8651 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
8652 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
8653 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
8654 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
8655 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
8656 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
8657 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
8658 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
8659 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
8660 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
8661 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
8662 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8663 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
8664 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
8665 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
8666 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8667 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8668 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8669 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8670 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8671 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
8672 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
8673 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
8674 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
8675 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
8676 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
8678 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
8679 Julian Brown <julian@codesourcery.com>
8680 David Malcolm <dmalcolm@redhat.com>
8682 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
8683 to "GNU Offloading and Multi Processing Runtime Library". Change
8685 * configure: Regenerate.
8686 * libgomp.texi: Update.
8688 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
8690 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
8692 * configure: Regenerate.
8694 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
8695 "intelmic" in $offload_targets.
8697 2015-01-05 Jakub Jelinek <jakub@redhat.com>
8699 Update copyright years.
8701 * libgomp.texi: Bump @copying's copyright year.
8703 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8705 * testsuite/lib/libgomp.exp: Load target-utils.exp.
8706 Move load of target-supports.exp earlier.
8708 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
8710 * testsuite/libgomp.c/target-9.c: New test.
8712 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
8714 * config.h.in: Regenerate.
8715 * configure: Regenerate.
8716 * configure.ac: Add GCC_CHECK_EMUTLS.
8717 * libgomp.h: Add check for USE_EMUTLS: this case
8718 is equal to HAVE_TLS.
8721 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
8723 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
8725 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
8726 Ilya Verbin <ilya.verbin@intel.com>
8728 * testsuite/libgomp.c/target-critical-1.c: New test.
8730 2014-11-26 Jakub Jelinek <jakub@redhat.com>
8732 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
8733 to dg-options unless expensive testing is on.
8734 (TESTITERS): Define to N if not defined.
8735 (main): Use TESTITERS instead of N.
8736 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
8737 dg-additional-options depending on whether expensive testing is on.
8738 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
8739 Decrease N to 100000 and CHUNKSZ to 10000.
8741 2014-11-24 Jakub Jelinek <jakub@redhat.com>
8744 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
8745 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
8747 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
8749 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
8751 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
8754 * configure: Regenerated.
8756 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
8758 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
8759 vect_simd_clones effective target.
8760 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8762 2014-11-14 Jakub Jelinek <jakub@redhat.com>
8764 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
8765 of 32 as block_size.
8766 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
8767 instead of 32 as block_size.
8769 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8770 Ilya Verbin <ilya.verbin@intel.com>
8772 * Makefile.in: Regenerate.
8773 * configure: Regenerate.
8774 * configure.ac: Set up offload_additional_options,
8775 offload_additional_lib_paths and offload_targets.
8776 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
8777 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
8778 * testsuite/Makefile.in: Regenerate.
8779 * testsuite/lib/libgomp.exp (libgomp_init): Append
8780 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
8781 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
8782 build directory to LD_LIBRARY_PATH for intelmic offload targets.
8784 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8785 Ilya Verbin <ilya.verbin@intel.com>
8786 Kirill Yukhin <kirill.yukhin@intel.com>
8787 Ilya Tocar <ilya.tocar@intel.com>
8789 * testsuite/lib/libgomp.exp
8790 (check_effective_target_offload_device): New.
8791 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
8792 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
8793 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
8794 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
8795 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
8796 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
8797 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
8798 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
8799 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
8800 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
8801 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
8802 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
8803 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
8804 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
8805 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
8806 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
8807 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
8808 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
8809 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
8810 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
8811 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
8812 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
8813 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
8814 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
8815 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
8816 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
8817 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
8818 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
8819 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
8820 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
8821 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
8822 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
8823 * testsuite/libgomp.c/target-7.c: Fix test.
8824 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
8825 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
8826 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
8827 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
8828 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
8829 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
8830 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
8831 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
8832 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
8833 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
8834 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
8835 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
8836 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
8837 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
8838 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
8839 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
8840 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
8841 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
8842 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8843 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
8844 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
8845 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
8846 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
8847 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
8848 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
8849 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
8850 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
8851 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
8852 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
8853 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
8854 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
8856 2014-11-13 Jakub Jelinek <jakub@redhat.com>
8857 Ilya Verbin <ilya.verbin@intel.com>
8858 Thomas Schwinge <thomas@codesourcery.com>
8859 Andrey Turetskiy <andrey.turetskiy@intel.com>
8861 * libgomp.map (GOMP_4.0.1): New symbol version.
8862 Add GOMP_offload_register.
8863 * libgomp_target.h: New file.
8864 * splay-tree.h: New file.
8865 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
8866 (gomp_target_init): New forward declaration.
8867 (gomp_is_initialized): New static variable.
8868 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
8869 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
8871 (offload_images, num_offload_images, devices, num_devices): New static
8873 (splay_compare): New static function.
8874 (struct gomp_device_descr): New structure.
8875 (gomp_get_num_devices): Call gomp_target_init.
8876 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
8877 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
8878 (GOMP_offload_register): New function.
8879 (GOMP_target): Arrange for host callback to be performed in a separate
8880 initial thread and contention group, inheriting ICVs from
8881 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
8882 Add device initialization and lookup for target function in splay tree.
8883 (GOMP_target_data): Add device initialization and call gomp_map_vars.
8884 (GOMP_target_end_data): Call gomp_unmap_vars.
8885 (GOMP_target_update): Add device initialization and call gomp_update.
8886 (gomp_load_plugin_for_device, gomp_register_images_for_device)
8887 (gomp_target_init): New static functions.
8889 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
8890 Thomas Schwinge <thomas@codesourcery.com>
8891 Ilya Verbin <ilya.verbin@intel.com>
8892 Andrey Turetskiy <andrey.turetskiy@intel.com>
8894 * config.h.in: Regenerate.
8895 * configure: Regenerate.
8896 * configure.ac: Check for libdl, required for plugin support.
8897 (PLUGIN_SUPPORT): Define if plugins are supported.
8898 (enable_offload_targets): Support Intel MIC targets.
8899 (OFFLOAD_TARGETS): List of target names suitable for offloading.
8901 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8904 * configure: Regenerate.
8906 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8908 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
8910 2014-10-06 Marek Polacek <polacek@redhat.com>
8912 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
8913 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
8914 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
8915 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8917 2014-10-06 Marek Polacek <polacek@redhat.com>
8919 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
8920 * testsuite/libgomp.c/nqueens-1.c: Likewise.
8921 * testsuite/libgomp.c/pr26943-3.c: Likewise.
8922 * testsuite/libgomp.c/pr26943-4.c: Likewise.
8923 * testsuite/libgomp.c/pr36802-2.c: Likewise.
8924 * testsuite/libgomp.c/pr36802-3.c: Likewise.
8925 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
8926 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8927 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
8928 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
8929 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
8930 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
8931 * testsuite/libgomp.c/omp-single-1.c: Likewise.
8932 * testsuite/libgomp.c/omp-single-2.c: Likewise.
8933 * testsuite/libgomp.c/omp_matvec.c: Likewise.
8934 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
8935 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
8936 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
8939 2014-10-03 Jakub Jelinek <jakub@redhat.com>
8942 * testsuite/libgomp.c/pr61200.c: New test.
8944 2014-09-18 Jakub Jelinek <jakub@redhat.com>
8947 * testsuite/libgomp.c++/pr63248.C: New test.
8949 2014-08-04 Jakub Jelinek <jakub@redhat.com>
8951 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
8952 is not zero, but taskgroup->children is NULL and there are
8953 any task->children, schedule those instead of waiting.
8954 * testsuite/libgomp.c/depend-6.c: New test.
8955 * testsuite/libgomp.c/depend-7.c: New test.
8956 * testsuite/libgomp.c/depend-8.c: New test.
8957 * testsuite/libgomp.c/depend-9.c: New test.
8958 * testsuite/libgomp.c/depend-10.c: New test.
8960 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8962 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
8963 (struct gomp_taskwait): New type.
8964 (struct gomp_task): Add taskwait and parent_depends_on, remove
8965 in_taskwait and taskwait_sem fields.
8966 (gomp_finish_task): Don't destroy taskwait_sem.
8967 * task.c (gomp_init_task): Don't init in_taskwait, instead init
8968 taskwait and parent_depends_on.
8969 (GOMP_task): For if (0) tasks with depend clause that depend on
8970 earlier tasks don't defer them, instead call
8971 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
8972 Initialize redundant_out field, for redundant out entries just
8973 move them at the end of linked list instead of removing them
8974 completely, and set redundant_out flag instead of redundant.
8975 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
8977 (gomp_task_run_post_handle_dependers): If parent is in
8978 gomp_task_maybe_wait_for_dependencies and newly runnable task
8979 is not parent_depends_on, queue it in parent->children linked
8980 list after all runnable tasks with parent_depends_on set.
8981 Adjust for addition of taskwait indirection.
8982 (gomp_task_run_post_remove_parent): If parent is in
8983 gomp_task_maybe_wait_for_dependencies and task to be removed
8984 is parent_depends_on, decrement n_depend and if needed awake
8985 parent. Adjust for addition of taskwait indirection.
8986 (GOMP_taskwait): Adjust for addition of taskwait indirection.
8987 (gomp_task_maybe_wait_for_dependencies): New function.
8988 * testsuite/libgomp.c/depend-5.c: New test.
8990 2014-07-13 Tobias Burnus <burnus@net-b.de>
8992 * testsuite/libgomp.fortran/pr34020.f90: Make compile
8993 with TS 18508/Fortran 2015.
8995 2014-07-06 Marek Polacek <polacek@redhat.com>
8998 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
9000 2014-07-03 Jakub Jelinek <jakub@redhat.com>
9002 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
9003 matches regex $lang_source_re, add $lang_include_flags to options.
9004 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
9005 * testsuite/libgomp.c++/c++.exp: Likewise.
9006 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
9007 and lang_include_flags instead of adding -fintrinsic-modules-path= to
9009 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
9011 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
9013 * testsuite/libgomp.fortran/fortran.exp: Explain
9014 gfortran-dg-runtest usage.
9016 2014-06-25 Jakub Jelinek <jakub@redhat.com>
9018 * testsuite/libgomp.fortran/simd5.f90: New test.
9019 * testsuite/libgomp.fortran/simd6.f90: New test.
9020 * testsuite/libgomp.fortran/simd7.f90: New test.
9022 2014-06-24 Jakub Jelinek <jakub@redhat.com>
9024 * testsuite/libgomp.c/for-2.c: Define SC to static for
9025 #pragma omp for simd testing.
9026 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
9027 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
9029 * testsuite/libgomp.c/simd-14.c: New test.
9030 * testsuite/libgomp.c/simd-15.c: New test.
9031 * testsuite/libgomp.c/simd-16.c: New test.
9032 * testsuite/libgomp.c/simd-17.c: New test.
9033 * testsuite/libgomp.c++/for-10.C: Define SC to static for
9034 #pragma omp for simd testing.
9035 * testsuite/libgomp.c++/simd10.C: New test.
9036 * testsuite/libgomp.c++/simd11.C: New test.
9037 * testsuite/libgomp.c++/simd12.C: New test.
9038 * testsuite/libgomp.c++/simd13.C: New test.
9040 * testsuite/libgomp.fortran/aligned1.f03: New test.
9041 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
9042 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
9043 tasks with !$omp parallel !$omp single.
9044 * testsuite/libgomp.fortran/target8.f90: New test.
9045 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
9046 not to use trim in the combiner, instead call elemental function.
9047 (fn): New elemental function.
9048 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
9050 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
9052 * testsuite/libgomp.fortran/udr12.f90: New test.
9053 * testsuite/libgomp.fortran/udr13.f90: New test.
9054 * testsuite/libgomp.fortran/udr14.f90: New test.
9055 * testsuite/libgomp.fortran/udr15.f90: New test.
9057 2014-06-18 Jakub Jelinek <jakub@redhat.com>
9059 * omp_lib.f90.in (openmp_version): Set to 201307.
9060 * omp_lib.h.in (openmp_version): Likewise.
9061 * testsuite/libgomp.c/target-8.c: New test.
9062 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
9063 and inbranch clauses.
9064 * testsuite/libgomp.fortran/depend-3.f90: New test.
9065 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
9067 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9068 * testsuite/libgomp.fortran/target1.f90: New test.
9069 * testsuite/libgomp.fortran/target2.f90: New test.
9070 * testsuite/libgomp.fortran/target3.f90: New test.
9071 * testsuite/libgomp.fortran/target4.f90: New test.
9072 * testsuite/libgomp.fortran/target5.f90: New test.
9073 * testsuite/libgomp.fortran/target6.f90: New test.
9074 * testsuite/libgomp.fortran/target7.f90: New test.
9076 2014-06-10 Jakub Jelinek <jakub@redhat.com>
9079 * testsuite/libgomp.fortran/allocatable9.f90: New test.
9080 * testsuite/libgomp.fortran/allocatable10.f90: New test.
9081 * testsuite/libgomp.fortran/allocatable11.f90: New test.
9082 * testsuite/libgomp.fortran/allocatable12.f90: New test.
9083 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
9084 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
9085 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
9086 * testsuite/libgomp.fortran/associate1.f90: New test.
9087 * testsuite/libgomp.fortran/associate2.f90: New test.
9088 * testsuite/libgomp.fortran/procptr1.f90: New test.
9090 2014-06-06 Jakub Jelinek <jakub@redhat.com>
9092 * testsuite/libgomp.fortran/simd1.f90: New test.
9093 * testsuite/libgomp.fortran/udr1.f90: New test.
9094 * testsuite/libgomp.fortran/udr2.f90: New test.
9095 * testsuite/libgomp.fortran/udr3.f90: New test.
9096 * testsuite/libgomp.fortran/udr4.f90: New test.
9097 * testsuite/libgomp.fortran/udr5.f90: New test.
9098 * testsuite/libgomp.fortran/udr6.f90: New test.
9099 * testsuite/libgomp.fortran/udr7.f90: New test.
9100 * testsuite/libgomp.fortran/udr8.f90: New test.
9101 * testsuite/libgomp.fortran/udr9.f90: New test.
9102 * testsuite/libgomp.fortran/udr10.f90: New test.
9103 * testsuite/libgomp.fortran/udr11.f90: New test.
9105 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
9107 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
9108 vect_simd_clones effective target.
9109 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
9111 2014-05-21 Jakub Jelinek <jakub@redhat.com>
9114 * testsuite/libgomp.c++/simd-9.C: New test.
9116 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
9118 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
9119 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
9120 texts according to their @menu entry positions.
9122 2014-05-11 Jakub Jelinek <jakub@redhat.com>
9124 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
9125 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
9126 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
9127 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
9128 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
9129 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
9130 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
9131 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
9132 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
9133 * testsuite/libgomp.fortran/depend-1.f90: New test.
9134 * testsuite/libgomp.fortran/depend-2.f90: New test.
9135 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
9136 * testsuite/libgomp.fortran/simd1.f90: New test.
9137 * testsuite/libgomp.fortran/simd2.f90: New test.
9138 * testsuite/libgomp.fortran/simd3.f90: New test.
9139 * testsuite/libgomp.fortran/simd4.f90: New test.
9140 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
9142 2014-05-02 Jakub Jelinek <jakub@redhat.com>
9144 * testsuite/libgomp.c/simd-10.c: New test.
9145 * testsuite/libgomp.c/simd-11.c: New test.
9146 * testsuite/libgomp.c/simd-12.c: New test.
9147 * testsuite/libgomp.c/simd-13.c: New test.
9149 2014-04-24 Jakub Jelinek <jakub@redhat.com>
9151 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
9152 atomic type clauses in any order and optional comma in between.
9153 * testsuite/libgomp.c++/atomic-15.C: Likewise.
9154 * testsuite/libgomp.c/atomic-17.c: Likewise.
9156 * testsuite/libgomp.c/simd-7.c: New test.
9157 * testsuite/libgomp.c/simd-8.c: New test.
9158 * testsuite/libgomp.c/simd-9.c: New test.
9159 * testsuite/libgomp.c/loop-16.c: New test.
9161 2014-04-02 Richard Henderson <rth@redhat.com>
9163 * config/linux/futex.h (futex_wait): Get error value from errno.
9164 (futex_wake): Likewise.
9166 2014-03-25 Jakub Jelinek <jakub@redhat.com>
9169 * testsuite/libgomp.c++/udr-11.C: New test.
9170 * testsuite/libgomp.c++/udr-12.C: New test.
9171 * testsuite/libgomp.c++/udr-13.C: New test.
9172 * testsuite/libgomp.c++/udr-14.C: New test.
9173 * testsuite/libgomp.c++/udr-15.C: New test.
9174 * testsuite/libgomp.c++/udr-16.C: New test.
9175 * testsuite/libgomp.c++/udr-17.C: New test.
9176 * testsuite/libgomp.c++/udr-18.C: New test.
9177 * testsuite/libgomp.c++/udr-19.C: New test.
9179 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9181 Update copyright years
9183 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
9185 * hashtab.h: Use the standard form for the copyright notice.
9187 2014-01-02 Tobias Burnus <burnus@net-b.de>
9189 * libgomp.texi: Bump @copying's copyright year.
9191 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
9193 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
9194 alloca () with __builtin_alloca ().
9195 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
9196 * testsuite/libgomp.c/lock-3.c: Likewise.
9197 * testsuite/libgomp.c/pr48591.c: Likewise.
9199 2013-12-17 Jakub Jelinek <jakub@redhat.com>
9202 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
9205 2013-12-16 Jakub Jelinek <jakub@redhat.com>
9208 * testsuite/libgomp.c/pr58756.c: New test.
9210 2013-12-12 Jakub Jelinek <jakub@redhat.com>
9213 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
9216 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
9218 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
9220 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
9221 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
9222 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
9223 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
9226 * libgomp_g.h: Include <stddef.h> for size_t.
9228 * libgomp.spec.in: Update comment about libgomp's dependencies.
9229 * configure.ac: Likewise.
9230 * configure: Regenerate.
9232 2013-10-16 Tobias Burnus <burnus@net-b.de>
9234 * libgomp.texi: (Runtime Library Routines): Update references for
9235 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
9236 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
9237 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
9238 (Environment Variables): Update references for OpenMP 4.0. Add
9239 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
9240 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
9243 2013-10-14 Jakub Jelinek <jakub@redhat.com>
9245 * env.c (parse_bind_var): Initialize value to avoid
9246 (false positive) warning.
9248 2013-10-12 Jakub Jelinek <jakub@redhat.com>
9251 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
9253 (gomp_init_num_threads): Move i variable declaration into
9254 #ifdef CPU_ALLOC_SIZE block.
9255 * config/linux/affinity.c (gomp_affinity_init_level): Test
9256 gomp_places_list_len == 0 rather than gomp_places_list == 0
9257 when checking for topology reading error.
9258 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
9259 * env.c (parse_affinity): Add ignore argument, if true, don't populate
9260 gomp_places_list, only parse env var and always return false.
9261 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
9262 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
9263 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
9264 and either of these variables were parsed correctly into a places
9267 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9268 Jakub Jelinek <jakub@redhat.com>
9270 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
9271 of 5 loopfn matches.
9272 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9273 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9274 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
9275 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9276 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9277 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9278 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9279 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9281 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9283 * Makefile.am (omp_lib.mod): Streamline rule.
9284 * Makefile.in: Regenerate.
9286 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
9289 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
9290 * testsuite/libgomp.fortran/lib1.f90: Likewise.
9291 * testsuite/libgomp.fortran/lib2.f: Likewise.
9292 * testsuite/libgomp.fortran/lib3.f: Likewise.
9294 * configure.ac: Typo fix.
9295 * configure: Regenerate.
9297 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
9298 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9300 * omp.h.in: Don't touch the user's namespace.
9302 2013-10-11 Jakub Jelinek <jakub@redhat.com>
9303 Tobias Burnus <burnus@net-b.de>
9304 Richard Henderson <rth@redhat.com>
9306 * target.c: New file.
9307 * Makefile.am (libgomp_la_SOURCES): Add target.c.
9308 * Makefile.in: Regenerated.
9309 * libgomp_g.h (GOMP_task): Add depend argument.
9310 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9311 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9312 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
9313 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9314 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9315 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
9316 GOMP_taskgroup_start, GOMP_taskgroup_end,
9317 GOMP_parallel_sections): New prototypes.
9318 * fortran.c (omp_is_initial_device): Add ialias_redirect.
9319 (omp_is_initial_device_): New function.
9320 (ULP, STR1, STR2, ialias_redirect): Removed.
9321 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
9322 omp_set_default_device_8_, omp_get_default_device_,
9323 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
9325 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9326 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9327 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
9329 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
9330 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
9331 omp_set_default_device, omp_set_default_device_,
9332 omp_set_default_device_8_, omp_get_default_device,
9333 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
9334 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
9335 omp_get_team_num_): Export @@OMP_4.0.
9336 * team.c (struct gomp_thread_start_data): Add place field.
9337 (gomp_thread_start): Clear thr->thread_pool and
9338 thr->task before returning. Use gomp_team_barrier_wait_final
9339 instead of gomp_team_barrier_wait. Initialize thr->place.
9340 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
9341 team_cancelled and task_queued_count fields.
9342 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
9343 before calling pthread_exit.
9344 (gomp_free_thread): No longer static. Use
9345 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
9346 (gomp_team_start): Add flags argument. Set
9347 thr->thread_pool->threads_busy to nthreads immediately after creating
9348 new pool. Use gomp_managed_threads_lock instead of
9349 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
9350 (gomp_team_end): Use gomp_managed_threads_lock instead of
9351 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
9352 of gomp_team_barrier_wait. If team->team_cancelled, call
9353 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
9354 rather than thr->ts.work_share.
9355 (initialize_team): Don't call gomp_sem_init here.
9356 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
9358 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
9359 * env.c (gomp_global_icv): Add default_device_var, target_data and
9360 bind_var initializers.
9361 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9362 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9363 gomp_places_list_len): New variables.
9364 (parse_bind_var, parse_one_place, parse_places_var): New functions.
9365 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
9367 (gomp_cancel_var): New global variable.
9368 (parse_int): New function.
9369 (handle_omp_display_env): New function.
9370 (initialize_env): Use it. Initialize default_device_var.
9371 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
9372 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
9373 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
9374 been successfully parsed (and call gomp_init_affinity in that case).
9375 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9376 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9377 omp_get_team_num, omp_is_initial_device): New functions.
9378 * libgomp.h: Include stdlib.h.
9379 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
9381 (struct target_mem_desc): Forward declare.
9382 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
9383 and thread_limit_var fields.
9384 (gomp_get_num_devices): New prototype.
9385 (gomp_cancel_var): New extern decl.
9386 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
9387 team_cancelled and task_queued_count fields. Add comments about
9388 task_{,queued_,running_}count.
9389 (gomp_cancel_kind): New enum.
9390 (gomp_work_share_end_cancel): New prototype.
9391 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
9392 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
9394 (struct gomp_taskgroup): New type.
9395 (struct gomp_task_depend_entry,
9396 struct gomp_dependers_vec): New types.
9397 (gomp_finish_task): Free depend_hash if non-NULL.
9398 (struct gomp_team_state): Add place_partition_off
9399 and place_partition_len fields.
9400 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9401 gomp_places_list_len): New extern decls.
9402 (struct gomp_thread): Add place field.
9403 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9404 (gomp_init_thread_affinity): Add place argument.
9405 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9406 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9407 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9408 gomp_affinity_init_level, gomp_affinity_print_place): New
9410 (gomp_team_start): Add flags argument.
9411 (gomp_thread_limit_var, gomp_remaining_threads_count,
9412 gomp_remaining_threads_lock): Remove.
9413 (gomp_managed_threads_lock): New variable.
9414 (struct gomp_thread_pool): Add threads_busy field.
9415 (gomp_free_thread): New prototype.
9416 * task.c: Include hashtab.h.
9417 (hash_entry_type): New typedef.
9418 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
9419 (gomp_init_task): Clear dependers, depend_hash, depend_count,
9420 copy_ctors_done and taskgroup fields.
9421 (GOMP_task): Add depend argument, handle depend clauses. If
9422 gomp_team_barrier_cancelled or if it's taskgroup has been
9423 cancelled, don't queue or start new tasks. Set copy_ctors_done
9424 field if needed. Initialize taskgroup field. If copy_ctors_done
9425 and already cancelled, don't discard the task. If taskgroup is
9426 non-NULL, enqueue the task into taskgroup queue. Increment
9427 num_children field in taskgroup. Increment task_queued_count.
9428 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
9429 gomp_task_run_post_remove_taskgroup): New inline functions.
9430 (gomp_task_run_post_handle_depend_hash,
9431 gomp_task_run_post_handle_dependers,
9432 gomp_task_run_post_handle_depend): New functions.
9433 (GOMP_taskwait): Use them. If more than one new tasks
9434 have been queued, wake other threads if needed.
9435 (gomp_barrier_handle_tasks): Likewise. If
9436 gomp_team_barrier_cancelled, don't start any new tasks, just free
9438 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
9440 (omp_proc_bind_kind, omp_proc_bind_false,
9441 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9442 omp_proc_bind_spread): New params.
9443 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9444 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9445 omp_get_team_num, omp_is_initial_device): New interfaces.
9446 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
9447 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
9448 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
9449 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
9450 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
9451 useless use omp_lib_kinds.
9452 * omp.h.in (omp_proc_bind_t): New typedef.
9453 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9454 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9455 omp_get_team_num, omp_is_initial_device): New prototypes.
9456 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
9457 through to gomp_team_start.
9458 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
9459 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
9460 Adjust gomp_parallel_loop_start callers.
9461 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9462 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9463 GOMP_loop_end_cancel): New functions.
9464 (GOMP_parallel_end): Add ialias_redirect.
9465 * hashtab.h: New file.
9466 * libgomp.texi (Environment Variables): Minor cleanup,
9467 update section refs to OpenMP 4.0rc2.
9468 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
9469 environment variables.
9470 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
9471 team->work_shares_to_free to thr->ts.work_share before calling
9473 (gomp_work_share_end_cancel): New function.
9474 * config/linux/proc.c: Include errno.h.
9475 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
9476 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
9477 sizeof (cpu_set_t) to determine number of iterations. Fix up check
9478 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
9479 gomp_cpuset_size is sizeof (cpu_set_t).
9480 (gomp_init_num_threads): Initialize gomp_cpuset_size,
9481 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
9482 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
9483 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
9484 contain any logical CPUs.
9485 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
9486 is NULL. Use gomp_cpusetp instead of &cpuset and pass
9487 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
9488 pthread_getaffinity_np. Check gomp_places_list instead of
9489 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
9490 * config/linux/bar.c (gomp_barrier_wait_end,
9491 gomp_barrier_wait_last): Use BAR_* defines.
9492 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
9493 from state where needed. Set work_share_cancelled to 0 on last
9495 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
9496 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
9498 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
9499 Add cpusetsize argument.
9500 (gomp_cpuset_size, gomp_cpusetp): Declare.
9501 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
9502 (affinity_counter): Remove.
9503 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
9504 if CPU_ALLOC_SIZE isn't defined.
9505 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
9506 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
9507 bind current thread to the first place.
9508 (gomp_init_thread_affinity): Rewritten. Add place argument, just
9509 pthread_setaffinity_np to gomp_places_list[place].
9510 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9511 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9512 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9513 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
9514 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9515 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9516 (gomp_barrier_t): Add awaited_final field.
9517 (gomp_barrier_init): Initialize awaited_final field.
9518 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
9519 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
9521 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
9523 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
9524 gomp_team_barrier_cancelled): New inline functions.
9525 (gomp_barrier_last_thread,
9526 gomp_team_barrier_set_task_pending,
9527 gomp_team_barrier_clear_task_pending,
9528 gomp_team_barrier_set_waiting_for_tasks,
9529 gomp_team_barrier_waiting_for_tasks,
9530 gomp_team_barrier_done): Use BAR_* defines.
9531 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
9532 (gomp_barrier_wait_end): Use BAR_* defines.
9533 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
9534 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
9536 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
9537 gomp_team_barrier_cancel): New functions.
9538 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
9540 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9541 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9542 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9543 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
9544 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9545 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9546 (gomp_barrier_t): Add cancellable field.
9547 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
9548 gomp_team_barrier_cancel): New prototypes.
9549 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
9550 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
9551 gomp_team_barrier_cancelled): New inline functions.
9552 (gomp_barrier_wait_start, gomp_barrier_last_thread,
9553 gomp_team_barrier_set_task_pending,
9554 gomp_team_barrier_clear_task_pending,
9555 gomp_team_barrier_set_waiting_for_tasks,
9556 gomp_team_barrier_waiting_for_tasks,
9557 gomp_team_barrier_done): Use BAR_* defines.
9558 * barrier.c (GOMP_barrier_cancel): New function.
9559 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
9560 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9561 omp_proc_bind_spread): New params.
9562 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9563 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9564 omp_get_team_num, omp_is_initial_device): New externals.
9565 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
9567 (gomp_resolve_num_threads): Adjust for thread_limit now being in
9568 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9569 infinity. If not nested, just return minimum of max_num_threads
9570 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
9571 to the returned value. Otherwise, don't update atomically
9572 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
9573 (GOMP_parallel_end): Adjust for thread_limit now being in
9574 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9575 infinity. Adjust threads_busy in the pool rather than
9576 gomp_remaining_threads_count. Remember team->nthreads and call
9577 gomp_team_end before adjusting threads_busy, if not nested
9578 afterwards, just set it to 1 non-atomically. Add ialias.
9579 (GOMP_parallel_start): Adjust gomp_team_start caller.
9580 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
9581 * testsuite/libgomp.c/affinity-1.c: New test.
9582 * testsuite/libgomp.c/atomic-15.c: New test.
9583 * testsuite/libgomp.c/atomic-16.c: New test.
9584 * testsuite/libgomp.c/atomic-17.c: New test.
9585 * testsuite/libgomp.c/cancel-for-1.c: New test.
9586 * testsuite/libgomp.c/cancel-for-2.c: New test.
9587 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
9588 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
9589 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
9590 * testsuite/libgomp.c/cancel-sections-1.c: New test.
9591 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
9592 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
9593 * testsuite/libgomp.c/depend-1.c: New test.
9594 * testsuite/libgomp.c/depend-2.c: New test.
9595 * testsuite/libgomp.c/depend-3.c: New test.
9596 * testsuite/libgomp.c/depend-4.c: New test.
9597 * testsuite/libgomp.c/for-1.c: New test.
9598 * testsuite/libgomp.c/for-1.h: New file.
9599 * testsuite/libgomp.c/for-2.c: New test.
9600 * testsuite/libgomp.c/for-2.h: New file.
9601 * testsuite/libgomp.c/for-3.c: New test.
9602 * testsuite/libgomp.c/pr58392.c: New test.
9603 * testsuite/libgomp.c/simd-1.c: New test.
9604 * testsuite/libgomp.c/simd-2.c: New test.
9605 * testsuite/libgomp.c/simd-3.c: New test.
9606 * testsuite/libgomp.c/simd-4.c: New test.
9607 * testsuite/libgomp.c/simd-5.c: New test.
9608 * testsuite/libgomp.c/simd-6.c: New test.
9609 * testsuite/libgomp.c/target-1.c: New test.
9610 * testsuite/libgomp.c/target-2.c: New test.
9611 * testsuite/libgomp.c/target-3.c: New test.
9612 * testsuite/libgomp.c/target-4.c: New test.
9613 * testsuite/libgomp.c/target-5.c: New test.
9614 * testsuite/libgomp.c/target-6.c: New test.
9615 * testsuite/libgomp.c/target-7.c: New test.
9616 * testsuite/libgomp.c/taskgroup-1.c: New test.
9617 * testsuite/libgomp.c/thread-limit-1.c: New test.
9618 * testsuite/libgomp.c/thread-limit-2.c: New test.
9619 * testsuite/libgomp.c/thread-limit-3.c: New test.
9620 * testsuite/libgomp.c/udr-1.c: New test.
9621 * testsuite/libgomp.c/udr-2.c: New test.
9622 * testsuite/libgomp.c/udr-3.c: New test.
9623 * testsuite/libgomp.c++/affinity-1.C: New test.
9624 * testsuite/libgomp.c++/atomic-10.C: New test.
9625 * testsuite/libgomp.c++/atomic-11.C: New test.
9626 * testsuite/libgomp.c++/atomic-12.C: New test.
9627 * testsuite/libgomp.c++/atomic-13.C: New test.
9628 * testsuite/libgomp.c++/atomic-14.C: New test.
9629 * testsuite/libgomp.c++/atomic-15.C: New test.
9630 * testsuite/libgomp.c++/cancel-for-1.C: New test.
9631 * testsuite/libgomp.c++/cancel-for-2.C: New test.
9632 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
9633 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
9634 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
9635 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
9636 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
9637 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
9638 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
9639 * testsuite/libgomp.c++/cancel-test.h: New file.
9640 * testsuite/libgomp.c++/for-9.C: New test.
9641 * testsuite/libgomp.c++/for-10.C: New test.
9642 * testsuite/libgomp.c++/for-11.C: New test.
9643 * testsuite/libgomp.c++/simd-1.C: New test.
9644 * testsuite/libgomp.c++/simd-2.C: New test.
9645 * testsuite/libgomp.c++/simd-3.C: New test.
9646 * testsuite/libgomp.c++/simd-4.C: New test.
9647 * testsuite/libgomp.c++/simd-5.C: New test.
9648 * testsuite/libgomp.c++/simd-6.C: New test.
9649 * testsuite/libgomp.c++/simd-7.C: New test.
9650 * testsuite/libgomp.c++/simd-8.C: New test.
9651 * testsuite/libgomp.c++/target-1.C: New test.
9652 * testsuite/libgomp.c++/target-2.C: New test.
9653 * testsuite/libgomp.c++/target-2-aux.cc: New file.
9654 * testsuite/libgomp.c++/target-3.C: New test.
9655 * testsuite/libgomp.c++/taskgroup-1.C: New test.
9656 * testsuite/libgomp.c++/udr-1.C: New test.
9657 * testsuite/libgomp.c++/udr-2.C: New test.
9658 * testsuite/libgomp.c++/udr-3.C: New test.
9659 * testsuite/libgomp.c++/udr-4.C: New test.
9660 * testsuite/libgomp.c++/udr-5.C: New test.
9661 * testsuite/libgomp.c++/udr-6.C: New test.
9662 * testsuite/libgomp.c++/udr-7.C: New test.
9663 * testsuite/libgomp.c++/udr-8.C: New test.
9664 * testsuite/libgomp.c++/udr-9.C: New test.
9666 2013-09-20 Jakub Jelinek <jakub@redhat.com>
9669 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
9672 2013-09-20 Alan Modra <amodra@gmail.com>
9674 * configure: Regenerate.
9676 2013-09-19 Jakub Jelinek <jakub@redhat.com>
9678 * testsuite/libgomp.c/sections-2.c: New test.
9680 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
9682 * testsuite/libgomp.fortran/strassen.f90:
9683 Add dg-skip-if aarch64_tiny.
9685 2013-06-20 Iain Sandoe <iain@codesourcery.com>
9686 Cesar Philippidis <cesar@codesourcery.com>
9688 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
9689 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
9690 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
9691 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9692 * testsuite/libgomp.graphite/graphite.exp: Likewise.
9693 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
9694 Use dg-runtest rather than gfortran-dg-runtest.
9696 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
9698 * testsuite/libgomp.c/icv-2.c: Extend current handling of
9699 Linux-based x86 systems to cover all GNU systems.
9700 * testsuite/libgomp.c/lock-3.c: Likewise.
9701 * testsuite/libgomp.c/pr48591.c: Likewise.
9703 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
9705 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
9706 GNU/Hurd, as done for Linux-based systems.
9708 * config/posix/ptrlock.h: Fix comment.
9710 2013-05-27 Tobias Burnus <burnus@net-b.de>
9713 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
9714 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
9715 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
9716 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
9717 omp_destroy_nest_lock): Correct arguments to match the one in
9719 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
9720 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
9721 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
9722 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
9724 2013-05-16 Jakub Jelinek <jakub@redhat.com>
9726 * testsuite/libgomp.c/loop-13.c: New test.
9727 * testsuite/libgomp.c/loop-14.c: New test.
9728 * testsuite/libgomp.c/loop-15.c: New test.
9729 * testsuite/libgomp.c++/loop-13.C: New test.
9730 * testsuite/libgomp.c++/loop-14.C: New test.
9731 * testsuite/libgomp.c++/loop-15.C: New test.
9733 2013-02-06 Jakub Jelinek <jakub@redhat.com>
9736 * testsuite/libgomp.c++/pr56217.C: New test.
9738 2013-02-01 Alan Modra <amodra@gmail.com>
9740 * task.c (GOMP_task, GOMP_taskwait): Comment.
9742 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
9743 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
9746 * config/linux/wait.h (do_spin): Use atomic load for addr.
9747 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
9748 for intptr and ptrlock.
9749 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
9752 2013-01-22 Alan Modra <amodra@gmail.com>
9756 * task.c (GOMP_task): Revert 2011-12-09 change.
9757 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
9758 barrier to read task->children..
9759 (gomp_barrier_handle_tasks): ..and matching atomic store with
9760 release barrier here when setting parent->children to NULL.
9762 2013-01-16 Jakub Jelinek <jakub@redhat.com>
9763 Tobias Burnus <burnus@net-b.de>
9766 * testsuite/libgomp.fortran/fortran.exp: Use
9767 -fintrinsic-modules-path= instead of
9768 -fintrinsic-modules-path.
9770 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
9772 Update copyright years.
9774 2012-12-19 Tobias Burnus <burnus@net-b.de>
9776 * testsuite/libgomp.fortran/fortran.exp: Set
9777 -fintrinsic-modules-path.
9779 2012-12-19 Tobias Burnus <burnus@net-b.de>
9781 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
9782 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
9784 2012-11-21 Jakub Jelinek <jakub@redhat.com>
9787 * team.c (gomp_free_thread): Decrease gomp_managed_threads
9788 if pool had any threads_used.
9790 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
9792 * testsuite/libgomp.c++/pr24455.C: Use
9793 -Wl,-undefined,dynamic_lookup on darwin.
9795 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
9797 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
9799 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
9801 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
9803 2012-10-23 Ian Bolton <ian.bolton@arm.com>
9804 Jim MacArthur <jim.macarthur@arm.com>
9805 Marcus Shawcroft <marcus.shawcroft@arm.com>
9806 Nigel Stephens <nigel.stephens@arm.com>
9807 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9808 Richard Earnshaw <rearnsha@arm.com>
9809 Sofiane Naci <sofiane.naci@arm.com>
9810 Stephen Thomas <stephen.thomas@arm.com>
9811 Tejas Belagod <tejas.belagod@arm.com>
9812 Yufeng Zhang <yufeng.zhang@arm.com>
9814 * configure.tgt: Add AArch64.
9816 2012-10-04 Jason Merrill <jason@redhat.com>
9818 * testsuite/libgomp.c++/tls-init1.C: New.
9820 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
9822 * configure: Regenerated.
9824 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
9826 * config/linux/mips/futex.h (sys_futex0): Change to static
9827 function with noinline, nomips16 attributes under MIPS16. Adjust
9828 asm statement to place 'li v0,SYS_futex' immediately before
9831 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
9833 * libgomp.texi (Library Index): Renamed from "Index" to prevent
9834 conflict with index.html on case-insensitive file systems.
9836 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
9838 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
9839 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
9841 2012-07-02 Richard Guenther <rguenther@suse.de>
9842 Michael Matz <matz@suse.de>
9843 Tobias Grosser <tobias@grosser.es>
9844 Sebastian Pop <sebpop@gmail.com>
9846 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
9847 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9848 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9849 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9851 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
9853 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
9855 2012-06-22 Richard Guenther <rguenther@suse.de>
9857 Merge from graphite branch
9858 2012-01-13 Tobias Grosser <tobias@grosser.es>
9860 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9861 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9863 2012-06-07 Jakub Jelinek <jakub@redhat.com>
9866 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
9867 use GOMP_barrier () call instead.
9868 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9869 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9870 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
9871 call GOMP_barrier instead.
9872 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9874 2012-06-06 Jakub Jelinek <jakub@redhat.com>
9877 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
9878 argument to memset call.
9880 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
9882 * configure: Regenerated.
9884 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9886 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
9888 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
9891 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
9893 2012-03-22 Jakub Jelinek <jakub@redhat.com>
9896 * testsuite/libgomp.c/pr52547.c: New test.
9898 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9900 * testsuite/lib/libgomp.exp: load fortran-modules.exp
9902 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9904 * configure.tgt (mips-sgi-irix6*): Remove.
9906 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9908 * configure.tgt (alpha*-dec-osf*): Remove.
9910 * config/osf/sem.h: Remove.
9911 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
9913 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
9915 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
9917 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9920 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
9921 Remove ENABLE_SYMVERS_SOL2.
9922 * configure: Regenerate.
9923 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
9924 (PREPROCESS): New variable.
9925 (libgomp.ver): New target.
9926 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
9927 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
9928 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
9930 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
9931 * Makefile.in: Regenerate.
9933 2012-02-14 Walter Lee <walt@tilera.com>
9935 * configure.tgt: Handle tilegx and tilepro.
9936 * config/linux/tile/futex.h: New file.
9938 2012-02-08 Richard Guenther <rguenther@suse.de>
9940 PR tree-optimization/46886
9941 * testsuite/libgomp.c/pr46886.c: New testcase.
9943 2012-01-25 Matthias Klose <doko@ubuntu.com>
9945 * config/linux/arm: Remove empty directory.
9946 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
9948 2011-12-09 Alan Modra <amodra@gmail.com>
9951 * task.c (GOMP_taskwait): Don't access task->children outside of
9952 task_lock mutex region.
9953 (GOMP_task): Likewise.
9955 2011-12-06 Jakub Jelinek <jakub@redhat.com>
9958 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
9960 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9961 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9962 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9963 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9964 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9966 2011-12-02 Alan Modra <amodra@gmail.com>
9968 * config/linux/affinity.c: Use atomic rather than sync builtin.
9969 * config/linux/lock.c: Likewise.
9970 * config/linux/ptrlock.h: Likewise.
9971 * config/linux/ptrlock.c: Likewise.
9972 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
9973 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
9974 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
9975 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
9976 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
9977 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
9978 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
9979 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
9980 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
9981 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
9983 2011-11-30 Alan Modra <amodra@gmail.com>
9986 * config/linux/bar.h: Use atomic rather than sync builtins.
9987 * config/linux/bar.c: Likewise. Add missing acquire
9988 synchronisation on generation field.
9989 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
9992 2011-11-30 Alan Modra <amodra@gmail.com>
9994 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
9995 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
9996 * config/linux/mutex.h: Use atomic rather than sync builtins.
9997 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
9998 * config/linux/omp-lock.h: Comment fix.
9999 * config/linux/arm/mutex.h: Delete.
10000 * config/linux/powerpc/mutex.h: Delete.
10001 * config/linux/ia64/mutex.h: Delete.
10002 * config/linux/mips/mutex.h: Delete.
10004 2011-11-30 Alan Modra <amodra@gmail.com>
10007 * config/linux/sem.h: Rewrite.
10008 * config/linux/sem.c: Rewrite.
10010 2011-11-28 Richard Henderson <rth@redhat.com>
10012 * libgomp.h (enum memmodel): New.
10014 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
10016 * configure: Regenerate.
10018 2011-10-10 Matthias Klose <doko@ubuntu.com>
10020 * config/posix95: Remove empty directory.
10022 2011-08-26 Jakub Jelinek <jakub@redhat.com>
10024 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
10026 2011-08-19 Jakub Jelinek <jakub@redhat.com>
10029 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
10030 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
10032 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10034 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
10036 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10039 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
10041 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
10043 * config/linux/proc.h: New.
10044 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
10045 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
10046 (gomp_init_num_threads): Update call to cpuset_popcount.
10047 (get_num_procs): Ditto.
10048 * config/linux/affinity.c (gomp_init_affinity): Call
10049 gomp_cpuset_popcount.
10051 2011-08-02 Jakub Jelinek <jakub@redhat.com>
10055 * omp.h.in (omp_in_final): New prototype.
10056 * omp_lib.f90.in (omp_in_final): New interface.
10057 (omp_integer_kind, omp_logical_kind): Remove
10058 and replace all its uses in the module with 4.
10059 (openmp_version): Change to 201107.
10060 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
10061 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
10062 kind for the parameters.
10063 (omp_in_final): New external.
10064 (openmp_version): Change to 201107.
10065 * task.c (omp_in_final): New function.
10066 (gomp_init_task): Initialize final_task.
10067 (GOMP_task): Remove unused attribute from flags. Handle final
10069 (GOMP_taskyield): New function.
10070 (omp_in_final): Return true if if (false) or final (true) task
10071 or descendant of final (true).
10072 * fortran.c (omp_in_final_): New function.
10073 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
10074 (GOMP_3.0): Export GOMP_taskyield.
10075 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
10077 (parse_unsigned_long_list): New function.
10078 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
10079 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
10080 even if parse_affinity returned false.
10081 * config/linux/affinity.c (gomp_init_affinity): Handle
10082 gomp_cpu_affinity_len == 0.
10083 * libgomp_g.h (GOMP_taskyield): New prototype.
10084 * libgomp.h (struct gomp_task): Add final_task field.
10085 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
10086 * team.c (gomp_team_start): Override new task's nthreads_var icv
10087 if list form OMP_NUM_THREADS has been used and it has value for
10088 the new nesting level.
10090 * testsuite/libgomp.c/atomic-11.c: New test.
10091 * testsuite/libgomp.c/atomic-12.c: New test.
10092 * testsuite/libgomp.c/atomic-13.c: New test.
10093 * testsuite/libgomp.c/atomic-14.c: New test.
10094 * testsuite/libgomp.c/reduction-6.c: New test.
10095 * testsuite/libgomp.c/task-5.c: New test.
10096 * testsuite/libgomp.c++/atomic-2.C: New test.
10097 * testsuite/libgomp.c++/atomic-3.C: New test.
10098 * testsuite/libgomp.c++/atomic-4.C: New test.
10099 * testsuite/libgomp.c++/atomic-5.C: New test.
10100 * testsuite/libgomp.c++/atomic-6.C: New test.
10101 * testsuite/libgomp.c++/atomic-7.C: New test.
10102 * testsuite/libgomp.c++/atomic-8.C: New test.
10103 * testsuite/libgomp.c++/atomic-9.C: New test.
10104 * testsuite/libgomp.c++/task-8.C: New test.
10105 * testsuite/libgomp.c++/reduction-4.C: New test.
10106 * testsuite/libgomp.fortran/allocatable7.f90: New test.
10107 * testsuite/libgomp.fortran/allocatable8.f90: New test.
10108 * testsuite/libgomp.fortran/crayptr3.f90: New test.
10109 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
10110 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
10111 * testsuite/libgomp.fortran/pointer1.f90: New test.
10112 * testsuite/libgomp.fortran/pointer2.f90: New test.
10113 * testsuite/libgomp.fortran/task4.f90: New test.
10115 2011-08-02 Tobias Burnus <burnus@net-b.de>
10117 * libgomp.texi: Update OpenMP spec references to 3.1.
10118 (omp_in_final,OMP_PROC_BIND): New sections.
10119 (OMP_NUM_THREADS): Document that the value can be now a list.
10120 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
10122 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
10124 * config/linux/x86/futex.h: Check __x86_64__ instead of
10127 2011-07-29 Jakub Jelinek <jakub@redhat.com>
10129 PR middle-end/49897
10130 PR middle-end/49898
10131 * testsuite/libgomp.c/pr49897-1.c: New test.
10132 * testsuite/libgomp.c/pr49897-2.c: New test.
10133 * testsuite/libgomp.c/pr49898-1.c: New test.
10134 * testsuite/libgomp.c/pr49898-2.c: New test.
10136 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
10138 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
10139 for ia32 instead of ilp32.
10141 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
10142 * testsuite/libgomp.c/atomic-6.c: Likewise.
10144 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
10146 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
10147 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
10149 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10152 * config/osf/sem.h: New file.
10153 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
10155 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10158 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
10161 2011-07-15 Jakub Jelinek <jakub@redhat.com>
10163 * config/linux/wait.h (do_spin): New inline, largely copied
10164 from do_wait, just don't do futex_wait here, instead return true if
10166 (do_wait): Implement using do_spin.
10167 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
10169 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10170 __sync_bool_compare_and_swap, pass the oldval to
10171 gomp_mutex_lock_slow.
10172 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
10173 If all mutex contenders are just spinning and not sleeping, don't
10174 change state to 2 unnecessarily. Optimize the loop when state has
10175 already become 2 to use just one atomic operation per loop instead
10177 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
10179 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
10180 __sync_bool_compare_and_swap, pass the oldval to
10181 gomp_mutex_lock_slow.
10183 2011-06-22 Jakub Jelinek <jakub@redhat.com>
10186 * iter.c (gomp_iter_static_next): For chunk size 0
10187 only use n ceil/ nthreads size for the first
10188 n % nthreads threads in the team instead of
10189 all threads except for the last few ones which
10190 get less work or none at all.
10191 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
10192 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
10193 chunk argument, set run_sched_modifier to 0 for static
10194 resp. 1 for other kinds. If chunk argument is 0
10195 and not static, set value to 1.
10197 2011-05-19 Jakub Jelinek <jakub@redhat.com>
10200 * testsuite/libgomp.c++/pr49043.C: New test.
10203 * testsuite/libgomp.c++/pr48869.C: New test.
10205 2011-05-06 Jakub Jelinek <jakub@redhat.com>
10208 * fortran.c: Include limits.h.
10210 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
10212 (omp_set_num_threads_8_, omp_set_schedule_8_,
10213 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
10214 omp_get_team_size_8_): Use TO_INT macro.
10215 * testsuite/libgomp.fortran/pr48894.f90: New test.
10217 2011-04-13 Jakub Jelinek <jakub@redhat.com>
10219 PR middle-end/48591
10220 * testsuite/libgomp.c/pr48591.c: New test.
10222 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10225 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
10226 * configure: Regenerate.
10228 2011-02-27 Jakub Jelinek <jakub@redhat.com>
10231 * testsuite/libgomp.fortran/task3.f90: New test.
10233 2011-02-24 Tobias Burnus <burnus@net-b.de>
10235 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
10237 2011-02-23 Jakub Jelinek <jakub@redhat.com>
10240 * libgomp.texi (omp_get_wtime): Don't say time in the past
10241 must be Unix Epoch.
10243 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10246 * testsuite/libgomp.fortran/fortran.exp: Check for both
10247 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
10248 but $blddir != "", still append ${blddir}/${lang_library_path}
10249 to ld_library_path.
10251 2011-02-16 Tobias Burnus <burnus@net-b.de>
10254 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
10255 of libquadmath.a before adding its libpath to ldflags.
10257 2011-02-14 Jakub Jelinek <jakub@redhat.com>
10260 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
10261 to FUTEX_WAIT futex syscall.
10262 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
10264 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10266 * configure: Regenerate.
10268 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
10271 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
10273 2011-01-16 Gerald Pfeifer
10275 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
10277 2010-12-14 Jakub Jelinek <jakub@redhat.com>
10280 * libgomp.fortran/allocatable6.f90: New test.
10282 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10284 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
10285 * configure: Regenerate.
10287 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
10291 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
10292 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
10293 * aclocal.m4: Regenerate.
10294 * configure: Regenerate.
10295 * Makefile.in: Regenerate.
10296 * testsuite/Makefile.in: Regenerate.
10298 2010-12-02 Jakub Jelinek <jakub@redhat.com>
10301 * libgomp.fortran/pr46753.f90: New test.
10304 * env.c (initialize_env): Default to spin count 300000
10305 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
10309 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
10310 at the end if sync builtins aren't supported.
10312 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10314 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
10316 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10318 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
10320 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
10322 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
10324 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10325 Tobias Burnus <burnus@net-b.de>
10329 * configure: Regenerate.
10331 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
10333 * config/linux/futex.h: New.
10334 * config/linux/arm/mutex.h: New.
10335 * configure.tgt (arm*-*-linux*): Add config path.
10337 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10339 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10341 2010-09-23 Tobias Burnus <burnus@net-b.de>
10343 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
10344 Change Fortran datatype to LOGICAL.
10345 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
10346 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
10348 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10350 * configure: Regenerate.
10352 2010-07-26 Jakub Jelinek <jakub@redhat.com>
10354 * libgomp.texi: Add function keyword to a couple of Fortran
10355 interfaces, use integer instead of int for Fortran.
10357 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
10359 * libgomp.texi: Fix spelling and pasto problems throughout.
10360 Adjust prototypes to match code.
10362 2010-07-24 Tobias Burnus <burnus@net-b.de>
10364 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
10365 silence -fwhole-file warning.
10367 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10369 * configure.tgt (*-*-solaris2.[56]*): Removed.
10371 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10373 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
10374 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
10375 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
10376 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
10377 targetting solaris2*.
10378 * configure: Regenerate.
10379 * config.h.in: Regenerate.
10381 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
10382 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
10383 Add libgomp_version_dep.
10384 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
10386 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
10387 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
10388 * Makefile.in: Regenerate.
10390 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
10391 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10392 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
10393 to common block, protected by
10394 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10396 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
10398 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
10400 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
10403 * configure: Regenerate.
10405 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10408 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
10409 * configure: Regenerate.
10410 * Makefile.in: Regenerate.
10411 * testsuite/Makefile.in: Regenerate.
10413 2010-04-26 Jakub Jelinek <jakub@redhat.com>
10416 * testsuite/libgomp.c/pr43893.c: New test.
10417 * testsuite/libgomp.c++/pr43893.C: New test.
10419 2010-04-21 Jakub Jelinek <jakub@redhat.com>
10421 PR middle-end/43570
10422 * testsuite/libgomp.fortran/vla8.f90: New test.
10424 2010-04-20 Jakub Jelinek <jakub@redhat.com>
10427 * config/linux/affinity.c (gomp_init_affinity): Decrease
10428 gomp_available_cpus if affinity mask confines the process to fewer
10430 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
10431 non-NULL, just return gomp_available_cpus.
10434 * sections.c (gomp_sections_init): Initialize ws->mode.
10436 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10438 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
10439 not unused bar variable.
10440 * configure: Regenerate.
10442 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10444 * Makefile.in: Regenerate.
10445 * aclocal.m4: Regenerate.
10446 * testsuite/Makefile.in: Regenerate.
10448 2010-03-22 Jakub Jelinek <jakub@redhat.com>
10451 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
10452 (initialize_env): Adjust callers.
10453 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
10454 when the argument is 0.
10456 * testsuite/libgomp.c/pr42942.c: New test.
10458 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
10460 PR middle-end/42644
10461 PR middle-end/42130
10462 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10463 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
10465 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10467 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
10468 * testsuite/libgomp.c++/task-6.C: Likewise.
10470 2010-01-28 Steve Ellcey <sje@cup.hp.com>
10472 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
10474 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
10476 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
10477 * configure: Regenerate.
10479 2010-01-26 Jakub Jelinek <jakub@redhat.com>
10482 * testsuite/libgomp.fortran/allocatable5.f90: New test.
10484 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
10486 * configure.ac: Test for executability of GFORTRAN.
10487 * configure: Regenerate.
10489 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10491 * configure: Regenerate.
10493 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
10496 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
10498 2010-01-03 Richard Guenther <rguenther@suse.de>
10500 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
10502 2009-12-23 Sebastian Pop <sebpop@gmail.com>
10504 * testsuite/libgomp.graphite/pr4118.c: New.
10506 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10508 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
10509 for darwin, protect the test with require-effective-target tls_runtime.
10510 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
10512 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10515 * testsuite/lib/libgomp.exp: Provide -B options to allow for
10516 link spec %s substitutions for static libraries.
10518 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
10521 * libgomp.graphite/force-parallel-2.c: Reduce array size.
10523 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10525 * Makefile.in: Regenerate.
10526 * configure: Regenerate.
10527 * testsuite/Makefile.in: Regenerate.
10529 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
10531 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
10532 settings for LC_ALL and LANG.
10534 2009-11-25 Jakub Jelinek <jakub@redhat.com>
10537 * testsuite/libgomp.fortran/pr42162.f90: New test.
10539 2009-11-13 Jakub Jelinek <jakub@redhat.com>
10541 PR middle-end/42029
10542 * testsuite/libgomp.c/pr42029.c: New test.
10544 2009-10-26 Jakub Jelinek <jakub@redhat.com>
10546 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
10547 *s. Accept ld version without text in ()s.
10548 * configure: Regenerated.
10550 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
10552 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
10554 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10557 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
10558 or a hyphen (happens with fortran language disabled).
10559 * configure: Regenerate.
10561 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10563 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
10564 use sed script portable to Solaris /bin/sed for extracting ld
10566 * configure: Regenerate.
10568 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
10570 * testsuite/libgomp.graphite/bounds.c: New test.
10572 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10574 * Makefile.am (libgomp_la_LINK): New.
10575 * Makefile.in: Regenerate.
10577 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10579 * configure.ac (AC_PREREQ): Bump to 2.64.
10581 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10583 * Makefile.am (install-html, install-pdf): Remove.
10584 * Makefile.in: Regenerate.
10586 * Makefile.in: Regenerate.
10587 * aclocal.m4: Regenerate.
10588 * config.h.in: Regenerate.
10589 * configure: Regenerate.
10590 * testsuite/Makefile.in: Regenerate.
10592 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10594 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
10595 * Makefile.in: Regenerate.
10597 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
10599 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
10600 * Makefile.in: Regenerate.
10602 2009-08-19 Tobias Burnus <burnus@net-b.de>
10605 omp_lib.h.in: Fix -std=f95 errors.
10607 2009-08-14 David Edelsohn <edelsohn@gnu.org>
10609 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
10610 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
10611 * testsuite/libgomp.graphite/graphite.exp: New.
10613 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
10615 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
10618 2009-08-04 David Daney <ddaney@caviumnetworks.com>
10620 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
10621 needed memory barrier semantics.
10622 * config/linux/mips/mutex.h: New file.
10624 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10626 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
10628 2009-07-16 Joseph Myers <joseph@codesourcery.com>
10630 * configure: Regenerate.
10632 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
10637 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
10638 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
10639 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
10641 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
10643 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
10644 options when choosing a multilib.
10646 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
10648 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
10649 ld_library_path. Use add_path. Add just find_libgcc_s to
10650 ld_library_path, not every libgcc multilib directory.
10651 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
10652 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
10653 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
10655 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
10657 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
10659 * Makefile.am (LTLDFLAGS): Define.
10661 * Makefile.in: Regenerate.
10663 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
10666 * testsuite/libgomp.fortran/fortran.exp: Don't link with
10667 libgfortranbegin, check existence of libgfortran.a instead of
10668 libgfortranbegin.a.
10670 2009-05-20 Jakub Jelinek <jakub@redhat.com>
10673 * team.c (gomp_thread_start): Destroy thr->release semaphore.
10674 (gomp_free_pool_helper): Likewise.
10676 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
10677 Jakub Jelinek <jakub@redhat.com>
10680 * testsuite/libgomp.fortran/workshare2.f90: New test.
10682 2009-04-09 Nick Clifton <nickc@redhat.com>
10684 * iter.c: Change copyright header to refer to version 3 of the
10685 GNU General Public License with version 3.1 of the GCC Runtime
10686 Library Exception and to point readers at the COPYING3 and
10687 COPYING3.RUNTIME files and the FSF's license web page.
10688 * alloc.c: Likewise.
10689 * barrier.c: Likewise.
10690 * config/bsd/proc.c: Likewise.
10691 * config/linux/affinity.c: Likewise.
10692 * config/linux/alpha/futex.h: Likewise.
10693 * config/linux/bar.c: Likewise.
10694 * config/linux/bar.h: Likewise.
10695 * config/linux/ia64/futex.h: Likewise.
10696 * config/linux/ia64/mutex.h: Likewise.
10697 * config/linux/lock.c: Likewise.
10698 * config/linux/mips/futex.h: Likewise.
10699 * config/linux/mutex.c: Likewise.
10700 * config/linux/mutex.h: Likewise.
10701 * config/linux/powerpc/futex.h: Likewise.
10702 * config/linux/proc.c: Likewise.
10703 * config/linux/ptrlock.c: Likewise.
10704 * config/linux/ptrlock.h: Likewise.
10705 * config/linux/s390/futex.h: Likewise.
10706 * config/linux/sem.c: Likewise.
10707 * config/linux/sem.h: Likewise.
10708 * config/linux/sparc/futex.h: Likewise.
10709 * config/linux/wait.h: Likewise.
10710 * config/linux/x86/futex.h: Likewise.
10711 * config/mingw32/proc.c: Likewise.
10712 * config/mingw32/time.c: Likewise.
10713 * config/posix/affinity.c: Likewise.
10714 * config/posix/bar.c: Likewise.
10715 * config/posix/bar.h: Likewise.
10716 * config/posix/lock.c: Likewise.
10717 * config/posix/mutex.h: Likewise.
10718 * config/posix/proc.c: Likewise.
10719 * config/posix/ptrlock.h: Likewise.
10720 * config/posix/sem.c: Likewise.
10721 * config/posix/sem.h: Likewise.
10722 * config/posix/time.c: Likewise.
10723 * config/posix95/lock.c: Likewise.
10724 * critical.c: Likewise.
10726 * error.c: Likewise.
10727 * fortran.c: Likewise.
10728 * iter_ull.c: Likewise.
10729 * libgomp.h: Likewise.
10730 * libgomp_f.h.in: Likewise.
10731 * libgomp_g.h: Likewise.
10732 * loop.c: Likewise.
10733 * loop_ull.c: Likewise.
10734 * omp.h.in: Likewise.
10735 * omp_lib.f90.in: Likewise.
10736 * omp_lib.h.in: Likewise.
10737 * ordered.c: Likewise.
10738 * parallel.c: Likewise.
10739 * sections.c: Likewise.
10740 * single.c: Likewise.
10741 * task.c: Likewise.
10742 * team.c: Likewise.
10743 * work.c: Likewise.
10745 2009-04-09 Jakub Jelinek <jakub@redhat.com>
10747 * testsuite/config/default.exp: Change copyright header to refer to
10748 version 3 of the GNU General Public License and to point readers
10749 at the COPYING3 file and the FSF's license web page.
10751 2009-04-08 Jakub Jelinek <jakub@redhat.com>
10753 PR middle-end/39573
10754 * libgomp.c++/pr39573.C: New test.
10756 2009-04-01 Jakub Jelinek <jakub@redhat.com>
10759 * testsuite/libgomp.c/pr39591-1.c: New test.
10760 * testsuite/libgomp.c/pr39591-2.c: New test.
10761 * testsuite/libgomp.c/pr39591-3.c: New test.
10763 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
10765 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
10766 * testsuite/libgomp.c/atomic-6.c: Ditto.
10768 2009-03-23 Jakub Jelinek <jakub@redhat.com>
10771 * testsuite/libgomp.c/loop-12.c: New test.
10772 * testsuite/libgomp.c/loop-11.c: New test.
10773 * testsuite/libgomp.c++/loop-11.C: New test.
10774 * testsuite/libgomp.c++/loop-12.C: New test.
10775 * testsuite/libgomp.c++/for-8.C: New test.
10777 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10779 * configure: Regenerate.
10781 2009-02-11 Jakub Jelinek <jakub@redhat.com>
10783 PR middle-end/39154
10784 * testsuite/libgomp.c/pr39154.c: New test.
10786 2009-01-30 Ian Lance Taylor <iant@google.com>
10788 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
10789 libgomp_ld_is_gold. Get gold version number.
10790 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
10791 * configure: Rebuild.
10793 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10795 * testsuite/lib/libgomp.exp: Add -B option for targets that
10796 use libgfortran.a%s in their specs.
10798 2009-01-07 Jakub Jelinek <jakub@redhat.com>
10801 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
10802 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
10803 HAVE_AS_SYMVER_DIRECTIVE is not defined.
10804 * configure: Regenerated.
10805 * config.h.in: Likewise.
10807 2008-12-28 Jakub Jelinek <jakub@redhat.com>
10810 * testsuite/libgomp.c/pr38650.c: New test.
10811 * testsuite/libgomp.c++/pr38650.C: New test.
10813 2008-12-27 Jakub Jelinek <jakub@redhat.com>
10815 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
10817 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
10819 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
10821 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10823 * configure: Regenerate.
10825 2008-12-08 Jakub Jelinek <jakub@redhat.com>
10827 PR middle-end/36802
10828 * testsuite/libgomp.c/pr36802-1.c: New test.
10829 * testsuite/libgomp.c/pr36802-2.c: New test.
10830 * testsuite/libgomp.c/pr36802-3.c: New test.
10832 2008-12-01 Janis Johnson <janis187@us.ibm.com>
10835 * config/linux/powerpc/mutex.h: New.
10837 2008-12-01 Jakub Jelinek <jakub@redhat.com>
10840 * testsuite/libgomp.c++/for-7.C: New test.
10843 * testsuite/libgomp.c++/for-6.C: New test.
10845 2008-11-26 Janis Johnson <janis187@us.ibm.com>
10848 * testsuite/lib/libgomp.exp: Include new timeout library files.
10849 (libgomp_target_compile): Set timeout value from new proc.
10851 2008-11-13 Steve Ellcey <sje@cup.hp.com>
10854 * config/linux/ia64/mutex.h: New.
10856 2008-11-04 Tobias Burnus <burnus@net-b.de>
10859 * libgomp.texi (Runtime library routines, environment variables):
10860 Update for OpenMP version 3.0.
10862 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
10863 Steve Ellcey <sje@cup.hp.com>
10865 * configure: Regenerate for new libtool.
10866 * Makefile.in: Ditto.
10867 * testsuite/Makefile.in: Ditto.
10869 2008-09-19 Jakub Jelinek <jakub@redhat.com>
10870 Andreas Tobler <a.tobler@schweiz.org>
10872 * config/bsd/proc.c: New file.
10873 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
10874 * configure.ac: Check for header <sys/sysctl.h>
10875 * configure: Regenerate.
10876 * config.h.in: Likewise.
10878 2008-09-05 Janis Johnson <janis187@us.ibm.com>
10880 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
10882 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
10884 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
10885 * Makefile.in: Regenerated.
10886 * testsuite/Makefile.in: Regenerated.
10888 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
10890 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
10891 depend on blddir if blddir exists.
10892 (libgomp_target_compile): Likewise.
10893 * testsuite/libgomp.c++/c++.exp: Likewise.
10894 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10896 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10898 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
10899 Do not list GPL as Invariant Section.
10901 2008-07-28 Ilie Garbacea <ilie@mips.com>
10902 Chao-ying Fu <fu@mips.com>
10904 * configure.tgt: Enable futex for MIPS.
10905 * config/linux/mips/futex.h: New file.
10907 2008-07-16 Jakub Jelinek <jakub@redhat.com>
10909 * team.c (gomp_team_end): Free team immediately if it has
10912 2008-07-08 David Edelsohn <edelsohn@gnu.org>
10914 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
10915 * testsuite/libgomp.fortran/fortran.exp: Same.
10916 * testsuite/libgomp.c/c.exp: Same.
10917 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
10918 directory to library path first.
10920 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
10922 * env.c (parse_stacksize): Add cast to avoid warning.
10923 (parse_spincount): Likewise.
10925 2008-06-27 Jakub Jelinek <jakub@redhat.com>
10927 * testsuite/libgomp.c/loop-10.c: New test.
10928 * libgomp.c/loop-3.c (main): Add lastprivate clause.
10929 * libgomp.c++/loop-6.C (main): Likewise.
10932 * testsuite/libgomp.c/debug-1.c: New test.
10934 2008-06-19 Jakub Jelinek <jakub@redhat.com>
10936 * testsuite/libgomp.c/nqueens-1.c: New test.
10939 * testsuite/libgomp.c++/task-7.C: New function.
10941 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10943 * configure: Regenerate.
10945 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10947 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
10948 mutex when HAVE_SYNC_BUILTINS isn't defined.
10950 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10952 * libgomp.texi (omp_test_lock): Fix typo.
10954 2008-06-12 Tobias Burnus <burnus@net-b.de>
10956 * omp_lib.f90.in: Add "implicit none".
10958 2008-06-12 Jakub Jelinek <jakub@redhat.com>
10960 PR middle-end/36506
10961 * testsuite/libgomp.c/reduction-5.c: New test.
10963 2008-06-11 Jakub Jelinek <jakub@redhat.com>
10965 * libgomp.h (struct gomp_task): Add in_tied_task field.
10966 * task.c (gomp_init_task): Initialize it.
10967 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
10968 unconditionally. Don't call gomp_team_barrier_wake if
10969 current task is implicit or if(0) from implicit and number of
10970 running tasks is equal to nthreads - 1.
10973 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
10974 omp_get_team_size_8): Fix pastos.
10977 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
10978 * configure: Regenerated.
10979 * config.h.in: Regenerated.
10980 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
10983 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
10986 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
10987 (GOMP_loop_ull_dynamic_start): Likewise.
10988 (GOMP_loop_ull_guided_start): Likewise.
10989 (GOMP_loop_ull_ordered_static_start): Likewise.
10990 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
10991 (GOMP_loop_ull_ordered_guided_start): Likewise.
10993 2008-06-06 Jakub Jelinek <jakub@redhat.com>
10994 Richard Henderson <rth@redhat.com>
10995 Ulrich Drepper <drepper@redhat.com>
10996 Jakob Blomer <jakob.blomer@ira.uka.de>
10998 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
10999 Substitute also OMP_*LOCK_25*.
11000 * configure: Regenerated.
11001 * config.h.in: Regenerated.
11002 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
11003 ptrlock.c and task.c.
11004 * Makefile.in: Regenerated.
11005 * testsuite/Makefile.in: Regenerated.
11006 * task.c: New file.
11007 * loop_ull.c: New file.
11008 * iter_ull.c: New file.
11009 * libgomp.h: Include ptrlock.h.
11010 (enum gomp_task_kind): New type.
11011 (struct gomp_team): Add task_lock, task_queue, task_count,
11012 task_running_count, single_count fields. Add
11013 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
11014 Remove work_share_lock, generation_mask,
11015 oldest_live_gen, num_live_gen and init_work_shares fields, add
11016 work work_share_list_alloc, work_share_list_free and work_share_chunk
11017 fields. Change work_shares from pointer to pointers into an array.
11018 Change ordered_release field into gomp_sem_t ** from flexible array
11019 member. Add implicit_task and initial_work_shares fields.
11020 Move close to the end of the struct.
11021 (struct gomp_team_state): Add single_count, last_work_share,
11022 active_level and level fields, remove work_share_generation.
11023 (gomp_barrier_handle_tasks): New prototype.
11024 (gomp_finish_task): New inline function.
11025 (struct gomp_work_share): Move chunk_size, end, incr into
11026 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
11027 next_ll fields. Reshuffle fields. Add next_alloc,
11028 next_ws, next_free and inline_ordered_team_ids fields, change
11029 ordered_team_ids into pointer from flexible array member.
11030 Add mode field. Put lock and next into a different cache line
11031 from most of the write-once fields.
11032 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
11033 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
11034 gomp_iter_ull_guided_next): New prototypes.
11035 (gomp_new_icv): New prototype.
11036 (struct gomp_thread): Add thread_pool and task fields.
11037 (struct gomp_thread_pool): New type.
11038 (gomp_new_team): New prototype.
11039 (gomp_team_start): Change type of last argument.
11040 (gomp_new_work_share): Removed.
11041 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
11042 (gomp_work_share_init_done): New static inline.
11043 (gomp_throttled_spin_count_var, gomp_available_cpus,
11044 gomp_managed_threads): New extern decls.
11045 (gomp_init_task): New prototype.
11046 (gomp_spin_count_var): New extern var decl.
11047 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
11048 or no alias support, or if not PIC.
11049 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
11050 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
11051 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
11052 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
11053 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
11054 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
11055 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
11056 gomp_test_nest_lock_25): New prototypes.
11057 (omp_lock_symver, strong_alias): Define.
11058 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
11060 (gomp_end_task): New.
11061 (struct gomp_task_icv, gomp_global_icv): New.
11062 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
11063 (struct gomp_task): New.
11064 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11065 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11067 (gomp_schedule_type): Reorder enum to match
11069 * team.c (struct gomp_thread_start_data): Add thread_pool and task
11071 (gomp_thread_start): Add gomp_team_barrier_wait call.
11072 For non-nested case remove clearing of docked thread thr fields.
11073 Use pool fields instead of global gomp_* variables. Use
11074 gomp_barrier_wait_last when needed. Initialize ts.active_level.
11075 Create tasks for each member thread.
11076 (free_team): Only destroy team barrier, task_lock here and free it.
11077 (gomp_free_thread): Free last_team if non-NULL.
11078 (gomp_team_end): Call gomp_team_barrier_wait instead of
11079 gomp_barrier_wait. For nested case call one extra
11080 gomp_barrier_wait. Move here some destruction from free_team.
11081 Call free_team on pool->last_team if any, rather than freeing
11082 current team. Destroy work_share_list_free_lock ifndef
11083 HAVE_SYNC_BUILTINS.
11084 (gomp_new_icv): New function.
11085 (gomp_threads, gomp_threads_size, gomp_threads_used,
11086 gomp_threads_dock): Removed.
11087 (gomp_thread_destructor): New variable.
11088 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
11090 (gomp_team_start): Create new pool if current thread doesn't have
11091 one. Use pool fields instead of global gomp_* variables.
11092 Initialize thread_pool field for new threads. Clear single_count.
11093 Change last argument from ws to team, don't create
11094 new team, set ts.work_share to &team->work_shares[0] and clear
11095 ts.last_work_share. Don't clear ts.work_share_generation.
11096 If number of threads changed, adjust atomically gomp_managed_threads.
11097 Use gomp_init_task instead of gomp_new_task,
11098 set thr->task to the corresponding implicit_task array entry.
11099 Create tasks for each member thread. Initialize ts.level.
11100 (initialize_team): Call pthread_key_create on
11101 gomp_thread_destructor.
11102 (team_destructor): New function.
11103 (new_team): Removed.
11104 (gomp_new_team): New function.
11105 (free_team): Free gomp_work_share blocks chained through next_alloc,
11106 instead of freeing work_shares and destroying work_share_lock.
11107 (gomp_team_end): Call gomp_fini_work_share. If number of threads
11108 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
11109 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
11110 of gomp_barrier_wait.
11111 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
11112 instead of gomp_barrier_wait. Call gomp_work_share_init_done
11113 if gomp_work_share_start returned true. Don't unlock ws->lock.
11114 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
11115 of gomp_barrier_wait.
11116 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
11117 gomp_work_share_init_done if gomp_work_share_start returned true.
11118 Don't unlock ws->lock.
11119 * work.c: Include stddef.h.
11120 (free_work_share): Use work_share_list_free_lock instead
11121 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
11122 Call gomp_fini_work_share and then either free ws if orphaned, or
11123 put it into work_share_list_free list of the current team.
11124 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
11126 (gomp_work_share_start, gomp_work_share_end,
11127 gomp_work_share_end_nowait): Rewritten.
11128 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
11129 (openmp_version): Set to 200805.
11130 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11131 omp_sched_guided, omp_sched_auto): New parameters.
11132 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11133 omp_set_max_active_levels, omp_get_max_active_levels,
11134 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11135 omp_get_active_level): New interfaces.
11136 * omp_lib.h.in (openmp_version): Set to 200805.
11137 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
11138 omp_sched_guided, omp_sched_auto): New parameters.
11139 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11140 omp_set_max_active_levels, omp_get_max_active_levels,
11141 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11142 omp_get_active_level): New externals.
11143 * loop.c: Include limits.h.
11144 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
11146 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
11147 Likewise. Use gomp_icv.
11148 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
11149 ts.static_trip here.
11150 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
11151 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
11152 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
11153 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
11154 don't unlock ws->lock, otherwise lock it.
11155 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
11156 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
11157 (gomp_parallel_loop_start): Call gomp_new_team instead of
11158 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
11159 Adjust gomp_team_start caller. Pass 0 as second argument to
11160 gomp_resolve_num_threads.
11161 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
11162 If adding ws->chunk_size nthreads + 1 times after end won't
11163 overflow, set ws->mode to 1.
11164 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
11165 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
11166 GOMP_loop_ull_ordered_static_start,
11167 GOMP_loop_ull_ordered_dynamic_start,
11168 GOMP_loop_ull_ordered_guided_start,
11169 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
11170 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
11171 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
11172 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
11173 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
11175 * libgomp.map: Export lock routines also @@OMP_2.0.
11176 (GOMP_loop_ordered_dynamic_first,
11177 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
11178 GOMP_loop_ordered_static_first): Remove.
11179 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
11180 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
11181 GOMP_loop_ull_ordered_dynamic_next,
11182 GOMP_loop_ull_ordered_dynamic_start,
11183 GOMP_loop_ull_ordered_guided_next,
11184 GOMP_loop_ull_ordered_guided_start,
11185 GOMP_loop_ull_ordered_runtime_next,
11186 GOMP_loop_ull_ordered_runtime_start,
11187 GOMP_loop_ull_ordered_static_next,
11188 GOMP_loop_ull_ordered_static_start,
11189 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
11190 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
11191 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
11192 (omp_set_schedule, omp_get_schedule,
11193 omp_get_thread_limit, omp_set_max_active_levels,
11194 omp_get_max_active_levels, omp_get_level,
11195 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
11196 omp_set_schedule_, omp_set_schedule_8_,
11197 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11198 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11199 omp_get_max_active_levels_, omp_get_level_,
11200 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11201 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11202 New exports @@OMP_3.0.
11203 * omp.h.in (omp_sched_t): New type.
11204 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11205 omp_set_max_active_levels, omp_get_max_active_levels,
11206 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
11207 omp_get_active_level): New prototypes.
11208 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
11209 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
11210 gomp_thread_limit_var, gomp_remaining_threads_count,
11211 gomp_remaining_threads_lock): New variables.
11212 (parse_spincount): New function.
11213 (initialize_env): Call gomp_init_num_threads unconditionally.
11214 Initialize gomp_available_cpus. Call parse_spincount,
11215 initialize gomp_{,throttled_}spin_count_var
11216 depending on presence and value of OMP_WAIT_POLICY and
11217 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
11218 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
11219 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
11220 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
11221 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
11222 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
11223 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
11224 (gomp_global_icv): New.
11225 (parse_schedule): Use it. Parse "auto".
11226 (omp_set_num_threads): Use gomp_icv.
11227 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
11229 (omp_get_max_threads): Move from parallel.c.
11230 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
11231 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
11233 (parse_stacksize, parse_wait_policy): New functions.
11234 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
11235 both wrappers for compatibility and new locks.
11236 (omp_set_schedule, omp_get_schedule,
11237 omp_get_thread_limit, omp_set_max_active_levels,
11238 omp_get_max_active_levels, omp_get_level,
11239 omp_get_ancestor_thread_num, omp_get_team_size,
11240 omp_get_active_level): New ialias_redirect.
11241 (omp_set_schedule_, omp_set_schedule_8_,
11242 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
11243 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
11244 omp_get_max_active_levels_, omp_get_level_,
11245 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
11246 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
11248 * parallel.c: Include limits.h.
11249 (gomp_resolve_num_threads): Add count argument. Rewritten.
11250 (GOMP_parallel_start): Call gomp_new_team and pass that as last
11251 argument to gomp_team_start. Pass 0 as second argument to
11252 gomp_resolve_num_threads.
11253 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
11254 if gomp_thread_limit_var != ULONG_MAX.
11255 (omp_in_parallel): Implement using ts.active_level.
11256 (omp_get_max_threads): Move to env.c.
11257 (omp_get_level, omp_get_ancestor_thread_num,
11258 omp_get_team_size, omp_get_active_level): New functions,
11260 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
11261 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
11262 gomp_iter_dynamic_next instead of the _locked variant and don't take
11263 lock around it, otherwise acquire it before calling
11264 gomp_iter_dynamic_next_locked.
11265 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
11266 gomp_iter_dynamic_next instead of the _locked variant and don't take
11268 (GOMP_parallel_sections_start): Call gomp_new_team instead of
11269 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
11270 Adjust gomp_team_start caller. Pass count as second argument to
11271 gomp_resolve_num_threads, don't adjust num_threads after the call.
11273 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
11274 ws->chunk_size by incr.
11275 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
11277 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
11279 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
11280 (omp_check_defines): Check even the compat defines.
11281 * config/linux/ptrlock.c: New file.
11282 * config/linux/ptrlock.h: New file.
11283 * config/linux/wait.h: New file.
11284 * config/posix/ptrlock.c: New file.
11285 * config/posix/ptrlock.h: New file.
11286 * config/linux/bar.h (gomp_team_barrier_wait,
11287 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11288 (gomp_team_barrier_set_task_pending,
11289 gomp_team_barrier_clear_task_pending,
11290 gomp_team_barrier_set_waiting_for_tasks,
11291 gomp_team_barrier_waiting_for_tasks,
11292 gomp_team_barrier_done): New inlines.
11293 (gomp_barrier_t): Rewritten.
11294 (gomp_barrier_state_t): New typedef.
11295 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
11296 gomp_barrier_wait_start): Rewritten.
11297 (gomp_barrier_wait_end): Change second argument to
11298 gomp_barrier_state_t.
11299 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11301 * config/linux/bar.c: Include wait.h instead of libgomp.h and
11303 (gomp_barrier_wait_end): Rewritten.
11304 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11305 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
11306 * config/posix/bar.h (gomp_barrier_t): Add generation field.
11307 (gomp_barrier_state_t): New typedef.
11308 (gomp_team_barrier_wait,
11309 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11310 (gomp_barrier_wait_start): Or all but low 2 bits from generation
11311 into the return value. Return gomp_barrier_state_t.
11312 (gomp_team_barrier_set_task_pending,
11313 gomp_team_barrier_clear_task_pending,
11314 gomp_team_barrier_set_waiting_for_tasks,
11315 gomp_team_barrier_waiting_for_tasks,
11316 gomp_team_barrier_done): New inlines.
11317 (gomp_barrier_wait_end): Change second argument to
11318 gomp_barrier_state_t.
11319 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11321 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
11322 (gomp_barrier_wait_end): Change second argument to
11323 gomp_barrier_state_t.
11324 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11325 gomp_team_barrier_wake): New functions.
11326 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
11328 (gomp_futex_wake, gomp_futex_wait): New variables.
11329 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
11330 * config/linux/lock.c: Rewrite to make locks task owned,
11331 for backwards compatibility provide the old entrypoints
11332 if symbol versioning. Include wait.h instead of libgomp.h and
11334 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
11335 * config/posix95/lock.c: Rewrite to make locks task owned,
11336 for backwards compatibility provide the old entrypoints
11337 if symbol versioning.
11338 * config/posix/lock.c: Rewrite to make locks task owned,
11339 for backwards compatibility provide the old entrypoints
11340 if symbol versioning.
11341 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
11342 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
11343 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
11344 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11345 (sys_futex0): Return error code.
11346 (futex_wake, futex_wait): If ENOSYS was returned, clear
11347 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11348 (cpu_relax, atomic_write_barrier): New static inlines.
11349 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11350 (futex_wake, futex_wait): If ENOSYS was returned, clear
11351 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11352 (cpu_relax, atomic_write_barrier): New static inlines.
11353 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11354 (sys_futex0): Return error code.
11355 (futex_wake, futex_wait): If ENOSYS was returned, clear
11356 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11357 (cpu_relax, atomic_write_barrier): New static inlines.
11358 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11359 (sys_futex0): Return error code.
11360 (futex_wake, futex_wait): If ENOSYS was returned, clear
11361 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11362 (cpu_relax, atomic_write_barrier): New static inlines.
11363 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11364 (sys_futex0): Return error code.
11365 (futex_wake, futex_wait): If ENOSYS was returned, clear
11366 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11367 (cpu_relax, atomic_write_barrier): New static inlines.
11368 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11369 (sys_futex0): Return error code.
11370 (futex_wake, futex_wait): If ENOSYS was returned, clear
11371 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11372 (cpu_relax, atomic_write_barrier): New static inlines.
11373 * config/linux/sem.c: Include wait.h instead of libgomp.h and
11375 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
11376 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
11377 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
11379 (omp_nest_lock_t): Change owner into void *, add lock field.
11380 * config/posix95/omp-lock.h: Include semaphore.h.
11381 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11382 (omp_lock_t): Use sem_t instead of mutex if semaphores
11384 (omp_nest_lock_t): Likewise. Change owner to void *.
11385 * config/posix/omp-lock.h: Include semaphore.h.
11386 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11387 (omp_lock_t): Use sem_t instead of mutex if semaphores
11389 (omp_nest_lock_t): Likewise. Add owner field.
11391 2008-06-06 Jakub Jelinek <jakub@redhat.com>
11393 * testsuite/libgomp.c/collapse-1.c: New test.
11394 * testsuite/libgomp.c/collapse-2.c: New test.
11395 * testsuite/libgomp.c/collapse-3.c: New test.
11396 * testsuite/libgomp.c/icv-1.c: New test.
11397 * testsuite/libgomp.c/icv-2.c: New test.
11398 * testsuite/libgomp.c/lib-2.c: New test.
11399 * testsuite/libgomp.c/lock-1.c: New test.
11400 * testsuite/libgomp.c/lock-2.c: New test.
11401 * testsuite/libgomp.c/lock-3.c: New test.
11402 * testsuite/libgomp.c/loop-4.c: New test.
11403 * testsuite/libgomp.c/loop-5.c: New test.
11404 * testsuite/libgomp.c/loop-6.c: New test.
11405 * testsuite/libgomp.c/loop-7.c: New test.
11406 * testsuite/libgomp.c/loop-8.c: New test.
11407 * testsuite/libgomp.c/loop-9.c: New test.
11408 * testsuite/libgomp.c/nested-3.c: New test.
11409 * testsuite/libgomp.c/nestedfn-6.c: New test.
11410 * testsuite/libgomp.c/sort-1.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++/c++.exp: Add libstdc++-v3 build includes
11416 to C++ testsuite default compiler options.
11417 * testsuite/libgomp.c++/collapse-1.C: New test.
11418 * testsuite/libgomp.c++/collapse-2.C: New test.
11419 * testsuite/libgomp.c++/ctor-10.C: New test.
11420 * testsuite/libgomp.c++/for-1.C: New test.
11421 * testsuite/libgomp.c++/for-2.C: New test.
11422 * testsuite/libgomp.c++/for-3.C: New test.
11423 * testsuite/libgomp.c++/for-4.C: New test.
11424 * testsuite/libgomp.c++/for-5.C: New test.
11425 * testsuite/libgomp.c++/loop-8.C: New test.
11426 * testsuite/libgomp.c++/loop-9.C: New test.
11427 * testsuite/libgomp.c++/loop-10.C: New test.
11428 * testsuite/libgomp.c++/task-1.C: New test.
11429 * testsuite/libgomp.c++/task-2.C: New test.
11430 * testsuite/libgomp.c++/task-3.C: New test.
11431 * testsuite/libgomp.c++/task-4.C: New test.
11432 * testsuite/libgomp.c++/task-5.C: New test.
11433 * testsuite/libgomp.c++/task-6.C: New test.
11434 * testsuite/libgomp.fortran/allocatable1.f90: New test.
11435 * testsuite/libgomp.fortran/allocatable2.f90: New test.
11436 * testsuite/libgomp.fortran/allocatable3.f90: New test.
11437 * testsuite/libgomp.fortran/allocatable4.f90: New test.
11438 * testsuite/libgomp.fortran/collapse1.f90: New test.
11439 * testsuite/libgomp.fortran/collapse2.f90: New test.
11440 * testsuite/libgomp.fortran/collapse3.f90: New test.
11441 * testsuite/libgomp.fortran/collapse4.f90: New test.
11442 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
11443 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
11444 * testsuite/libgomp.fortran/lib4.f90: New test.
11445 * testsuite/libgomp.fortran/lock-1.f90: New test.
11446 * testsuite/libgomp.fortran/lock-2.f90: New test.
11447 * testsuite/libgomp.fortran/nested1.f90: New test.
11448 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
11449 * testsuite/libgomp.fortran/strassen.f90: New test.
11450 * testsuite/libgomp.fortran/tabs1.f90: New test.
11451 * testsuite/libgomp.fortran/tabs2.f: New test.
11452 * testsuite/libgomp.fortran/task1.f90: New test.
11453 * testsuite/libgomp.fortran/task2.f90: New test.
11454 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
11455 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11456 * testsuite/libgomp.c/pr26943-2.c: Likewise.
11457 * testsuite/libgomp.c/pr26943-3.c: Likewise.
11458 * testsuite/libgomp.c/pr26943-4.c: Likewise.
11460 2008-05-23 Jakub Jelinek <jakub@redhat.com>
11463 * testsuite/libgomp.c++/ctor-11.C: New test.
11464 * testsuite/libgomp.c++/ctor-12.C: New test.
11466 2008-05-15 Janis Johnson <janis187@us.ibm.com>
11468 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
11470 2008-05-07 Jakub Jelinek <jakub@redhat.com>
11472 PR middle-end/36106
11473 * testsuite/libgomp.c/atomic-5.c: New test.
11474 * testsuite/libgomp.c/atomic-6.c: New test.
11475 * testsuite/libgomp.c/autopar-1.c: New test.
11477 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11479 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
11480 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
11481 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
11482 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
11483 * configure: Regenerate.
11484 * Makefile.in, testsuite/Makefile.in: Likewise.
11486 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
11489 * aclocal.m4: Regenerate.
11490 * configure: Regenerate.
11492 2008-03-18 Jakub Jelinek <jakub@redhat.com>
11494 PR middle-end/35611
11495 * testsuite/libgomp.c/atomic-4.c: New test.
11498 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
11499 (gomp_iter_guided_next): Likewise.
11500 * testsuite/libgomp.c/pr35625.c: New test.
11502 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11504 * aclocal.m4: Regenerate.
11505 * configure: Likewise.
11506 * Makefile.in: Likewise.
11507 * testsuite/Makefile.in: Likewise.
11509 2008-03-13 Jakub Jelinek <jakub@redhat.com>
11511 PR middle-end/35185
11512 * testsuite/libgomp.c++/pr35185.C: New test.
11514 2008-03-12 Jakub Jelinek <jakub@redhat.com>
11516 PR middle-end/35549
11517 * testsuite/libgomp.c/pr35549.c: New test.
11519 2008-03-06 Jakub Jelinek <jakub@redhat.com>
11521 * testsuite/libgomp.c/atomic-3.c: New test.
11523 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11526 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
11527 .F08 file suffixes.
11529 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
11532 * configure.ac: Add ACX_HEADER_STRING.
11533 * env.c: Include strings.h.
11534 * aclocal.m4: Regenerate.
11535 * config.h.in: Regenerate.
11536 * configure: Regenerate.
11537 * Makefile.in: Regenerate.
11538 * testsuite/Makefile.in: Regenerate.
11540 2008-02-15 Jakub Jelinek <jakub@redhat.com>
11542 PR middle-end/35196
11543 * testsuite/libgomp.c/pr35196.c: New test.
11545 PR middle-end/35130
11546 * testsuite/libgomp.fortran/pr35130.f90: New test.
11547 * testsuite/libgomp.c/pr35130.c: New test.
11549 2008-01-25 Jakub Jelinek <jakub@redhat.com>
11551 PR middle-end/33880
11552 * testsuite/libgomp.c/pr33880.c: New test.
11553 * testsuite/libgomp.fortran/pr33880.f90: New test.
11555 2008-01-24 David Edelsohn <edelsohn@gnu.org>
11557 * configure: Regenerate.
11559 2008-01-08 Jakub Jelinek <jakub@redhat.com>
11561 * configure.ac: Move futex checking into ../config/futex.m4.
11562 * configure: Rebuilt.
11563 * aclocal.m4: Rebuilt.
11564 * Makefile.in: Rebuilt.
11566 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
11567 2007-10-15 ../config/tls.m4 change.
11569 2007-12-19 Jakub Jelinek <jakub@redhat.com>
11572 * testsuite/libgomp.c/pr34513.c: New test.
11573 * testsuite/libgomp.c++/pr34513.C: New test.
11575 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
11578 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
11580 2007-12-04 Jakub Jelinek <jakub@redhat.com>
11582 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
11584 2007-12-03 Jakub Jelinek <jakub@redhat.com>
11586 * testsuite/libgomp.c/private-1.c: New test.
11588 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
11589 Paolo Bonzini <bonzini@gnu.org>
11591 * Makefile.am: Use space as vpath separator. Use 'vpath %'
11592 instead of 'VPATH ='.
11593 * Makefile.in: Regenerate.
11595 2007-11-23 Matthias Klose <doko@ubuntu.com>
11597 * configure.ac: Adjust makeinfo version check.
11598 * configure: Regenerate.
11600 2007-11-10 Jakub Jelinek <jakub@redhat.com>
11603 * testsuite/libgomp.fortran/pr34020.f90: New test.
11605 2007-11-06 Jakub Jelinek <jakub@redhat.com>
11608 * testsuite/libgomp.c++/atomic-1.C: New test.
11610 2007-10-25 Jakub Jelinek <jakub@redhat.com>
11613 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
11614 Make x and y integers rather than (implicit) reals. Add private (j)
11615 clause to the last omp parallel.
11617 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
11619 * configure: Regenerate following changes to ../config/tls.m4.
11621 2007-09-28 Jakub Jelinek <jakub@redhat.com>
11623 * testsuite/libgomp.fortran/stack.f90: New test.
11625 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
11627 * config/mingw32/proc.c: New file.
11629 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
11631 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
11632 (main): Use __get_cpuid to get i386 target fetaures.
11633 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
11634 (main): Use __get_cpuid to get x86_64 target fetaures.
11636 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
11639 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
11640 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
11642 2007-07-12 Jakub Jelinek <jakub@redhat.com>
11645 * testsuite/libgomp.fortran/pr32550.f90: New test.
11646 * testsuite/libgomp.fortran/crayptr2.f90: New test.
11648 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
11650 * aclocal.m4: Regenerated.
11652 2007-07-05 Tobias Burnus <burnus@net-b.de>
11655 * testsuite/libgomp.fortran/pr32359.f90: New.
11657 2007-07-02 Jakub Jelinek <jakub@redhat.com>
11660 * sections.c (GOMP_parallel_sections_start): Only decrease
11661 number of threads to COUNT if dyn_var is true.
11662 * testsuite/libgomp.c/pr32468.c: New test.
11664 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11667 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
11669 2007-06-21 Jakub Jelinek <jakub@redhat.com>
11671 PR middle-end/32362
11672 * testsuite/libgomp.c/pr32362-1.c: New test.
11673 * testsuite/libgomp.c/pr32362-2.c: New test.
11674 * testsuite/libgomp.c/pr32362-3.c: New test.
11676 2007-06-07 Jakub Jelinek <jakub@redhat.com>
11678 * team.c (gomp_team_start): Fix setting up thread_attr
11681 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
11683 * configure: Regenerate.
11685 2007-05-23 Steve Ellcey <sje@cup.hp.com>
11687 * Makefile.in: Regenerate.
11688 * configure: Regenerate.
11689 * aclocal.m4: Regenerate.
11690 * testsuite/Makefile.in: Regenerate.
11692 2007-05-04 Jakub Jelinek <jakub@redhat.com>
11694 * config/linux/proc.c: New file.
11697 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
11699 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
11701 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
11703 2007-04-16 Matthias Klose <doko@debian.org>
11705 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
11706 flags if not building with -m64.
11707 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
11708 flag for i?86-*-* targets, if current target matches -m64.
11710 2007-04-14 Steve Ellcey <sje@cup.hp.com>
11712 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
11713 * Makefile.in: Regenerate.
11715 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11718 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
11720 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11722 2007-04-04 Jakub Jelinek <jakub@redhat.com>
11724 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
11726 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
11727 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
11728 (parse_affinity): New function.
11729 (initialize_env): Call it and gomp_init_affinity.
11730 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
11731 create new pthread_attr_t and call gomp_init_thread_affinity
11732 on it for each thread before passing the attribute to pthread_create.
11733 * config/linux/affinity.c: New file.
11734 * config/posix/affinity.c: New file.
11735 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
11736 * configure: Rebuilt.
11737 * config.h.in: Rebuilt.
11738 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
11739 * Makefile.in: Rebuilt.
11741 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
11743 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
11745 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
11746 and use it if found.
11748 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
11750 * testsuite/config/default.exp: New file.
11751 * testsuite/lib/libgomp.exp: New file.
11752 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
11753 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
11754 load_lib *, load_gcc_lib *): Move to libgomp.exp.
11755 (libgomp_load): Remove.
11756 * testsuite/lib/libgomp.exp (libgomp_init): Compute
11757 always_ld_library_path, not ld_library_path. Set additional_flags
11758 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
11759 (target_compile): Do not call libgomp_init. Append lang_library_path
11760 and lang_link_flags to options.
11761 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
11762 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
11764 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
11765 always_ld_library_path. Set LD_LIBRARY_PATH here.
11766 * testsuite/libgomp.fortran/fortran.exp: Ditto.
11767 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
11768 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
11770 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
11771 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
11772 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
11773 * testsuite/libgomp.c/pr29947-1.c: Ditto.
11774 * testsuite/libgomp.c/atomic-10.c: Ditto.
11776 2007-03-21 Jakub Jelinek <jakub@redhat.com>
11778 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
11779 dg-final cleanup-modules line.
11780 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
11781 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
11782 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
11783 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11784 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11785 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11786 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11788 2007-03-18 Andreas Schwab <schwab@suse.de>
11790 * acinclude.m4: Adjust regular expression for ld version
11792 * configure: Regenerate.
11794 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
11796 * Makefile.am: Add install-pdf target as copied from
11797 automake v1.10 rules.
11798 * Makefile.in: Regenerate
11800 2007-02-07 Jakub Jelinek <jakub@redhat.com>
11803 * configure: Regenerate.
11806 * testsuite/libgomp.c++/pr30703.C: New test.
11808 2007-02-02 Jakub Jelinek <jakub@redhat.com>
11811 2006-07-05 Eric Christopher <echristo@apple.com>
11812 * configure.ac: Depend addition of -pthread on host OS.
11813 * configure: Regenerate.
11815 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11817 * libgomp.texi: Fix spacing after abbreviations.
11819 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
11822 * configure.ac: Add check for makeinfo
11823 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
11824 if an appropriate version of makeinfo is found.
11825 * aclocal.m4: Regenerated.
11826 * configure: Regenerated.
11827 * Makefile.in: Regenerated.
11828 * testsuite/Makefile.in: Regenerated.
11830 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
11833 * libgomp.texi: More about implementation-dependent settings.
11835 2007-01-26 Tobias Burnus <burnus@net-b.de>
11837 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
11839 2007-01-24 Jakub Jelinek <jakub@redhat.com>
11841 PR middle-end/30494
11842 * testsuite/libgomp.c/pr30494.c: New test.
11844 2007-01-15 Tom Tromey <tromey@redhat.com>
11846 * configure: Rebuilt.
11847 * configure.ac: Fixed comment.
11849 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
11851 * libgomp.texi: Document implementation specific default values of
11852 environment variables.
11854 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
11857 * libgomp.texi: New file.
11858 * configure.ac: Add --enable-generated-files-in-srcdir option.
11859 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
11861 * Makefile.in: Regenerated.
11862 * config.h.in: Regenerated.
11863 * testsuite/Makefile.in: Regenerated.
11866 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
11869 * env.c (omp_set_num_threads): Set illegal thread count to 1.
11871 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
11873 * configure: Regenerate.
11875 2006-12-04 Jakub Jelinek <jakub@redhat.com>
11878 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
11879 start if there shouldn't be any loop iterations.
11880 (gomp_loop_ordered_static_start): Remove start == end test.
11881 * testsuite/libgomp.c/pr29947-1.c: New test.
11882 * testsuite/libgomp.c/pr29947-2.c: New test.
11884 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
11886 * configure.tgt: Force initial-exec TLS model on Linux only.
11888 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
11890 * configure: Regenerated.
11892 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
11894 * env.c (parse_schedule): Reject out of range values.
11895 (parse_unsigned_long): Reject out of range, negative or zero values.
11897 2006-10-29 Jakub Jelinek <jakub@redhat.com>
11900 * testsuite/libgomp.fortran/pr29629.f90: New test.
11902 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
11905 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
11906 * config/posix95: New directory.
11907 * config/posix95/omp-lock.h: New file.
11908 * config/posix95/lock.c: Likewise.
11910 2006-10-14 Geoffrey Keating <geoffk@apple.com>
11912 * aclocal.m4: Regenerate.
11913 * configure: Regenerate.
11915 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11917 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
11920 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11922 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
11924 * configure: Regenerate.
11925 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
11927 2006-09-26 Jakub Jelinek <jakub@redhat.com>
11929 PR middle-end/25261
11930 PR middle-end/28790
11931 * testsuite/libgomp.c/nestedfn-4.c: New test.
11932 * testsuite/libgomp.c/nestedfn-5.c: New test.
11933 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
11936 * testsuite/libgomp.fortran/condinc1.f: New test.
11937 * testsuite/libgomp.fortran/condinc2.f: New test.
11938 * testsuite/libgomp.fortran/condinc3.f90: New test.
11939 * testsuite/libgomp.fortran/condinc4.f90: New test.
11940 * testsuite/libgomp.fortran/condinc1.inc: New file.
11942 2006-09-18 Tom Tromey <tromey@redhat.com>
11944 * configure: Rebuilt.
11946 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
11949 PR preprocessor/14634
11950 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
11952 * configure: Regenerate.
11954 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
11956 * testsuite/libgomp.fortran/reduction3.f90: Change
11957 -2147483648 to -huge(i)-1 to avoid overflow.
11958 * testsuite/libgomp.fortran/reduction4.f90: Change
11959 Z'ffffffff' to not(0) to avoid overflow.
11961 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
11964 * Makefile.am (libsubincludedir): New.
11965 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
11966 * Makefile.in: Regenerate.
11968 2006-08-17 Jakub Jelinek <jakub@redhat.com>
11971 * env.c: Include ctype.h.
11972 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
11973 leading and/or trailing whitespace and compare strings case
11976 2006-07-16 Jakub Jelinek <jakub@redhat.com>
11979 * testsuite/libgomp.fortran/pr28390.f: New test.
11981 2006-07-05 Eric Christopher <echristo@apple.com>
11983 * configure.ac: Depend addition of -pthread on host OS.
11984 * configure: Regenerate.
11986 2006-06-21 Jakub Jelinek <jakub@redhat.com>
11988 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
11989 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
11992 2006-06-20 Jakub Jelinek <jakub@redhat.com>
11996 * configure.ac: If neither --enable-linux-futex nor
11997 --disable-linux-futex is passed, determine the default by checking
11998 for compiling and/or running against NPTL. With --enable-linux-futex,
11999 check if SYS_gettid and SYS_futex are defined.
12000 * configure: Rebuilt.
12002 2006-06-14 Richard Henderson <rth@redhat.com>
12005 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
12006 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
12008 2006-06-09 Richard Henderson <rth@redhat.com>
12010 * env.c (gomp_nthreads_var): Change to unsigned long.
12011 (gomp_run_sched_chunk): Likewise.
12012 (parse_unsigned_long): Rename from parse_num_threads and generalize.
12013 (initialize_env): Initialize gomp_thread_attr.
12014 * libgomp.h (gomp_nthreads_var): Update decl.
12015 (gomp_run_sched_chunk): Likewise.
12016 (gomp_thread_attr): Declare.
12017 * team.c (gomp_thread_attr): Export.
12018 (initialize_team): Don't initialize it.
12020 2006-06-09 Jakub Jelinek <jakub@redhat.com>
12023 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
12024 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
12026 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12028 * config/mingw32/time.c: New file.
12029 * configure.tgt: Use it.
12031 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
12033 * Makefile.am: Add install-html target. Add install-html to .PHONY
12034 * Makefile.in: Regenerate.
12036 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12039 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
12040 * testsuite/libgomp.c/critical-1.c: Likewise.
12041 * testsuite/libgomp.c/loop-1.c: Likewise.
12042 * testsuite/libgomp.c/loop-2.c: Likewise.
12043 * testsuite/libgomp.c/single-1.c: Likewise.
12044 * testsuite/libgomp.c/ordered-1.c: Likewise.
12045 * testsuite/libgomp.c/ordered-2.c: Likewise.
12047 2006-05-15 Jakub Jelinek <jakub@redhat.com>
12049 PR middle-end/27416
12050 * libgomp.fortran/pr27416-1.f90: New test.
12052 2006-05-03 Jakub Jelinek <jakub@redhat.com>
12055 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
12056 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
12058 2006-05-02 Jakub Jelinek <jakub@redhat.com>
12061 * testsuite/libgomp.c/pr26943-1.c: New test.
12062 * testsuite/libgomp.c/pr26943-2.c: New test.
12063 * testsuite/libgomp.c/pr26943-3.c: New test.
12064 * testsuite/libgomp.c/pr26943-4.c: New test.
12065 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
12066 * testsuite/libgomp.c++/pr26943.C: New test.
12068 2006-05-02 Jakub Jelinek <jakub@redhat.com>
12070 PR middle-end/27337
12071 * testsuite/libgomp.c++/pr27337.C: New test.
12073 2006-04-26 Jakub Jelinek <jakub@redhat.com>
12076 * testsuite/libgomp.c/pr26171.c: New test.
12078 2006-04-25 Richard Henderson <rth@redhat.com>
12081 * configure.ac: Use GCC_CHECK_TLS.
12082 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
12083 * Makefile.in, aclocal.m4, configure: Regenerate.
12085 2006-04-10 Matthias Klose <doko@debian.org>
12087 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
12088 directory names containing underscores.
12090 2006-03-21 Jakub Jelinek <jakub@redhat.com>
12093 * testsuite/libgomp.c++/pr26691.C: New test.
12095 2006-03-13 Jakub Jelinek <jakub@redhat.com>
12097 * testsuite/libgomp.fortran/retval2.f90: New test.
12099 2006-03-09 Diego Novillo <dnovillo@redhat.com>
12101 * testsuite/libgomp.c++: New directory.
12103 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
12105 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
12106 * config/posix/sem.c: Implement the above.
12108 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
12110 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
12111 define HAVE_BROKEN_POSIX_SEMAPHORES.
12112 * configure: Rebuilt.
12113 * config.h.in: Rebuilt.
12115 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
12118 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
12119 for the other pthread check.
12120 * configure: Regenerate.
12121 * config.h.in: Regenerate.
12123 2006-02-15 Jakub Jelinek <jakub@redhat.com>
12127 * Makefile.am (fincludedir): New variable.
12128 (nodist_include_HEADERS): Remove Fortran files.
12129 (nodist_finclude_HEADERS): New variable.
12130 * Makefile.in: Regenerated.
12132 2006-02-13 Jakub Jelinek <jakub@redhat.com>
12134 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
12135 Remove tests for returning assumed character length arrays.
12137 2006-02-12 Roger Sayle <roger@eyesopen.com>
12138 John David Anglin <dave@hiauly1.hia.nrc.ca>
12141 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
12143 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
12145 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
12147 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
12149 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
12150 part of LD_LIBRARY_PATH manually.
12152 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
12155 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
12158 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
12161 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
12162 * configure.ac (PERL): Don't set.
12163 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
12164 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
12165 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
12166 * omp.h.in: Wrap the new configure substitutions with @ characters.
12167 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
12168 * aclocal.m4, configure, Makefile.in: Regenerate.
12169 * mkomp_h.pl: Delete.
12171 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
12174 * configure.ac: Use GCC_HEADER_STDINT.
12175 * libgomp.h: Include gstdint.h.
12176 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
12177 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
12179 2006-01-24 Richard Henderson <rth@redhat.com>
12182 * configure.ac: Add AM_MAINTAINER_MODE.
12183 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
12185 2006-01-24 Diego Novillo <dnovillo@redhat.com>
12187 * Makefile.in: Regenerate.
12188 * testsuite/Makefile.in: Regenerate.
12189 * aclocal.m4: Regenerate.
12191 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
12193 * config/posix/proc.c: Conditional include of sys/loadavg.h for
12195 * configure.ac: Add check for loadavg.h.
12196 (link_gomp): Adjust comment.
12197 * configure: Regenerate.
12198 * config.h.in: Regenerate.
12200 2006-01-21 Steve Ellcey <sje@cup.hp.com>
12203 * configure.ac: Remove check for alloca.h.
12204 * configure: Regenerate.
12205 * config.h.in: Regenerate.
12206 * libgomp.h: define gomp_alloca to be __builtin_alloca.
12207 * team.c: Remove use of alloca.h.
12208 Call gomp_alloca instead of alloca.
12210 2006-01-20 Steve Ellcey <sje@cup.hp.com>
12213 * team.c: Add include of alloca.h.
12214 * configure.ac: Add check for alloca.h.
12215 * configure: Regenerate.
12216 * config.h.in: Regenerate.
12218 2006-01-17 Jakub Jelinek <jakub@redhat.com>
12221 * testsuite/libgomp.fortran/pr25219.f90: New test.
12223 2005-12-05 Uros Bizjak <uros@kss-loka.si>
12225 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
12226 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
12227 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12228 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12229 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
12230 testsuite/libgomp.fortran/threadprivate1.f90,
12231 testsuite/libgomp.fortran/threadprivate2.f90,
12232 testsuite/libgomp.fortran/threadprivate3.f90,
12233 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12234 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12235 testsuite/libgomp.fortran/omp_parse3.f90: Change required
12236 effective-target to TLS runtime.
12238 * testsuite/libgomp.fortran/pr25162.f: Require
12239 effective-target TLS runtime.
12241 2005-12-01 Jakub Jelinek <jakub@redhat.com>
12243 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
12244 * testsuite/libgomp.c/nestedfn-3.c: New test.
12246 2005-11-30 Jakub Jelinek <jakub@redhat.com>
12249 * testsuite/libgomp.fortran/pr25162.f: New test.
12251 2005-11-28 Jakub Jelinek <jakub@redhat.com>
12253 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
12254 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
12256 2005-11-25 Jakub Jelinek <jakub@redhat.com>
12258 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
12259 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
12260 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
12261 single.c, team.c, work.c, config/linux/alpha/futex.h,
12262 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
12263 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
12264 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
12265 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
12266 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
12267 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
12268 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
12271 2005-11-18 Jakub Jelinek <jakub@redhat.com>
12273 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
12274 to nodist_noinst_HEADERS.
12275 * Makefile.in: Rebuilt.
12277 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
12278 add integer count field.
12279 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
12280 omp_nest_lock_t type change.
12281 (omp_init_nest_lock): Likewise. Initialize count to 0.
12282 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
12284 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
12286 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
12287 Increment count if successful and return the new nesting level.
12288 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
12289 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
12290 * testsuite/libgomp.c/lib-1.c: New test.
12291 * testsuite/libgomp.fortran/lib1.f90: New test.
12292 * testsuite/libgomp.fortran/lib2.f: New test.
12293 * testsuite/libgomp.fortran/lib3.f: New test.
12295 2005-11-17 Richard Henderson <rth@redhat.com>
12298 * Makefile.am (nodist_toolexeclib_HEADERS): New.
12299 * configure.ac (link_gomp): New. Substitute it.
12300 (AC_CONFIG_FILES): Add libgomp.spec.
12301 * libgomp.spec.in: New file.
12302 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
12303 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
12305 2005-11-18 Jakub Jelinek <jakub@redhat.com>
12307 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
12308 reduction(-:var) behaving the same as reduction(+:var).
12309 * testsuite/libgomp.c/reduction-4.c: New test.
12311 2005-11-15 Uros Bizjak <uros@kss-loka.si>
12313 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
12314 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
12315 testsuite/libgomp.c/copyin-3.c,
12316 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12317 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12318 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
12319 testsuite/libgomp.c++/pr24455.C,
12320 testsuite/libgomp.fortran/threadprivate1.f90,
12321 testsuite/libgomp.fortran/threadprivate2.f90,
12322 testsuite/libgomp.fortran/threadprivate3.f90,
12323 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12324 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12325 testsuite/libgomp.fortran/omp_parse3.f90: Require
12326 effective-target TLS.
12328 2005-11-14 Diego Novillo <dnovillo@redhat.com>
12332 2005-11-13 Jakub Jelinek <jakub@redhat.com>
12335 * team.c (initialize_team): Pass NULL rather than free as
12336 pthread_key_create destructor. Initialize thread specific data
12337 pointer in initial thread to a static local variable rather than
12340 2005-11-11 Uros Bizjak <uros@kss-loka.si>
12342 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
12343 its location to ld_library_path.
12345 2005-11-10 Diego Novillo <dnovillo@redhat.com>
12347 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
12349 2005-11-10 Diego Novillo <dnovillo@redhat.com>
12351 * testsuite/libgomp.c: Rename from libgomp.dg.
12353 2005-11-09 Diego Novillo <dnovillo@redhat.com>
12355 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
12356 threadprivate variable 'i'.
12358 2005-11-09 Jakub Jelinek <jakub@redhat.com>
12360 * config/linux/s390/futex.h: New file.
12361 * configure.tgt: Use it.
12363 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
12364 before the parallel.
12366 2005-11-08 Jakub Jelinek <jakub@redhat.com>
12369 * testsuite/libgomp.c++/master-1.C: New test.
12371 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12373 * testsuite/libgomp.dg/copyin-3.c: New test.
12375 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12377 * testsuite/libgomp.fortran/retval1.f90: New test.
12378 * testsuite/libgomp.fortran/vla7.f90: New test.
12380 2005-11-06 Jakub Jelinek <jakub@redhat.com>
12382 * testsuite/libgomp.fortran/vla2.f90: New test.
12383 * testsuite/libgomp.fortran/vla3.f90: New test.
12384 * testsuite/libgomp.fortran/vla4.f90: New test.
12385 * testsuite/libgomp.fortran/vla5.f90: New test.
12386 * testsuite/libgomp.fortran/vla6.f90: New test.
12388 2005-11-01 Jakub Jelinek <jakub@redhat.com>
12390 * config/linux/sparc/futex.h: New file.
12391 * configure.tgt: Use it.
12392 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
12394 * critical.c: Include stdlib.h.
12395 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
12396 ignoring return value.
12397 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
12398 LIBGOMP_CHECK_SYNC_BUILTINS check.
12399 * configure: Rebuilt.
12401 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12403 * testsuite/libgomp.fortran/vla1.f90: New test.
12405 2005-10-31 Richard Henderson <rth@redhat.com>
12407 * testsuite/libgomp.fortran/character2.f90: Fix race condition
12408 setting 's' in different threads.
12410 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12412 * libgomp.h (attribute_hidden, ialias): Define.
12413 * config/posix/proc.c (omp_get_num_procs): Add ialias.
12414 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
12415 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
12416 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12417 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12418 omp_test_lock, omp_test_nest_lock): Likewise.
12419 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
12420 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12421 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12422 omp_test_lock, omp_test_nest_lock): Likewise.
12423 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
12424 omp_get_dynamic, omp_get_nested): Likewise.
12425 * parallel.c (omp_get_num_threads, omp_get_max_threads,
12426 omp_get_thread_num, omp_in_parallel): Likewise.
12427 * fortran.c (ialias_redirect): Define.
12428 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
12429 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
12430 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
12431 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
12432 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
12433 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
12434 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
12435 omp_get_wtime): Add ialias_redirect.
12437 2005-10-30 Jakub Jelinek <jakub@redhat.com>
12439 * fortran.c: Include stdlib.h.
12441 2005-10-29 Jakub Jelinek <jakub@redhat.com>
12443 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
12444 * Makefile.in: Regenerated.
12446 2005-10-28 Jakub Jelinek <jakub@redhat.com>
12448 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
12449 * libgomp_f.h.in (omp_check_defines): New function.
12450 * env.c: Include libgomp_f.h.
12451 (initialize_env): Call omp_check_defines.
12453 * testsuite/libgomp.dg/copyin-2.c: New test.
12454 * testsuite/libgomp.c++/copyin-2.C: New test.
12455 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
12457 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
12458 * testsuite/libgomp.fortran/sharing2.f90: New test.
12460 * testsuite/libgomp.dg/copyin-1.c: New test.
12461 * testsuite/libgomp.c++/copyin-1.C: New test.
12463 2005-10-26 Jakub Jelinek <jakub@redhat.com>
12465 * testsuite/libgomp.fortran/crayptr1.f90: New test.
12467 * testsuite/libgomp.fortran/workshare1.f90: New test.
12469 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
12471 * libgomp.fortran/sharing1.f90: New test.
12473 2005-10-24 Jakub Jelinek <jakub@redhat.com>
12476 * testsuite/libgomp.c++/loop-7.C: New test.
12478 * testsuite/libgomp.dg/nestedfn-2.c: New test.
12480 * testsuite/libgomp.dg/nestedfn-1.c: New test.
12481 * testsuite/libgomp.fortran/reduction6.f90: New test.
12482 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
12484 2005-10-23 Richard Henderson <rth@redhat.com>
12486 * testsuite/libgomp.c++/ctor-1.C: New.
12487 * testsuite/libgomp.c++/ctor-2.C: New.
12488 * testsuite/libgomp.c++/ctor-3.C: New.
12489 * testsuite/libgomp.c++/ctor-4.C: New.
12490 * testsuite/libgomp.c++/ctor-5.C: New.
12491 * testsuite/libgomp.c++/ctor-6.C: New.
12492 * testsuite/libgomp.c++/ctor-7.C: New.
12493 * testsuite/libgomp.c++/ctor-8.C: New.
12494 * testsuite/libgomp.c++/ctor-9.C: New.
12496 2005-10-21 Diego Novillo <dnovillo@redhat.com>
12499 * testsuite/libgomp.c++/pr24455-1.C: New test.
12500 * testsuite/libgomp.c++/pr24455.C: New test.
12501 * testsuite/libgomp.dg/pr24455-1.c: New test.
12502 * testsuite/libgomp.dg/pr24455.c: New test.
12504 2005-10-20 Richard Henderson <rth@redhat.com>
12506 * testsuite/libgomp.c++/loop-6.C: New.
12507 * testsuite/libgomp.dg/loop-3.c: New.
12509 2005-10-20 Jakub Jelinek <jakub@redhat.com>
12511 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
12512 explicitly private.
12513 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
12516 2005-10-19 Diego Novillo <dnovillo@redhat.com>
12518 * testsuite/libgomp.fortran/jacobi.f: New test.
12520 2005-10-19 Richard Henderson <rth@redhat.com>
12522 * configure.tgt (i?86-linux): Default to with_arch instead of
12523 CFLAGS. Add -mtune to match target_cpu.
12524 (x86_64-linux): Tune to i686.
12526 * fortran.c (omp_test_nest_lock_): Fix typo.
12528 2005-10-19 Jakub Jelinek <jakub@redhat.com>
12530 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12531 gomp_ordered_sync): Do nothing if team->nthreads == 1.
12532 * testsuite/libgomp.dg/ordered-3.c: New test.
12534 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
12535 Remove volatile keyword.
12537 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
12538 in COMMON block to avoid warnings on 64-bit targets.
12540 2005-10-18 Diego Novillo <dnovillo@redhat.com>
12542 * testsuite/libgomp.dg/shared-3.c: New test.
12544 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12546 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
12547 * testsuite/libgomp.fortran/reduction5.f90: New test.
12549 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12551 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
12553 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
12554 flush loop now that __sync_synchronize has proper memory barrier.
12555 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
12556 Add -ffixed-form to dg-options.
12558 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12560 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
12561 from subdirectories.
12562 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
12563 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
12564 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
12565 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
12566 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
12567 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
12568 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
12569 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
12570 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
12571 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
12572 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
12573 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
12574 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
12575 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
12576 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
12577 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
12578 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
12579 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
12580 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
12581 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
12582 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
12583 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
12584 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
12585 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
12586 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
12588 2005-10-17 Jakub Jelinek <jakub@redhat.com>
12590 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
12591 lang_library_path exists. Use find instead of glob to gather tests.
12592 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
12594 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12596 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
12597 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
12598 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
12599 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
12600 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
12601 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
12602 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
12603 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
12604 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
12605 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
12606 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
12607 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
12608 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
12610 2005-10-15 Jakub Jelinek <jakub@redhat.com>
12612 * testsuite/libgomp.dg/vla-1.c: New test.
12614 * testsuite/libgomp.fortran/reference2.f90: New test.
12616 * testsuite/libgomp.fortran/character2.f90: Remove explicit
12617 declaration of omp_get_thread_num.
12618 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
12621 * testsuite/libgomp.fortran/reduction1.f90: New test.
12622 * testsuite/libgomp.fortran/reduction2.f90: New test.
12623 * testsuite/libgomp.fortran/reduction3.f90: New test.
12624 * testsuite/libgomp.fortran/reduction4.f90: New test.
12626 2005-10-13 Richard Henderson <rth@redhat.com>
12628 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
12629 * Makefile.in: Regenerate.
12630 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
12631 * libgomp.h: Include bar.h.
12632 (struct gomp_barrier): Remove.
12633 (struct gomp_team): Add barrier. Replace master_barrier with
12634 master_release. Replace threads with ordered_release.
12635 (struct gomp_thread): Replace barrier with release.
12636 * ordered.c (gomp_ordered_first): Update for ordered_release change.
12637 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
12638 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
12639 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
12640 (GOMP_single_copy_end): Likewise.
12641 * team.c (gomp_threads_dock): New.
12642 (gomp_barrier_init, gomp_barrier_destroy): Remove.
12643 (gomp_thread_start): Use gomp_barrier_wait.
12644 (new_team, free_team): Update for gomp_team changes.
12645 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
12646 (gomp_team_end): Use gomp_barrier_wait.
12647 (initialize_team): Update for gomp_thread changes.
12648 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
12649 (gomp_work_share_end_nowait): Use atomic ops when available.
12650 * config/linux/bar.c, config/linux/bar.h: New files.
12651 * config/posix/bar.c, config/posix/bar.h: New files.
12653 2005-10-13 Jakub Jelinek <jakub@redhat.com>
12655 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
12656 * testsuite/libgomp.dg/single-2.c: New test.
12658 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
12659 lang_link_flags): Unset, so that they aren't inherited from previously
12662 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
12664 2005-10-12 Richard Henderson <rth@redhat.com>
12666 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
12667 (libgomp_init): Use lang_test_file, lang_library_path, and
12668 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
12670 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
12671 (lang_test_file, lang_link_flags): New.
12672 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
12674 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
12675 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
12676 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
12677 testsuite/libgomp.c++/parallel-1.C,
12678 testsuite/libgomp.c++/reduction-1.C,
12679 testsuite/libgomp.c++/reduction-2.C,
12680 testsuite/libgomp.c++/reduction-3.C,
12681 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
12682 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
12683 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
12684 New files, largely cribbed from the C testsuite.
12686 2005-10-12 Jakub Jelinek <jakub@redhat.com>
12688 * testsuite/libgomp.fortran/character1.f90: New test.
12689 * testsuite/libgomp.fortran/character2.f90: New test.
12691 * testsuite/libgomp.dg/nested-1.c: New test.
12692 * testsuite/libgomp.dg/nested-2.c: New test.
12693 * testsuite/libgomp.fortran/do1.f90: New test.
12694 * testsuite/libgomp.fortran/do2.f90: New test.
12696 * testsuite/libgomp.fortran/reference1.f90: New test.
12698 2005-10-11 Jakub Jelinek <jakub@redhat.com>
12700 * testsuite/libgomp.dg/reduction-1.c: New test.
12701 * testsuite/libgomp.dg/reduction-2.c: New test.
12702 * testsuite/libgomp.dg/reduction-3.c: New test.
12704 2005-10-10 Jakub Jelinek <jakub@redhat.com>
12706 * testsuite/libgomp.dg/atomic-1.c: New test.
12707 * testsuite/libgomp.dg/atomic-2.c: New test.
12709 2005-10-09 Richard Henderson <rth@redhat.com>
12711 * critical.c (atomic_lock): New.
12712 (initialize_critical): Initialize it.
12713 (GOMP_atomic_start, GOMP_atomic_end): New.
12714 * libgomp.map: Export them.
12715 * libgomp_g.h: Declare them.
12717 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
12719 2005-10-02 Richard Henderson <rth@redhat.com>
12721 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
12722 to XCFLAGS instead of CFLAGS.
12724 2005-09-30 Richard Henderson <rth@redhat.com>
12726 * configure.ac: Determine whether -pthread or -lpthread is needed.
12727 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
12728 * Makefile.in, configure: Rebuild.
12730 2005-09-28 Richard Henderson <rth@redhat.com>
12732 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
12733 * testsuite/libgomp.dg/omp-single-3.c: New test.
12735 2005-09-28 Diego Novillo <dnovillo@redhat.com>
12737 * testsuite/libgomp.dg/omp-single-2.c: New test.
12738 * testsuite/libgomp.dg/shared-2.c: Fix return code.
12740 2005-09-27 Richard Henderson <rth@redhat.com>
12742 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
12743 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
12745 2005-09-27 Jakub Jelinek <jakub@redhat.com>
12747 * testsuite/libgomp.dg/omp-loop03.c: New test.
12749 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12751 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
12753 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12755 * testsuite/libgomp.dg/omp-single-1.c: New test.
12756 * testsuite/libgomp.dg/shared-1.c: Return 0.
12757 Add prototype for abort.
12758 * testsuite/libgomp.dg/shared-2.c: Likewise.
12760 2005-09-26 Jakub Jelinek <jakub@redhat.com>
12762 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
12765 2005-09-26 Diego Novillo <dnovillo@redhat.com>
12767 * testsuite/libgomp.dg/shared-1.c: New test.
12768 * testsuite/libgomp.dg/shared-2.c: New test.
12770 2005-09-24 Richard Henderson <rth@redhat.com>
12772 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
12774 2005-09-24 Richard Henderson <rth@redhat.com>
12776 * iter.c (gomp_iter_static_next): Round up when computing number
12777 of iterations. Don't bother distributing a remainder equally.
12779 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
12780 Don't call srand. Zero b before testing.
12783 2005-09-24 Jakub Jelinek <jakub@redhat.com>
12785 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
12786 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
12788 2005-09-23 Jakub Jelinek <jakub@redhat.com>
12790 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
12791 without !$omp end do, followed immediately by subroutine end.
12793 2005-09-23 Diego Novillo <dnovillo@redhat.com>
12795 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
12797 2005-09-22 Richard Henderson <rth@redhat.com>
12799 * critical.c (GOMP_critical_name_start): Change argument to void**.
12800 Reuse the pointer space if the mutex fits.
12801 (GOMP_critical_name_end): Likewise.
12802 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
12803 * libgomp_g.h (GOMP_critical_name_start): Update decl.
12804 (GOMP_critical_name_end): Likewise.
12805 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
12806 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
12808 2005-09-20 Richard Henderson <rth@redhat.com>
12810 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
12811 (create_lock_lock): New.
12812 (initialize_critical): Initialize it.
12813 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
12814 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
12816 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12818 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
12820 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12822 * testsuite/libgomp.dg/omp-loop01.c: New test.
12823 * testsuite/libgomp.dg/omp-loop02.c: New test.
12825 2005-09-20 Jakub Jelinek <jakub@redhat.com>
12827 * configure.ac (AC_PROG_FC): Add.
12828 (USE_FORTRAN): New automake conditional.
12829 * configure: Rebuilt.
12830 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
12831 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
12832 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
12833 Add rules to build them.
12834 * Makefile.in: Rebuilt.
12835 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
12836 OMP_NEST_LOCK_KIND.
12837 * libgomp.map: Add Fortran wrappers.
12838 * libgomp_f.h.in: New file.
12839 * omp_lib.h.in: New file.
12840 * omp_lib.f90.in: New file.
12841 * fortran.c: New file.
12842 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
12843 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
12844 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
12845 libgfortran has been built.
12846 * testsuite/libgomp.fortran/fortran.exp: New file.
12847 * testsuite/libgomp.fortran/omp_cond1.f: New test.
12848 * testsuite/libgomp.fortran/omp_cond2.f: New test.
12849 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
12850 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
12851 * testsuite/libgomp.fortran/omp_hello.f: New test.
12852 * testsuite/libgomp.fortran/omp_orphan.f: New test.
12853 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
12854 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
12855 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
12856 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
12857 * testsuite/libgomp.fortran/omp_reduction.f: New test.
12858 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
12859 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
12861 2005-08-30 Richard Henderson <rth@redhat.com>
12863 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
12864 function for when aliases are not usable.
12865 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
12866 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12867 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
12868 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
12869 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
12870 GOMP_loop_ordered_guided_next): Likewise.
12871 * ordered.c (GOMP_ordered_start): Likewise.
12873 2005-08-01 Diego Novillo <dnovillo@redhat.com>
12875 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
12876 * testsuite/libgomp.dg/omp_hello.c: Fix return code
12877 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
12878 * testsuite/libgomp.dg/omp_orphan.c: Likewise
12879 * testsuite/libgomp.dg/omp_reduction.c: Likewise
12880 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
12881 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
12882 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
12883 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
12885 2005-07-07 Eric Christopher <echristo@redhat.com>
12886 Diego Novillo <dnovillo@redhat.com>
12888 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
12889 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
12891 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
12892 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
12893 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
12894 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
12895 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
12896 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
12897 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
12899 2005-06-13 Diego Novillo <dnovillo@redhat.com>
12901 * TOPLEVEL.patch: Remove.
12903 2005-05-16 Richard Henderson <rth@redhat.com>
12905 * configure.ac: Test for clock_gettime.
12906 * config.h.in, configure: Rebuild.
12907 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
12908 (omp_get_wtime): Use clock_gettime if available.
12909 (omp_get_wtick): Use clock_getres if available.
12911 2005-05-11 Richard Henderson <rth@redhat.com>
12913 * config/linux/ia64/futex.h: New file.
12914 * configure.tgt: Use it.
12916 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
12918 2005-05-07 Richard Henderson <rth@redhat.com>
12920 * config/linux/powerpc/futex.h: New file.
12921 * configure.tgt: Use it.
12923 * config/linux/i486/futex.h: Merge ...
12924 * config/linux/x86_64/futex.h: ... into ...
12925 * config/linux/x86/futex.h: ... here.
12926 * configure.tgt: Update to match.
12928 2005-05-06 Richard Henderson <rth@redhat.com>
12930 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
12931 * config/linux/i486/futex.h: Likewise.
12932 * config/linux/x86_64/futex.h: Likewise.
12934 * config/linux/lock.c: New file.
12935 * config/linux/omp-lock.h: New file.
12937 * critical.c, env.h: Don't include omp.h
12938 * config/posix/lock.c: Include libgomp.h instead of omp.h.
12939 * config/posix/time.c: Likewise.
12940 * config/posix/omp-lock.h: New file.
12941 * libgomp.h: Include omp-lock.h and omp.h.
12942 * Makefile.am (nodist_include_HEADERS): New.
12944 * configure.ac (PERL): New.
12945 * mkomp_h.pl: New file.
12946 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
12948 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
12950 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
12951 build directory. Re-add -march=i486 hack.
12953 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
12954 (libgomp_link_flags): Remove.
12955 (libgomp_initialized): Remove.
12956 (libgomp_init): Don't protect from reinitialization. Copy code
12957 from libstdc++ for getting the multilib set correctly.
12959 2005-05-05 Richard Henderson <rth@redhat.com>
12961 * config/linux/alpha/futex.h: New file.
12962 * configure.tgt (alpha*-*-linux*): Use it.
12964 * config/posix/mutex.c: New file.
12965 * config/posix/sem.c: Use libgomp.h.
12967 * configure.tgt (x86_64-linux): Also test CC for -m32.
12968 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
12970 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
12973 * Makefile.am (SUBDIRS): New.
12974 (libgomp_la_LDFLAGS): Add -lpthread.
12975 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
12976 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
12978 * libgomp_g.h: New file.
12979 * libgomp.h: Split out all public declarations to libgomp_g.h.
12980 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
12981 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
12982 * config/linux/sem.h: Likewise.
12983 * config/posix/sem.h: Likewise.
12985 * Makefile.am (AM_LDFLAGS): New.
12986 (libgomp_version_script): Split out from ...
12987 (libgomp_la_LDFLAGS): ... here.
12988 (libgomp_version_info): New.
12989 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
12990 (LIBGOMP_ENABLE): New.
12991 (LIBGOMP_CHECK_LINKER_FEATURES): New.
12992 (LIBGOMP_ENABLE_SYMVERS): New.
12993 * configure.ac (AC_INIT): Version 1.0.
12994 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
12995 (enable-linux-futex): Likewise. Rename from enable-futex.
12996 (libtool_VERSION): New.
12997 (LIBGOMP_ENABLE_SYMVERS): Use it.
12998 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
12999 * Makefile.in, aclocal.m4, configure: Rebuild.
13001 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
13002 (gomp_mutex_unlock_slow): Fix typo.
13003 * config/linux/sem.c: Similarly.
13004 (gomp_sem_post_slow): Fix typo.
13005 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
13006 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
13007 [__PIC__] (sys_futex0): Don't use tmp output in asm.
13009 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
13010 (libgomp_la_LDFLAGS): Add top_srcdir to path.
13011 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
13012 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
13013 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
13014 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
13015 LDFLAGS. Pull enable_futex check to top-level.
13016 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
13017 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
13019 First attempt at real configury.
13020 * Makefile, config.h: Remove file.
13021 * Makefile.am, Makefile.in: New file.
13022 * acinclude.m4 aclocal.m4: New file.
13023 * configure.ac, configure.tgt, configure: New file.
13025 * config/posix/lock.c: Rename from sys-lock.c.
13026 * config/posix/mutex.h: Rename from sys-mutex.h.
13027 * config/posix/sem.c: Rename from sys-sem.c.
13028 * config/posix/sem.h: Rename from sys-sem.h.
13029 * config/posix/proc.c: Rename from sys-proc.c.
13030 * config/posix/time.c: Rename from sys-proc.c.
13032 * config/linux/mutex.c: New file.
13033 * config/linux/mutex.h: New file.
13034 * config/linux/sem.c: New file.
13035 * config/linux/sem.h: New file.
13036 * config/linux/i486/futex.h: New file.
13037 * config/linux/x86_64/futex.h: New file.
13039 2005-05-04 Richard Henderson <rth@redhat.com>
13041 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
13042 * libgomp.h: Declare them.
13043 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
13044 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
13046 2005-05-04 Richard Henderson <rth@redhat.com>
13048 * libgomp-1 code drop
13050 2005-05-04 Richard Henderson <rth@redhat.com>
13052 * iter.c (gomp_iter_static_next): Return tri-state on 0.
13053 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
13054 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
13055 (gomp_iter_static_next): Update.
13056 (gomp_ordered_static_next): Update.
13057 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
13058 (gomp_loop_ordered_static_start): Likewise. Exit early for a
13059 totally empty range.
13060 (gomp_loop_ordered_static_next): Refine test for calling
13061 gomp_ordered_static_next.
13062 * testsuite/ordered-1.c: Add case for more threads than iterations.
13064 * iter.c (gomp_iter_runtime_next_locked): Remove.
13065 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
13066 gomp_loop_guided_start, gomp_loop_ordered_static_start,
13067 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
13068 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
13069 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
13070 gomp_loop_ordered_guided_next): Downcase name, make static, add
13071 an external alias with the old name.
13072 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
13073 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
13074 switch and call one of the above static functions.
13075 * libgomp.h: Update.
13077 * work.c (gomp_work_share_start): Lock the mutex for !first too.
13078 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
13079 GOMP_loop_guided_start, GOMP_loop_runtime_start,
13080 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
13081 GOMP_loop_ordered_guided_start): Update to match.
13082 * sections.c (GOMP_sections_start): Likewise.
13083 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
13085 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
13086 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
13087 Use bounds check instead of modulus.
13088 (gomp_ordered_sync): Split out of GOMP_ordered_start.
13089 (gomp_ordered_last): Don't sync with ordered_owner here.
13090 (gomp_ordered_next): Likewise.
13091 (gomp_ordered_static_loop_next): Likewise.
13092 * loop.c, libgomp.h: Update to match.
13094 * libgomp.h (GOMP_barrier): Declare.
13096 * testsuite/barrier-1.c: New file.
13097 * testsuite/critical-1.c: New file.
13098 * testsuite/ordered-2.c: New file.
13099 * testsuite/ordered-1.c: New file.
13100 * testsuite/sections-1.c: New file.
13101 * testsuite/single-1.c: New file.
13102 * testsuite/Makefile (TESTS): Add them.
13104 2005-05-04 Richard Henderson <rth@redhat.com>
13106 * libgomp.h (struct gomp_work_share): Add ordered_owner.
13107 * loop.c (GOMP_loop_static_start): If not the startup thread,
13108 acquire the mutex to wait for initialization complete.
13109 (GOMP_loop_ordered_static_start): Likewise.
13110 (GOMP_loop_ordered_runtime_start): Likewise.
13111 (GOMP_loop_ordered_static_first): Remove.
13112 (GOMP_loop_ordered_dynamic_first): Remove.
13113 (GOMP_loop_ordered_guided_first): Remove.
13114 (GOMP_loop_ordered_runtime_first): Remove.
13115 * ordered.c (gomp_ordered_loop_first): Post to own release when
13116 we're the first thread.
13117 (gomp_ordered_loop_last): Wait on release if not owner.
13118 (gomp_ordered_loop_next): Likewise.
13119 (gomp_ordered_static_loop_init): New.
13120 (gomp_ordered_static_loop_next): Use ordered_owner.
13121 (GOMP_ordered_start): Likewise.
13122 * work.c (gomp_new_work_share): Initialize ordered_owner.
13124 2005-05-03 Richard Henderson <rth@redhat.com>
13126 * Makefile (OPT): New.
13129 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
13130 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
13131 * libgomp.h, libgomp.map, NOTES: Update to match.
13133 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
13134 Add initialized and thr members.
13135 (gomp_thread_start): Pause when initially spawned to wait for
13136 the whole team to be created.
13137 (gomp_team_start): Release team members at the end.
13139 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
13140 (f_foo_1): Use GOMP_loop_end.
13141 (f_foo_2): Use GOMP_loop_end_nowait.
13143 * testsuite/loop-2.c: New file.
13144 * testsuite/Makefile (TESTS): Add it.
13146 2005-05-03 Richard Henderson <rth@redhat.com>
13148 * iter.c (gomp_iter_static_next): Fix overflow check typo.
13149 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
13150 * team.c (new_team): Initialize oldest_live_gen to 1 if no
13151 initial work_share.
13153 * testsuite/Makefile: New file.
13154 * testsuite/loop-1.c: New file.
13156 2005-05-03 Richard Henderson <rth@redhat.com>
13158 Initial implementation and checkin.
13160 Copyright (C) 2005-2020 Free Software Foundation, Inc.
13162 Copying and distribution of this file, with or without modification,
13163 are permitted in any medium without royalty provided the copyright
13164 notice and this notice are preserved.