]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/ChangeLog
Further changes for the OpenACC 'if_present' clause on the 'host_data' construct
[thirdparty/gcc.git] / libgomp / ChangeLog
1 2020-01-10 Thomas Schwinge <thomas@codesourcery.com>
2
3 * target.c (gomp_map_vars_internal)
4 <GOMP_MAP_USE_DEVICE_PTR_IF_PRESENT>: Clean up/elaborate code
5 paths.
6
7 2020-01-10 Jakub Jelinek <jakub@redhat.com>
8
9 PR libgomp/93219
10 * libgomp.h (gomp_print_string): Change return type from void to int.
11 * affinity-fmt.c (gomp_print_string): Likewise. Return true if
12 not all characters have been written.
13
14 2020-01-08 Tobias Burnus <tobias@codesourcery.com>
15
16 * libgomp.texi: Fix typos, use https.
17
18 2020-01-03 Tobias Burnus <tobias@codesourcery.com>
19
20 * testsuite/libgomp.fortran/optional-map.f90: Add test for
21 unallocated/disassociated actual arguments to nonallocatable/nonpointer
22 dummy arguments; those are/shall be regarded as absent arguments.
23 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
24 * testsuite/libgomp.fortran/use_device_ptr-optional-3.f90: New.
25
26 2020-01-01 Jakub Jelinek <jakub@redhat.com>
27
28 Update copyright years.
29
30 * libgomp.texi: Bump @copying's copyright year.
31
32 2019-12-31 Ayush Mittal <ayush.m@samsung.com>
33
34 PR libgomp/93065
35 * oacc-init.c (goacc_runtime_deinitialize): New function.
36
37 2019-12-28 Jakub Jelinek <jakub@redhat.com>
38
39 PR bootstrap/93074
40 * plugin/cuda/cuda.h (cuDeviceGetName, cuDriverGetVersion): Declare.
41 (cuDeviceTotalMem, cuMemGetInfo): Likewise. Define to *_v2.
42
43 2019-12-22 Maciej W. Rozycki <macro@codesourcery.com>
44 Frederik Harwath <frederik@codesourcery.com>
45 Thomas Schwinge <tschwinge@codesourcery.com>
46
47 * libgomp.h (gomp_device_descr): Add `get_property_func' member.
48 * libgomp-plugin.h (gomp_device_property_value): New union.
49 (gomp_device_property_value): New prototype.
50 * openacc.h (acc_device_t): Add `acc_device_current' enumeration
51 constant.
52 (acc_device_property_t): New enum.
53 (acc_get_property, acc_get_property_string): New prototypes.
54 * oacc-init.c (acc_get_device_type): Also assert that result
55 is not `acc_device_current'.
56 (get_property_any, acc_get_property, acc_get_property_string):
57 New functions.
58 * openacc.f90 (openacc_kinds): Add `acc_device_current' and
59 `acc_property_memory', `acc_property_free_memory',
60 `acc_property_name', `acc_property_vendor' and
61 `acc_property_driver' constants. Add `acc_device_property' data
62 type.
63 (openacc_internal): Add `acc_get_property' and
64 `acc_get_property_string' interfaces. Add `acc_get_property_h',
65 `acc_get_property_string_h', `acc_get_property_l' and
66 `acc_get_property_string_l'.
67 * oacc-host.c (host_get_property): New function.
68 (host_dispatch): Wire it.
69 * target.c (gomp_load_plugin_for_device): Handle `get_property'.
70 * libgomp.map (OACC_2.6): Add `acc_get_property', `acc_get_property_h_',
71 `acc_get_property_string' and `acc_get_property_string_h_' symbols.
72 * libgomp.texi (OpenACC Runtime Library Routines): Add
73 `acc_get_property'.
74 (acc_get_property): New node.
75 * plugin/plugin-gcn.c (GOMP_OFFLOAD_get_property): New
76 function (stub).
77 * plugin/plugin-hsa.c (GOMP_OFFLOAD_get_property): New function.
78 * plugin/plugin-nvptx.c (CUDA_CALLS): Add `cuDeviceGetName',
79 `cuDeviceTotalMem', `cuDriverGetVersion' and `cuMemGetInfo'
80 calls.
81 (GOMP_OFFLOAD_get_property): New function.
82 (struct ptx_device): Add new field "name".
83 (cuda_driver_version_s): Add new static variable ...
84 (nvptx_init): ... and init from here.
85
86 * testsuite/libgomp.oacc-c-c++-common/acc_get_property.c: New test.
87 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-2.c: New test.
88 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-3.c: New test.
89 * testsuite/libgomp.oacc-c-c++-common/acc_get_property-aux.c: New file
90 with test helper functions.
91
92 * testsuite/libgomp.oacc-fortran/acc_get_property.f90: New test.
93
94 2019-12-22 Maciej W. Rozycki <macro@wdc.com>
95
96 * testsuite/libgomp-test-support.exp.in (GCC_UNDER_TEST): New
97 variable.
98
99 2019-12-21 Thomas Schwinge <thomas@codesourcery.com>
100
101 * target.c (gomp_map_vars_internal): Restore 'omp declare target
102 link' handling.
103
104 2019-12-19 Julian Brown <julian@codesourcery.com>
105
106 * testsuite/libgomp.oacc-fortran/class-ptr-param.f95: New test.
107 * testsuite/libgomp.oacc-fortran/classtypes-1.f95: New test.
108 * testsuite/libgomp.oacc-fortran/classtypes-2.f95: New test.
109
110 2019-12-19 Julian Brown <julian@codesourcery.com>
111 Cesar Philippidis <cesar@codesourcery.com>
112
113 * testsuite/libgomp.oacc-fortran/deep-copy-1.f90: New test.
114 * testsuite/libgomp.oacc-fortran/deep-copy-2.f90: New test.
115 * testsuite/libgomp.oacc-fortran/deep-copy-3.f90: New test.
116 * testsuite/libgomp.oacc-fortran/deep-copy-4.f90: New test.
117 * testsuite/libgomp.oacc-fortran/deep-copy-5.f90: New test.
118 * testsuite/libgomp.oacc-fortran/deep-copy-6.f90: New test.
119 * testsuite/libgomp.oacc-fortran/deep-copy-7.f90: New test.
120 * testsuite/libgomp.oacc-fortran/deep-copy-8.f90: New test.
121 * testsuite/libgomp.oacc-fortran/derived-type-1.f90: New test.
122 * testsuite/libgomp.oacc-fortran/derivedtype-1.f95: New test.
123 * testsuite/libgomp.oacc-fortran/derivedtype-2.f95: New test.
124 * testsuite/libgomp.oacc-fortran/multidim-slice.f95: New test.
125 * testsuite/libgomp.oacc-fortran/update-2.f90: New test.
126
127 2019-12-19 Julian Brown <julian@codesourcery.com>
128
129 * testsuite/libgomp.oacc-c-c++-common/deep-copy-1.c: New test.
130 * testsuite/libgomp.oacc-c-c++-common/deep-copy-2.c: New test.
131 * testsuite/libgomp.oacc-c-c++-common/deep-copy-4.c: New test.
132 * testsuite/libgomp.oacc-c-c++-common/deep-copy-6.c: New test.
133 * testsuite/libgomp.oacc-c-c++-common/deep-copy-7.c: New test.
134 * testsuite/libgomp.oacc-c-c++-common/deep-copy-8.c: New test.
135 * testsuite/libgomp.oacc-c-c++-common/deep-copy-9.c: New test.
136 * testsuite/libgomp.oacc-c-c++-common/deep-copy-10.c: New test.
137 * testsuite/libgomp.oacc-c-c++-common/deep-copy-11.c: New test.
138 * testsuite/libgomp.oacc-c-c++-common/deep-copy-14.c: New test.
139 * testsuite/libgomp.oacc-c++/deep-copy-12.C: New test.
140 * testsuite/libgomp.oacc-c++/deep-copy-13.C: New test.
141
142 2019-12-19 Julian Brown <julian@codesourcery.com>
143
144 * libgomp.h (struct target_var_desc): Add do_detach flag.
145 * oacc-init.c (acc_shutdown_1): Free aux block if present.
146 * oacc-mem.c (find_group_last): Add SIZES parameter. Support
147 struct components. Tidy up and add some new checks.
148 (goacc_enter_data_internal): Update call to find_group_last.
149 (goacc_exit_data_internal): Support detach operations and
150 GOMP_MAP_STRUCT.
151 (GOACC_enter_exit_data): Handle initial GOMP_MAP_STRUCT or
152 GOMP_MAP_FORCE_PRESENT in finalization detection code. Handle
153 attach/detach in enter/exit data detection code.
154 * target.c (gomp_map_vars_existing): Initialise do_detach field of
155 tgt_var_desc.
156 (gomp_map_vars_internal): Support attach.
157 (gomp_unmap_vars_internal): Support detach.
158
159 2019-12-19 Julian Brown <julian@codesourcery.com>
160 Thomas Schwinge <thomas@codesourcery.com>
161
162 * libgomp.h (struct splay_tree_aux): Add attach_count field.
163 (gomp_attach_pointer, gomp_detach_pointer): Add prototypes.
164 * libgomp.map (OACC_2.6): New section. Add acc_attach,
165 acc_attach_async, acc_detach, acc_detach_async, acc_detach_finalize,
166 acc_detach_finalize_async.
167 * oacc-mem.c (acc_attach_async, acc_attach, goacc_detach_internal,
168 acc_detach, acc_detach_async, acc_detach_finalize,
169 acc_detach_finalize_async): New functions.
170 * openacc.h (acc_attach, acc_attach_async, acc_detach,
171 (acc_detach_async, acc_detach_finalize, acc_detach_finalize_async): Add
172 prototypes.
173 * target.c (gomp_attach_pointer, gomp_detach_pointer): New functions.
174 (gomp_remove_var_internal): Free attachment counts if present.
175 * testsuite/libgomp.oacc-c-c++-common/deep-copy-3.c: New test.
176 * testsuite/libgomp.oacc-c-c++-common/deep-copy-5.c: New test.
177
178 2019-12-19 Julian Brown <julian@codesourcery.com>
179 Cesar Philippidis <cesar@codesourcery.com>
180
181 * libgomp.h (gomp_map_val): Add prototype.
182 * oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
183 open-coding device-address calculation.
184 * target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
185 non-present case.
186
187 2019-12-19 Julian Brown <julian@codesourcery.com>
188
189 * libgomp.h (struct splay_tree_key_s): Substitute dynamic_refcount
190 field for virtual_refcount.
191 (enum gomp_map_vars_kind): Add GOMP_MAP_VARS_OPENACC_ENTER_DATA.
192 (gomp_free_memmap): Remove prototype.
193 * oacc-init.c (acc_shutdown_1): Iteratively call gomp_remove_var
194 instead of calling gomp_free_memmap.
195 * oacc-mem.c (acc_map_data): Use virtual_refcount instead of
196 dynamic_refcount.
197 (acc_unmap_data): Open code instead of forcing target_mem_desc's
198 to_free field to NULL then calling gomp_unmap_vars. Handle
199 REFCOUNT_INFINITY on target blocks.
200 (goacc_enter_data): Rename to...
201 (goacc_enter_datum): ...this. Remove MAPNUM parameter and special
202 handling for mapping groups. Use virtual_refcount instead of
203 dynamic_refcount. Use GOMP_MAP_VARS_OPENACC_ENTER_DATA for
204 map_map_vars_async call. Re-do lookup for target pointer return value.
205 (acc_create, acc_create_async, acc_copyin, acc_copyin_async): Call
206 renamed goacc_enter_datum function.
207 (goacc_exit_data): Rename to...
208 (goacc_exit_datum): ...this. Update for virtual_refcount semantics.
209 (acc_delete, acc_delete_async, acc_delete_finalize,
210 acc_delete_finalize_async, acc_copyout, acc_copyout_async,
211 acc_copyout_finalize, acc_copyout_finalize_async): Call renamed
212 goacc_exit_datum function.
213 (gomp_acc_remove_pointer, find_pointer): Remove functions.
214 (find_group_last, goacc_enter_data_internal, goacc_exit_data_internal):
215 New functions.
216 (GOACC_enter_exit_data): Use goacc_enter_data_internal and
217 goacc_exit_data_internal helper functions.
218 * target.c (gomp_map_vars_internal): Handle
219 GOMP_MAP_VARS_OPENACC_ENTER_DATA. Update for virtual_refcount
220 semantics.
221 (gomp_unmap_vars_internal): Update for virtual_refcount semantics.
222 (gomp_load_image_to_device, omp_target_associate_ptr): Zero-initialise
223 virtual_refcount field instead of dynamic_refcount.
224 (gomp_free_memmap): Remove function.
225 * testsuite/libgomp.oacc-c-c++-common/unmap-infinity-1.c: New test.
226 * testsuite/libgomp.c-c++-common/unmap-infinity-2.c: New test.
227 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: Add XFAIL.
228
229 2019-12-19 Julian Brown <julian@codesourcery.com>
230 Thomas Schwinge <thomas@codesourcery.com>
231
232 * libgomp.h (struct splay_tree_aux): New.
233 (struct splay_tree_key_s): Replace link_key field with aux pointer.
234 * target.c (gomp_map_vars_internal): Adjust for link_key being moved
235 to aux struct.
236 (gomp_remove_var_internal): Free aux block if present.
237 (gomp_load_image_to_device): Zero-initialise aux field instead of
238 link_key field.
239 (omp_target_associate_pointer): Zero-initialise aux field.
240
241 2019-12-18 Jakub Jelinek <jakub@redhat.com>
242
243 PR middle-end/86416
244 * testsuite/libgomp.c/pr86416-1.c (main): Use L suffixes rather than
245 q or none.
246 * testsuite/libgomp.c/pr86416-2.c (main): Use Q suffixes rather than
247 L or none.
248
249 2019-12-19 Julian Brown <julian@codesourcery.com>
250 Maciej W. Rozycki <macro@codesourcery.com>
251 Tobias Burnus <tobias@codesourcery.com>
252 Thomas Schwinge <thomas@codesourcery.com>
253
254 * target.c (gomp_map_vars_async): Support GOMP_MAP_NO_ALLOC.
255 * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: New test.
256 * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: New test.
257 * testsuite/libgomp.oacc-c-c++-common/no_create-3.c: New test.
258 * testsuite/libgomp.oacc-c-c++-common/no_create-4.c: New test.
259 * testsuite/libgomp.oacc-c-c++-common/no_create-5.c: New test.
260 * testsuite/libgomp.oacc-fortran/no_create-1.f90: New test.
261 * testsuite/libgomp.oacc-fortran/no_create-2.f90: New test.
262 * testsuite/libgomp.oacc-fortran/no_create-3.F90: New test.
263
264 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
265
266 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
267 called...
268 (goacc_insert_pointer): ... from here, "present" case.
269 (goacc_insert_pointer): Inline function into...
270 (GOACC_enter_exit_data): ... here, and simplify.
271
272 * oacc-mem.c (goacc_enter_data): Refactor, so that it can be
273 called...
274 (goacc_insert_pointer): ... from here, "not present" case.
275
276 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
277 all users.
278
279 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
280 'goacc_enter_data', 'goacc_exit_data'.
281
282 * oacc-mem.c (delete_copyout): Refactor into...
283 (goacc_exit_data): ... this. Adjust all users.
284
285 * oacc-mem.c (present_create_copy): Refactor into...
286 (goacc_enter_data): ... this. Adjust all users.
287
288 * target.c (gomp_unmap_vars_internal): Add a safeguard to
289 'gomp_remove_var'.
290
291 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
292 like 'GOMP_MAP_FROM'.
293
294 PR libgomp/92726
295 PR libgomp/92970
296 PR libgomp/92984
297 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
298 fails.
299 (GOACC_enter_exit_data): Simplify accordingly.
300 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
301 subsuming...
302 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
303 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
304 file.
305 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
306 subsuming...
307 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
308 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
309 file.
310 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
311 subsuming...
312 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
313
314 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
315 'finalize' handling.
316
317 PR libgomp/92848
318 * oacc-mem.c (acc_map_data, present_create_copy)
319 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
320 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
321 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
322 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
323 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
324 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
325 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
326 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
327 Remove "XFAIL"s.
328
329 * target.c (gomp_unmap_tgt): Make it 'static'.
330 * libgomp.h (gomp_unmap_tgt): Remove.
331
332 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
333
334 PR middle-end/86416
335 * testsuite/libgomp.c/pr86416-1.c: New.
336 * testsuite/libgomp.c/pr86416-2.c: New.
337
338 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
339
340 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
341 all symbols as public except for the 'use …, only' imported symbol,
342 which is private.
343 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
344 all symbols from module openacc_kinds as PUBLIC
345 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
346 fix comment typo.
347 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
348
349 2019-12-13 Julian Brown <julian@codesourcery.com>
350
351 PR libgomp/92881
352
353 * libgomp.h (gomp_remove_var_async): Add prototype.
354 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
355 gomp_remove_var.
356 * target.c (gomp_unref_tgt): Change return type to bool, indicating
357 whether target_mem_desc was unmapped.
358 (gomp_unref_tgt_void): New.
359 (gomp_remove_var): Reimplement in terms of...
360 (gomp_remove_var_internal): ...this new helper function.
361 (gomp_remove_var_async): New, implemented using above helper function.
362 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
363 gomp_unref_tgt.
364
365 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
366
367 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
368 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
369 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
370 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
371 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
372 Likewise.
373 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
374 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
375
376 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
377
378 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
379 as public except for the 'use …, only' imported symbol, which is
380 private.
381 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
382 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
383 attributes for acc_copyout_finalize and acc_delete_finalize.
384
385 2019-12-11 Jakub Jelinek <jakub@redhat.com>
386
387 PR fortran/92899
388 * testsuite/libgomp.fortran/atomic1.f90: New test.
389
390 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
391
392 PR libgomp/92843
393 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
394 reference counting for structured 'REFCOUNT_INFINITY'. Add some
395 assertions.
396 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
397 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
398 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
399 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
400 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
401
402 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
403 * oacc-mem.c: ... here.
404 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
405 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
406 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
407 Remove.
408 * libgomp_g.h: Update.
409
410 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
411 * oacc-async.c: ... here.
412 * oacc-int.h (goacc_wait): Declare.
413 * libgomp_g.h: Update
414
415 PR libgomp/92854
416 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
417 New file.
418 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
419 Likewise.
420 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
421 Likewise.
422 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
423 Likewise.
424 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
425 Likewise.
426 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
427 Likewise.
428
429 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
430 Julian Brown <julian@codesourcery.com>
431
432 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
433 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
434
435 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
436
437 * omp_lib.h.in: Fix spelling of function declaration
438 omp_get_cancell(l)ation.
439 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
440 Fix typos.
441 * env.c: Fix comment typos.
442 * oacc-host.c: Likewise.
443 * ordered.c: Likewise.
444 * task.c: Likewise.
445 * team.c: Likewise.
446 * config/gcn/task.c: Likewise.
447 * config/gcn/team.c: Likewise.
448 * config/nvptx/task.c: Likewise.
449 * config/nvptx/team.c: Likewise.
450 * plugin/plugin-gcn.c: Likewise.
451 * testsuite/libgomp.fortran/jacobi.f: Likewise.
452 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
453 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
454
455 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
456
457 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
458 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
459 unnecessary 'dg-additional-options "-w"'.
460
461 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
462 Julian Brown <julian@codesourcery.com>
463
464 PR libgomp/92116
465 PR libgomp/92877
466
467 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
468 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
469 Adjust all users.
470 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
471 Remove XFAIL.
472 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
473 Likewise.
474 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
475
476 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
477
478 PR libgomp/92503
479 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
480 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
481 file.
482 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
483 Likewise.
484 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
485 Likewise.
486 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
487 Likewise.
488 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
489 Likewise.
490 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
491 Likewise.
492 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
493 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
494 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
495 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
496 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
497 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
498 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
499 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
500 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
501 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
502
503 PR libgomp/92840
504 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
505 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
506 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
507 New file.
508 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
509 Likewise.
510 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
511 Likewise.
512 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
513 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
514
515 PR libgomp/92511
516 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
517 this file...
518 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
519 this file...
520 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
521 file...
522 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
523 file...
524 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
525 ... with their content moved into, and extended in this new file.
526 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
527 New file.
528 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
529 Likewise.
530 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
531 Likewise.
532 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
533 Likewise.
534
535 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
536
537 PR libgomp/92854
538 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
539
540 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
541
542 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
543
544 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
545
546 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
547 unique.
548 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
549 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
550 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
551 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
552 Ditto.
553 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
554 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
555
556 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
557
558 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
559
560 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
561 Kwok Cheung Yeung <kcy@codesourcery.com>
562
563 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
564 if input it a NULL pointer.
565 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
566 diagnostic of NULL pointer.
567 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
568 * testsuite/libgomp.fortran/optional-map.f90: New.
569 * testsuite/libgomp.fortran/use_device_addr-1.f90
570 (test_dummy_opt_callee_1_absent): New.
571 (test_dummy_opt_call_1): Call it.
572 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
573 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
574 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
575 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
576 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
577 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
578 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
579 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
580 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
581 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
582 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
583 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
584 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
585 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
586 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
587 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
588
589 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
590
591 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
592 expect dg-output of 'Error termination.' for GCN.
593 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
594 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
595
596 2019-12-04 Jakub Jelinek <jakub@redhat.com>
597
598 PR fortran/92756
599 * testsuite/libgomp.fortran/teams1.f90: New test.
600 * testsuite/libgomp.fortran/teams2.f90: New test.
601
602 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
603
604 * oacc-init.c (acc_known_device_type): Add function.
605 (unknown_device_type_error): Add function.
606 (name_of_acc_device_t): Change to call unknown_device_type_error
607 on unknown type.
608 (resolve_device): Use acc_known_device_type.
609 (acc_init): Fail if acc_device_t argument is not valid.
610 (acc_shutdown): Likewise.
611 (acc_get_num_devices): Likewise.
612 (acc_set_device_type): Likewise.
613 (acc_get_device_num): Likewise.
614 (acc_set_device_num): Likewise.
615 (acc_on_device): Add comment that argument validity is not checked.
616
617 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
618
619 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
620 Recognize amdgcn.
621 (check_effective_target_openacc_amdgcn_accel_present): New proc.
622 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
623 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
624 * testsuite/libgomp.oacc-c/c.exp: Likewise.
625 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
626
627 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
628
629 PR libgomp/91938
630 * configure.tgt: Avoid IE tls on *-*-musl*.
631
632 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
633
634 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
635 adding a common-block test case.
636
637 2019-11-29 Jakub Jelinek <jakub@redhat.com>
638
639 PR c++/60228
640 * testsuite/libgomp.c++/udr-20.C: New test.
641 * testsuite/libgomp.c++/udr-21.C: New test.
642
643 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
644
645 * testsuite/lib/libgomp.exp
646 (check_effective_target_offload_target_nvptx): New proc.
647 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
648 'dg-skip-if'.
649 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
650 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
651 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
652
653 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
654
655 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
656 * testsuite/libgomp.c/pr39591-2.c: Likewise.
657 * testsuite/libgomp.c/pr39591-3.c: Likewise.
658 * testsuite/libgomp.c/private-1.c: Likewise.
659 * testsuite/libgomp.c/task-1.c: Likewise.
660 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
661
662 2019-11-20 Julian Brown <julian@codesourcery.com>
663
664 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
665 aq->mutex here.
666 (queue_push_launch): Lock aq->mutex before calling
667 wait_for_queue_nonfull.
668 (queue_push_callback): Likewise.
669 (queue_push_asyncwait): Likewise.
670 (queue_push_placeholder): Likewise.
671
672 2019-11-20 Julian Brown <julian@codesourcery.com>
673
674 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
675 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
676 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
677 return code.
678
679 2019-11-20 Julian Brown <julian@codesourcery.com>
680
681 PR libgomp/92511
682
683 * oacc-mem.c (present_create_copy): Fix device pointer return value in
684 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
685 in non-present/create case.
686 (delete_copyout): Change error condition to fail only on copies outside
687 of mapped block. Adjust error message accordingly.
688 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
689 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
690 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
691 message.
692 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
693 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
694 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
695
696 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
697
698 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
699 libatomic in build-tree testing.
700
701 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
702
703 * testsuite/Makefile.in: Regenerate.
704
705 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
706
707 * testsuite/libgomp.c/target-print-1.c: New file.
708 * testsuite/libgomp.fortran/target-print-1.f90: New file.
709 * testsuite/libgomp.oacc-c/print-1.c: New file.
710 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
711
712 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
713 Kwok Cheung Yeung <kcy@codesourcery.com>
714 Julian Brown <julian@codesourcery.com>
715 Tom de Vries <tom@codesourcery.com>
716
717 * plugin/Makefrag.am: Add amdgcn plugin support.
718 * plugin/configfrag.ac: Likewise.
719 * plugin/plugin-gcn.c: New file.
720 * configure: Regenerate.
721 * Makefile.in: Regenerate.
722 * testsuite/Makefile.in: Regenerate.
723
724 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
725
726 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
727 and use team_malloc variants.
728 (gomp_gcn_exit_kernel): Use team_free.
729 * libgomp.h (TEAM_ARENA_SIZE): Define.
730 (TEAM_ARENA_START): Define.
731 (TEAM_ARENA_FREE): Define.
732 (TEAM_ARENA_END): Define.
733 (team_malloc): New function.
734 (team_malloc_cleared): New function.
735 (team_free): New function.
736 * team.c (gomp_new_team): Initialize and use team_malloc.
737 (free_team): Use team_free.
738 (gomp_free_thread): Use team_free.
739 (gomp_pause_host): Use team_free.
740 * work.c (gomp_init_work_share): Use team_malloc.
741 (gomp_fini_work_share): Use team_free.
742
743 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
744 Kwok Cheung Yeung <kcy@codesourcery.com>
745 Julian Brown <julian@codesourcery.com>
746 Tom de Vries <tom@codesourcery.com>
747
748 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
749 * Makefile.in: Regenerate.
750 * config.h.in (PLUGIN_GCN): Add new undef.
751 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
752 * config/gcn/affinity-fmt.c: New file.
753 * config/gcn/bar.c: New file.
754 * config/gcn/bar.h: New file.
755 * config/gcn/doacross.h: New file.
756 * config/gcn/icv-device.c: New file.
757 * config/gcn/oacc-target.c: New file.
758 * config/gcn/simple-bar.h: New file.
759 * config/gcn/target.c: New file.
760 * config/gcn/task.c: New file.
761 * config/gcn/team.c: New file.
762 * config/gcn/time.c: New file.
763 * configure.ac: Add amdgcn*-*-*.
764 * configure: Regenerate.
765 * configure.tgt: Add amdgcn*-*-*.
766 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
767 * libgomp.h (gcn_thrs): Add amdgcn variant.
768 (set_gcn_thrs): Likewise.
769 (gomp_thread): Likewise.
770 * oacc-int.h (goacc_thread): Likewise.
771 * oacc-target.c: New file.
772 * openacc.f90 (acc_device_gcn): New parameter.
773 * openacc.h (acc_device_t): Add acc_device_gcn.
774 * team.c (gomp_free_pool_helper): Add amdgcn support.
775
776 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
777 Julian Brown <julian@codesourcery.com>
778
779 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
780 parameter.
781 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
782 queue constructor.
783 * oacc-host.c (host_openacc_async_construct): Add device parameter.
784 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
785 device parameter.
786
787 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
788
789 * configure.tgt (nvptx*-*-*): Add "accel" directory.
790 * config/nvptx/libgomp-plugin.c: Move ...
791 * config/accel/libgomp-plugin.c: ... to here.
792 * config/nvptx/lock.c: Move ...
793 * config/accel/lock.c: ... to here.
794 * config/nvptx/mutex.c: Move ...
795 * config/accel/mutex.c: ... to here.
796 * config/nvptx/mutex.h: Move ...
797 * config/accel/mutex.h: ... to here.
798 * config/nvptx/oacc-async.c: Move ...
799 * config/accel/oacc-async.c: ... to here.
800 * config/nvptx/oacc-cuda.c: Move ...
801 * config/accel/oacc-cuda.c: ... to here.
802 * config/nvptx/oacc-host.c: Move ...
803 * config/accel/oacc-host.c: ... to here.
804 * config/nvptx/oacc-init.c: Move ...
805 * config/accel/oacc-init.c: ... to here.
806 * config/nvptx/oacc-mem.c: Move ...
807 * config/accel/oacc-mem.c: ... to here.
808 * config/nvptx/oacc-plugin.c: Move ...
809 * config/accel/oacc-plugin.c: ... to here.
810 * config/nvptx/omp-lock.h: Move ...
811 * config/accel/omp-lock.h: ... to here.
812 * config/nvptx/openacc.f90: Move ...
813 * config/accel/openacc.f90: ... to here.
814 * config/nvptx/pool.h: Move ...
815 * config/accel/pool.h: ... to here.
816 * config/nvptx/proc.c: Move ...
817 * config/accel/proc.c: ... to here.
818 * config/nvptx/ptrlock.c: Move ...
819 * config/accel/ptrlock.c: ... to here.
820 * config/nvptx/ptrlock.h: Move ...
821 * config/accel/ptrlock.h: ... to here.
822 * config/nvptx/sem.c: Move ...
823 * config/accel/sem.c: ... to here.
824 * config/nvptx/sem.h: Move ...
825 * config/accel/sem.h: ... to here.
826 * config/nvptx/thread-stacksize.h: Move ...
827 * config/accel/thread-stacksize.h: ... to here.
828
829 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
830 Tobias Burnus <tobias@codesourcery.com>
831 Frederik Harwath <frederik@codesourcery.com>
832 Thomas Schwinge <thomas@codesourcery.com>
833
834 libgomp/
835 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
836 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
837 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
838
839 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
840 Kwok Cheung Yeung <kcy@codesourcery.com>
841
842 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
843 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
844
845 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
846
847 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
848
849 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
850 run'.
851 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
852 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
853
854 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
855
856 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
857 Add expected warnings about missing reduction clauses.
858 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
859 Likewise.
860 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
861 Likewise.
862 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
863 Likewise.
864
865 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
866
867 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
868 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
869 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
870 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
871 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
872 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
873
874 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
875
876 PR fortran/92305
877 * testsuite/libgomp.fortran/allocatable2.f90: Use
878 unique numbers with 'stop'.
879 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
880 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
881 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
882 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
883 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
884
885 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
886
887 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
888 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
889 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
890 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
891 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
892 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
893
894 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
895
896 * testsuite/libgomp.fortran/target9.f90: New.
897
898 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
899
900 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
901 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
902 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
903 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
904 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
905 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
906 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
907 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
908 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
909 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
910 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
911 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
912 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
913 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
914 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
915 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
916 * testsuite/libgomp.fortran/associate1.f90: Ditto.
917 * testsuite/libgomp.fortran/associate2.f90: Ditto.
918 * testsuite/libgomp.fortran/associate3.f90: Ditto.
919 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
920 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
921 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
922 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
923 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
924 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
925 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
926 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
927 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
928 * testsuite/libgomp.fortran/character1.f90: Ditto.
929 * testsuite/libgomp.fortran/character2.f90: Ditto.
930 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
931 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
932 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
933 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
934 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
935 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
936 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
937 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
938 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
939 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
940 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
941 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
942 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
943 * testsuite/libgomp.fortran/do1.f90: Ditto.
944 * testsuite/libgomp.fortran/do2.f90: Ditto.
945 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
946 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
947 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
948 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
949 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
950 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
951 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
952 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
953 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
954 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
955 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
956 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
957 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
958 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
959 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
960 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
961 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
962 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
963 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
964 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
965 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
966 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
967 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
968 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
969 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
970 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
971 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
972 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
973 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
974 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
975 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
976 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
977 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
978 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
979 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
980 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
981 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
982 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
983 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
984 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
985 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
986 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
987 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
988 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
989 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
990 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
991 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
992 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
993 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
994 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
995 * testsuite/libgomp.fortran/lib1.f90: Ditto.
996 * testsuite/libgomp.fortran/lib4.f90: Ditto.
997 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
998 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
999 * testsuite/libgomp.fortran/nested1.f90: Ditto.
1000 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
1001 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
1002 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
1003 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1004 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
1005 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
1006 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
1007 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
1008 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
1009 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
1010 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
1011 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
1012 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
1013 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
1014 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
1015 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
1016 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
1017 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
1018 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
1019 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
1020 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
1021 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
1022 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
1023 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
1024 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1025 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
1026 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
1027 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
1028 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
1029 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
1030 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1031 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
1032 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
1033 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
1034 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
1035 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1036 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
1037 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
1038 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
1039 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
1040 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
1041 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
1042 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
1043 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
1044 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
1045 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
1046 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
1047 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
1048 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
1049 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
1050 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
1051 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
1052 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
1053 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
1054 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
1055 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
1056 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1057 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
1058 * testsuite/libgomp.fortran/reference1.f90: Ditto.
1059 * testsuite/libgomp.fortran/reference2.f90: Ditto.
1060 * testsuite/libgomp.fortran/retval1.f90: Ditto.
1061 * testsuite/libgomp.fortran/retval2.f90: Ditto.
1062 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
1063 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
1064 * testsuite/libgomp.fortran/simd1.f90: Ditto.
1065 * testsuite/libgomp.fortran/simd2.f90: Ditto.
1066 * testsuite/libgomp.fortran/simd3.f90: Ditto.
1067 * testsuite/libgomp.fortran/simd4.f90: Ditto.
1068 * testsuite/libgomp.fortran/simd5.f90: Ditto.
1069 * testsuite/libgomp.fortran/simd6.f90: Ditto.
1070 * testsuite/libgomp.fortran/simd7.f90: Ditto.
1071 * testsuite/libgomp.fortran/stack.f90: Ditto.
1072 * testsuite/libgomp.fortran/strassen.f90: Ditto.
1073 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
1074 * testsuite/libgomp.fortran/tabs2.f: Ditto.
1075 * testsuite/libgomp.fortran/target1.f90: Ditto.
1076 * testsuite/libgomp.fortran/target2.f90: Ditto.
1077 * testsuite/libgomp.fortran/target3.f90: Ditto.
1078 * testsuite/libgomp.fortran/target4.f90: Ditto.
1079 * testsuite/libgomp.fortran/target5.f90: Ditto.
1080 * testsuite/libgomp.fortran/target6.f90: Ditto.
1081 * testsuite/libgomp.fortran/target7.f90: Ditto.
1082 * testsuite/libgomp.fortran/target8.f90: Ditto.
1083 * testsuite/libgomp.fortran/task1.f90: Ditto.
1084 * testsuite/libgomp.fortran/task2.f90: Ditto.
1085 * testsuite/libgomp.fortran/task3.f90: Ditto.
1086 * testsuite/libgomp.fortran/task4.f90: Ditto.
1087 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1088 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1089 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
1090 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
1091 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
1092 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
1093 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
1094 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
1095 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
1096 * testsuite/libgomp.fortran/udr1.f90: Ditto.
1097 * testsuite/libgomp.fortran/udr10.f90: Ditto.
1098 * testsuite/libgomp.fortran/udr11.f90: Ditto.
1099 * testsuite/libgomp.fortran/udr12.f90: Ditto.
1100 * testsuite/libgomp.fortran/udr13.f90: Ditto.
1101 * testsuite/libgomp.fortran/udr14.f90: Ditto.
1102 * testsuite/libgomp.fortran/udr15.f90: Ditto.
1103 * testsuite/libgomp.fortran/udr2.f90: Ditto.
1104 * testsuite/libgomp.fortran/udr3.f90: Ditto.
1105 * testsuite/libgomp.fortran/udr4.f90: Ditto.
1106 * testsuite/libgomp.fortran/udr5.f90: Ditto.
1107 * testsuite/libgomp.fortran/udr6.f90: Ditto.
1108 * testsuite/libgomp.fortran/udr7.f90: Ditto.
1109 * testsuite/libgomp.fortran/udr8.f90: Ditto.
1110 * testsuite/libgomp.fortran/udr9.f90: Ditto.
1111 * testsuite/libgomp.fortran/vla1.f90: Ditto.
1112 * testsuite/libgomp.fortran/vla2.f90: Ditto.
1113 * testsuite/libgomp.fortran/vla3.f90: Ditto.
1114 * testsuite/libgomp.fortran/vla4.f90: Ditto.
1115 * testsuite/libgomp.fortran/vla5.f90: Ditto.
1116 * testsuite/libgomp.fortran/vla6.f90: Ditto.
1117 * testsuite/libgomp.fortran/vla7.f90: Ditto.
1118 * testsuite/libgomp.fortran/vla8.f90: Ditto.
1119 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1120 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1121
1122 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
1123
1124 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
1125 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
1126 Ditto; add 'dg-do run' for torture testing.
1127 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
1128 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
1129 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
1130 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
1131 * testsuite/libgomp.fortran/pr28390.f: Ditto.
1132 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
1133 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
1134 * testsuite/libgomp.fortran/task2.f90: Ditto.
1135 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
1136 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
1137 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
1138 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
1139 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
1140 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
1141
1142 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
1143
1144 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
1145 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
1146 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
1147 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
1148 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
1149 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
1150 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
1151 Use 'stop' not abort().
1152 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
1153 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
1154 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
1155 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
1156 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
1157 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
1158 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
1159 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
1160 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
1161 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
1162 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
1163 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
1164 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
1165 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
1166 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
1167 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
1168 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
1169 Ditto.
1170 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
1171 Ditto.
1172 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
1173 Ditto.
1174 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
1175 Ditto.
1176 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
1177 Ditto.
1178 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
1179 Ditto.
1180 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
1181 Ditto.
1182 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
1183 Ditto.
1184 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
1185 Ditto.
1186 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
1187 Ditto.
1188 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
1189 Ditto.
1190 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
1191 Ditto.
1192 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
1193 Ditto.
1194 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
1195 Ditto.
1196 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
1197 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
1198 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
1199 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
1200 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
1201 Likewise and also add 'dg-do run'.
1202 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
1203 Ditto.
1204
1205 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
1206 Tobias Burnus <tobias@codesourcery.com>
1207
1208 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
1209 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
1210 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
1211
1212 2019-10-14 Jakub Jelinek <jakub@redhat.com>
1213
1214 PR libgomp/92081
1215 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
1216 than 0.
1217
1218 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
1219
1220 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
1221 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
1222
1223 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
1224
1225 PR middle-end/92036
1226 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
1227 file.
1228
1229 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
1230
1231 PR testsuite/91884
1232 * testsuite/libgomp.fortran/fortran.exp: Conditionally
1233 add -lquadmath.
1234 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
1235
1236 2019-10-09 Jakub Jelinek <jakub@redhat.com>
1237
1238 PR libgomp/92028
1239 * target.c (gomp_map_vars_internal): Readd the previous
1240 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
1241 though do that just in the !not_found_cnt case.
1242
1243 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
1244
1245 * gfortran.dg/gomp/target-simd.f90: New.
1246
1247 2019-10-02 Julian Brown <julian@codesourcery.com>
1248 Cesar Philippidis <cesar@codesourcery.com>
1249
1250 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
1251 * target.c (FIELD_TGT_EMPTY): Define.
1252 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
1253 as switch instead of list of ifs.
1254 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
1255
1256 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
1257
1258 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
1259 include. Replace alloca () with __builtin_alloca ().
1260 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
1261
1262 2019-10-01 Jakub Jelinek <jakub@redhat.com>
1263
1264 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
1265 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
1266 * oacc-parallel.c: Don't include "libgomp_g.h".
1267 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
1268 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
1269 * aclocal.m4: Regenerated.
1270 * config.h.in: Regenerated.
1271 * configure: Regenerated.
1272 * Makefile.in: Regenerated.
1273
1274 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
1275
1276 * libgomp_g.h: Include stdint.h instead of gstdint.h.
1277
1278 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
1279
1280 * configure: Regenerate.
1281
1282 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
1283
1284 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
1285 string is initialized.
1286
1287 2019-09-06 Florian Weimer <fweimer@redhat.com>
1288
1289 * configure: Regenerate.
1290
1291 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
1292
1293 PR other/79543
1294 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
1295 scanning to conform to the GNU Coding Standards.
1296 * configure: Regenerate.
1297
1298 2019-08-28 Jakub Jelinek <jakub@redhat.com>
1299
1300 PR libgomp/91530
1301 * testsuite/libgomp.c/scan-21.c: New test.
1302 * testsuite/libgomp.c/scan-22.c: New test.
1303
1304 2019-08-27 Jakub Jelinek <jakub@redhat.com>
1305
1306 PR libgomp/91530
1307 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
1308 targets.
1309 * testsuite/libgomp.c/scan-12.c: Likewise.
1310 * testsuite/libgomp.c/scan-13.c: Likewise.
1311 * testsuite/libgomp.c/scan-14.c: Likewise.
1312 * testsuite/libgomp.c/scan-15.c: Likewise.
1313 * testsuite/libgomp.c/scan-16.c: Likewise.
1314 * testsuite/libgomp.c/scan-17.c: Likewise.
1315 * testsuite/libgomp.c/scan-18.c: Likewise.
1316 * testsuite/libgomp.c/scan-19.c: Likewise.
1317 * testsuite/libgomp.c/scan-20.c: Likewise.
1318 * testsuite/libgomp.c++/scan-9.C: Likewise.
1319 * testsuite/libgomp.c++/scan-10.C: Likewise.
1320 * testsuite/libgomp.c++/scan-11.C: Likewise.
1321 * testsuite/libgomp.c++/scan-12.C: Likewise.
1322 * testsuite/libgomp.c++/scan-14.C: Likewise.
1323 * testsuite/libgomp.c++/scan-15.C: Likewise.
1324 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
1325 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
1326 * testsuite/libgomp.c++/scan-16.C: Likewise.
1327
1328 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
1329
1330 PR fortran/91473
1331 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
1332 -std=legacy so invalid code in the test case is accepted.
1333
1334 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
1335
1336 PR fortran/91422
1337 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
1338 dimension.
1339
1340 2019-08-08 Jakub Jelinek <jakub@redhat.com>
1341
1342 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
1343 perform the lookup in the first loop only if !not_found_cnt, otherwise
1344 perform lookups for it in the second loop guarded with
1345 if (not_found_cnt || has_firstprivate).
1346 * testsuite/libgomp.c/target-37.c: New test.
1347 * testsuite/libgomp.c++/target-22.C: New test.
1348
1349 2019-08-07 Jakub Jelinek <jakub@redhat.com>
1350
1351 * testsuite/libgomp.c/target-18.c (struct S): New type.
1352 (foo): Use use_device_addr clause instead of use_device_ptr clause
1353 where required by OpenMP 5.0, add further tests for both use_device_ptr
1354 and use_device_addr clauses.
1355 * testsuite/libgomp.c++/target-9.C (struct S): New type.
1356 (foo): Use use_device_addr clause instead of use_device_ptr clause
1357 where required by OpenMP 5.0, add further tests for both use_device_ptr
1358 and use_device_addr clauses. Add t and u arguments.
1359 (main): Adjust caller.
1360
1361 2019-08-06 Jakub Jelinek <jakub@redhat.com>
1362
1363 * testsuite/libgomp.c++/loop-13.C: New test.
1364 * testsuite/libgomp.c++/loop-14.C: New test.
1365 * testsuite/libgomp.c++/loop-15.C: New test.
1366
1367 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1368
1369 PR middle-end/91301
1370 * testsuite/libgomp.c++/for-27.C: New test.
1371
1372 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
1373
1374 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
1375 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1376
1377 2019-07-20 Jakub Jelinek <jakub@redhat.com>
1378
1379 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
1380
1381 2019-07-08 Jakub Jelinek <jakub@redhat.com>
1382
1383 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
1384 * testsuite/libgomp.c++/scan-16.C: Likewise.
1385
1386 2019-07-06 Jakub Jelinek <jakub@redhat.com>
1387
1388 * testsuite/libgomp.c/scan-19.c: New test.
1389 * testsuite/libgomp.c/scan-20.c: New test.
1390
1391 * testsuite/libgomp.c/scan-11.c: New test.
1392 * testsuite/libgomp.c/scan-12.c: New test.
1393 * testsuite/libgomp.c/scan-13.c: New test.
1394 * testsuite/libgomp.c/scan-14.c: New test.
1395 * testsuite/libgomp.c/scan-15.c: New test.
1396 * testsuite/libgomp.c/scan-16.c: New test.
1397 * testsuite/libgomp.c/scan-17.c: New test.
1398 * testsuite/libgomp.c/scan-18.c: New test.
1399 * testsuite/libgomp.c++/scan-9.C: New test.
1400 * testsuite/libgomp.c++/scan-10.C: New test.
1401 * testsuite/libgomp.c++/scan-11.C: New test.
1402 * testsuite/libgomp.c++/scan-12.C: New test.
1403 * testsuite/libgomp.c++/scan-13.C: New test.
1404 * testsuite/libgomp.c++/scan-14.C: New test.
1405 * testsuite/libgomp.c++/scan-15.C: New test.
1406 * testsuite/libgomp.c++/scan-16.C: New test.
1407
1408 2019-07-04 Jakub Jelinek <jakub@redhat.com>
1409
1410 * testsuite/libgomp.c/scan-9.c: New test.
1411 * testsuite/libgomp.c/scan-10.c: New test.
1412
1413 2019-07-03 Jakub Jelinek <jakub@redhat.com>
1414
1415 * testsuite/libgomp.c++/scan-1.C: New test.
1416 * testsuite/libgomp.c++/scan-2.C: New test.
1417 * testsuite/libgomp.c++/scan-3.C: New test.
1418 * testsuite/libgomp.c++/scan-4.C: New test.
1419 * testsuite/libgomp.c++/scan-5.C: New test.
1420 * testsuite/libgomp.c++/scan-6.C: New test.
1421 * testsuite/libgomp.c++/scan-7.C: New test.
1422 * testsuite/libgomp.c++/scan-8.C: New test.
1423 * testsuite/libgomp.c/scan-1.c: New test.
1424 * testsuite/libgomp.c/scan-2.c: New test.
1425 * testsuite/libgomp.c/scan-3.c: New test.
1426 * testsuite/libgomp.c/scan-4.c: New test.
1427 * testsuite/libgomp.c/scan-5.c: New test.
1428 * testsuite/libgomp.c/scan-6.c: New test.
1429 * testsuite/libgomp.c/scan-7.c: New test.
1430 * testsuite/libgomp.c/scan-8.c: New test.
1431
1432 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1433
1434 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
1435 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
1436 Likewise.
1437
1438 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
1439 check.
1440
1441 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
1442
1443 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
1444 file.
1445
1446 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1447
1448 PR fortran/90743
1449 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
1450 case.
1451 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
1452 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
1453 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
1454 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
1455
1456 PR testsuite/90861
1457 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
1458
1459 PR middle-end/90862
1460 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
1461
1462 2019-06-16 Tom de Vries <tdevries@suse.de>
1463
1464 PR tree-optimization/89376
1465 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
1466
1467 2019-06-15 Tom de Vries <tdevries@suse.de>
1468
1469 PR tree-optimization/89713
1470 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
1471 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
1472
1473 2019-06-15 Jakub Jelinek <jakub@redhat.com>
1474
1475 PR middle-end/90779
1476 * testsuite/libgomp.c/pr90779.c: New test.
1477 * testsuite/libgomp.fortran/pr90779.f90: New test.
1478
1479 2019-06-15 Tom de Vries <tdevries@suse.de>
1480
1481 PR tree-optimization/90009
1482 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
1483
1484 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
1485
1486 PR tree-optimization/89713
1487 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
1488
1489 2019-06-11 Jakub Jelinek <jakub@redhat.com>
1490
1491 PR target/90811
1492 * testsuite/libgomp.c/pr90811.c: New test.
1493
1494 2019-06-05 Jakub Jelinek <jakub@redhat.com>
1495
1496 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
1497 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
1498
1499 2019-06-04 Jakub Jelinek <jakub@redhat.com>
1500
1501 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
1502 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
1503 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
1504 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
1505
1506 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1507
1508 * configure.ac: Call AX_COUNT_CPUS.
1509 Substitute CPU_COUNT.
1510 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
1511 count fallback.
1512 * aclocal.m4: Regenerate.
1513 * configure: Regenerate.
1514 * Makefile.in, testsuite/Makefile.in: Regenerate.
1515
1516 2019-05-29 Jakub Jelinek <jakub@redhat.com>
1517
1518 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
1519 to ...
1520 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
1521 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
1522 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
1523
1524 2019-05-27 Jakub Jelinek <jakub@redhat.com>
1525
1526 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
1527
1528 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
1529
1530 PR libgomp/90641
1531 * work.c (gomp_init_work_share): Instead of aligning final ordered
1532 value to multiples of long long alignment, align to that the
1533 first part (ordered team ids) and if inline_ordered_team_ids
1534 is not on a long long alignment boundary within the structure,
1535 use __alignof__ (long long) - 1 pad size always.
1536 * loop.c (GOMP_loop_start): Fix *mem computation if
1537 inline_ordered_team_ids is not aligned on long long alignment boundary
1538 within the structure.
1539 * loop-ull.c (GOMP_loop_ull_start): Likewise.
1540 * sections.c (GOMP_sections2_start): Likewise.
1541
1542 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1543
1544 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
1545 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
1546
1547 PR libgomp/90585
1548 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
1549 HAVE_INTTYPES_H is defined.
1550 (print_uint64_t): New typedef.
1551 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
1552 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
1553 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
1554 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
1555 before casting to void *.
1556 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
1557 * oacc-mem.c: Don't include config.h nor stdint.h.
1558 * target.c: Don't include config.h.
1559 * oacc-cuda.c: Likewise.
1560 * oacc-host.c: Don't include stdint.h.
1561
1562 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1563
1564 PR libgomp/90527
1565 * alloc.c (_GNU_SOURCE): Define.
1566
1567 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
1568
1569 * acc_prof.h: New file.
1570 * oacc-profiling.c: Likewise.
1571 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
1572 Add these, respectively.
1573 * Makefile.in: Regenerate.
1574 * env.c (initialize_env): Call goacc_profiling_initialize.
1575 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
1576 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
1577 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
1578 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
1579 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
1580 acc_prof_register, acc_prof_unregister, and acc_register_library.
1581 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
1582 GOMP_PLUGIN_goacc_thread.
1583 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
1584 prof_callbacks_enabled members.
1585 (goacc_prof_enabled, goacc_profiling_initialize)
1586 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
1587 (goacc_profiling_dispatch): Declare.
1588 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
1589 (GOACC_PROFILING_SETUP_P): Define.
1590 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
1591 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
1592 OpenACC Profiling Interface.
1593 * oacc-cuda.c (acc_get_current_cuda_device)
1594 (acc_get_current_cuda_context, acc_get_cuda_stream)
1595 (acc_set_cuda_stream): Likewise.
1596 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
1597 (acc_init, acc_set_device_type, acc_get_device_type)
1598 (acc_get_device_num, goacc_lazy_initialize): Likewise.
1599 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
1600 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
1601 (acc_unmap_data, present_create_copy, delete_copyout)
1602 (update_dev_host): Likewise.
1603 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
1604 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
1605 Likewise.
1606 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
1607 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1608 Likewise.
1609 * libgomp.texi: Update.
1610 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
1611 file.
1612 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
1613 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1614 Likewise.
1615 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1616 Likewise.
1617 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
1618 Likewise.
1619 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
1620 Likewise.
1621
1622 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
1623
1624 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
1625 (struct goacc_asyncqueue_list): Likewise.
1626 (goacc_aq): Likewise.
1627 (goacc_aq_list): Likewise.
1628 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1629 (GOMP_OFFLOAD_openacc_async_test): Remove.
1630 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1631 (GOMP_OFFLOAD_openacc_async_wait): Remove.
1632 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1633 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1634 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1635 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1636 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
1637 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
1638 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
1639 (GOMP_OFFLOAD_openacc_async_exec): Declare.
1640 (GOMP_OFFLOAD_openacc_async_construct): Declare.
1641 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
1642 (GOMP_OFFLOAD_openacc_async_test): Declare.
1643 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
1644 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
1645 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
1646 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
1647 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
1648
1649 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
1650 (gomp_acc_insert_pointer): Adjust declaration.
1651 (gomp_copy_host2dev): New declaration.
1652 (gomp_copy_dev2host): Likewise.
1653 (gomp_map_vars_async): Likewise.
1654 (gomp_unmap_tgt): Likewise.
1655 (gomp_unmap_vars_async): Likewise.
1656 (gomp_fini_device): Likewise.
1657
1658 * oacc-async.c (get_goacc_thread): New function.
1659 (get_goacc_thread_device): New function.
1660 (lookup_goacc_asyncqueue): New function.
1661 (get_goacc_asyncqueue): New function.
1662 (acc_async_test): Adjust code to use new async design.
1663 (acc_async_test_all): Likewise.
1664 (acc_wait): Likewise.
1665 (acc_wait_async): Likewise.
1666 (acc_wait_all): Likewise.
1667 (acc_wait_all_async): Likewise.
1668 (goacc_async_free): New function.
1669 (goacc_init_asyncqueues): Likewise.
1670 (goacc_fini_asyncqueues): Likewise.
1671 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
1672 design.
1673 (acc_set_cuda_stream): Likewise.
1674 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
1675 (host_openacc_register_async_cleanup): Remove.
1676 (host_openacc_async_exec): New function.
1677 (host_openacc_async_test): Adjust parameters.
1678 (host_openacc_async_test_all): Remove.
1679 (host_openacc_async_wait): Remove.
1680 (host_openacc_async_wait_async): Remove.
1681 (host_openacc_async_wait_all): Remove.
1682 (host_openacc_async_wait_all_async): Remove.
1683 (host_openacc_async_set_async): Remove.
1684 (host_openacc_async_synchronize): New function.
1685 (host_openacc_async_serialize): New function.
1686 (host_openacc_async_host2dev): New function.
1687 (host_openacc_async_dev2host): New function.
1688 (host_openacc_async_queue_callback): New function.
1689 (host_openacc_async_construct): New function.
1690 (host_openacc_async_destruct): New function.
1691 (struct gomp_device_descr host_dispatch): Remove initialization of old
1692 interface, add initialization of new async sub-struct.
1693 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
1694 (goacc_attach_host_thread_to_device): Remove old async code usage.
1695 * oacc-int.h (goacc_init_asyncqueues): New declaration.
1696 (goacc_fini_asyncqueues): Likewise.
1697 (goacc_async_copyout_unmap_vars): Likewise.
1698 (goacc_async_free): Likewise.
1699 (get_goacc_asyncqueue): Likewise.
1700 (lookup_goacc_asyncqueue): Likewise.
1701 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
1702 design.
1703 (present_create_copy): Adjust code to use new async design.
1704 (delete_copyout): Likewise.
1705 (update_dev_host): Likewise.
1706 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
1707 async design.
1708 (gomp_acc_remove_pointer): Adjust code to use new async design.
1709 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
1710 design.
1711 (GOACC_enter_exit_data): Likewise.
1712 (goacc_wait): Likewise.
1713 (GOACC_update): Likewise.
1714 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
1715 when called, warn as obsolete in comment.
1716 * target.c (goacc_device_copy_async): New function.
1717 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
1718 add goacc_device_copy_async case.
1719 (gomp_copy_dev2host): Likewise.
1720 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
1721 (gomp_map_pointer): Likewise.
1722 (gomp_map_fields_existing): Likewise.
1723 (gomp_map_vars_internal): New always_inline function, renamed from
1724 gomp_map_vars.
1725 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
1726 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
1727 passing goacc_asyncqueue argument.
1728 (gomp_unmap_tgt): Remove static, add attribute_hidden.
1729 (gomp_unref_tgt): New function.
1730 (gomp_unmap_vars_internal): New always_inline function, renamed from
1731 gomp_unmap_vars.
1732 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
1733 (gomp_unmap_vars_async): Implement by calling
1734 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
1735 (gomp_fini_device): New function.
1736 (gomp_exit_data): Adjust gomp_copy_dev2host call.
1737 (gomp_load_plugin_for_device): Remove old interface, adjust to load
1738 new async interface.
1739 (gomp_target_fini): Adjust code to call gomp_fini_device.
1740
1741 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
1742 (struct ptx_stream): Remove.
1743 (struct nvptx_thread): Remove current_stream field.
1744 (cuda_map_create): Remove.
1745 (cuda_map_destroy): Remove.
1746 (map_init): Remove.
1747 (map_fini): Remove.
1748 (map_pop): Remove.
1749 (map_push): Remove.
1750 (struct goacc_asyncqueue): Define.
1751 (struct nvptx_callback): Define.
1752 (struct ptx_free_block): Define.
1753 (struct ptx_device): Remove null_stream, active_streams, async_streams,
1754 stream_lock, and next fields.
1755 (enum ptx_event_type): Remove.
1756 (struct ptx_event): Remove.
1757 (ptx_event_lock): Remove.
1758 (ptx_events): Remove.
1759 (init_streams_for_device): Remove.
1760 (fini_streams_for_device): Remove.
1761 (select_stream_for_async): Remove.
1762 (nvptx_init): Remove ptx_events and ptx_event_lock references.
1763 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
1764 case.
1765 (nvptx_open_device): Add free_blocks initialization, remove
1766 init_streams_for_device call.
1767 (nvptx_close_device): Remove fini_streams_for_device call, add
1768 free_blocks destruct code.
1769 (event_gc): Remove.
1770 (event_add): Remove.
1771 (nvptx_exec): Adjust parameters and code.
1772 (nvptx_free): Likewise.
1773 (nvptx_host2dev): Remove.
1774 (nvptx_dev2host): Remove.
1775 (nvptx_set_async): Remove.
1776 (nvptx_async_test): Remove.
1777 (nvptx_async_test_all): Remove.
1778 (nvptx_wait): Remove.
1779 (nvptx_wait_async): Remove.
1780 (nvptx_wait_all): Remove.
1781 (nvptx_wait_all_async): Remove.
1782 (nvptx_get_cuda_stream): Remove.
1783 (nvptx_set_cuda_stream): Remove.
1784 (GOMP_OFFLOAD_alloc): Adjust code.
1785 (GOMP_OFFLOAD_free): Likewise.
1786 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1787 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
1788 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1789 (GOMP_OFFLOAD_openacc_async_wait): Remove.
1790 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1791 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1792 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1793 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1794 (cuda_free_argmem): New function.
1795 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
1796 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
1797 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
1798 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
1799 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
1800 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
1801 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
1802 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
1803 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
1804 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
1805 (cuda_callback_wrapper): New function.
1806 (cuda_memcpy_sanity_check): New function.
1807 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
1808 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
1809 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
1810 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
1811
1812 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
1813
1814 PR target/87835
1815 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
1816
1817 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
1818
1819 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
1820
1821 2019-03-27 Kevin Buettner <kevinb@redhat.com>
1822
1823 * team.c (gomp_team_start): Initialize pool->threads[0].
1824
1825 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
1826
1827 * testsuite/libgomp.oacc-c++/c++.exp: Specify
1828 "-foffload=$offload_target".
1829 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1830 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1831 * testsuite/lib/libgomp.exp
1832 (check_effective_target_openacc_nvidia_accel_configured): Remove,
1833 as (conceptually) merged into
1834 check_effective_target_openacc_nvidia_accel_selected. Adjust all
1835 users.
1836
1837 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
1838 * testsuite/libgomp-test-support.exp.in: Adjust.
1839 * testsuite/lib/libgomp.exp: Likewise. Don't populate
1840 openacc_device_types_s.
1841 (offload_target_to_openacc_device_type): New proc.
1842 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
1843 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1844 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1845 * Makefile.in: Regenerate.
1846 * configure: Likewise.
1847 * testsuite/Makefile.in: Likewise.
1848
1849 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
1850 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
1851 instead of OFFLOAD_TARGETS.
1852 * target.c (gomp_target_init): Adjust.
1853 * testsuite/libgomp-test-support.exp.in: Likewise.
1854 * testsuite/lib/libgomp.exp: Likewise. Populate
1855 openacc_device_types_s instead of offload_targets_s_openacc.
1856 (check_effective_target_openacc_nvidia_accel_selected)
1857 (check_effective_target_openacc_host_selected): Adjust.
1858 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1859 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1860 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1861 * Makefile.in: Regenerate.
1862 * config.h.in: Likewise.
1863 * configure: Likewise.
1864 * testsuite/Makefile.in: Likewise.
1865
1866 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
1867 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
1868 "offloading: supported, but hardware not accessible".
1869 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1870 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1871
1872 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
1873
1874 PR c/87924
1875 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
1876 goacc_wait().
1877 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
1878 and related adjustment.
1879
1880 2019-01-30 Jakub Jelinek <jakub@redhat.com>
1881
1882 PR c++/88988
1883 * testsuite/libgomp.c++/pr88988.C: New test.
1884
1885 2019-01-28 Jakub Jelinek <jakub@redhat.com>
1886
1887 PR middle-end/89002
1888 * testsuite/libgomp.c/pr89002.c: New test.
1889
1890 2019-01-28 Richard Biener <rguenther@suse.de>
1891
1892 PR testsuite/89064
1893 PR tree-optimization/86865
1894 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
1895
1896 2019-01-24 Tom de Vries <tdevries@suse.de>
1897
1898 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
1899 once instantiated_devices drops to 0.
1900
1901 2019-01-23 Tom de Vries <tdevries@suse.de>
1902
1903 PR target/PR88946
1904 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
1905 cuMemFree.
1906 (nvptx_exec): Don't call map_push if mapnum == 0.
1907 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
1908
1909 2019-01-23 Tom de Vries <tdevries@suse.de>
1910
1911 PR target/88941
1912 PR target/88939
1913 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
1914 (map_fini): Remove "assert (!s->map->active)".
1915 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
1916
1917 2019-01-23 Tom de Vries <tdevries@suse.de>
1918
1919 PR target/87835
1920 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
1921 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
1922
1923 2019-01-15 Tom de Vries <tdevries@suse.de>
1924
1925 PR target/80547
1926 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
1927 New test.
1928
1929 2019-01-12 Tom de Vries <tdevries@suse.de>
1930
1931 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
1932 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
1933 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
1934 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
1935
1936 2019-01-12 Tom de Vries <tdevries@suse.de>
1937
1938 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
1939
1940 2019-01-12 Tom de Vries <tdevries@suse.de>
1941
1942 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
1943 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
1944 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
1945
1946 2019-01-12 Tom de Vries <tdevries@suse.de>
1947
1948 PR target/85486
1949 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
1950 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
1951
1952 2019-01-12 Tom de Vries <tdevries@suse.de>
1953
1954 PR target/85381
1955 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
1956 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
1957
1958 2019-01-12 Tom de Vries <tdevries@suse.de>
1959
1960 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
1961 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
1962 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
1963
1964 2019-01-12 Tom de Vries <tdevries@suse.de>
1965
1966 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
1967 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
1968 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
1969
1970 2019-01-12 Tom de Vries <tdevries@suse.de>
1971
1972 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
1973 resources diagnostic.
1974
1975 2019-01-12 Tom de Vries <tdevries@suse.de>
1976
1977 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
1978 vector length to be 128.
1979 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
1980 length 2097152 to be reduced to 1024 instead of 32.
1981
1982 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
1983 James Norris <jnorris@codesourcery.com>
1984
1985 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
1986 Library Routines", and "Environment Variables".
1987
1988 2019-01-11 Tom de Vries <tdevries@suse.de>
1989
1990 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
1991 num_workers 16.
1992
1993 2019-01-11 Tom de Vries <tdevries@suse.de>
1994
1995 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
1996 -foffload=-w.
1997 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
1998 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
1999 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
2000 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
2001
2002 2019-01-11 Tom de Vries <tdevries@suse.de>
2003
2004 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
2005 test.
2006
2007 2019-01-10 Nathan Sidwell <nathan@acm.org>
2008 Julian Brown <julian@codesourcery.com>
2009
2010 PR lto/71959
2011 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
2012 * testsuite/libgomp.oacc-c++/pr71959.C: New.
2013
2014 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2015
2016 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
2017 and paste code.
2018
2019 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
2020
2021 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
2022 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2023 write.
2024
2025 2019-01-09 Tom de Vries <tdevries@suse.de>
2026
2027 PR target/88756
2028 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
2029 #define instead of "const int".
2030 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
2031 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
2032 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
2033 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
2034
2035 2019-01-09 Tom de Vries <tdevries@suse.de>
2036
2037 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
2038 one worker.
2039
2040 2019-01-07 Tom de Vries <tdevries@suse.de>
2041
2042 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
2043 GOMP_OPENACC_DIM argument.
2044
2045 2019-01-03 Tom de Vries <tdevries@suse.de>
2046
2047 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
2048 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
2049
2050 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2051
2052 Update copyright years.
2053
2054 2019-01-01 Jakub Jelinek <jakub@redhat.com>
2055
2056 * libgomp.texi: Bump @copying's copyright year.
2057
2058 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2059
2060 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
2061 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
2062 (GOACC_declare): Redefine the "device" argument to "flags".
2063
2064 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
2065 Cesar Philippidis <cesar@codesourcery.com>
2066
2067 * target.c (struct gomp_coalesce_chunk): New structure.
2068 (struct gomp_coalesce_buf): Update the chunks member to use that
2069 type. Adjust all users.
2070
2071 2018-12-19 Tom de Vries <tdevries@suse.de>
2072
2073 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
2074 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
2075 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
2076
2077 2018-12-19 Tom de Vries <tdevries@suse.de>
2078
2079 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
2080 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
2081 gcc/testsuite/gcc.dg/goacc.
2082 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
2083
2084 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2085 Chung-Lin Tang <cltang@codesourcery.com>
2086
2087 * oacc-mem.c (acc_present_or_create): Remove definition and change
2088 to alias of acc_create.
2089 (acc_present_or_copyin): Remove definition and change to alias of
2090 acc_copyin.
2091 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
2092 of acc_present_or_create.
2093 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
2094 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2095 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
2096 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
2097 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
2098 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
2099 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
2100 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2101 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
2102 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2103 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2104 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2105 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2106 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2107 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2108 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2109
2110 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2111
2112 PR libgomp/88495
2113 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
2114 "identical parameters".
2115 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
2116 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
2117
2118 PR libgomp/88484
2119 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
2120 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
2121
2122 PR libgomp/88407
2123 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
2124 (nvptx_wait_async): Unseen async-argument is a no-op.
2125 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
2126 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
2127 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2128 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
2129 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
2130 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
2131 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
2132 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
2133 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
2134
2135 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
2136 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2137
2138 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
2139
2140 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
2141 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
2142 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
2143
2144 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
2145
2146 PR libgomp/88370
2147 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
2148 (acc_set_cuda_stream): Clarify.
2149 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
2150 "async_valid_p".
2151 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
2152 acc_async_sync".
2153 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
2154 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
2155 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
2156 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
2157
2158 2018-12-14 Tom de Vries <tdevries@suse.de>
2159
2160 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
2161 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
2162 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
2163 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
2164 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
2165
2166 2018-12-13 Tom de Vries <tdevries@suse.de>
2167
2168 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
2169 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
2170 * fortran.c (omp_display_affinity_): ... here.
2171 * libgomp.h (gomp_print_string): Declare.
2172 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
2173 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
2174 write.
2175
2176 2018-12-13 Jakub Jelinek <jakub@redhat.com>
2177
2178 PR libgomp/88460
2179 * testsuite/libgomp.c++/for-24.C (results): Include it in
2180 omp declare target region.
2181 (main): Use map (always, tofrom: results) instead of
2182 map (tofrom: results).
2183
2184 2018-12-12 Jakub Jelinek <jakub@redhat.com>
2185
2186 PR fortran/88463
2187 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
2188 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
2189
2190 * testsuite/libgomp.c-c++-common/for-16.c: New test.
2191
2192 2018-12-12 Andreas Schwab <schwab@suse.de>
2193
2194 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
2195 clobbered.
2196
2197 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
2198
2199 PR fortran/88411
2200 * testsuite/libgomp.fortran/async_io_8.f90: New test.
2201
2202 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
2203 Jakub Jelinek <jakub@redhat.com>
2204
2205 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
2206 devicep->host2dev_func.
2207
2208 2018-12-08 Jakub Jelinek <jakub@redhat.com>
2209
2210 PR libgomp/87995
2211 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
2212 tls_runtime effective target.
2213 (t): New threadprivate variable.
2214 (main): Set t in threads which execute iterations of the worksharing
2215 loop. Propagate that to the task after the loop and don't abort
2216 if the current taskgroup hasn't been cancelled.
2217
2218 2018-12-02 Jakub Jelinek <jakub@redhat.com>
2219
2220 * testsuite/libgomp.c/task-reduction-3.c: New test.
2221
2222 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
2223
2224 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
2225
2226 PR libgomp/88288
2227 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
2228 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
2229
2230 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
2231
2232 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
2233
2234 2018-10-19 Richard Biener <rguenther@suse.de>
2235
2236 PR tree-optimization/88182
2237 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
2238
2239 2018-11-26 Jakub Jelinek <jakub@redhat.com>
2240
2241 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
2242 (RUNTEST): Don't define.
2243 (RUNTESTDEFAULTFLAGS): Add.
2244 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
2245 (distclean-am): Depend on distclean-DEJAGNU.
2246 (check-am): If -j% option is present in MFLAGS and if
2247 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
2248 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
2249 * testsuite/Makefile.in: Regenerated.
2250
2251 2018-11-26 Richard Biener <rguenther@suse.de>
2252
2253 PR tree-optimization/88182
2254 * testsuite/libgomp.c++/pr88182.C: New testcase.
2255
2256 2018-11-20 Jakub Jelinek <jakub@redhat.com>
2257
2258 PR bootstrap/88106
2259 * config/mingw32/affinity-fmt.c: New file.
2260
2261 2018-11-09 Jakub Jelinek <jakub@redhat.com>
2262
2263 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
2264 (gomp_display_affinity): Use __builtin_choose_expr to handle
2265 properly handle argument having integral, or pointer or some other
2266 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
2267 with uint64_t type instead of %llx and unsigned long long.
2268
2269 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
2270 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
2271
2272 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2273
2274 * affinity.c: Include <string.h>, <stdio.h>.
2275 (gomp_display_affinity_place): Remove cpusetp.
2276 * teams.c: Include <limits.h>.
2277
2278 2018-11-08 Jakub Jelinek <jakub@redhat.com>
2279
2280 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
2281 in_reduction clause for s[0].
2282
2283 * affinity.c (gomp_display_affinity_place): New function.
2284 * affinity-fmt.c: New file.
2285 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
2286 * config/linux/affinity.c (gomp_display_affinity_place): New function.
2287 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
2288 Move these functions to ...
2289 * config/nvptx/teams.c: ... here. New file.
2290 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
2291 New functions.
2292 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
2293 functions.
2294 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
2295 and _aligned_malloc.
2296 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
2297 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
2298 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
2299 gomp_affinity_format_len): New variables.
2300 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
2301 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
2302 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
2303 modifiers. Display (non-default) chunk sizes. Print
2304 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
2305 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
2306 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
2307 * fortran.c: Include stdio.h and string.h.
2308 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
2309 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
2310 (omp_set_affinity_format_, omp_get_affinity_format_,
2311 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
2312 omp_pause_resource_all_): New functions.
2313 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
2314 switch.
2315 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
2316 functions to ...
2317 * teams.c: ... here. New file.
2318 * libgomp_g.h: Include gstdint.h.
2319 (GOMP_loop_nonmonotonic_runtime_start,
2320 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
2321 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
2322 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
2323 GOMP_parallel_loop_nonmonotonic_runtime,
2324 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2325 GOMP_loop_ull_nonmonotonic_runtime_start,
2326 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
2327 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
2328 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2329 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
2330 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
2331 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2332 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2333 GOMP_teams_reg): Declare.
2334 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
2335 gomp_aligned_alloc uses fallback implementation.
2336 (gomp_aligned_alloc, gomp_aligned_free): Declare.
2337 (enum gomp_schedule_type): Add GFS_MONOTONIC.
2338 (struct gomp_doacross_work_share): Add extra field.
2339 (struct gomp_work_share): Add task_reductions field.
2340 (struct gomp_taskgroup): Add workshare and reductions fields.
2341 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
2342 (gomp_thread_handle): New typedef.
2343 (gomp_display_affinity_place, gomp_set_affinity_format,
2344 gomp_display_string, gomp_display_affinity,
2345 gomp_display_affinity_thread): Declare.
2346 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
2347 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
2348 gomp_workshare_task_reduction_register): Declare.
2349 (gomp_team_start): Add taskgroup argument.
2350 (gomp_pause_host): Declare.
2351 (gomp_init_work_share, gomp_work_share_start): Change bool argument
2352 to size_t.
2353 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
2354 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
2355 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
2356 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2357 GOMP_loop_ull_doacross_start,
2358 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2359 GOMP_loop_maybe_nonmonotonic_runtime_next,
2360 GOMP_loop_maybe_nonmonotonic_runtime_start,
2361 GOMP_loop_nonmonotonic_runtime_next,
2362 GOMP_loop_nonmonotonic_runtime_start,
2363 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2364 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2365 GOMP_loop_ull_nonmonotonic_runtime_next,
2366 GOMP_loop_ull_nonmonotonic_runtime_start,
2367 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2368 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
2369 GOMP_taskgroup_reduction_register,
2370 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2371 GOMP_teams_reg and GOMP_taskwait_depend.
2372 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
2373 omp_{capture,display}_affinity{,_}, and
2374 omp_[gs]et_affinity_format{,_}.
2375 * loop.c: Include string.h.
2376 (GOMP_loop_runtime_next): Add ialias.
2377 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2378 (gomp_loop_static_start, gomp_loop_dynamic_start,
2379 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2380 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2381 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
2382 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
2383 or gomp_doacross_init callers.
2384 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
2385 GOMP_loop_doacross_start): New functions.
2386 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2387 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
2388 Mask off GFS_MONOTONIC bit.
2389 (GOMP_loop_maybe_nonmonotonic_runtime_next,
2390 GOMP_loop_maybe_nonmonotonic_runtime_start,
2391 GOMP_loop_nonmonotonic_runtime_next,
2392 GOMP_loop_nonmonotonic_runtime_start,
2393 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2394 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
2395 functions.
2396 (gomp_parallel_loop_start): Pass NULL as taskgroup to
2397 gomp_team_start.
2398 * loop_ull.c: Include string.h.
2399 (GOMP_loop_ull_runtime_next): Add ialias.
2400 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2401 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
2402 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
2403 gomp_loop_ull_ordered_dynamic_start,
2404 gomp_loop_ull_ordered_guided_start,
2405 gomp_loop_ull_doacross_static_start,
2406 gomp_loop_ull_doacross_dynamic_start,
2407 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
2408 and gomp_doacross_ull_init callers.
2409 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2410 GOMP_loop_ull_doacross_start): New functions.
2411 (GOMP_loop_ull_runtime_start,
2412 GOMP_loop_ull_ordered_runtime_start,
2413 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
2414 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2415 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2416 GOMP_loop_ull_nonmonotonic_runtime_next,
2417 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
2418 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
2419 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
2420 (omp_pause_resource_t, omp_depend_t): New typedefs.
2421 (enum omp_lock_hint_t): Renamed to ...
2422 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
2423 enumerators using numbers and omp_lock_hint_* as their aliases.
2424 (omp_lock_hint_t): New typedef. Rename to ...
2425 (omp_sync_hint_t): ... this.
2426 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
2427 omp_sync_hint_t instead of omp_lock_hint_t.
2428 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2429 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2430 Declare.
2431 (omp_target_is_present, omp_target_disassociate_ptr):
2432 Change first argument from void * to const void *.
2433 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
2434 from void * to const void *.
2435 (omp_target_associate_ptr): Change first and second arguments from
2436 void * to const void *.
2437 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
2438 omp_pause_hard): New parameters.
2439 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2440 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2441 New interfaces.
2442 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
2443 omp_pause_hard): New parameters.
2444 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2445 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2446 New externals.
2447 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
2448 EXTRA argument. If not needed to prepare array, if extra is 0,
2449 clear ws->doacross, otherwise allocate just doacross structure and
2450 extra payload. If array is needed, allocate also extra payload.
2451 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
2452 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
2453 doacross == NULL.
2454 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
2455 gomp_team_start.
2456 (GOMP_parallel): Likewise. Formatting fix.
2457 (GOMP_parallel_reductions): New function.
2458 (GOMP_cancellation_point): If taskgroup has workshare
2459 flag set, check cancelled of prev taskgroup if any.
2460 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
2461 on prev taskgroup if any.
2462 * sections.c: Include string.h.
2463 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2464 (GOMP_sections_start): Adjust gomp_work_share_start caller.
2465 (GOMP_sections2_start): New function.
2466 (GOMP_parallel_sections_start, GOMP_parallel_sections):
2467 Pass NULL as taskgroup to gomp_team_start.
2468 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
2469 gomp_work_share_start callers.
2470 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
2471 If taskgroup has workshare flag set, check cancelled on prev
2472 taskgroup if any. Guard all cancellation tests with
2473 gomp_cancel_var test.
2474 (omp_target_is_present, omp_target_disassociate_ptr):
2475 Change ptr argument from void * to const void *.
2476 (omp_target_memcpy): Change src argument from void * to const void *.
2477 (omp_target_memcpy_rect): Likewise.
2478 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
2479 instead of char * where needed.
2480 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
2481 from void * to const void *.
2482 (omp_pause_resource, omp_pause_resource_all): New functions.
2483 * task.c (gomp_task_handle_depend): Handle new depend array format
2484 in addition to the old. Handle mutexinoutset kinds the same as
2485 inout for now, handle unspecified kinds.
2486 (gomp_create_target_task): If taskgroup has workshare flag set, check
2487 cancelled on prev taskgroup if any. Guard all cancellation tests with
2488 gomp_cancel_var test. Handle new depend array format count in
2489 addition to the old.
2490 (GOMP_task): Likewise. Adjust function comment.
2491 (gomp_task_run_pre): If taskgroup has workshare flag set, check
2492 cancelled on prev taskgroup if any. Guard all cancellation tests with
2493 gomp_cancel_var test.
2494 (GOMP_taskwait_depend): New function.
2495 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
2496 format in addition to the old. Handle mutexinoutset kinds the same as
2497 inout for now, handle unspecified kinds. Fix a function comment typo.
2498 (gomp_taskgroup_init): New function.
2499 (GOMP_taskgroup_start): Use it.
2500 (gomp_reduction_register, gomp_create_artificial_team,
2501 GOMP_taskgroup_reduction_register,
2502 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2503 gomp_parallel_reduction_register,
2504 gomp_workshare_task_reduction_register,
2505 gomp_workshare_taskgroup_start,
2506 GOMP_workshare_task_reduction_unregister): New functions.
2507 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
2508 check cancelled on prev taskgroup if any. Guard all cancellation
2509 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
2510 by calling GOMP_taskgroup_reduction_register.
2511 * team.c (gomp_thread_attr): Remove comment.
2512 (struct gomp_thread_start_data): Add handle field.
2513 (gomp_thread_start): Call pthread_detach.
2514 (gomp_new_team): Adjust gomp_init_work_share caller.
2515 (gomp_free_pool_helper): Call pthread_detach.
2516 (gomp_team_start): Add taskgroup argument, initialize implicit
2517 tasks' taskgroup field to that. Don't call
2518 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
2519 (gomp_team_end): Determine nesting by thr->ts.level != 0
2520 rather than thr->ts.team != NULL.
2521 (gomp_pause_pool_helper, gomp_pause_host): New functions.
2522 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
2523 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
2524 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
2525 if more than 1 allocate also extra payload at the end of array. Never
2526 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
2527 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
2528 return true instead of ws.
2529 * Makefile.in: Regenerated.
2530 * configure: Regenerated.
2531 * config.h.in: Regenerated.
2532 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
2533 in some cases.
2534 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
2535 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
2536 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
2537 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
2538 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
2539 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
2540 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
2541 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
2542 * testsuite/libgomp.c-c++-common/for-10.c: New test.
2543 * testsuite/libgomp.c-c++-common/for-11.c: New test.
2544 * testsuite/libgomp.c-c++-common/for-12.c: New test.
2545 * testsuite/libgomp.c-c++-common/for-13.c: New test.
2546 * testsuite/libgomp.c-c++-common/for-14.c: New test.
2547 * testsuite/libgomp.c-c++-common/for-15.c: New test.
2548 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
2549 define a different N(test), don't define N(f0) to N(f14), but instead
2550 define N(f20) to N(f34) using != comparisons.
2551 * testsuite/libgomp.c-c++-common/for-7.c: New test.
2552 * testsuite/libgomp.c-c++-common/for-8.c: New test.
2553 * testsuite/libgomp.c-c++-common/for-9.c: New test.
2554 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
2555 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
2556 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
2557 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
2558 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
2559 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
2560 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
2561 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
2562 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
2563 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
2564 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
2565 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
2566 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
2567 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
2568 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
2569 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
2570 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
2571 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
2572 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
2573 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
2574 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
2575 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
2576 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
2577 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
2578 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
2579 * testsuite/libgomp.c++/depend-1.C: New test.
2580 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
2581 * testsuite/libgomp.c++/depobj-1.C: New test.
2582 * testsuite/libgomp.c++/for-16.C: New test.
2583 * testsuite/libgomp.c++/for-21.C: New test.
2584 * testsuite/libgomp.c++/for-22.C: New test.
2585 * testsuite/libgomp.c++/for-23.C: New test.
2586 * testsuite/libgomp.c++/for-24.C: New test.
2587 * testsuite/libgomp.c++/for-25.C: New test.
2588 * testsuite/libgomp.c++/for-26.C: New test.
2589 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
2590 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
2591 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
2592 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
2593 * testsuite/libgomp.c++/task-reduction-10.C: New test.
2594 * testsuite/libgomp.c++/task-reduction-11.C: New test.
2595 * testsuite/libgomp.c++/task-reduction-12.C: New test.
2596 * testsuite/libgomp.c++/task-reduction-13.C: New test.
2597 * testsuite/libgomp.c++/task-reduction-14.C: New test.
2598 * testsuite/libgomp.c++/task-reduction-15.C: New test.
2599 * testsuite/libgomp.c++/task-reduction-16.C: New test.
2600 * testsuite/libgomp.c++/task-reduction-17.C: New test.
2601 * testsuite/libgomp.c++/task-reduction-18.C: New test.
2602 * testsuite/libgomp.c++/task-reduction-19.C: New test.
2603 * testsuite/libgomp.c/task-reduction-1.c: New test.
2604 * testsuite/libgomp.c++/task-reduction-1.C: New test.
2605 * testsuite/libgomp.c/task-reduction-2.c: New test.
2606 * testsuite/libgomp.c++/task-reduction-2.C: New test.
2607 * testsuite/libgomp.c++/task-reduction-3.C: New test.
2608 * testsuite/libgomp.c++/task-reduction-4.C: New test.
2609 * testsuite/libgomp.c++/task-reduction-5.C: New test.
2610 * testsuite/libgomp.c++/task-reduction-6.C: New test.
2611 * testsuite/libgomp.c++/task-reduction-7.C: New test.
2612 * testsuite/libgomp.c++/task-reduction-8.C: New test.
2613 * testsuite/libgomp.c++/task-reduction-9.C: New test.
2614 * testsuite/libgomp.c/teams-1.c: New test.
2615 * testsuite/libgomp.c/teams-2.c: New test.
2616 * testsuite/libgomp.c/thread-limit-4.c: New test.
2617 * testsuite/libgomp.c/thread-limit-5.c: New test.
2618 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
2619
2620 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
2621
2622 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
2623 acc_memcpy_to/from_device functions, now with async parameter.
2624 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
2625 (acc_memcpy_from_device): Likewise.
2626 (acc_memcpy_to_device_async): New API function.
2627 (acc_memcpy_from_device_async): Likewise.
2628 (present_create_copy): Add async parameter and async setting/unsetting.
2629 (acc_create): Adjust present_create_copy call.
2630 (acc_copyin): Likewise.
2631 (acc_present_or_create): Likewise.
2632 (acc_present_or_copyin): Likewise.
2633 (acc_create_async): New API function.
2634 (acc_copyin_async): New API function.
2635 (delete_copyout): Add async parameter and async setting/unsetting.
2636 (acc_delete): Adjust delete_copyout call.
2637 (acc_copyout): Likewise.
2638 (acc_delete_async): New API function.
2639 (acc_copyout_async): Likewise.
2640 (update_dev_host): Add async parameter and async setting/unsetting.
2641 (acc_update_device): Adjust update_dev_host call.
2642 (acc_update_self): Likewise.
2643 (acc_update_device_async): New API function.
2644 (acc_update_self_async): Likewise.
2645 * openacc.h (acc_copyin_async): Declare new API function.
2646 (acc_create_async): Likewise.
2647 (acc_copyout_async): Likewise.
2648 (acc_delete_async): Likewise.
2649 (acc_update_device_async): Likewise.
2650 (acc_update_self_async): Likewise.
2651 (acc_memcpy_to_device_async): Likewise.
2652 (acc_memcpy_from_device_async): Likewise.
2653 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
2654 (acc_copyin_async_64_h): New subroutine.
2655 (acc_copyin_async_array_h): New subroutine.
2656 (acc_create_async_32_h): New subroutine.
2657 (acc_create_async_64_h): New subroutine.
2658 (acc_create_async_array_h): New subroutine.
2659 (acc_copyout_async_32_h): New subroutine.
2660 (acc_copyout_async_64_h): New subroutine.
2661 (acc_copyout_async_array_h): New subroutine.
2662 (acc_delete_async_32_h): New subroutine.
2663 (acc_delete_async_64_h): New subroutine.
2664 (acc_delete_async_array_h): New subroutine.
2665 (acc_update_device_async_32_h): New subroutine.
2666 (acc_update_device_async_64_h): New subroutine.
2667 (acc_update_device_async_array_h): New subroutine.
2668 (acc_update_self_async_32_h): New subroutine.
2669 (acc_update_self_async_64_h): New subroutine.
2670 (acc_update_self_async_array_h): New subroutine.
2671 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
2672 (acc_copyin_async_64_h): New subroutine.
2673 (acc_copyin_async_array_h): New subroutine.
2674 (acc_create_async_32_h): New subroutine.
2675 (acc_create_async_64_h): New subroutine.
2676 (acc_create_async_array_h): New subroutine.
2677 (acc_copyout_async_32_h): New subroutine.
2678 (acc_copyout_async_64_h): New subroutine.
2679 (acc_copyout_async_array_h): New subroutine.
2680 (acc_delete_async_32_h): New subroutine.
2681 (acc_delete_async_64_h): New subroutine.
2682 (acc_delete_async_array_h): New subroutine.
2683 (acc_update_device_async_32_h): New subroutine.
2684 (acc_update_device_async_64_h): New subroutine.
2685 (acc_update_device_async_array_h): New subroutine.
2686 (acc_update_self_async_32_h): New subroutine.
2687 (acc_update_self_async_64_h): New subroutine.
2688 (acc_update_self_async_array_h): New subroutine.
2689 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
2690 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
2691 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
2692 acc_memcpy_to_device_async*, acc_update_device_async*, and
2693 acc_update_self_async* entries.
2694 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
2695 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
2696 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
2697
2698 2018-10-31 Joseph Myers <joseph@codesourcery.com>
2699
2700 PR bootstrap/82856
2701 * Makefile.am: Include multilib.am
2702 (AUTOMAKE_OPTIONS): Add info-in-builddir.
2703 (CLEANFILES): Remove libgomp.info.
2704 * configure.ac: Remove AC_PREREQ.
2705 * testsuite/Makefile.am (RUNTEST): Remove quotes.
2706 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
2707 Regenerate.
2708
2709 2018-10-29 Joseph Myers <joseph@codesourcery.com>
2710 Julian Brown <julian@codesourcery.com>
2711
2712 * testsuite/libgomp.oacc-c++/this.C: New.
2713
2714 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
2715
2716 * plugin/plugin-nvptx.c (struct cuda_map): New.
2717 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
2718 h_tail with (cuda_map *) map.
2719 (cuda_map_create): New function.
2720 (cuda_map_destroy): New function.
2721 (map_init): Update to use a linked list of cuda_map objects.
2722 (map_fini): Likewise.
2723 (map_pop): Likewise.
2724 (map_push): Likewise. Return CUdeviceptr instead of void.
2725 (init_streams_for_device): Remove stales references to ptx_stream
2726 members.
2727 (select_stream_for_async): Likewise.
2728 (nvptx_exec): Update call to map_init.
2729
2730 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
2731 Julian Brown <julian@codesourcery.com>
2732
2733 PR middle-end/86336
2734 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
2735
2736 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
2737 Thomas Koenig <tkoenig@gcc.gnu.org>
2738
2739 PR fortran/25829
2740 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2741 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2742 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2743 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2744 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2745 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2746 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2747
2748 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
2749 Tom de Vries <tdevries@suse.de>
2750
2751 PR target/85590
2752 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
2753 (cuOccupancyMaxPotentialBlockSize): Declare.
2754 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
2755 CUDA_ONE_CALL_MAYBE_NULL.
2756 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
2757 CUoccupancyB2DSize and declare
2758 cuOccupancyMaxPotentialBlockSize.
2759 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
2760 default num_gangs and num_workers when the driver supports it.
2761
2762 2018-08-08 Tom de Vries <tdevries@suse.de>
2763
2764 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
2765 CUDA_ONE_CALL_MAYBE_NULL.
2766 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
2767 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
2768 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
2769 are not found.
2770
2771 2018-08-08 Tom de Vries <tdevries@suse.de>
2772
2773 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
2774 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
2775 present.
2776
2777 2018-08-08 Tom de Vries <tdevries@suse.de>
2778
2779 * plugin/plugin-nvptx.c
2780 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
2781 (nvptx_open_device): Use
2782 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
2783
2784 2018-08-08 Tom de Vries <tdevries@suse.de>
2785
2786 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
2787 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
2788
2789 2018-08-07 Tom de Vries <tdevries@suse.de>
2790
2791 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
2792 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
2793 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
2794 corresponding call in CUDA_ONE_CALL. Add def/undef of
2795 CUDA_ONE_CALL_MAYBE_NULL.
2796 (CUDA_CALL_EXISTS): Define.
2797
2798 2018-08-07 Tom de Vries <tdevries@suse.de>
2799
2800 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
2801 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
2802 corresponding undefs right after.
2803
2804 2018-08-04 Tom de Vries <tdevries@suse.de>
2805
2806 * plugin/configfrag.ac: For --without-cuda-driver, set
2807 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
2808 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
2809 * configure: Regenerate.
2810
2811 2018-08-02 Tom de Vries <tdevries@suse.de>
2812
2813 PR target/86660
2814 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
2815 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
2816 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
2817 Same.
2818 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
2819 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
2820 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
2821
2822 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
2823 Thomas Schwinge <thomas@codesourcery.com>
2824
2825 * config/nvptx/oacc-parallel.c: Truncate.
2826
2827 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
2828 James Norris <jnorris@codesourcery.com>
2829
2830 * plugin/plugin-nvptx.c (struct map): Removed.
2831 (map_init, map_pop): Remove use of struct map.
2832 (map_push): Likewise and change argument list.
2833 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
2834
2835 2018-08-01 Tom de Vries <tdevries@suse.de>
2836
2837 * plugin/cuda-lib.def: New file. Factor out of ...
2838 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
2839 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
2840 using CUDA_CALLS.
2841
2842 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
2843
2844 Revert 'AsyncI/O patch committed'.
2845 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
2846 Thomas Koenig <tkoenig@gcc.gnu.org>
2847
2848 PR fortran/25829
2849 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2850 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2851 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2852 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2853 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2854 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2855 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2856
2857 2018-07-30 Tom de Vries <tdevries@suse.de>
2858
2859 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
2860 (nvptx_exec): Ensure worker and vector default dims don't exceed
2861 targ_fn->max_threads_per_block.
2862
2863 2018-07-30 Tom de Vries <tdevries@suse.de>
2864
2865 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
2866 (nvptx_open_device): Init default_dims for device.
2867 (nvptx_exec): Use default_dims from device.
2868
2869 2018-07-26 Jakub Jelinek <jakub@redhat.com>
2870
2871 PR testsuite/86660
2872 * testsuite/libgomp.c++/for-15.C (results): Include it in
2873 omp declare target region.
2874 (main): Use map (always, tofrom: results) instead of
2875 map (tofrom: results).
2876
2877 PR middle-end/86660
2878 * testsuite/libgomp.c/pr86660.c: New test.
2879
2880 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
2881 Tom de Vries <tdevries@suse.de>
2882
2883 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
2884 sufficient resources to launch a kernel, and give a hint on how to fix
2885 it.
2886
2887 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
2888 Tom de Vries <tdevries@suse.de>
2889
2890 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
2891 max_threads_per_block and max_threads_per_multiprocessor fields.
2892 (nvptx_open_device): Initialize new fields.
2893 (nvptx_exec): Use num_sms, and new fields.
2894
2895 2018-07-26 Tom de Vries <tdevries@suse.de>
2896
2897 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
2898 to correct locations. Remove xfail.
2899
2900 2018-07-26 Tom de Vries <tdevries@suse.de>
2901
2902 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
2903 acc_wait. Move acc_async_test calls to correct locations. Remove
2904 xfail.
2905
2906 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
2907 Thomas Koenig <tkoenig@gcc.gnu.org>
2908
2909 PR fortran/25829
2910 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2911 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2912 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2913 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2914 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2915 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2916 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2917
2918 2018-07-17 Jakub Jelinek <jakub@redhat.com>
2919
2920 PR middle-end/86542
2921 * testsuite/libgomp.c++/pr86542.C: New test.
2922
2923 PR middle-end/86539
2924 * testsuite/libgomp.c++/pr86539.C: New test.
2925
2926 2018-07-11 Jakub Jelinek <jakub@redhat.com>
2927
2928 PR c++/86443
2929 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
2930 (results): Make sure the variable is not inside declare target region.
2931 (qux): Remove unused function.
2932
2933 2018-07-10 Jakub Jelinek <jakub@redhat.com>
2934
2935 PR c++/86443
2936 * testsuite/libgomp.c++/for-15.C: New test.
2937
2938 2018-06-26 Jakub Jelinek <jakub@redhat.com>
2939
2940 PR c++/86291
2941 * testsuite/libgomp.c++/pr86291.C: New test.
2942
2943 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
2944
2945 * libgomp.texi (Top): Move www.openmp.org to https.
2946 (Enabling OpenMP): Ditto.
2947 (omp_get_active_level): Ditto.
2948 (omp_get_ancestor_thread_num): Ditto.
2949 (omp_get_cancellation): Ditto.
2950 (omp_get_default_device): Ditto.
2951 (omp_get_dynamic): Ditto.
2952 (omp_get_level): Ditto.
2953 (omp_get_max_active_levels): Ditto.
2954 (omp_get_max_task_priority): Ditto.
2955 (omp_get_max_threads): Ditto.
2956 (omp_get_nested): Ditto.
2957 (omp_get_num_devices): Ditto.
2958 (omp_get_num_procs): Ditto.
2959 (omp_get_num_teams): Ditto.
2960 (omp_get_num_threads): Ditto.
2961 (omp_get_proc_bind): Ditto.
2962 (omp_get_schedule): Ditto.
2963 (omp_get_team_num): Ditto.
2964 (omp_get_team_size): Ditto.
2965 (omp_get_thread_limit): Ditto.
2966 (omp_get_thread_num): Ditto.
2967 (omp_in_parallel): Ditto.
2968 (omp_in_final): Ditto.
2969 (omp_is_initial_device): Ditto.
2970 (omp_set_default_device): Ditto.
2971 (omp_set_dynamic): Ditto.
2972 (omp_set_max_active_levels): Ditto.
2973 (omp_set_nested): Ditto.
2974 (omp_set_num_threads): Ditto.
2975 (omp_set_schedule): Ditto.
2976 (omp_init_lock): Ditto.
2977 (omp_set_lock): Ditto.
2978 (omp_test_lock): Ditto.
2979 (omp_unset_lock): Ditto.
2980 (omp_destroy_lock): Ditto.
2981 (omp_init_nest_lock): Ditto.
2982 (omp_set_nest_lock): Ditto.
2983 (omp_test_nest_lock): Ditto.
2984 (omp_unset_nest_lock): Ditto.
2985 (omp_destroy_nest_lock): Ditto.
2986 (omp_get_wtick): Ditto.
2987 (omp_get_wtime): Ditto.
2988 (OMP_CANCELLATION): Ditto.
2989 (OMP_DISPLAY_ENV): Ditto.
2990 (OMP_DEFAULT_DEVICE): Ditto.
2991 (OMP_DYNAMIC): Ditto.
2992 (OMP_MAX_ACTIVE_LEVELS): Ditto.
2993 (OMP_MAX_TASK_PRIORITY): Ditto.
2994 (OMP_NESTED): Ditto.
2995 (OMP_NUM_THREADS): Ditto.
2996 (OMP_PROC_BIND): Ditto.
2997 (OMP_PLACES): Ditto.
2998 (OMP_STACKSIZE): Ditto.
2999 (OMP_SCHEDULE): Ditto.
3000 (OMP_THREAD_LIMIT): Ditto.
3001 (OMP_WAIT_POLICY): Ditto.
3002
3003 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
3004 James Norris <jnorris@codesourcery.com>
3005 Julian Brown <julian@codesourcery.com>
3006 Thomas Schwinge <thomas@codesourcery.com>
3007 Tom de Vries <tom@codesourcery.com>
3008
3009 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
3010 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
3011 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
3012 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
3013 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3014 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3015 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
3016 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
3017 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
3018 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
3019 Likewise.
3020 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
3021 Likewise.
3022 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
3023 Likewise.
3024 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
3025 Likewise.
3026 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
3027 Likewise.
3028 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
3029 Likewise.
3030 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
3031 Likewise.
3032 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
3033 Likewise.
3034 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
3035 Likewise.
3036 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
3037 Likewise.
3038 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
3039 Likewise.
3040 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
3041 Likewise.
3042 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
3043 Likewise.
3044 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
3045 Likewise.
3046 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
3047 Likewise.
3048 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
3049 Likewise.
3050 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
3051 Likewise.
3052 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
3053 Likewise.
3054 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
3055 Likewise.
3056 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
3057 Likewise.
3058 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
3059 Likewise.
3060 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
3061 Likewise.
3062 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
3063 Likewise.
3064 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
3065 Likewise.
3066 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
3067 Likewise.
3068 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
3069 Likewise.
3070 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
3071 Likewise.
3072 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
3073 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
3074 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
3075 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
3076 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
3077 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
3078 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
3079 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
3080 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
3081 Likewise.
3082 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
3083 Likewise.
3084 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
3085 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
3086 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
3087 Likewise.
3088 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
3089 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
3090 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
3091 Likewise.
3092 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
3093 Likewise.
3094 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
3095 Likewise.
3096 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
3097 Likewise.
3098 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
3099 Likewise.
3100 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
3101 Likewise.
3102 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
3103 Likewise.
3104 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
3105 Likewise.
3106 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
3107 Likewise.
3108 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
3109 Likewise.
3110 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
3111 Likewise.
3112 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
3113 Likewise.
3114 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
3115 Likewise.
3116 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
3117 Likewise.
3118 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
3119 Likewise.
3120 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
3121 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
3122 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
3123 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
3124 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
3125 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
3126 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
3127
3128 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
3129 Thomas Schwinge <thomas@codesourcery.com>
3130 Cesar Philippidis <cesar@codesourcery.com>
3131
3132 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
3133 (gomp_acc_remove_pointer): Update declaration.
3134 (gomp_acc_declare_allocate): Declare.
3135 (gomp_remove_var): Declare.
3136 * libgomp.map (OACC_2.5): Define.
3137 * oacc-mem.c (acc_map_data): Update refcount.
3138 (acc_unmap_data): Likewise.
3139 (present_create_copy): Likewise.
3140 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
3141 (acc_copyin): Likewise.
3142 (FLAG_FINALIZE): Define.
3143 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
3144 (acc_delete_finalize): New function.
3145 (acc_delete_finalize_async): New function.
3146 (acc_copyout_finalize): New function.
3147 (acc_copyout_finalize_async): New function.
3148 (gomp_acc_insert_pointer): Update refcounts.
3149 (gomp_acc_remove_pointer): Return if data is not present on the
3150 accelerator.
3151 * oacc-parallel.c (find_pset): Rename to find_pointer.
3152 (find_pointer): Add support for GOMP_MAP_POINTER.
3153 (handle_ftn_pointers): New function.
3154 (GOACC_parallel_keyed): Update refcounts of variables.
3155 (GOACC_enter_exit_data): Add support for finalized data mappings.
3156 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
3157 of fortran arrays.
3158 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
3159 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
3160 for GOMP_MAP_FORCE_FROM.
3161 * openacc.f90 (module openacc_internal): Add
3162 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
3163 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
3164 acc_copyout_finalize and acc_delete_finalize.
3165 (acc_copyout_finalize_32_h): New subroutine.
3166 (acc_copyout_finalize_64_h): New subroutine.
3167 (acc_copyout_finalize_array_h): New subroutine.
3168 (acc_delete_finalize_32_h): New subroutine.
3169 (acc_delete_finalize_64_h): New subroutine.
3170 (acc_delete_finalize_array_h): New subroutine.
3171 * openacc.h (acc_copyout_finalize): Declare.
3172 (acc_copyout_finalize_async): Declare.
3173 (acc_delete_finalize): Declare.
3174 (acc_delete_finalize_async): Declare.
3175 * openacc_lib.h (acc_copyout_finalize): New interface.
3176 (acc_delete_finalize): New interface.
3177 * target.c (gomp_map_vars): Update dynamic_refcount.
3178 (gomp_remove_var): New function.
3179 (gomp_unmap_vars): Use it.
3180 (gomp_unload_image_from_device): Likewise.
3181 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
3182 case to utilize OpenACC 2.5 data clause semantics.
3183 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
3184 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
3185 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
3186 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
3187 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
3188 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
3189 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
3190 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
3191 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
3192 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
3193 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
3194 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
3195 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
3196 utilize OpenACC 2.5 data clause semantics.
3197 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
3198 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
3199 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
3200 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
3201 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
3202 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
3203 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
3204 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3205 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3206
3207 2018-05-21 Janus Weil <janus@gcc.gnu.org>
3208
3209 PR fortran/85841
3210 PR testsuite/85865
3211 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
3212 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
3213 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
3214 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
3215 * testsuite/libgomp.fortran/task2.f90: Ditto.
3216 * testsuite/libgomp.fortran/vla1.f90: Ditto.
3217 * testsuite/libgomp.fortran/vla2.f90: Ditto.
3218 * testsuite/libgomp.fortran/vla3.f90: Ditto.
3219 * testsuite/libgomp.fortran/vla4.f90: Ditto.
3220 * testsuite/libgomp.fortran/vla5.f90: Ditto.
3221 * testsuite/libgomp.fortran/vla6.f90: Ditto.
3222 * testsuite/libgomp.fortran/vla8.f90: Ditto.
3223 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
3224 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
3225
3226 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
3227
3228 PR c++/85782
3229 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
3230
3231 2018-05-09 Tom de Vries <tom@codesourcery.com>
3232
3233 PR libgomp/82901
3234 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
3235 to GOACC_enter_exit_data.
3236
3237 2018-05-09 Tom de Vries <tom@codesourcery.com>
3238
3239 PR libgomp/83792
3240 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
3241 (async_synchronous_p): New function.
3242 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
3243 async_valid_p.
3244 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
3245 async_valid_stream_id_p.
3246 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
3247 * oacc-parallel.c (GOACC_parallel_keyed): Same.
3248
3249 2018-05-07 Tom de Vries <tom@codesourcery.com>
3250
3251 PR testsuite/85677
3252 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
3253 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
3254
3255 2018-05-03 Tom de Vries <tom@codesourcery.com>
3256
3257 PR testsuite/85106
3258 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
3259 extra_tool_flags if it contains an -foffload=-fdump-* flag.
3260 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
3261 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
3262
3263 2018-05-02 Tom de Vries <tom@codesourcery.com>
3264
3265 PR libgomp/85411
3266 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
3267 GOMP_OPENACC_DIM ...
3268 * env.c (parse_gomp_openacc_dim): ... here. New function.
3269 (initialize_env): Call parse_gomp_openacc_dim.
3270 (goacc_default_dims): Define.
3271 * libgomp.h (goacc_default_dims): Declare.
3272 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
3273 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
3274 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
3275 GOMP_PLUGIN_acc_default_dim.
3276 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
3277 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
3278
3279 2018-05-02 Tom de Vries <tom@codesourcery.com>
3280
3281 PR testsuite/83791
3282 * testsuite/libgomp.c++/udr-9.C: Update.
3283 * testsuite/libgomp.c++/atomic-16.C: Remove.
3284 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
3285 * testsuite/libgomp.c++/loop-13.C: Remove.
3286 * testsuite/libgomp.c++/loop-14.C: Remove.
3287 * testsuite/libgomp.c++/loop-15.C: Remove.
3288 * testsuite/libgomp.c++/monotonic-1.C: Remove.
3289 * testsuite/libgomp.c++/monotonic-2.C: Remove.
3290 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
3291 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
3292 * testsuite/libgomp.c++/ordered-1.C: Remove.
3293 * testsuite/libgomp.c++/pr45784.C: Remove.
3294 * testsuite/libgomp.c++/pr64824.C: Remove.
3295 * testsuite/libgomp.c++/pr64868.C: Remove.
3296 * testsuite/libgomp.c++/pr66199-1.C: Remove.
3297 * testsuite/libgomp.c++/pr66199-2.C: Remove.
3298 * testsuite/libgomp.c++/pr66199-3.C: Remove.
3299 * testsuite/libgomp.c++/pr66199-4.C: Remove.
3300 * testsuite/libgomp.c++/pr66199-5.C: Remove.
3301 * testsuite/libgomp.c++/pr66199-6.C: Remove.
3302 * testsuite/libgomp.c++/pr66199-7.C: Remove.
3303 * testsuite/libgomp.c++/pr66199-8.C: Remove.
3304 * testsuite/libgomp.c++/pr66199-9.C: Remove.
3305 * testsuite/libgomp.c++/pr69389.C: Remove.
3306 * testsuite/libgomp.c++/simd10.C: Remove.
3307 * testsuite/libgomp.c++/simd11.C: Remove.
3308 * testsuite/libgomp.c++/simd12.C: Remove.
3309 * testsuite/libgomp.c++/simd13.C: Remove.
3310 * testsuite/libgomp.c++/target-1.C: Remove.
3311 * testsuite/libgomp.c++/target-3.C: Remove.
3312 * testsuite/libgomp.c++/target-4.C: Remove.
3313 * testsuite/libgomp.c++/target-5.C: Remove.
3314 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
3315 * testsuite/libgomp.c++/taskloop-1.C: Remove.
3316 * testsuite/libgomp.c++/taskloop-2.C: Remove.
3317 * testsuite/libgomp.c++/taskloop-3.C: Remove.
3318 * testsuite/libgomp.c++/taskloop-4.C: Remove.
3319 * testsuite/libgomp.c++/udr-9.C: Remove.
3320 * testsuite/libgomp.c++/for-10.C: Remove.
3321 * testsuite/libgomp.c++/for-11.C: Remove.
3322 * testsuite/libgomp.c++/for-12.C: Remove.
3323 * testsuite/libgomp.c++/for-13.C: Remove.
3324 * testsuite/libgomp.c++/for-14.C: Remove.
3325 * testsuite/libgomp.c++/for-9.C: Remove.
3326 * testsuite/libgomp.c/atomic-18.c: Move ...
3327 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
3328 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
3329 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
3330 * testsuite/libgomp.c/loop-13.c: Move ...
3331 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
3332 * testsuite/libgomp.c/loop-14.c: Move ...
3333 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
3334 * testsuite/libgomp.c/loop-15.c: Remove.
3335 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
3336 * testsuite/libgomp.c/monotonic-1.c: Move ...
3337 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
3338 * testsuite/libgomp.c/monotonic-2.c: Move ...
3339 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
3340 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
3341 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
3342 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
3343 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
3344 * testsuite/libgomp.c/ordered-4.c: Move ...
3345 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
3346 * testsuite/libgomp.c/pr45784.c: Move ...
3347 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
3348 * testsuite/libgomp.c/pr64824.c: Move ...
3349 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
3350 * testsuite/libgomp.c/pr64868.c: Move ...
3351 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
3352 * testsuite/libgomp.c/pr66199-1.c: Move ...
3353 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
3354 * testsuite/libgomp.c/pr66199-2.c: Move ...
3355 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
3356 * testsuite/libgomp.c/pr66199-3.c: Move ...
3357 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
3358 * testsuite/libgomp.c/pr66199-4.c: Move ...
3359 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
3360 * testsuite/libgomp.c/pr66199-5.c: Move ...
3361 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
3362 * testsuite/libgomp.c/pr66199-6.c: Move ...
3363 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
3364 * testsuite/libgomp.c/pr66199-7.c: Move ...
3365 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
3366 * testsuite/libgomp.c/pr66199-8.c: Move ...
3367 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
3368 * testsuite/libgomp.c/pr66199-9.c: Move ...
3369 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
3370 * testsuite/libgomp.c/pr69389.c: Move ...
3371 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
3372 * testsuite/libgomp.c/simd-14.c: Move ...
3373 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
3374 * testsuite/libgomp.c/simd-15.c: Move ...
3375 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
3376 * testsuite/libgomp.c/simd-16.c: Move ...
3377 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
3378 * testsuite/libgomp.c/simd-17.c: Move ...
3379 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
3380 * testsuite/libgomp.c/target-1.c: Move ...
3381 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
3382 * testsuite/libgomp.c/target-10.c: Move ...
3383 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
3384 * testsuite/libgomp.c/target-13.c: Move ...
3385 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
3386 * testsuite/libgomp.c/target-2.c: Move ...
3387 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
3388 * testsuite/libgomp.c/taskgroup-1.c: Move ...
3389 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
3390 * testsuite/libgomp.c/taskloop-1.c: Move ...
3391 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
3392 * testsuite/libgomp.c/taskloop-2.c: Move ...
3393 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
3394 * testsuite/libgomp.c/taskloop-3.c: Move ...
3395 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
3396 * testsuite/libgomp.c/taskloop-4.c: Move ...
3397 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
3398 * testsuite/libgomp.c/udr-1.c: Move ...
3399 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
3400 * testsuite/libgomp.c/for-1.c: Move ...
3401 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
3402 * testsuite/libgomp.c/for-1.h: Move ...
3403 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
3404 * testsuite/libgomp.c/for-2.c: Move ...
3405 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
3406 * testsuite/libgomp.c/for-2.h: Move ...
3407 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
3408 * testsuite/libgomp.c/for-3.c: Move ...
3409 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
3410 * testsuite/libgomp.c/for-4.c: Move ...
3411 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
3412 * testsuite/libgomp.c/for-5.c: Move ...
3413 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
3414 * testsuite/libgomp.c/for-6.c: Move ...
3415 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
3416
3417 2018-05-02 Tom de Vries <tom@codesourcery.com>
3418
3419 PR libgomp/82428
3420 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
3421 __builtin_goacc_parlevel_{id,size}.
3422 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
3423 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
3424 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
3425 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
3426 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
3427 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
3428 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
3429 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
3430 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
3431 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
3432 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
3433 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
3434 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
3435 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
3436 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
3437 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
3438 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
3439 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
3440 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
3441 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
3442 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
3443 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
3444 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
3445
3446 2018-05-02 Tom de Vries <tom@codesourcery.com>
3447
3448 PR testsuite/85106
3449 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
3450
3451 2018-05-02 Tom de Vries <tom@codesourcery.com>
3452
3453 PR testsuite/85106
3454 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
3455
3456 2018-04-29 Julian Brown <julian@codesourcery.com>
3457 Tom de Vries <tom@codesourcery.com>
3458
3459 PR testsuite/85527
3460 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
3461 arbitrary order for iterations of atomic subtract check.
3462
3463 2018-04-28 Tom de Vries <tom@codesourcery.com>
3464
3465 PR testsuite/85527
3466 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
3467 atomic capture results obtained in parallel loop to an array, instead of
3468 to a scalar.
3469
3470 2018-04-26 Tom de Vries <tom@codesourcery.com>
3471
3472 PR libgomp/84020
3473 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
3474 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
3475 (process_GOMP_NVPTX_JIT): New function.
3476 (link_ptx): Use process_GOMP_NVPTX_JIT.
3477
3478 2018-04-26 Richard Biener <rguenther@suse.de>
3479 Tom de Vries <tom@codesourcery.com>
3480
3481 PR lto/85422
3482 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
3483
3484 2018-04-26 Tom de Vries <tom@codesourcery.com>
3485
3486 PR target/85519
3487 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3488 recursion depth from 25 to 23.
3489 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3490
3491 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
3492
3493 * configure: Regenerated.
3494
3495 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
3496 Tom de Vries <tom@codesourcery.com>
3497
3498 PR target/85445
3499 * testsuite/libgomp.oacc-c++/ref-1.C: New.
3500
3501 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
3502
3503 PR libgomp/85463
3504 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
3505 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3506 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3507 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
3508 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
3509 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
3510
3511 PR libfortran/85166
3512 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
3513 abort".
3514 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3515
3516 2018-04-19 Jakub Jelinek <jakub@redhat.com>
3517
3518 * configure: Regenerated.
3519
3520 2018-04-18 David Malcolm <dmalcolm@redhat.com>
3521
3522 PR jit/85384
3523 * configure: Regenerate.
3524
3525 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
3526 Tom de Vries <tom@codesourcery.com>
3527
3528 PR middle-end/84955
3529 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3530 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3531
3532 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
3533
3534 PR fortran/83064
3535 PR testsuite/85346
3536 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
3537 test from gfortran.dg to here.
3538
3539 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3540
3541 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
3542 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
3543
3544 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3545
3546 PR middle-end/84955
3547 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3548 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3549
3550 2018-04-05 Tom de Vries <tom@codesourcery.com>
3551
3552 PR target/85204
3553 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
3554
3555 2018-03-26 Tom de Vries <tom@codesourcery.com>
3556
3557 PR tree-optimization/85063
3558 * testsuite/libgomp.c/switch-conversion-2.c: New test.
3559 * testsuite/libgomp.c/switch-conversion.c: New test.
3560 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
3561 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
3562
3563 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
3564
3565 PR fortran/84381
3566 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
3567 call abort by STOP n.
3568 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
3569 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
3570 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
3571 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
3572 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
3573 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
3574 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
3575 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
3576 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
3577 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
3578 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
3579 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
3580 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
3581 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
3582 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
3583 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
3584 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
3585 * testsuite/libgomp.fortran/associate1.f90: Likewise.
3586 * testsuite/libgomp.fortran/associate2.f90: Likewise.
3587 * testsuite/libgomp.fortran/associate3.f90: Likewise.
3588 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
3589 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
3590 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
3591 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
3592 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
3593 * testsuite/libgomp.fortran/character1.f90: Likewise.
3594 * testsuite/libgomp.fortran/character2.f90: Likewise.
3595 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
3596 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
3597 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
3598 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
3599 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
3600 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
3601 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
3602 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
3603 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
3604 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
3605 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
3606 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
3607 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
3608 * testsuite/libgomp.fortran/do1.f90: Likewise.
3609 * testsuite/libgomp.fortran/do2.f90: Likewise.
3610 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
3611 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
3612 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
3613 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
3614 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
3615 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
3616 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
3617 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
3618 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
3619 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
3620 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
3621 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
3622 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
3623 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
3624 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
3625 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
3626 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
3627 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
3628 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
3629 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
3630 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
3631 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
3632 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
3633 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
3634 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
3635 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
3636 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
3637 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
3638 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
3639 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
3640 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
3641 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
3642 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
3643 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
3644 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
3645 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
3646 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
3647 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
3648 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
3649 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
3650 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
3651 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
3652 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
3653 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
3654 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
3655 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
3656 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
3657 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
3658 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
3659 * testsuite/libgomp.fortran/lib1.f90: Likewise.
3660 * testsuite/libgomp.fortran/lib2.f: Likewise.
3661 * testsuite/libgomp.fortran/lib3.f: Likewise.
3662 * testsuite/libgomp.fortran/lib4.f90: Likewise.
3663 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
3664 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
3665 * testsuite/libgomp.fortran/nested1.f90: Likewise.
3666 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
3667 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
3668 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
3669 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
3670 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
3671 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
3672 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
3673 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
3674 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
3675 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
3676 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
3677 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
3678 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
3679 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
3680 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
3681 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
3682 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
3683 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
3684 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
3685 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3686 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
3687 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
3688 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
3689 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
3690 * testsuite/libgomp.fortran/pr25162.f: Likewise.
3691 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
3692 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
3693 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
3694 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
3695 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
3696 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
3697 * testsuite/libgomp.fortran/pr28390.f: Likewise.
3698 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
3699 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
3700 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
3701 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
3702 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
3703 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
3704 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
3705 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
3706 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
3707 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
3708 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
3709 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
3710 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
3711 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
3712 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
3713 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
3714 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
3715 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
3716 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
3717 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
3718 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
3719 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
3720 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
3721 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
3722 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
3723 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3724 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
3725 * testsuite/libgomp.fortran/reference1.f90: Likewise.
3726 * testsuite/libgomp.fortran/reference2.f90: Likewise.
3727 * testsuite/libgomp.fortran/retval1.f90: Likewise.
3728 * testsuite/libgomp.fortran/retval2.f90: Likewise.
3729 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
3730 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
3731 * testsuite/libgomp.fortran/simd1.f90: Likewise.
3732 * testsuite/libgomp.fortran/simd2.f90: Likewise.
3733 * testsuite/libgomp.fortran/simd3.f90: Likewise.
3734 * testsuite/libgomp.fortran/simd4.f90: Likewise.
3735 * testsuite/libgomp.fortran/simd5.f90: Likewise.
3736 * testsuite/libgomp.fortran/simd6.f90: Likewise.
3737 * testsuite/libgomp.fortran/simd7.f90: Likewise.
3738 * testsuite/libgomp.fortran/stack.f90: Likewise.
3739 * testsuite/libgomp.fortran/strassen.f90: Likewise.
3740 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
3741 * testsuite/libgomp.fortran/tabs2.f: Likewise.
3742 * testsuite/libgomp.fortran/target1.f90: Likewise.
3743 * testsuite/libgomp.fortran/target2.f90: Likewise.
3744 * testsuite/libgomp.fortran/target3.f90: Likewise.
3745 * testsuite/libgomp.fortran/target4.f90: Likewise.
3746 * testsuite/libgomp.fortran/target5.f90: Likewise.
3747 * testsuite/libgomp.fortran/target6.f90: Likewise.
3748 * testsuite/libgomp.fortran/target7.f90: Likewise.
3749 * testsuite/libgomp.fortran/target8.f90: Likewise.
3750 * testsuite/libgomp.fortran/task1.f90: Likewise.
3751 * testsuite/libgomp.fortran/task2.f90: Likewise.
3752 * testsuite/libgomp.fortran/task3.f90: Likewise.
3753 * testsuite/libgomp.fortran/task4.f90: Likewise.
3754 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
3755 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
3756 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
3757 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
3758 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
3759 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3760 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3761 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3762 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
3763 * testsuite/libgomp.fortran/udr1.f90: Likewise.
3764 * testsuite/libgomp.fortran/udr10.f90: Likewise.
3765 * testsuite/libgomp.fortran/udr11.f90: Likewise.
3766 * testsuite/libgomp.fortran/udr12.f90: Likewise.
3767 * testsuite/libgomp.fortran/udr13.f90: Likewise.
3768 * testsuite/libgomp.fortran/udr14.f90: Likewise.
3769 * testsuite/libgomp.fortran/udr15.f90: Likewise.
3770 * testsuite/libgomp.fortran/udr2.f90: Likewise.
3771 * testsuite/libgomp.fortran/udr3.f90: Likewise.
3772 * testsuite/libgomp.fortran/udr4.f90: Likewise.
3773 * testsuite/libgomp.fortran/udr5.f90: Likewise.
3774 * testsuite/libgomp.fortran/udr6.f90: Likewise.
3775 * testsuite/libgomp.fortran/udr7.f90: Likewise.
3776 * testsuite/libgomp.fortran/udr8.f90: Likewise.
3777 * testsuite/libgomp.fortran/udr9.f90: Likewise.
3778 * testsuite/libgomp.fortran/vla1.f90: Likewise.
3779 * testsuite/libgomp.fortran/vla2.f90: Likewise.
3780 * testsuite/libgomp.fortran/vla3.f90: Likewise.
3781 * testsuite/libgomp.fortran/vla4.f90: Likewise.
3782 * testsuite/libgomp.fortran/vla5.f90: Likewise.
3783 * testsuite/libgomp.fortran/vla6.f90: Likewise.
3784 * testsuite/libgomp.fortran/vla7.f90: Likewise.
3785 * testsuite/libgomp.fortran/vla8.f90: Likewise.
3786 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
3787 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
3788 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
3789 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3790 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
3791 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
3792 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
3793 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3794 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3795 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3796 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
3797 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
3798 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
3799 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
3800 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
3801 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
3802 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
3803 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
3804 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
3805 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
3806 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
3807 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
3808 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
3809 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
3810 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
3811 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3812 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3813 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
3814 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
3815 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
3816 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3817 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
3818 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
3819 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
3820 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
3821 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3822 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
3823 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
3824 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
3825 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3826 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
3827 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3828 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
3829 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
3830 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
3831 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
3832 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
3833 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
3834 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
3835 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
3836 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
3837 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
3838 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3839 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3840 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
3841 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
3842 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
3843 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
3844 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
3845 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
3846 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
3847 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
3848 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
3849 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
3850 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
3851 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3852 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
3853 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3854 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3855 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
3856 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
3857 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
3858 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
3859 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
3860 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3861 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
3862 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3863 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3864 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3865 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3866 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3867 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3868 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3869 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
3870 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
3871 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3872 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3873 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
3874 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
3875 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
3876 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3877 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
3878 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
3879 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
3880
3881 2018-03-20 Richard Biener <rguenther@suse.de>
3882
3883 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
3884 parallelizable loop.
3885
3886 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
3887
3888 PR target/84148
3889 * configure: Regenerate.
3890
3891 2018-02-16 Jakub Jelinek <jakub@redhat.com>
3892
3893 PR fortran/84418
3894 * libgomp.fortran/pr84418-1.f90: New test.
3895 * libgomp.fortran/pr84418-2.f90: New test.
3896
3897 2018-02-14 Jakub Jelinek <jakub@redhat.com>
3898
3899 PR fortran/84313
3900 * testsuite/libgomp.fortran/threadprivate4.f90: Add
3901 -std=f2003 -fall-intrinsics into dg-additional-options.
3902
3903 2018-02-08 Martin Jambor <mjambor@suse.cz>
3904
3905 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
3906 clonable.
3907
3908 2018-02-08 Martin Jambor <mjambor@suse.cz>
3909
3910 * testsuite/libgomp.hsa.c/staticvar.c: New test.
3911
3912 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3913
3914 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
3915 [__cplusplus]: Declare extern "C".
3916
3917 2018-02-07 Tom de Vries <tom@codesourcery.com>
3918
3919 PR libgomp/84217
3920 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
3921
3922 2018-01-29 Christoph Spiel <cspiel@freenet.de>
3923 Jakub Jelinek <jakub@redhat.com>
3924
3925 PR libgomp/84096
3926 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
3927 instead of omp_lock_t.
3928
3929 2018-01-25 Tom de Vries <tom@codesourcery.com>
3930
3931 PR target/84028
3932 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
3933
3934 2018-01-24 Tom de Vries <tom@codesourcery.com>
3935
3936 PR target/83589
3937 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
3938
3939 2018-01-24 Tom de Vries <tom@codesourcery.com>
3940
3941 PR target/81352
3942 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
3943
3944 2018-01-19 Tom de Vries <tom@codesourcery.com>
3945 Cesar Philippidis <cesar@codesourcery.com>
3946
3947 PR target/83920
3948 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
3949 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
3950
3951 2018-01-03 Jakub Jelinek <jakub@redhat.com>
3952
3953 Update copyright years.
3954
3955 * libgomp.texi: Bump @copying's copyright year.
3956
3957 2017-12-30 Tom de Vries <tom@codesourcery.com>
3958
3959 PR libgomp/83046
3960 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
3961 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
3962
3963 2017-12-27 Tom de Vries <tom@codesourcery.com>
3964
3965 PR c++/83046
3966 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
3967 (test_nonstatic): Fix return type to workaround PR83046.
3968
3969 2017-12-05 Jakub Jelinek <jakub@redhat.com>
3970
3971 PR testsuite/83281
3972 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
3973 j suffix instead of i.
3974 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
3975 Likewise.
3976
3977 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
3978
3979 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
3980 call to acc_wait (1).
3981
3982 2017-11-24 Jakub Jelinek <jakub@redhat.com>
3983
3984 PR fortran/81304
3985 * testsuite/libgomp.fortran/pr81304.f90: New test.
3986
3987 2017-11-23 Jakub Jelinek <jakub@redhat.com>
3988
3989 PR fortran/81841
3990 * libgomp.fortran/pr81841.f90: New test.
3991
3992 2017-11-22 Jakub Jelinek <jakub@redhat.com>
3993
3994 PR libgomp/83106
3995 * target.c (gomp_target_init): Compute lengths just once and
3996 use them in both malloc size and subsequent copying.
3997
3998 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
3999
4000 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
4001 * acinclude.m4: Add cet.m4.
4002 * configure: Regenerate.
4003 * Makefile.in: Likewise.
4004 * testsuite/Makefile.in: Likewise.
4005
4006 2017-11-15 Tom de Vries <tom@codesourcery.com>
4007
4008 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
4009 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
4010 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
4011 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
4012 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
4013 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
4014
4015 2017-11-14 Tom de Vries <tom@codesourcery.com>
4016
4017 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
4018 non-nvidia devices.
4019
4020 2017-11-07 Jakub Jelinek <jakub@redhat.com>
4021
4022 PR c++/82835
4023 * testsuite/libgomp.c++/pr82835.C: New test.
4024
4025 2017-11-06 Martin Liska <mliska@suse.cz>
4026
4027 * testsuite/libgomp.c++/loop-2.C: Return a value
4028 for functions with non-void return type, or change type to void,
4029 or add -Wno-return-type for test.
4030 * testsuite/libgomp.c++/loop-4.C: Likewise.
4031 * testsuite/libgomp.c++/parallel-1.C: Likewise.
4032 * testsuite/libgomp.c++/shared-1.C: Likewise.
4033 * testsuite/libgomp.c++/single-1.C: Likewise.
4034 * testsuite/libgomp.c++/single-2.C: Likewise.
4035
4036 2017-10-31 Tom de Vries <tom@codesourcery.com>
4037
4038 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
4039 "do {} while (false)".
4040 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
4041 after HSA_DEBUG call.
4042
4043 2017-10-28 Jakub Jelinek <jakub@redhat.com>
4044
4045 * target.c (struct gomp_coalesce_buf): New type.
4046 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
4047 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
4048 (gomp_copy_host2dev): Add CBUF argument, if copying into
4049 the cached ranges, memcpy into buffer instead of copying
4050 into device.
4051 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
4052 Add CBUF argument, pass it through to other calls.
4053 (gomp_map_vars): Aggregate copies from host to device if small enough
4054 and with small enough gaps in between into memcpy into a buffer and
4055 fewer host to device copies from the buffer.
4056 (gomp_update): Adjust gomp_copy_host2dev caller.
4057
4058 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
4059
4060 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
4061 run" directive.
4062 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
4063 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
4064 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
4065 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
4066
4067 2017-10-16 Tom de Vries <tom@codesourcery.com>
4068
4069 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
4070 openacc_nvidia_accel_selected.
4071 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
4072 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
4073 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
4074 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
4075 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
4076 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
4077 openacc_nvidia_accel_selected. Skip for shared memory device.
4078 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
4079 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
4080
4081 2017-10-09 Martin Jambor <mjambor@suse.cz>
4082
4083 PR hsa/82416
4084 * testsuite/libgomp.hsa.c/pr82416.c: New test.
4085
4086 2017-10-07 Tom de Vries <tom@codesourcery.com>
4087
4088 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
4089 Remove acc_device_nvidia references.
4090 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
4091 Same.
4092
4093 2017-10-05 Tom de Vries <tom@codesourcery.com>
4094
4095 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
4096 vector_length(32) clause from acc parallel directive.
4097 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
4098
4099 2017-10-04 Tom de Vries <tom@codesourcery.com>
4100
4101 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
4102 (main): Reduce sum of arr elements. Assert that hres is exactly
4103 representable in 32-bit floating point.
4104 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
4105 (main): Reduce sum of arr elements. Assert that hres and hmres are
4106 exactly representable in 32-bit floating point.
4107 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
4108
4109 2017-09-28 Tom de Vries <tom@codesourcery.com>
4110
4111 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
4112 setting.
4113 * testsuite/libgomp.c++/pr69393.C: Same.
4114 * testsuite/libgomp.c++/taskloop-1.C: Same.
4115 * testsuite/libgomp.c++/taskloop-3.C: Same.
4116 * testsuite/libgomp.c++/taskloop-4.C: Same.
4117 * testsuite/libgomp.c/for-4.c: Same.
4118 * testsuite/libgomp.c/pr66199-3.c: Same.
4119 * testsuite/libgomp.c/pr66199-4.c: Same.
4120 * testsuite/libgomp.c/pr66199-6.c: Same.
4121 * testsuite/libgomp.c/taskloop-1.c: Same.
4122 * testsuite/libgomp.c/taskloop-3.c: Same.
4123 * testsuite/libgomp.c/taskloop-4.c: Same.
4124 * testsuite/libgomp.fortran/aligned1.f03: Same.
4125 * testsuite/libgomp.fortran/condinc1.f: Same.
4126 * testsuite/libgomp.fortran/condinc3.f90: Same.
4127 * testsuite/libgomp.fortran/crayptr1.f90: Same.
4128 * testsuite/libgomp.fortran/crayptr2.f90: Same.
4129 * testsuite/libgomp.fortran/crayptr3.f90: Same.
4130 * testsuite/libgomp.fortran/omp_cond1.f: Same.
4131 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
4132 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
4133 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
4134 * testsuite/libgomp.fortran/recursion1.f90: Same.
4135 * testsuite/libgomp.fortran/target2.f90: Same.
4136 * testsuite/libgomp.fortran/target5.f90: Same.
4137 * testsuite/libgomp.fortran/task3.f90: Same.
4138
4139 2017-09-28 Tom de Vries <tom@codesourcery.com>
4140
4141 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
4142 vector_length(32) clause from acc parallel directive.
4143 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
4144
4145 2017-09-27 Tom de Vries <tom@codesourcery.com>
4146
4147 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
4148 Remove acc_device_nvidia references.
4149
4150 2017-09-16 Tom de Vries <tom@codesourcery.com>
4151
4152 PR c/81875
4153 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
4154
4155 2017-09-14 Tom de Vries <tom@codesourcery.com>
4156
4157 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
4158 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
4159 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
4160 * testsuite/libgomp.c/c.exp: Include test-cases from
4161 libgomp.c-c++-common.
4162 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
4163 files.
4164
4165 2017-09-14 Jakub Jelinek <jakub@redhat.com>
4166
4167 PR c++/81314
4168 * testsuite/libgomp.c++/pr81314.C: New test.
4169
4170 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
4171
4172 * libgomp.texi (Top): www.openacc.org now uses https.
4173 (Enabling OpenACC): Ditto.
4174 (acc_get_num_devices): Ditto.
4175 (acc_set_device_type): Ditto.
4176 (acc_get_device_type): Ditto.
4177 (acc_set_device_num): Ditto.
4178 (acc_get_device_num): Ditto.
4179 (acc_async_test): Ditto.
4180 (acc_async_test_all): Ditto.
4181 (acc_wait): Ditto.
4182 (acc_wait_all): Ditto.
4183 (acc_wait_all_async): Ditto.
4184 (acc_wait_async): Ditto.
4185 (acc_init): Ditto.
4186 (acc_shutdown): Ditto.
4187 (acc_on_device): Ditto.
4188 (acc_malloc): Ditto.
4189 (acc_free): Ditto.
4190 (acc_copyin): Ditto.
4191 (acc_present_or_copyin): Ditto.
4192 (acc_create): Ditto.
4193 (acc_present_or_create): Ditto.
4194 (acc_copyout): Ditto.
4195 (acc_delete): Ditto.
4196 (acc_update_device): Ditto.
4197 (acc_update_self): Ditto.
4198 (acc_map_data): Ditto.
4199 (acc_unmap_data): Ditto.
4200 (acc_deviceptr): Ditto.
4201 (acc_hostptr): Ditto.
4202 (acc_is_present): Ditto.
4203 (acc_memcpy_to_device): Ditto.
4204 (acc_memcpy_from_device): Ditto.
4205 (acc_get_current_cuda_device): Ditto.
4206 (acc_get_current_cuda_context): Ditto.
4207 (acc_get_cuda_stream): Ditto.
4208 (acc_set_cuda_stream): Ditto.
4209 (ACC_DEVICE_TYPE): Ditto.
4210 (ACC_DEVICE_NUM): Ditto.
4211 (OpenACC Library Interoperability): Ditto.
4212
4213 2017-08-09 Jakub Jelinek <jakub@redhat.com>
4214
4215 PR c/81687
4216 * testsuite/libgomp.c/pr81687-1.c: New test.
4217 * testsuite/libgomp.c/pr81687-2.c: New test.
4218
4219 2017-08-07 Jakub Jelinek <jakub@redhat.com>
4220
4221 PR c/69389
4222 * testsuite/libgomp.c/pr69389.c: New test.
4223 * testsuite/libgomp.c++/pr69389.C: New test.
4224
4225 2017-08-07 Tom de Vries <tom@codesourcery.com>
4226
4227 PR middle-end/78266
4228 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
4229 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
4230
4231 2017-07-27 Jakub Jelinek <jakub@redhat.com>
4232
4233 PR c/45784
4234 * testsuite/libgomp.c/pr45784.c: New test.
4235 * testsuite/libgomp.c++/pr45784.C: New test.
4236
4237 2017-07-19 Tom de Vries <tom@codesourcery.com>
4238
4239 * testsuite/libgomp.oacc-c/vec.c: New test.
4240
4241 2017-07-03 Tom de Vries <tom@codesourcery.com>
4242
4243 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
4244
4245 2017-06-27 Tom de Vries <tom@codesourcery.com>
4246
4247 * plugin/plugin-nvptx.c (notify_var): New function.
4248 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
4249
4250 2017-06-27 Tom de Vries <tom@codesourcery.com>
4251
4252 * env.c (parse_unsigned_long_1): Factor out of ...
4253 (parse_unsigned_long): ... here.
4254 (parse_int_1): Factor out of ...
4255 (parse_int): ... here.
4256 (parse_int_secure): New function.
4257 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
4258 * secure_getenv.h: Factor out of ...
4259 * plugin/plugin-hsa.c: ... here.
4260 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
4261
4262 2017-06-21 Jakub Jelinek <jakub@redhat.com>
4263
4264 PR c++/81130
4265 * testsuite/libgomp.c++/pr81130.C: New test.
4266
4267 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4268
4269 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
4270 default args.
4271 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
4272 dg-xfail-run-if default args.
4273
4274 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4275
4276 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
4277 * testsuite/libgomp.c/pr39591-3.c: Likewise.
4278
4279 2017-05-30 Jakub Jelinek <jakub@redhat.com>
4280
4281 PR libgomp/80822
4282 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
4283 (gomp_affinity_init_level): Use it. Always analyze the core and thread
4284 sibling lists, depending on level just pick up what CPUs to put
4285 together into a place vs. whether add multiple ordered places.
4286
4287 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
4288
4289 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
4290 * libgomp.map (OACC_2.0.1): Add these.
4291 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
4292 for "acc_wait", and "acc_wait_all", respectively.
4293 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
4294 for "acc_wait", and "acc_wait_all", respectively.
4295 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
4296 * libgomp.texi (acc_wait, acc_wait_all): Update.
4297 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
4298 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
4299 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4300
4301 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
4302 acc_present_or_copyin and acc_present_or_create procedures,
4303 respectively.
4304 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
4305 generally different variants of OpenACC Runtime Library functions.
4306 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4307
4308 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
4309 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4310
4311 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
4312 of preprocessor definitions.
4313 * libgomp.h (strong_alias): Guard by "#ifdef
4314 HAVE_ATTRIBUTE_ALIAS".
4315 * oacc-mem.c: Provide "acc_pcreate" as alias for
4316 "acc_present_or_create", and "acc_pcopyin" as alias for
4317 "acc_present_or_copyin".
4318 * libgomp.map: New version "OACC_2.0.1".
4319 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
4320 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
4321 its content into...
4322 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
4323 Extend testing.
4324
4325 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
4326 when disabling nvptx offloading.
4327
4328 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
4329
4330 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
4331 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4332 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4333
4334 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
4335 * testsuite/lib/libgomp.exp
4336 (check_effective_target_openacc_nvidia_accel_configured): New
4337 proc.
4338 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
4339 (check_effective_target_c++): New procs.
4340 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
4341 (check_effective_target_c++): Likewise.
4342
4343 2017-05-22 Jakub Jelinek <jakub@redhat.com>
4344
4345 PR middle-end/80809
4346 * testsuite/libgomp.c/pr80809-2.c: New test.
4347 * testsuite/libgomp.c/pr80809-3.c: New test.
4348
4349 PR middle-end/80809
4350 * testsuite/libgomp.c/pr80809-1.c: New test.
4351
4352 PR middle-end/80853
4353 * testsuite/libgomp.c/pr80853.c: New test.
4354
4355 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
4356
4357 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
4358 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
4359 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4360 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4361 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4362
4363 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
4364 Debug output for failure.
4365
4366 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4367
4368 * testsuite/lib/libgomp.exp: Load scanlang.exp.
4369
4370 2017-04-27 Jakub Jelinek <jakub@redhat.com>
4371
4372 PR bootstrap/80531
4373 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
4374 bootstrap compare failures.
4375
4376 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
4377
4378 * testsuite/libgomp.c/target-36.c: New testcase.
4379
4380 2017-04-13 Jakub Jelinek <jakub@redhat.com>
4381
4382 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
4383 instead of char.
4384
4385 2017-04-11 Jakub Jelinek <jakub@redhat.com>
4386
4387 PR libgomp/80394
4388 * testsuite/libgomp.c/pr80394.c: New test.
4389
4390 2017-04-04 Jakub Jelinek <jakub@redhat.com>
4391
4392 PR libgomp/79876
4393 * config/posix/thread-stacksize.h: New file.
4394 * config/darwin/thread-stacksize.h: New file.
4395 * config/nvptx/thread-stacksize.h: New file.
4396 * env.c: Include thread-stacksize.h.
4397 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
4398 instead of 0. Call pthread_attr_setstacksize even if
4399 GOMP_DEFAULT_STACKSIZE is non-zero.
4400
4401 2017-03-30 Jakub Jelinek <jakub@redhat.com>
4402
4403 * env.c (initialize_env): Initialize stacksize to 0.
4404
4405 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
4406
4407 PR c++/80029
4408 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
4409
4410 2017-03-08 Jakub Jelinek <jakub@redhat.com>
4411
4412 PR c/79940
4413 * testsuite/libgomp.c/pr79940.c: New test.
4414
4415 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4416
4417 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
4418 targets.
4419 Add __float128 options.
4420
4421 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
4422
4423 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
4424 hppa*-*-* dg-skip-if directive.
4425
4426 2017-02-09 Jakub Jelinek <jakub@redhat.com>
4427
4428 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
4429 dg-skip-if directive into a comment.
4430
4431 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
4432 Chung-Lin Tang <cltang@codesourcery.com>
4433
4434 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
4435 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
4436 add additional case.
4437 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
4438 "openacc_nvidia_accel_selected".
4439 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
4440 Add num_workers(8) clause.
4441
4442 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
4443
4444 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
4445 hppa*-*-*.
4446 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
4447 include complex.h on hppa*-*-hpux*.
4448 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4449
4450 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
4451
4452 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
4453
4454 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
4455 GOMP_OFFLOAD_openacc_exec. Adjust all users.
4456 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
4457 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
4458 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
4459 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
4460 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
4461 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
4462 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
4463 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
4464
4465 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
4466
4467 * libgomp-plugin.h: #include <stdbool.h>.
4468 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
4469 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
4470 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
4471 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
4472 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
4473 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
4474 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
4475 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
4476 (GOMP_OFFLOAD_openacc_register_async_cleanup)
4477 (GOMP_OFFLOAD_openacc_async_test)
4478 (GOMP_OFFLOAD_openacc_async_test_all)
4479 (GOMP_OFFLOAD_openacc_async_wait)
4480 (GOMP_OFFLOAD_openacc_async_wait_async)
4481 (GOMP_OFFLOAD_openacc_async_wait_all)
4482 (GOMP_OFFLOAD_openacc_async_wait_all_async)
4483 (GOMP_OFFLOAD_openacc_async_set_async)
4484 (GOMP_OFFLOAD_openacc_create_thread_data)
4485 (GOMP_OFFLOAD_openacc_destroy_thread_data)
4486 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
4487 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
4488 (GOMP_OFFLOAD_openacc_get_cuda_stream)
4489 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
4490 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
4491 these.
4492 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
4493 (GOMP_OFFLOAD_unload_image): Fix argument types.
4494
4495 2017-01-26 Jakub Jelinek <jakub@redhat.com>
4496
4497 * testsuite/lib/libgomp.exp
4498 (check_effective_target_hsa_offloading_selected_nocache): Fix up
4499 check_compile invocation. Fix up removal of executable. Drop
4500 bogus "2>&1" argument.
4501
4502 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
4503 directive.
4504
4505 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
4506 Martin Jambor <mjambor@suse.cz>
4507
4508 * plugin/hsa.h: Moved to top level include.
4509 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
4510
4511 2017-01-21 Jakub Jelinek <jakub@redhat.com>
4512
4513 PR other/79046
4514 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
4515 of cat to get version from BASE-VER file.
4516 * testsuite/Makefile.in: Regenerated.
4517
4518 2017-01-19 Jakub Jelinek <jakub@redhat.com>
4519
4520 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
4521 for _WIN64.
4522
4523 2017-01-17 Jakub Jelinek <jakub@redhat.com>
4524
4525 * plugin/hsa.h: Add GCC runtime library exception.
4526 * plugin/hsa_ext_finalize.h: Likewise.
4527
4528 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
4529 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
4530 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
4531 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
4532 plugin/include/cuda as include dir and -ldl instead of -lcuda as
4533 library to link ptx plugin against.
4534 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
4535 (CUDA_CALLS): Define.
4536 (cuda_lib, cuda_lib_inited): New variables.
4537 (init_cuda_lib): New function.
4538 (CUDA_CALL_PREFIX): Define.
4539 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
4540 (CUDA_CALL): Use FN instead of (FN).
4541 (CUDA_CALL_NOCHECK): Define.
4542 (cuda_error, fini_streams_for_device, select_stream_for_async,
4543 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
4544 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
4545 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
4546 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
4547 CUDA_CALL_NOCHECK.
4548 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
4549 CUDA_CALL_NOCHECK.
4550 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
4551 Use CUDA_CALL_NOCHECK.
4552 * plugin/cuda/cuda.h: New file.
4553 * config.h.in: Regenerated.
4554 * configure: Regenerated.
4555
4556 PR other/79046
4557 * configure.ac: Add GCC_BASE_VER.
4558 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
4559 get version from BASE-VER file.
4560 * testsuite/Makefile.in: Regenerated.
4561 * configure: Regenerated.
4562 * Makefile.in: Regenerated.
4563
4564 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4565
4566 PR libgomp/60670
4567 * Makefile.am: Make fincludedir multilib-aware.
4568 * Makefile.in: Regenerate.
4569
4570 2017-01-01 Jakub Jelinek <jakub@redhat.com>
4571
4572 Update copyright years.
4573
4574 * libgomp.texi: Bump @copying's copyright year.
4575
4576 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4577
4578 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
4579 pthread_spinlock_t instead of gomp_mutex_t lock.
4580 (gomp_get_thread_pool): Likewise.
4581 (gomp_release_thread_pool): Likewise.
4582 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
4583 Likewise.
4584
4585 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4586
4587 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
4588 thread pool in case nthreads == 1.
4589
4590 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4591
4592 * config/nvptx/env.c: Delete.
4593 * icv.c: Move definitions of ICV variables back ...
4594 * env.c: ...here. Do not compile environment-related functionality if
4595 LIBGOMP_OFFLOADED_ONLY is set.
4596
4597 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4598
4599 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
4600 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
4601 * configure: Regenerate.
4602 * config.h.in: Likewise.
4603
4604 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4605
4606 * Makefile.in: Regenerate with automake-1.11.6.
4607 * aclocal.m4: Likewise.
4608 * configure: Likewise.
4609 * testsuite/Makefile.in: Likewise.
4610
4611 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
4612
4613 * config/nvptx/critical.c: Delete to use generic implementation.
4614
4615 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
4616
4617 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
4618 ../../affinity.c as fallback.
4619 * config/nvptx/affinity.c: Delete to use fallback implementation.
4620
4621 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
4622 Jakub Jelinek <jakub@redhat.com>
4623 Dmitry Melnik <dm@ispras.ru>
4624
4625 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
4626 * Makefile.in. Regenerate.
4627 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
4628 (LIBGOMP_USE_PTHREADS): ...here; new define.
4629 * configure: Regenerate.
4630 * config.h.in: Likewise.
4631 * config/posix/affinity.c: Move to...
4632 * affinity.c: ...here (new file). Guard use of Pthreads-specific
4633 interface by LIBGOMP_USE_PTHREADS.
4634 * critical.c: Split out GOMP_atomic_{start,end} into...
4635 * atomic.c: ...here (new file).
4636 * env.c: Split out ICV definitions into...
4637 * icv.c: ...here (new file) and...
4638 * icv-device.c: ...here. New file.
4639 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
4640 (gomp_destroy_lock_30): Ditto.
4641 (gomp_set_lock_30): Ditto.
4642 (gomp_unset_lock_30): Ditto.
4643 (gomp_test_lock_30): Ditto.
4644 (gomp_init_nest_lock_30): Ditto.
4645 (gomp_destroy_nest_lock_30): Ditto.
4646 (gomp_set_nest_lock_30): Ditto.
4647 (gomp_unset_nest_lock_30): Ditto.
4648 (gomp_test_nest_lock_30): Ditto.
4649 * lock.c: New.
4650 * config/nvptx/lock.c: New.
4651 * config/nvptx/bar.c: New.
4652 * config/nvptx/bar.h: New.
4653 * config/nvptx/doacross.h: New.
4654 * config/nvptx/error.c: New.
4655 * config/nvptx/icv-device.c: New.
4656 * config/nvptx/mutex.h: New.
4657 * config/nvptx/pool.h: New.
4658 * config/nvptx/proc.c: New.
4659 * config/nvptx/ptrlock.h: New.
4660 * config/nvptx/sem.h: New.
4661 * config/nvptx/simple-bar.h: New.
4662 * config/nvptx/target.c: New.
4663 * config/nvptx/task.c: New.
4664 * config/nvptx/team.c: New.
4665 * config/nvptx/time.c: New.
4666 * config/posix/simple-bar.h: New.
4667 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
4668 (gomp_num_teams_var): Declare.
4669 (struct gomp_thread_pool): Change threads_dock member to
4670 gomp_simple_barrier_t.
4671 [__nvptx__] (gomp_thread): New implementation.
4672 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
4673 (gomp_thread_destructor): Ditto.
4674 (gomp_init_thread_affinity): Ditto.
4675 * team.c: Guard uses of Pthreads-specific interfaces by
4676 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
4677 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
4678 * config/nvptx/alloc.c: Delete.
4679 * config/nvptx/barrier.c: Ditto.
4680 * config/nvptx/fortran.c: Ditto.
4681 * config/nvptx/iter.c: Ditto.
4682 * config/nvptx/iter_ull.c: Ditto.
4683 * config/nvptx/loop.c: Ditto.
4684 * config/nvptx/loop_ull.c: Ditto.
4685 * config/nvptx/ordered.c: Ditto.
4686 * config/nvptx/parallel.c: Ditto.
4687 * config/nvptx/priority_queue.c: Ditto.
4688 * config/nvptx/sections.c: Ditto.
4689 * config/nvptx/single.c: Ditto.
4690 * config/nvptx/splay-tree.c: Ditto.
4691 * config/nvptx/work.c: Ditto.
4692 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
4693 -foffload=-lgfortran in addition to -lgfortran.
4694 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
4695 * plugin/plugin-nvptx.c: Include <limits.h>.
4696 (struct targ_fn_descriptor): Add new fields.
4697 (struct ptx_device): Ditto. Set them...
4698 (nvptx_open_device): ...here.
4699 (nvptx_adjust_launch_bounds): New.
4700 (nvptx_host2dev): Allow NULL 'nvthd'.
4701 (nvptx_dev2host): Ditto.
4702 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
4703 (link_ptx): Adjust log sizes.
4704 (nvptx_host2dev): Allow NULL 'nvthd'.
4705 (nvptx_dev2host): Ditto.
4706 (nvptx_set_clocktick): New. Use it...
4707 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
4708 fields.
4709 (GOMP_OFFLOAD_dev2dev): New.
4710 (nvptx_adjust_launch_bounds): New.
4711 (nvptx_stacks_size): New.
4712 (nvptx_stacks_alloc): New.
4713 (nvptx_stacks_free): New.
4714 (GOMP_OFFLOAD_run): New.
4715 (GOMP_OFFLOAD_async_run): New (stub).
4716
4717 2016-11-23 Martin Jambor <mjambor@suse.cz>
4718
4719 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
4720 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
4721 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4722
4723 2016-11-23 Martin Liska <mliska@suse.cz>
4724 Martin Jambor <mjambor@suse.cz>
4725
4726 * plugin/hsa.h: New file.
4727 * plugin/hsa_ext_finalize.h: New file.
4728 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
4729 header file unistd.h, and functions secure_getenv, __secure_getenv,
4730 getuid, geteuid, getgid and getegid.
4731 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
4732 -D_GNU_SOURCE.
4733 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
4734 Handle various cases of secure_getenv presence, add an implementation
4735 when we can test effective UID and GID.
4736 (struct hsa_runtime_fn_info): New structure.
4737 (hsa_runtime_fn_info hsa_fns): New variable.
4738 (hsa_runtime_lib): Likewise.
4739 (support_cpu_devices): Likewise.
4740 (init_enviroment_variables): Load newly introduced ENV
4741 variables.
4742 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
4743 (hsa_fatal): Likewise.
4744 (DLSYM_FN): New macro.
4745 (init_hsa_runtime_functions): New function.
4746 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
4747 structure. Depending on environment, also allow CPU devices.
4748 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
4749 (get_kernarg_memory_region): Likewise.
4750 (GOMP_OFFLOAD_init_device): Likewise.
4751 (destroy_hsa_program): Likewise.
4752 (init_basic_kernel_info): New function.
4753 (GOMP_OFFLOAD_load_image): Use it.
4754 (create_and_finalize_hsa_program): Call hsa run-time functions via
4755 hsa_fns structure.
4756 (create_single_kernel_dispatch): Likewise.
4757 (release_kernel_dispatch): Likewise.
4758 (init_single_kernel): Likewise.
4759 (parse_target_attributes): Allow up multiple HSA grid dimensions.
4760 (get_group_size): New function.
4761 (run_kernel): Likewise.
4762 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
4763 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
4764 structure.
4765 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
4766 * testsuite/libgomp-test-support.exp.in: Likewise.
4767 * Makefile.in: Regenerated.
4768 * aclocal.m4: Likewise.
4769 * config.h.in: Likewise.
4770 * configure: Likewise.
4771 * testsuite/Makefile.in: Likewise.
4772
4773 2016-11-15 Martin Jambor <mjambor@suse.cz>
4774 Alexander Monakov <amonakov@ispras.ru>
4775
4776 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
4777 mapping clauses to target constructs.
4778 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
4779
4780 2016-11-15 Matthias Klose <doko@ubuntu.com>
4781
4782 * configure: Regenerate.
4783
4784 2016-11-10 Jakub Jelinek <jakub@redhat.com>
4785
4786 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
4787 * omp_lib.h.in (openmp_version): Likewise.
4788 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
4789 of 201307.
4790 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4791
4792 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
4793 (fib_wrapper): Add map(from: x) clause.
4794 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
4795 (e_53_2): Likewise.
4796 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
4797 (accum): Add map(tmp) clause.
4798 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
4799 (accum): Add map(tofrom: tmp) clause.
4800 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
4801 (gramSchmidt): Likewise.
4802 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
4803 map(tofrom: sum) clause.
4804 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
4805 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
4806 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
4807 only allowed on the loop iterator.
4808 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
4809 * testsuite/libgomp.fortran/taskloop2.f90: New test.
4810 * testsuite/libgomp.fortran/taskloop4.f90: New test.
4811 * testsuite/libgomp.fortran/doacross1.f90: New test.
4812 * testsuite/libgomp.fortran/doacross3.f90: New test.
4813 * testsuite/libgomp.fortran/taskloop1.f90: New test.
4814 * testsuite/libgomp.fortran/taskloop3.f90: New test.
4815 * testsuite/libgomp.fortran/doacross2.f90: New test.
4816 * testsuite/libgomp.c/doacross-1.c (main): Add missing
4817 #pragma omp atomic read.
4818 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
4819 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
4820
4821 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
4822 Nathan Sidwell <nathan@acm.org>
4823
4824 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
4825 to determine default geometry.
4826 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
4827 dimension.
4828
4829 2016-11-01 Jakub Jelinek <jakub@redhat.com>
4830
4831 * hashtab.h: Use standard GPLv3 with runtime exception
4832 boilerplate.
4833
4834 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
4835
4836 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
4837 size when allocating new thread.
4838
4839 2016-09-14 Marek Polacek <polacek@redhat.com>
4840
4841 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
4842
4843 2016-08-19 Jakub Jelinek <jakub@redhat.com>
4844
4845 PR fortran/71014
4846 * testsuite/libgomp.fortran/pr71014.f90: New test.
4847
4848 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
4849
4850 PR middle-end/70895
4851 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
4852 firstprivate clauses.
4853 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
4854 copy clauses.
4855 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
4856 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4857 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
4858 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
4859 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4860 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
4861 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4862 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
4863 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4864 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4865 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4866 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
4867
4868 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
4869
4870 PR fortran/70598
4871 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
4872
4873 2016-08-08 Jakub Jelinek <jakub@redhat.com>
4874
4875 PR c++/58706
4876 * testsuite/libgomp.c++/pr58706.C: New test.
4877
4878 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
4879
4880 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
4881 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
4882 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
4883 Likewise.
4884 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
4885 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
4886 Likewise.
4887 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
4888
4889 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
4890 test, and don't hardcode -O0.
4891
4892 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
4893
4894 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
4895
4896 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
4897
4898 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
4899 test.
4900
4901 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
4902
4903 PR middle-end/71734
4904 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
4905 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
4906
4907 2016-07-01 Jakub Jelinek <jakub@redhat.com>
4908
4909 PR fortran/71717
4910 * testsuite/libgomp.fortran/associate3.f90: New test.
4911
4912 2016-06-17 Jakub Jelinek <jakub@redhat.com>
4913
4914 * testsuite/libgomp.c++/target-21.C: New test.
4915
4916 2016-06-16 Jakub Jelinek <jakub@redhat.com>
4917
4918 * testsuite/libgomp.c++/target-20.C: New test.
4919
4920 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4921 Cesar Philippidis <cesar@codesourcery.com>
4922
4923 PR middle-end/71373
4924 * libgomp.oacc-c/nested-function-1.c: New file.
4925 * libgomp.oacc-c/nested-function-2.c: Likewise.
4926 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
4927 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
4928 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
4929
4930 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4931
4932 PR c/71381
4933 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
4934 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
4935 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
4936
4937 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
4938
4939 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
4940 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
4941
4942 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
4943
4944 PR c/70688
4945 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
4946
4947 2016-05-26 Jakub Jelinek <jakub@redhat.com>
4948
4949 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
4950 instead of invalid schedule(static, 0).
4951 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
4952
4953 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
4954
4955 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
4956 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
4957 parameter, use to set async stream around call to gomp_unmap_vars,
4958 call gomp_unmap_vars() with 'do_copyfrom' set to true.
4959 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
4960 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
4961 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
4962 (event_add): Add int parameter, initialize 'val' field when
4963 adding new ptx_event struct.
4964 (nvptx_evec): Adjust event_add() call arguments.
4965 (nvptx_host2dev): Likewise.
4966 (nvptx_dev2host): Likewise.
4967 (nvptx_wait_async): Likewise.
4968 (nvptx_wait_all_async): Likewise.
4969 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
4970 pass to event_add() call.
4971 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
4972 parameter.
4973 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
4974 call openacc.register_async_cleanup_func() hook.
4975 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
4976 * target.c (gomp_copy_from_async): Delete function.
4977 (gomp_map_vars): Remove async_refcount.
4978 (gomp_unmap_vars): Likewise.
4979 (gomp_load_image_to_device): Likewise.
4980 (omp_target_associate_ptr): Likewise.
4981 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
4982 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
4983 (gomp_copy_from_async): Remove.
4984
4985 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
4986
4987 * target.c (gomp_device_copy): New function.
4988 (gomp_copy_host2dev): Likewise.
4989 (gomp_copy_dev2host): Likewise.
4990 (gomp_free_device_memory): Likewise.
4991 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
4992 (gomp_map_pointer): Likewise.
4993 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
4994 NULL value from alloc_func plugin hook.
4995 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
4996 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
4997 (gomp_unmap_vars): Likewise.
4998 (gomp_update): Adjust to call gomp_copy_dev2host and
4999 gomp_copy_host2dev functions.
5000 (gomp_unload_image_from_device): Handle false value from
5001 unload_image_func plugin hook.
5002 (gomp_init_device): Handle false value from init_device_func
5003 plugin hook.
5004 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
5005 (omp_target_free): Adjust to call gomp_free_device_memory.
5006 (omp_target_memcpy): Handle return values from host2dev_func,
5007 dev2host_func, and dev2dev_func plugin hooks.
5008 (omp_target_memcpy_rect_worker): Likewise.
5009 (gomp_target_fini): Handle false value from fini_device_func
5010 plugin hook.
5011 * libgomp.h (struct gomp_device_descr): Adjust return type of
5012 init_device_func, fini_device_func, unload_image_func, free_func,
5013 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
5014 * oacc-init.c (acc_shutdown_1): Handle false value from
5015 fini_device_func plugin hook.
5016 * oacc-host.c (host_init_device): Change return type to bool.
5017 (host_fini_device): Likewise.
5018 (host_unload_image): Likewise.
5019 (host_free): Likewise.
5020 (host_dev2host): Likewise.
5021 (host_host2dev): Likewise.
5022 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
5023 (acc_memcpy_to_device): Likewise.
5024 (acc_memcpy_from_device): Likewise.
5025 (delete_copyout): Add libfnname parameter, handle free_func
5026 hook fatal error case.
5027 (acc_delete): Adjust delete_copyout call.
5028 (acc_copyout): Likewise.
5029 (update_dev_host): Move gomp_mutex_unlock to after
5030 host2dev/dev2host hook calls.
5031
5032 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
5033 to 'hsa_error_msg', for clarity.
5034 (hsa_fatal): Likewise.
5035 (hsa_error): New function.
5036 (init_hsa_context): Change return type to bool, adjust to return
5037 false on error.
5038 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
5039 return value.
5040 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
5041 return false on error.
5042 (get_agent_info): Adjust to return NULL on error.
5043 (destroy_hsa_program): Change return type to bool, adjust to
5044 return false on error.
5045 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
5046 (destroy_module): Change return type to bool, adjust to
5047 return false on error.
5048 (GOMP_OFFLOAD_unload_image): Likewise.
5049 (GOMP_OFFLOAD_fini_device): Likewise.
5050 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
5051 (GOMP_OFFLOAD_free): Change to return false when called.
5052 (GOMP_OFFLOAD_dev2host): Likewise.
5053 (GOMP_OFFLOAD_host2dev): Likewise.
5054 (GOMP_OFFLOAD_dev2dev): Likewise.
5055
5056 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
5057 (CUDA_CALL): Likewise.
5058 (CUDA_CALL_ASSERT): Likewise.
5059 (map_init): Change return type to bool, use CUDA_CALL* macros.
5060 (map_fini): Likewise.
5061 (init_streams_for_device): Change return type to bool, adjust
5062 call to map_init.
5063 (fini_streams_for_device): Change return type to bool, adjust
5064 call to map_fini.
5065 (select_stream_for_async): Release stream_lock before calls to
5066 GOMP_PLUGIN_fatal, adjust call to map_init.
5067 (nvptx_init): Use CUDA_CALL* macros.
5068 (nvptx_attach_host_thread_to_device): Change return type to bool,
5069 use CUDA_CALL* macros.
5070 (nvptx_open_device): Use CUDA_CALL* macros.
5071 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
5072 macros.
5073 (nvptx_get_num_devices): Use CUDA_CALL* macros.
5074 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
5075 (nvptx_exec): Use CUDA_CALL* macros.
5076 (nvptx_alloc): Use CUDA_CALL* macros.
5077 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
5078 (nvptx_host2dev): Likewise.
5079 (nvptx_dev2host): Likewise.
5080 (nvptx_wait): Use CUDA_CALL* macros.
5081 (nvptx_wait_async): Likewise.
5082 (nvptx_wait_all): Likewise.
5083 (nvptx_wait_all_async): Likewise.
5084 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
5085 use CUDA_CALL* macros, adjust call to map_fini.
5086 (GOMP_OFFLOAD_init_device): Change return type to bool,
5087 adjust code accordingly.
5088 (GOMP_OFFLOAD_fini_device): Likewise.
5089 (GOMP_OFFLOAD_load_image): Adjust calls to
5090 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
5091 use CUDA_CALL* macros.
5092 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
5093 return code.
5094 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
5095 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
5096 handle error return.
5097 (GOMP_OFFLOAD_dev2host): Likewise.
5098 (GOMP_OFFLOAD_host2dev): Likewise.
5099 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
5100 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
5101
5102 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
5103
5104 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
5105 (acc_free): Likewise.
5106 (acc_memcpy_to_device): Likewise.
5107 (acc_memcpy_from_device): Likewise.
5108 (acc_deviceptr): Likewise.
5109 (acc_hostptr): Likewise.
5110 (acc_is_present): Likewise.
5111 (acc_map_data): Likewise.
5112 (acc_unmap_data): Likewise.
5113 (present_create_copy): Likewise.
5114 (delete_copyout): Likewise.
5115 (update_dev_host): Likewise.
5116 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
5117 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
5118 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
5119 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
5120 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
5121 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
5122 it only runs on nvptx targets.
5123 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
5124 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
5125 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
5126 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
5127 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
5128 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
5129 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
5130 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
5131 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
5132 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
5133 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
5134 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
5135 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
5136 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
5137 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
5138 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
5139 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
5140 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
5141 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
5142 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
5143 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
5144 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
5145 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
5146
5147 2016-05-23 Martin Jambor <mjambor@suse.cz>
5148
5149 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
5150
5151 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
5152
5153 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
5154 to gomp_init_targets_once.
5155 (acc_set_device_type): Remove !cached_base_dev condition on call to
5156 gomp_init_targets_once, move call to before acc_device_lock acquire,
5157 to avoid deadlock.
5158 (acc_get_device_num): Remove !cached_base_dev condition on call to
5159 gomp_init_targets_once.
5160 (acc_set_device_num): Likewise.
5161
5162 2016-05-16 Martin Jambor <mjambor@suse.cz>
5163
5164 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
5165
5166 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
5167
5168 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
5169 expected partitioning.
5170
5171 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
5172
5173 PR middle-end/70626
5174 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
5175 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
5176 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
5177
5178 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
5179
5180 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
5181 non-fatal.
5182
5183 2016-04-19 Jakub Jelinek <jakub@redhat.com>
5184
5185 PR middle-end/70680
5186 * testsuite/libgomp.c/pr70680-1.c: New test.
5187 * testsuite/libgomp.c/pr70680-2.c: New test.
5188
5189 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5190
5191 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
5192 pass parameter variables to subroutines.
5193
5194 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
5195
5196 PR middle-end/70643
5197 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
5198
5199 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
5200
5201 PR testsuite/68242
5202 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
5203 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5204
5205 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
5206
5207 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
5208 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
5209 GOACC_declare prototype.
5210
5211 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
5212 Merge this file, and...
5213 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
5214 ... this file, and...
5215 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
5216 ... this file, and...
5217 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
5218 ... this file, and...
5219 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
5220 ... this file, and...
5221 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
5222 ... this file, and...
5223 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
5224 ... this file, and...
5225 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
5226 ... this file, and...
5227 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
5228 ... this file, and...
5229 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
5230 ... this file, and...
5231 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
5232 ... this file, and...
5233 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
5234 ... this file, and...
5235 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
5236 ... this file into...
5237 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
5238 file.
5239
5240 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
5241 Make failure observable.
5242
5243 2016-04-12 Jakub Jelinek <jakub@redhat.com>
5244
5245 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
5246 field.
5247 * target.c (gomp_target_fallback_firstprivate,
5248 gomp_target_unshare_firstprivate): Removed.
5249 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
5250 before waiting for dependencies.
5251 (gomp_target_task_fn): Don't copy firstprivate vars here.
5252 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
5253 firstprivate_copies here.
5254 (gomp_create_target_task): Don't initialize firstprivate_copies field.
5255 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
5256 explicit/implicit firstprivate.
5257
5258 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
5259
5260 PR lto/70289
5261 PR ipa/70348
5262 PR tree-optimization/70373
5263 PR middle-end/70533
5264 PR middle-end/70534
5265 PR middle-end/70535
5266 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
5267 test.
5268 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
5269 test.
5270 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
5271 test.
5272 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
5273 test.
5274 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
5275 test.
5276 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
5277 test.
5278 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
5279 test.
5280 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
5281 test.
5282 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
5283 test.
5284 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
5285 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
5286 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
5287 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
5288 test.
5289 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
5290 test.
5291 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
5292 test.
5293 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
5294 test.
5295 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
5296 coverage.
5297 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5298 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5299 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
5300 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
5301 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
5302 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
5303 coverage.
5304 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5305 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5306 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5307 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5308 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
5309 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
5310 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
5311 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
5312 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
5313 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5314 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5315 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5316 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5317 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5318 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
5319
5320 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
5321 James Norris <jnorris@codesourcery.com>
5322 Nathan Sidwell <nathan@codesourcery.com>
5323 Julian Brown <julian@codesourcery.com>
5324 Cesar Philippidis <cesar@codesourcery.com>
5325 Chung-Lin Tang <cltang@codesourcery.com>
5326 Tom de Vries <tom@codesourcery.com>
5327
5328 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
5329 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
5330 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
5331 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
5332 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5333 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
5334 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
5335 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5336 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
5337 XFAIL.
5338 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5339 Incorporate...
5340 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
5341 file.
5342 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
5343 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
5344 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
5345 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
5346 Likewise.
5347 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5348 Likewise.
5349 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5350 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
5351 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5352 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5353 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
5354 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5355 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
5356 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
5357 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5358 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
5359 Likewise.
5360 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
5361 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5362 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
5363 file...
5364 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
5365 file into...
5366 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
5367 file. Update.
5368 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
5369 file.
5370 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
5371 Likewise.
5372 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
5373 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
5374 ... this new file. Update.
5375 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
5376 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
5377 ... this new file. Update.
5378 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
5379 file. Incorporate...
5380 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
5381 file, and...
5382 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
5383 file, and...
5384 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
5385 file.
5386 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
5387
5388 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
5389
5390 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
5391 set-torture-options.
5392
5393 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
5394
5395 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
5396 gcc-dg-runtest.
5397 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5398 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
5399 -fno-builtin-acc_on_device instead of -O0.
5400 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
5401 -O0.
5402 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5403 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
5404 Likewise.
5405 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5406 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5407 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5408 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5409 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5410 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5411 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5412 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5413 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5414 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5415 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5416 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5417 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5418 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5419 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5420 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5421 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5422 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
5423 Don't specify -O2.
5424 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
5425 Likewise.
5426 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
5427 Likewise.
5428
5429 2016-03-24 Martin Liska <mliska@suse.cz>
5430
5431 * plugin/plugin-hsa.c (packet_store_release): New function
5432 that is taken from the HSA runtime manual.
5433 (GOMP_OFFLOAD_run): Use the function.
5434
5435 2016-03-23 Jakub Jelinek <jakub@redhat.com>
5436
5437 PR c++/70376
5438 * testsuite/libgomp.c++/pr70376.C: New test.
5439
5440 2016-03-23 Tom de Vries <tom@codesourcery.com>
5441
5442 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
5443 initialization of lresult and lvresult.
5444 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
5445
5446 2016-03-23 James Norris <jnorris@codesourcery.com>
5447 Daichi Fukuoka <dc-fukuoka@sgi.com>
5448
5449 PR libgomp/69414
5450 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
5451 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
5452 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
5453 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
5454
5455 2016-03-23 Martin Liska <mliska@suse.cz>
5456
5457 PR hsa/70337
5458 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
5459 argument just in case a dispatched kernel uses that argument.
5460
5461 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
5462
5463 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
5464 -ftree-parallelize-loops/-fopenacc changes.
5465 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
5466 Likewise.
5467 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5468 Likewise.
5469 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
5470 Likewise.
5471 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
5472 Likewise.
5473 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
5474 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
5475
5476 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
5477
5478 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
5479 always_ld_library_path the path to libgcc_s.
5480
5481 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
5482
5483 PR testsuite/70009
5484 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
5485
5486 2016-03-09 Tom de Vries <tom@codesourcery.com>
5487
5488 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
5489 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
5490 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5491 Same.
5492 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
5493 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
5494 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
5495 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
5496
5497 2016-03-07 Martin Jambor <mjambor@suse.cz>
5498
5499 * testsuite/lib/libgomp.exp
5500 (check_effective_target_hsa_offloading_selected_nocache): New.
5501 (check_effective_target_hsa_offloading_selected): Likewise.
5502 * testsuite/libgomp.hsa.c/c.exp: Likewise.
5503 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
5504 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5505 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5506 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5507 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5508 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5509 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5510 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5511 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
5512 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
5513 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
5514 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
5515 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
5516 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
5517 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
5518 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
5519
5520 2016-03-07 Martin Jambor <mjambor@suse.cz>
5521
5522 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
5523 non-shared memory accelerators.
5524 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
5525 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
5526 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
5527 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
5528 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
5529 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
5530 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
5531 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
5532 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
5533
5534 2016-03-07 Martin Jambor <mjambor@suse.cz>
5535
5536 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
5537 ALWAYS_CFLAGS.
5538
5539 2016-03-02 Jakub Jelinek <jakub@redhat.com>
5540
5541 PR libgomp/69555
5542 * testsuite/libgomp.c++/pr69555-1.C: New test.
5543 * testsuite/libgomp.c++/pr69555-2.C: New test.
5544
5545 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
5546 Martin Jambor <mjambor@suse.cz>
5547
5548 * testsuite/lib/libgomp.exp
5549 (check_effective_target_offload_device_shared_as): New proc.
5550 * testsuite/libgomp.c++/declare_target-1.C: New test.
5551
5552 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
5553
5554 PR driver/68463
5555 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
5556
5557 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
5558
5559 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
5560 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
5561 dims.
5562 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
5563 -ftree-parallelize-loops/-fopenacc changes.
5564 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
5565 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
5566 Likewise.
5567 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
5568 Likewise.
5569 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
5570 Likewise.
5571 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
5572 Likewise.
5573 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
5574 Likewise.
5575 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
5576 Likewise.
5577 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
5578 Likewise.
5579 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
5580 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
5581 Likewise.
5582 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
5583 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
5584 Likewise.
5585 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
5586 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
5587 Likewise.
5588
5589 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
5590
5591 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
5592
5593 2016-02-19 Jakub Jelinek <jakub@redhat.com>
5594
5595 PR driver/69805
5596 * testsuite/libgomp.c/pr69805.c: New test.
5597
5598 2016-02-16 Tom de Vries <tom@codesourcery.com>
5599
5600 PR lto/67709
5601 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
5602
5603 2016-02-09 Tom de Vries <tom@codesourcery.com>
5604
5605 PR tree-optimization/69599
5606 * testsuite/libgomp.c/omp-nested-3.c: New test.
5607 * testsuite/libgomp.c/pr46032-2.c: New test.
5608 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
5609 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
5610
5611 2016-02-09 Tom de Vries <tom@codesourcery.com>
5612
5613 PR lto/69707
5614 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
5615
5616 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5617
5618 * testsuite/libgomp.c/target-31.c: Fix testcase.
5619
5620 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5621
5622 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
5623 clause.
5624 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
5625 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
5626 reduction and map clauses.
5627 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
5628
5629 2016-02-02 James Norris <jnorris@codesourcery.com>
5630
5631 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
5632
5633 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
5634
5635 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
5636 * oacc-parallel.c (GOACC_host_data): Remove function definition.
5637
5638 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
5639 cases.
5640
5641 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
5642 variables.
5643 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
5644 (hsa_kmt_lib): Set variables.
5645 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
5646 always_ld_library_path.
5647 * Makefile.in: Regenerate.
5648 * configure: Likewise.
5649 * testsuite/Makefile.in: Likewise.
5650
5651 * plugin/configfrag.ac (offload_additional_options)
5652 (offload_additional_lib_paths): Don't amend for hsa offloading.
5653 * configure: Regenerate.
5654
5655 * plugin/configfrag.ac: Don't configure for offloading target if
5656 we don't build the corresponding plugin.
5657 * configure: Regenerate.
5658
5659 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
5660
5661 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
5662 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
5663
5664 2016-01-26 Tom de Vries <tom@codesourcery.com>
5665
5666 PR tree-optimization/69110
5667 * testsuite/libgomp.c/pr69110.c: New test.
5668
5669 2016-01-25 Richard Biener <rguenther@suse.de>
5670
5671 PR lto/69393
5672 * testsuite/libgomp.c++/pr69393.C: New testcase.
5673
5674 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
5675
5676 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
5677 function wasn't mapped to the device with non-shared memory.
5678
5679 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
5680
5681 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
5682
5683 2016-01-19 Martin Jambor <mjambor@suse.cz>
5684 Martin Liska <mliska@suse.cz>
5685
5686 * plugin/Makefrag.am: Add HSA plugin requirements.
5687 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
5688 (HSA_RUNTIME_LIB): Likewise.
5689 (HSA_RUNTIME_CPPFLAGS): Likewise.
5690 (HSA_RUNTIME_INCLUDE): New substitution.
5691 (HSA_RUNTIME_LIB): Likewise.
5692 (HSA_RUNTIME_LDFLAGS): Likewise.
5693 (hsa-runtime): New configure option.
5694 (hsa-runtime-include): Likewise.
5695 (hsa-runtime-lib): Likewise.
5696 (PLUGIN_HSA): New substitution variable.
5697 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
5698 configure options.
5699 (PLUGIN_HSA_CPPFLAGS): Likewise.
5700 (PLUGIN_HSA_LDFLAGS): Likewise.
5701 (PLUGIN_HSA_LIBS): Likewise.
5702 Check that we have access to HSA run-time.
5703 * libgomp-plugin.h (offload_target_type): New element
5704 OFFLOAD_TARGET_TYPE_HSA.
5705 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
5706 args.
5707 (bool gomp_create_target_task): Updated.
5708 (gomp_device_descr): Extra parameter of run_func and async_run_func,
5709 new field can_run_func.
5710 * libgomp_g.h (GOMP_target_ext): Update prototype.
5711 * oacc-host.c (host_run): Added a new parameter args.
5712 * target.c (calculate_firstprivate_requirements): New function.
5713 (copy_firstprivate_data): Likewise.
5714 (gomp_target_fallback_firstprivate): Use them.
5715 (gomp_target_unshare_firstprivate): New function.
5716 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
5717 devices.
5718 (GOMP_target): Do host fallback for all shared memory devices. Do not
5719 pass any args to plugins.
5720 (GOMP_target_ext): Introduce device-specific argument parameter args.
5721 Allow host fallback if device shares memory. Do not remap data if
5722 device has shared memory.
5723 (gomp_target_task_fn): Likewise. Also treat shared memory devices
5724 like host fallback for mappings.
5725 (GOMP_target_data): Treat shared memory devices like host fallback.
5726 (GOMP_target_data_ext): Likewise.
5727 (GOMP_target_update): Likewise.
5728 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
5729 gomp_create_target_task.
5730 (GOMP_target_enter_exit_data): Likewise.
5731 (omp_target_alloc): Treat shared memory devices like host fallback.
5732 (omp_target_free): Likewise.
5733 (omp_target_is_present): Likewise.
5734 (omp_target_memcpy): Likewise.
5735 (omp_target_memcpy_rect): Likewise.
5736 (omp_target_associate_ptr): Likewise.
5737 (gomp_load_plugin_for_device): Also load can_run.
5738 * task.c (GOMP_PLUGIN_target_task_completion): Free
5739 firstprivate_copies.
5740 (gomp_create_target_task): Accept new argument args and store it to
5741 ttask.
5742 * plugin/plugin-hsa.c: New file.
5743
5744 2016-01-18 Tom de Vries <tom@codesourcery.com>
5745
5746 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
5747 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
5748 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
5749 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
5750 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
5751 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
5752 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
5753 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
5754 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
5755 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
5756 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
5757 Same.
5758 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
5759 Same.
5760 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
5761 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
5762 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
5763 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
5764 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
5765 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
5766 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
5767 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
5768 Same.
5769 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
5770
5771 2016-01-15 Jakub Jelinek <jakub@redhat.com>
5772
5773 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
5774
5775 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
5776
5777 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
5778
5779 2016-01-12 James Norris <jnorris@codesourcery.com>
5780
5781 * libgomp.texi: Updates for OpenACC.
5782
5783 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
5784
5785 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
5786
5787 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
5788
5789 PR fortran/66680
5790 * testsuite/libgomp.fortran/pr66680.f90: New test.
5791
5792 2016-01-07 Jakub Jelinek <jakub@redhat.com>
5793
5794 PR middle-end/68960
5795 * testsuite/libgomp.c/pr68960.c: New test.
5796
5797 2016-01-06 Nathan Sidwell <nathan@acm.org>
5798
5799 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
5800 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
5801
5802 2016-01-04 Jakub Jelinek <jakub@redhat.com>
5803
5804 Update copyright years.
5805
5806 * libgomp.texi: Bump @copying's copyright year.
5807
5808 2015-12-31 Nathan Sidwell <nathan@acm.org>
5809
5810 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
5811 dg-additional-options syntax.
5812 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5813 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5814 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5815 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5816 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5817 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5818 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5819 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5820 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5821 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5822 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5823 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5824 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5825 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5826 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5827 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5828 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5829 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5830
5831 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
5832
5833 * libgomp.h (REFCOUNT_LINK): Define.
5834 (struct splay_tree_key_s): Add link_key.
5835 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
5836 Replace target address of the pointer with target address of newly
5837 mapped object in the splay tree. Set link pointer on target to the
5838 device address of the mapped object.
5839 (gomp_unmap_vars): Restore target address of the pointer in the splay
5840 tree for REFCOUNT_LINK objects after unmapping.
5841 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
5842 declare target link" objects.
5843 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
5844 "omp declare target link" objects, which were mapped for the image.
5845 (gomp_exit_data): Restore target address of the pointer in the splay
5846 tree for REFCOUNT_LINK objects after unmapping.
5847 * testsuite/libgomp.c/target-link-1.c: New file.
5848
5849 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
5850
5851 * libgomp.h (gomp_device_state): New enum.
5852 (struct gomp_device_descr): Replace is_initialized with state.
5853 (gomp_fini_device): Remove declaration.
5854 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
5855 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
5856 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
5857 (acc_set_device_type): Use state instead of is_initialized.
5858 (acc_set_device_num): Likewise.
5859 * target.c (resolve_device): Use state instead of is_initialized.
5860 Do not initialize finalized device.
5861 (gomp_map_vars): Do nothing if device is finalized.
5862 (gomp_unmap_vars): Likewise.
5863 (gomp_update): Likewise.
5864 (GOMP_offload_register_ver): Use state instead of is_initialized.
5865 (GOMP_offload_unregister_ver): Likewise.
5866 (gomp_init_device): Likewise.
5867 (gomp_unload_device): Likewise.
5868 (gomp_fini_device): Remove.
5869 (gomp_get_target_fn_addr): Do nothing if device is finalized.
5870 (GOMP_target): Go to host fallback if device is finalized.
5871 (GOMP_target_ext): Likewise.
5872 (gomp_exit_data): Do nothing if device is finalized.
5873 (gomp_target_task_fn): Go to host fallback if device is finalized.
5874 (gomp_target_fini): New static function.
5875 (gomp_target_init): Use state instead of is_initialized.
5876 Call gomp_target_fini at exit.
5877
5878 2015-12-09 Tom de Vries <tom@codesourcery.com>
5879
5880 PR tree-optimization/68716
5881 * testsuite/libgomp.c/omp-nested-2.c: New test.
5882
5883 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
5884
5885 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
5886 target openacc_nvidia_accel_selected.
5887 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
5888 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
5889 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
5890 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
5891
5892 2015-12-01 Julian Brown <julian@codesourcery.com>
5893 James Norris <James_Norris@mentor.com>
5894
5895 * oacc-parallel.c (GOACC_host_data): New function.
5896 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
5897 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
5898 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
5899 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
5900 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
5901 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
5902 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
5903
5904 2015-11-30 James Norris <jnorris@codesourcery.com>
5905 Cesar Philippidis <cesar@codesourcery.com>
5906
5907 libgomp/
5908 * libgomp.oacc-fortran/routine-5.f90: New test.
5909 * libgomp.oacc-fortran/routine-7.f90: New test.
5910 * libgomp.oacc-fortran/routine-9.f90: New test.
5911
5912 2015-11-30 Tom de Vries <tom@codesourcery.com>
5913
5914 PR tree-optimization/46032
5915 * testsuite/libgomp.c/pr46032.c: New test.
5916
5917 2015-11-27 Jakub Jelinek <jakub@redhat.com>
5918
5919 PR libgomp/68579
5920 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
5921 (gomp_create_target_task): Call it before freeing
5922 GOMP_TARGET_TASK_DATA tasks.
5923
5924 PR c/63326
5925 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
5926 in between case label and OpenMP standalone directives.
5927 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
5928
5929 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
5930
5931 * configure: Regenerate.
5932
5933 2015-11-26 Jakub Jelinek <jakub@redhat.com>
5934
5935 * testsuite/libgomp.c/target-35.c: New test.
5936
5937 2015-11-22 James Norris <jnorris@codesourcery.com>
5938 Cesar Philippidis <cesar@codesourcery.com>
5939
5940 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
5941 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
5942 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
5943 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
5944 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
5945
5946 2015-11-20 Jakub Jelinek <jakub@redhat.com>
5947
5948 PR middle-end/68221
5949 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
5950 * testsuite/libgomp.c/reduction-12.c: Likewise.
5951 * testsuite/libgomp.c++/reduction-11.C: Likewise.
5952 * testsuite/libgomp.c++/reduction-12.C: Likewise.
5953
5954 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
5955
5956 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
5957 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
5958 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
5959 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
5960 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
5961 and fix.
5962 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5963 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5964
5965 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
5966
5967 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
5968 worker & gang cases.
5969 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
5970
5971 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
5972
5973 * config/nvptx/priority_queue.c: New file.
5974
5975 2015-11-14 Jakub Jelinek <jakub@redhat.com>
5976
5977 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
5978 sections.
5979
5980 2015-11-14 Jakub Jelinek <jakub@redhat.com>
5981 Aldy Hernandez <aldyh@redhat.com>
5982 Ilya Verbin <ilya.verbin@intel.com>
5983
5984 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
5985 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
5986 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
5987 iterators or IV by chunk size.
5988 * parallel.c (gomp_resolve_num_threads): Don't assume that
5989 if thr->ts.team is non-NULL, then pool must be non-NULL.
5990 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
5991 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
5992 GOMP_PLUGIN_target_task_completion.
5993 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
5994 * Makefile.in: Regenerate.
5995 * libgomp.h: Shuffle prototypes and forward definitions around so
5996 priority queues can be defined.
5997 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
5998 (enum gomp_target_task_state): New enum.
5999 (struct gomp_target_task): Add state, tgt, task and team fields.
6000 (gomp_create_target_task): Change return type to bool, add
6001 state argument.
6002 (gomp_target_task_fn): Change return type to bool.
6003 (struct gomp_device_descr): Add async_run_func.
6004 (struct gomp_task): Remove children, next_child, prev_child,
6005 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
6006 Add pnode field.
6007 (struct gomp_taskgroup): Remove children.
6008 Add taskgroup_queue.
6009 (struct gomp_team): Change task_queue type to a priority queue.
6010 (splay_compare): Define inline.
6011 (priority_queue_offset): New.
6012 (priority_node_to_task): New.
6013 (task_to_priority_node): New.
6014 * oacc-mem.c: Do not include splay-tree.h.
6015 * priority_queue.c: New file.
6016 * priority_queue.h: New file.
6017 * splay-tree.c: Do not include splay-tree.h.
6018 (splay_tree_foreach_internal): New.
6019 (splay_tree_foreach): New.
6020 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
6021 (splay_tree_callback): Define typedef.
6022 * target.c (splay_compare): Move to libgomp.h.
6023 (GOMP_target): Don't adjust *thr in any way around running offloaded
6024 task.
6025 (GOMP_target_ext): Likewise. Handle target nowait.
6026 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
6027 return value from gomp_create_target_task, if false, fallthrough
6028 as if no dependencies exist.
6029 (gomp_target_task_fn): Change return type to bool, return true
6030 if the task should have another part scheduled later. Handle
6031 target nowait.
6032 (gomp_load_plugin_for_device): Initialize async_run.
6033 * task.c (gomp_init_task): Initialize children_queue.
6034 (gomp_clear_parent_in_list): New.
6035 (gomp_clear_parent_in_tree): New.
6036 (gomp_clear_parent): Handle priorities.
6037 (GOMP_task): Likewise.
6038 (priority_queue_move_task_first,
6039 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
6040 New functions.
6041 (gomp_create_target_task): Use priority queues. Change return type
6042 to bool, add state argument, return false if for async
6043 {{enter,exit} data,update} constructs no dependencies need to be
6044 waited for, handle target nowait. Set task->fn to NULL instead of
6045 gomp_target_task_fn.
6046 (verify_children_queue): Remove.
6047 (priority_list_upgrade_task): New.
6048 (priority_queue_upgrade_task): New.
6049 (verify_task_queue): Remove.
6050 (priority_list_downgrade_task): New.
6051 (priority_queue_downgrade_task): New.
6052 (gomp_task_run_pre): Use priority queues.
6053 Abstract code out to priority_queue_downgrade_task.
6054 (gomp_task_run_post_handle_dependers): Use priority queues.
6055 (gomp_task_run_post_remove_parent): Likewise.
6056 (gomp_task_run_post_remove_taskgroup): Likewise.
6057 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
6058 tasks specially.
6059 (GOMP_taskwait): Likewise.
6060 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
6061 priority-queue_upgrade_task.
6062 (GOMP_taskgroup_start): Use priority queues.
6063 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
6064 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
6065 barrier.
6066 * taskloop.c (GOMP_taskloop): Handle priorities.
6067 * team.c (gomp_new_team): Call priority_queue_init.
6068 (free_team): Call priority_queue_free.
6069 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
6070 team created for target nowait in implicit parallel region.
6071 (gomp_team_start): For nested check, test thr->ts.level instead of
6072 thr->ts.team != NULL.
6073 * testsuite/libgomp.c/doacross-3.c: New test.
6074 * testsuite/libgomp.c/ordered-5.c: New test.
6075 * testsuite/libgomp.c/priority.c: New test.
6076 * testsuite/libgomp.c/target-31.c: New test.
6077 * testsuite/libgomp.c/target-32.c: New test.
6078 * testsuite/libgomp.c/target-33.c: New test.
6079 * testsuite/libgomp.c/target-34.c: New test.
6080
6081 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6082
6083 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
6084
6085 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
6086 loop is sequential.
6087
6088 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6089
6090 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
6091 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
6092
6093 2015-11-12 James Norris <jnorris@codesourcery.com>
6094 Joseph Myers <joseph@codesourcery.com>
6095
6096 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
6097 * oacc-parallel.c (GOACC_declare): New function.
6098 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
6099 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
6100 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
6101 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
6102 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
6103
6104 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
6105
6106 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
6107
6108 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
6109
6110 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
6111 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
6112
6113 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6114
6115 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
6116 inadvertent commit.
6117
6118 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
6119
6120 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
6121 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
6122 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
6123 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
6124 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
6125
6126 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
6127
6128 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
6129 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
6130
6131 2015-11-05 Jakub Jelinek <jakub@redhat.com>
6132 Ilya Verbin <ilya.verbin@intel.com>
6133
6134 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
6135 GOMP_loop_nonmonotonic_dynamic_start,
6136 GOMP_loop_nonmonotonic_guided_next,
6137 GOMP_loop_nonmonotonic_guided_start,
6138 GOMP_loop_ull_nonmonotonic_dynamic_next,
6139 GOMP_loop_ull_nonmonotonic_dynamic_start,
6140 GOMP_loop_ull_nonmonotonic_guided_next,
6141 GOMP_loop_ull_nonmonotonic_guided_start,
6142 GOMP_parallel_loop_nonmonotonic_dynamic,
6143 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
6144 (GOMP_target_41): Renamed to ...
6145 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6146 arguments.
6147 (GOMP_target_data_41): Renamed to ...
6148 (GOMP_target_data_ext): ... this.
6149 (GOMP_target_update_41): Renamed to ...
6150 (GOMP_target_update_ext): ... this.
6151 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
6152 GOMP_target_data_ext and GOMP_target_update_ext instead of
6153 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
6154 Export GOMP_loop_nonmonotonic_dynamic_next,
6155 GOMP_loop_nonmonotonic_dynamic_start,
6156 GOMP_loop_nonmonotonic_guided_next,
6157 GOMP_loop_nonmonotonic_guided_start,
6158 GOMP_loop_ull_nonmonotonic_dynamic_next,
6159 GOMP_loop_ull_nonmonotonic_dynamic_start,
6160 GOMP_loop_ull_nonmonotonic_guided_next,
6161 GOMP_loop_ull_nonmonotonic_guided_start,
6162 GOMP_parallel_loop_nonmonotonic_dynamic and
6163 GOMP_parallel_loop_nonmonotonic_guided.
6164 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
6165 GOMP_parallel_loop_nonmonotonic_guided,
6166 GOMP_loop_nonmonotonic_dynamic_start,
6167 GOMP_loop_nonmonotonic_guided_start,
6168 GOMP_loop_nonmonotonic_dynamic_next,
6169 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
6170 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
6171 GOMP_loop_ull_nonmonotonic_guided_start,
6172 GOMP_loop_ull_nonmonotonic_dynamic_next,
6173 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
6174 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
6175 functions.
6176 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
6177 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
6178 Use gomp_map_val function.
6179 (gomp_target_fallback_firstprivate): New static function.
6180 (GOMP_target_41): Renamed to ...
6181 (GOMP_target_ext): ... this. Add num_teams and thread_limit
6182 arguments. Move firstprivate fallback handling into a new
6183 function.
6184 (GOMP_target_data_41): Renamed to ...
6185 (GOMP_target_data_ext): ... this.
6186 (GOMP_target_update_41): Renamed to ...
6187 (GOMP_target_update_ext): ... this.
6188 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
6189 gomp_map_0len_lookup instead of gomp_map_lookup.
6190 (omp_target_is_present): Use gomp_map_0len_lookup instead of
6191 gomp_map_lookup.
6192 * testsuite/libgomp.c/target-28.c: Likewise.
6193 * testsuite/libgomp.c/monotonic-1.c: New test.
6194 * testsuite/libgomp.c/monotonic-2.c: New test.
6195 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
6196 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
6197 * testsuite/libgomp.c/pr66199-5.c: New test.
6198 * testsuite/libgomp.c/pr66199-6.c: New test.
6199 * testsuite/libgomp.c/pr66199-7.c: New test.
6200 * testsuite/libgomp.c/pr66199-8.c: New test.
6201 * testsuite/libgomp.c/pr66199-9.c: New test.
6202 * testsuite/libgomp.c/reduction-11.c: New test.
6203 * testsuite/libgomp.c/reduction-12.c: New test.
6204 * testsuite/libgomp.c/reduction-13.c: New test.
6205 * testsuite/libgomp.c/reduction-14.c: New test.
6206 * testsuite/libgomp.c/reduction-15.c: New test.
6207 * testsuite/libgomp.c/target-12.c (main): Adjust for
6208 omp_target_is_present change for one-past-last element.
6209 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
6210 the same var is both mapped and privatized.
6211 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
6212 handling of zero-length array sections.
6213 * testsuite/libgomp.c/target-28.c: New test.
6214 * testsuite/libgomp.c/target-29.c: New test.
6215 * testsuite/libgomp.c/target-30.c: New test.
6216 * testsuite/libgomp.c/target-teams-1.c: New test.
6217 * testsuite/libgomp.c++/member-6.C: New test.
6218 * testsuite/libgomp.c++/member-7.C: New test.
6219 * testsuite/libgomp.c++/monotonic-1.C: New test.
6220 * testsuite/libgomp.c++/monotonic-2.C: New test.
6221 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
6222 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
6223 * testsuite/libgomp.c++/pr66199-3.C: New test.
6224 * testsuite/libgomp.c++/pr66199-4.C: New test.
6225 * testsuite/libgomp.c++/pr66199-5.C: New test.
6226 * testsuite/libgomp.c++/pr66199-6.C: New test.
6227 * testsuite/libgomp.c++/pr66199-7.C: New test.
6228 * testsuite/libgomp.c++/pr66199-8.C: New test.
6229 * testsuite/libgomp.c++/pr66199-9.C: New test.
6230 * testsuite/libgomp.c++/reduction-11.C: New test.
6231 * testsuite/libgomp.c++/reduction-12.C: New test.
6232 * testsuite/libgomp.c++/target-13.C: New test.
6233 * testsuite/libgomp.c++/target-14.C: New test.
6234 * testsuite/libgomp.c++/target-15.C: New test.
6235 * testsuite/libgomp.c++/target-16.C: New test.
6236 * testsuite/libgomp.c++/target-17.C: New test.
6237 * testsuite/libgomp.c++/target-18.C: New test.
6238 * testsuite/libgomp.c++/target-19.C: New test.
6239
6240 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6241
6242 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
6243 and reduction copy.
6244 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
6245 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
6246 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
6247 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6248 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
6249 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
6250 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
6251 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6252 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
6253 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
6254 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
6255 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
6256 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
6257 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
6258
6259 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6260
6261 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
6262 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
6263 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
6264 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
6265 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
6266 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
6267 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
6268 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
6269
6270 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
6271
6272 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
6273 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
6274 (GOMP_OFFLOAD_openacc_parallel): Likewise.
6275 * oacc-host.c (host_openacc_exec): Likewise.
6276 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
6277
6278 2015-11-03 Julian Brown <julian@codesourcery.com>
6279 Thomas Schwinge <thomas@codesourcery.com>
6280
6281 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
6282 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6283 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
6284 Likewise.
6285 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
6286 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
6287
6288 2015-11-03 James Norris <jnorris@codesourcery.com>
6289
6290 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
6291 file.
6292 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
6293 Likewise.
6294 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
6295 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
6296 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
6297 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
6298 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
6299
6300 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
6301
6302 * openacc.h (enum acc_device_t): Reformat. Ensure layout
6303 compatibility.
6304 (enum acc_async_t): Reformat.
6305 (acc_on_device): Declare compatible with builtin and provide C++
6306 wrapper.
6307 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
6308
6309 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
6310 Cesar Philippidis <cesar@codesourcery.com>
6311
6312 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
6313 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
6314 ... this. Add a description of the test at the top of the file.
6315 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
6316 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
6317 ... this. Add a description of the test at the top of the file.
6318
6319 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6320
6321 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
6322 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
6323 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
6324 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
6325 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
6326 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
6327
6328 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6329
6330 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
6331 dimensions.
6332
6333 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
6334
6335 PR testsuite/68063
6336 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
6337
6338 2015-10-27 James Norris <jnorris@codesourcery.com>
6339
6340 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
6341 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
6342
6343 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
6344
6345 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
6346 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6347
6348 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
6349 acc_device_nvidia usage.
6350 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6351 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6352 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6353
6354 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
6355 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
6356
6357 PR libgomp/66518
6358 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
6359
6360 PR libgomp/65437
6361 PR libgomp/66518
6362 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
6363 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
6364
6365 2015-10-23 Tom de Vries <tom@codesourcery.com>
6366
6367 PR testsuite/68063
6368 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
6369
6370 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
6371
6372 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
6373 vector_length.
6374 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6375
6376 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
6377 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
6378
6379 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
6380 to 0 when mapnum is 0.
6381
6382 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
6383
6384 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
6385 Cast to int from int32_t.
6386
6387 2015-10-13 Jakub Jelinek <jakub@redhat.com>
6388 Aldy Hernandez <aldyh@redhat.com>
6389 Ilya Verbin <ilya.verbin@intel.com>
6390
6391 * config/linux/affinity.c (omp_get_place_num_procs,
6392 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6393 * config/linux/doacross.h: New file.
6394 * config/posix/affinity.c (omp_get_place_num_procs,
6395 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6396 * config/posix/doacross.h: New file.
6397 * env.c: Include gomp-constants.h.
6398 (struct gomp_task_icv): Rename run_sched_modifier to
6399 run_sched_chunk_size.
6400 (gomp_max_task_priority_var): New variable.
6401 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
6402 (handle_omp_display_env): Change _OPENMP value from 201307 to
6403 201511. Print OMP_MAX_TASK_PRIORITY.
6404 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
6405 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
6406 chunk_size and run_sched_modifier to run_sched_chunk_size.
6407 (omp_get_max_task_priority, omp_get_initial_device,
6408 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
6409 omp_get_partition_place_nums): New functions.
6410 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
6411 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
6412 to chunk_size.
6413 (omp_get_num_places_, omp_get_place_num_procs_,
6414 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
6415 omp_get_place_proc_ids_8_, omp_get_place_num_,
6416 omp_get_partition_num_places_, omp_get_partition_place_nums_,
6417 omp_get_partition_place_nums_8_, omp_get_initial_device_,
6418 omp_get_max_task_priority_): New functions.
6419 * libgomp_g.h (GOMP_loop_doacross_static_start,
6420 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
6421 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
6422 GOMP_loop_ull_doacross_dynamic_start,
6423 GOMP_loop_ull_doacross_guided_start,
6424 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
6425 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
6426 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
6427 GOMP_target_data_41, GOMP_target_update_41,
6428 GOMP_target_enter_exit_data): New prototypes.
6429 (GOMP_task): Add prototype argument.
6430 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
6431 (struct gomp_doacross_work_share): New type.
6432 (struct gomp_work_share): Add doacross field.
6433 (struct gomp_task_icv): Rename run_sched_modifier to
6434 run_sched_chunk_size.
6435 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
6436 GOMP_TASK_UNDEFERRED. Add comments.
6437 (struct gomp_task_depend_entry): Add comments.
6438 (struct gomp_task): Likewise.
6439 (struct gomp_taskgroup): Likewise.
6440 (struct gomp_target_task): New type.
6441 (struct gomp_team): Add comment.
6442 (gomp_get_place_proc_ids_8, gomp_doacross_init,
6443 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
6444 gomp_create_target_task, gomp_target_task_fn): New prototypes.
6445 (struct target_var_desc): New type.
6446 (struct target_mem_desc): Adjust comment. Use struct
6447 target_var_desc instead of splay_tree_key for list.
6448 (REFCOUNT_INFINITY): Define.
6449 (struct splay_tree_key_s): Remove copy_from field.
6450 (struct gomp_device_descr): Add dev2dev_func field.
6451 (enum gomp_map_vars_kind): New enum.
6452 (gomp_map_vars): Add one argument.
6453 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
6454 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
6455 omp_get_place_num_procs, omp_get_place_num_procs_,
6456 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
6457 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
6458 omp_get_place_num_, omp_get_partition_num_places,
6459 omp_get_partition_num_places_, omp_get_partition_place_nums,
6460 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
6461 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
6462 omp_target_free, omp_target_is_present, omp_target_memcpy,
6463 omp_target_memcpy_rect, omp_target_associate_ptr and
6464 omp_target_disassociate_ptr.
6465 (GOMP_4.0.2): Renamed to ...
6466 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
6467 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
6468 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
6469 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6470 GOMP_loop_doacross_static_start, GOMP_doacross_post,
6471 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
6472 GOMP_loop_ull_doacross_guided_start,
6473 GOMP_loop_ull_doacross_runtime_start,
6474 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
6475 GOMP_doacross_ull_wait.
6476 * libgomp.texi: Document omp_get_max_task_priority.
6477 Rename modifier argument to chunk_size for omp_set_schedule and
6478 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
6479 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
6480 to run_sched_chunk_size renaming.
6481 (GOMP_loop_ordered_runtime_start): Likewise.
6482 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
6483 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6484 GOMP_parallel_loop_runtime_start): New functions.
6485 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
6486 to run_sched_chunk_size renaming.
6487 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
6488 GOMP_loop_doacross_guided_start): New functions or aliases.
6489 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
6490 run_sched_modifier to run_sched_chunk_size renaming.
6491 (GOMP_loop_ull_ordered_runtime_start): Likewise.
6492 (gomp_loop_ull_doacross_static_start,
6493 gomp_loop_ull_doacross_dynamic_start,
6494 gomp_loop_ull_doacross_guided_start,
6495 GOMP_loop_ull_doacross_runtime_start): New functions.
6496 (GOMP_loop_ull_doacross_static_start,
6497 GOMP_loop_ull_doacross_dynamic_start,
6498 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
6499 * oacc-mem.c (acc_map_data, present_create_copy,
6500 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
6501 to gomp_map_vars.
6502 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
6503 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
6504 instead of false to gomp_map_vars.
6505 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
6506 * omp.h.in (omp_lock_hint_t): New type.
6507 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6508 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6509 omp_get_place_num, omp_get_partition_num_places,
6510 omp_get_partition_place_nums, omp_get_initial_device,
6511 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
6512 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
6513 omp_target_associate_ptr, omp_target_disassociate_ptr): New
6514 prototypes.
6515 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
6516 (omp_lock_hint_none, omp_lock_hint_uncontended,
6517 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6518 omp_lock_hint_speculative): New parameters.
6519 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6520 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6521 omp_get_place_num, omp_get_partition_num_places,
6522 omp_get_partition_place_nums, omp_get_initial_device,
6523 omp_get_max_task_priority): New interfaces.
6524 (omp_set_schedule, omp_get_schedule): Rename modifier argument
6525 to chunk_size.
6526 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
6527 (omp_lock_hint_none, omp_lock_hint_uncontended,
6528 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6529 omp_lock_hint_speculative): New parameters.
6530 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6531 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6532 omp_get_place_num, omp_get_partition_num_places,
6533 omp_get_partition_place_nums, omp_get_initial_device,
6534 omp_get_max_task_priority): New functions and subroutines.
6535 * ordered.c: Include stdarg.h and string.h.
6536 (MAX_COLLAPSED_BITS): Define.
6537 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
6538 gomp_doacross_ull_init, GOMP_doacross_ull_post,
6539 GOMP_doacross_ull_wait): New functions.
6540 * target.c: Include errno.h.
6541 (resolve_device): If device is not initialized, call
6542 gomp_init_device on it.
6543 (gomp_map_lookup): New function.
6544 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
6545 Don't bump refcount if REFCOUNT_INFINITY. Handle
6546 GOMP_MAP_ALWAYS_TO_P.
6547 (get_kind): Rename is_openacc argument to short_mapkind.
6548 (gomp_map_pointer): Use gomp_map_lookup.
6549 (gomp_map_fields_existing): New function.
6550 (gomp_map_vars): Rename is_openacc argument to short_mapkind
6551 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
6552 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
6553 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
6554 Adjust for tgt->list changed type and copy_from living in there.
6555 (gomp_copy_from_async): Adjust for tgt->list changed type and
6556 copy_from living in there.
6557 (gomp_unmap_vars): Likewise.
6558 (gomp_update): Likewise. Rename is_openacc argument to
6559 short_mapkind. Don't fail if object is not mapped.
6560 (gomp_load_image_to_device): Initialize refcount to
6561 REFCOUNT_INFINITY.
6562 (gomp_target_fallback): New function.
6563 (gomp_get_target_fn_addr): Likewise.
6564 (GOMP_target): Adjust gomp_map_vars caller, use
6565 gomp_get_target_fn_addr and gomp_target_fallback.
6566 (GOMP_target_41): New function.
6567 (gomp_target_data_fallback): New function.
6568 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
6569 (GOMP_target_data_41): New function.
6570 (GOMP_target_update): Adjust gomp_update caller.
6571 (GOMP_target_update_41): New function.
6572 (gomp_exit_data, GOMP_target_enter_exit_data,
6573 gomp_target_task_fn, omp_target_alloc, omp_target_free,
6574 omp_target_is_present, omp_target_memcpy,
6575 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
6576 omp_target_associate_ptr, omp_target_disassociate_ptr,
6577 gomp_load_plugin_for_device): New functions.
6578 * task.c: Include gomp-constants.h. Include taskloop.c
6579 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
6580 (gomp_task_handle_depend): New function.
6581 (GOMP_task): Use it. Add priority argument. Use
6582 gomp-constant.h constants instead of hardcoded numbers.
6583 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
6584 (gomp_create_target_task): New function.
6585 (verify_children_queue, verify_taskgroup_queue,
6586 verify_task_queue): New functions.
6587 (gomp_task_run_pre): Call verify_*_queue functions.
6588 If an upcoming tied task is about to leave the sibling or
6589 taskgroup queues in an invalid state, adjust appropriately.
6590 Remove taskgroup argument. Add comments.
6591 (gomp_task_run_post_handle_dependers): Add comments.
6592 (gomp_task_run_post_remove_parent): Likewise.
6593 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
6594 (GOMP_taskwait): Likewise. Add comments.
6595 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
6596 problem such that the first non parent_depends_on task does not
6597 end up at the end of the children queue.
6598 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
6599 GOMP_TASK_UNDEFERRED.
6600 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
6601 * taskloop.c: New file.
6602 * testsuite/lib/libgomp.exp
6603 (check_effective_target_offload_device_nonshared_as): New proc.
6604 * testsuite/libgomp.c/affinity-2.c: New test.
6605 * testsuite/libgomp.c/doacross-1.c: New test.
6606 * testsuite/libgomp.c/doacross-2.c: New test.
6607 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
6608 Add map clause to target.
6609 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
6610 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
6611 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
6612 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
6613 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
6614 Likewise.
6615 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
6616 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
6617 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
6618 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
6619 not defined. Use those where needed.
6620 * testsuite/libgomp.c/for-4.c: New test.
6621 * testsuite/libgomp.c/for-5.c: New test.
6622 * testsuite/libgomp.c/for-6.c: New test.
6623 * testsuite/libgomp.c/linear-1.c: New test.
6624 * testsuite/libgomp.c/ordered-4.c: New test.
6625 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
6626 only allowed on the loop iterator.
6627 * testsuite/libgomp.c/pr66199-3.c: New test.
6628 * testsuite/libgomp.c/pr66199-4.c: New test.
6629 * testsuite/libgomp.c/reduction-7.c: New test.
6630 * testsuite/libgomp.c/reduction-8.c: New test.
6631 * testsuite/libgomp.c/reduction-9.c: New test.
6632 * testsuite/libgomp.c/reduction-10.c: New test.
6633 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
6634 map(tofrom:s).
6635 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
6636 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
6637 * testsuite/libgomp.c/target-11.c: New test.
6638 * testsuite/libgomp.c/target-12.c: New test.
6639 * testsuite/libgomp.c/target-13.c: New test.
6640 * testsuite/libgomp.c/target-14.c: New test.
6641 * testsuite/libgomp.c/target-15.c: New test.
6642 * testsuite/libgomp.c/target-16.c: New test.
6643 * testsuite/libgomp.c/target-17.c: New test.
6644 * testsuite/libgomp.c/target-18.c: New test.
6645 * testsuite/libgomp.c/target-19.c: New test.
6646 * testsuite/libgomp.c/target-20.c: New test.
6647 * testsuite/libgomp.c/target-21.c: New test.
6648 * testsuite/libgomp.c/target-22.c: New test.
6649 * testsuite/libgomp.c/target-23.c: New test.
6650 * testsuite/libgomp.c/target-24.c: New test.
6651 * testsuite/libgomp.c/target-25.c: New test.
6652 * testsuite/libgomp.c/target-26.c: New test.
6653 * testsuite/libgomp.c/target-27.c: New test.
6654 * testsuite/libgomp.c/taskloop-1.c: New test.
6655 * testsuite/libgomp.c/taskloop-2.c: New test.
6656 * testsuite/libgomp.c/taskloop-3.c: New test.
6657 * testsuite/libgomp.c/taskloop-4.c: New test.
6658 * testsuite/libgomp.c++/ctor-13.C: New test.
6659 * testsuite/libgomp.c++/doacross-1.C: New test.
6660 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
6661 Replace offload_device with offload_device_nonshared_as.
6662 * testsuite/libgomp.c++/for-12.C: New test.
6663 * testsuite/libgomp.c++/for-13.C: New test.
6664 * testsuite/libgomp.c++/for-14.C: New test.
6665 * testsuite/libgomp.c++/linear-1.C: New test.
6666 * testsuite/libgomp.c++/member-1.C: New test.
6667 * testsuite/libgomp.c++/member-2.C: New test.
6668 * testsuite/libgomp.c++/member-3.C: New test.
6669 * testsuite/libgomp.c++/member-4.C: New test.
6670 * testsuite/libgomp.c++/member-5.C: New test.
6671 * testsuite/libgomp.c++/ordered-1.C: New test.
6672 * testsuite/libgomp.c++/reduction-5.C: New test.
6673 * testsuite/libgomp.c++/reduction-6.C: New test.
6674 * testsuite/libgomp.c++/reduction-7.C: New test.
6675 * testsuite/libgomp.c++/reduction-8.C: New test.
6676 * testsuite/libgomp.c++/reduction-9.C: New test.
6677 * testsuite/libgomp.c++/reduction-10.C: New test.
6678 * testsuite/libgomp.c++/reference-1.C: New test.
6679 * testsuite/libgomp.c++/simd14.C: New test.
6680 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
6681 * testsuite/libgomp.c++/target-5.C: New test.
6682 * testsuite/libgomp.c++/target-6.C: New test.
6683 * testsuite/libgomp.c++/target-7.C: New test.
6684 * testsuite/libgomp.c++/target-8.C: New test.
6685 * testsuite/libgomp.c++/target-9.C: New test.
6686 * testsuite/libgomp.c++/target-10.C: New test.
6687 * testsuite/libgomp.c++/target-11.C: New test.
6688 * testsuite/libgomp.c++/target-12.C: New test.
6689 * testsuite/libgomp.c++/taskloop-1.C: New test.
6690 * testsuite/libgomp.c++/taskloop-2.C: New test.
6691 * testsuite/libgomp.c++/taskloop-3.C: New test.
6692 * testsuite/libgomp.c++/taskloop-4.C: New test.
6693 * testsuite/libgomp.c++/taskloop-5.C: New test.
6694 * testsuite/libgomp.c++/taskloop-6.C: New test.
6695 * testsuite/libgomp.c++/taskloop-7.C: New test.
6696 * testsuite/libgomp.c++/taskloop-8.C: New test.
6697 * testsuite/libgomp.c++/taskloop-9.C: New test.
6698 * testsuite/libgomp.fortran/affinity1.f90: New test.
6699 * testsuite/libgomp.fortran/affinity2.f90: New test.
6700
6701 2015-10-13 Tom de Vries <tom@codesourcery.com>
6702
6703 PR tree-optimization/67476
6704 * testsuite/libgomp.c/autopar-3.c: New test.
6705 * testsuite/libgomp.c/autopar-4.c: New test.
6706 * testsuite/libgomp.c/autopar-5.c: New test.
6707 * testsuite/libgomp.c/autopar-6.c: New test.
6708 * testsuite/libgomp.c/autopar-7.c: New test.
6709 * testsuite/libgomp.c/autopar-8.c: New test.
6710
6711 2015-10-12 James Norris <jnorris@codesourcery.com>
6712
6713 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
6714 initializer.
6715
6716 2015-10-09 David Malcolm <dmalcolm@redhat.com>
6717
6718 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
6719 using load_gcc_lib.
6720
6721 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
6722
6723 * oacc-ptx.h: Remove file, moving its content into...
6724 * config/nvptx/fortran.c: ... here...
6725 * config/nvptx/oacc-init.c: ..., here...
6726 * config/nvptx/oacc-parallel.c: ..., and here.
6727 * config/nvptx/openacc.f90: New file.
6728 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
6729 (link_ptx): Don't link in predefined bits of PTX code.
6730
6731 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
6732 Bernd Schmidt <bernds@codesourcery.com>
6733
6734 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
6735 (struct targ_ptx_obj): New.
6736 (nvptx_tdata): Move earlier, change data format.
6737 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
6738 objects.
6739 (GOMP_OFFLOAD_load_image): Adjust.
6740
6741 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
6742
6743 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
6744 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6745 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6746 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6747 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6748 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6749 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6750 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6751 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6752 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6753 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6754 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6755 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6756 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6757 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6758 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6759 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6760 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6761 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6762 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6763 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6764 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6765 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6766 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6767 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6768 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6769 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6770 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6771 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6772 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6773 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6774 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6775 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6776 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6777 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6778 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6779 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6780 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6781 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6782 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6783 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6784 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6785 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6786 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6787 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6788 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6789 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6790 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6791 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6792 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6793 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6794 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6795 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6796 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6797 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
6798 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6799 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6800 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6801 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6802 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6803 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6804 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6805 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6806
6807 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6808
6809 * oacc-init.c (acc_on_device): Force optimization level.
6810
6811 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6812
6813 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
6814 (cuda_errlist): Delete.
6815 (cuda_error): Reimplement.
6816
6817 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
6818
6819 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
6820 array.
6821 * libgomp.map (GOACC_parallel_keyed): New.
6822 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
6823 all callers.
6824 (GOACC_parallel_keyed): New interface. Lose geometry arguments
6825 and take keyed varargs list. Adjust call to exec_func.
6826 (GOACC_parallel): Force host fallback.
6827 * libgomp_g.h (GOACC_parallel): Remove.
6828 (GOACC_parallel_keyed): Declare.
6829 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
6830 (struct targ_gn_descriptor): Replace name field with launch field.
6831 (nvptx_exec): Lose separate geometry args, take array. Process
6832 dynamic dimensions and adjust.
6833 (struct nvptx_tdata): Replace fn_names field with fn_descs.
6834 (GOMP_OFFLOAD_load_image): Adjust for change in function table
6835 data.
6836 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
6837 passing.
6838 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
6839 passing.
6840
6841 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
6842
6843 PR libgomp/67141
6844 * oacc-int.h (goacc_host_init): Add declaration.
6845 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
6846 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
6847
6848 2015-09-08 Aditya Kumar <hiraditya@msn.com>
6849 Sebastian Pop <s.pop@samsung.com>
6850
6851 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
6852 match o/p.
6853 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
6854 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
6855 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
6856 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
6857 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
6858
6859 2015-09-03 Jakub Jelinek <jakub@redhat.com>
6860
6861 * configure.tgt: Add missing ;; in between nvptx and rtems
6862 snippets.
6863
6864 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6865
6866 * config/posix/pool.h (gomp_adjust_thread_attr): New.
6867 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
6868 (gomp_thread_pool_reservoir): Add priority member.
6869 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
6870 priority.
6871 (parse_thread_pools): Likewise.
6872 * team.c (gomp_team_start): Call configuration provided
6873 gomp_adjust_thread_attr(). Destroy thread attributes if
6874 necessary.
6875 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
6876
6877 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6878
6879 * config/posix/pool.h: New.
6880 * config/rtems/pool.h: Likewise.
6881 * config/rtems/proc.c: Likewise.
6882 * libgomp.h (gomp_thread_destructor): Declare.
6883 * team.c: Include configuration provided "pool.h".
6884 (gomp_get_thread_pool): Define in configuration.
6885 (gomp_team_end): Call configuration defined
6886 gomp_release_thread_pool().
6887
6888 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6889
6890 * config/rtems/bar.c: New.
6891 * config/rtems/bar.h: Likewise.
6892 * config/rtems/mutex.c: Likewise.
6893 * config/rtems/mutex.h: Likewise.
6894 * config/rtems/sem.c: Likewise.
6895 * config/rtems/sem.h: Likewise.
6896 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
6897 <sys/lock.h> header file.
6898 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
6899 supported by Newlib.
6900 * configure: Regenerate.
6901
6902 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6903
6904 * team.c (gomp_new_thread_pool): Delete and move content to ...
6905 (gomp_get_thread_pool): ... new function. Allocate and
6906 initialize thread pool on demand.
6907 (get_last_team): Use gomp_get_thread_pool().
6908 (gomp_team_start): Delete thread pool initialization.
6909
6910 2015-09-03 Tom de Vries <tom@codesourcery.com>
6911
6912 PR tree-optimization/65637
6913 * testsuite/libgomp.c/autopar-2.c: New test.
6914
6915 2015-08-29 Tom de Vries <tom@codesourcery.com>
6916
6917 PR tree-optimization/46193
6918 * testsuite/libgomp.c/pr46193.c: New test.
6919
6920 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
6921
6922 libgomp/
6923 * libgomp.map: Add 4.0.2 version.
6924 * target.c (offload_image_descr): Add version field.
6925 (gomp_load_image_to_device): Add version argument. Adjust plugin
6926 call. Improve load mismatch diagnostic.
6927 (gomp_unload_image_from_device): Add version argument. Adjust plugin
6928 call.
6929 (GOMP_offload_regster): Make stub function, move bulk to ...
6930 (GOMP_offload_register_ver): ... here. Process version argument.
6931 (GOMP_offload_unregister): Make stub function, move bulk to ...
6932 (GOMP_offload_unregister_ver): ... here. Process version argument.
6933 (gomp_init_device): Process version field.
6934 (gomp_unload_device): Process version field.
6935 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
6936 macros. Check plugin version.
6937 * libgomp.h (gomp_device_descr): Add version function field. Adjust
6938 loader and unloader types.
6939 * oacc-host.c: Include gomp-constants.h.
6940 (host_version): New.
6941 (host_load_image, host_unload_image): Adjust.
6942 (host_dispatch): Add host_version.
6943 * plugin/plugin-nvptx.c: Include gomp-constants.h.
6944 (GOMP_OFFLOAD_version): New.
6945 (GOMP_OFFLOAD_load_image): Add version arg and check it.
6946 (GOMP_OFFLOAD_unload_image): Likewise.
6947 * plugin/plugin-host.c: Include gomp-constants.h.
6948 (GOMP_OFFLOAD_version): New.
6949 (GOMP_OFFLOAD_load_image): Add version arg.
6950 (GOMP_OFFLOAD_unload_image): Likewise.
6951
6952 2015-08-24 Tom de Vries <tom@codesourcery.com>
6953
6954 PR tree-optimization/65468
6955 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
6956
6957 2015-08-24 Tom de Vries <tom@codesourcery.com>
6958
6959 PR tree-optimization/65468
6960 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
6961
6962 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
6963
6964 PR libgomp/66761
6965 PR libgomp/67303
6966 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
6967 (gomp_iter_guided_next): Idem.
6968 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
6969 (gomp_iter_ull_guided_next): Idem.
6970 * config/linux/wait.h (do_spin): Idem.
6971
6972 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6973
6974 * libgomp-plugin.h (enum offload_target_type): Remove
6975 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
6976 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
6977 * openacc.h (enum acc_device_t): Likewise.
6978 * openacc_lib.h: Likewise.
6979 * oacc-init.c (name_of_acc_device_t): Don't handle it.
6980 (acc_on_device): Just use __builtin_acc_on_device.
6981 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
6982 of acc_on_device builtin.
6983 * plugin/plugin-host.h: Remove file.
6984 * plugin/plugin-host.c: Likewise, but salvage some content into...
6985 * oacc-host.c: ... this file.
6986 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
6987 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
6988 * Makefile.in: Regenerate.
6989 * configure: Likewise.
6990 * testsuite/lib/libgomp.exp
6991 (check_effective_target_openacc_host_nonshm_selected): Remove.
6992 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
6993 ACC_DEVICE_TYPE=host_nonshm.
6994 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6995 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6996 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
6997 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6998 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6999 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
7000
7001 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7002 Jakub Jelinek <jakub@redhat.com>
7003
7004 * config/nvptx/affinity.c: New file.
7005 * config/nvptx/alloc.c: Likewise.
7006 * config/nvptx/bar.c: Likewise.
7007 * config/nvptx/barrier.c: Likewise.
7008 * config/nvptx/critical.c: Likewise.
7009 * config/nvptx/env.c: Likewise.
7010 * config/nvptx/error.c: Likewise.
7011 * config/nvptx/fortran.c: Likewise.
7012 * config/nvptx/iter.c: Likewise.
7013 * config/nvptx/iter_ull.c: Likewise.
7014 * config/nvptx/libgomp-plugin.c: Likewise.
7015 * config/nvptx/lock.c: Likewise.
7016 * config/nvptx/loop.c: Likewise.
7017 * config/nvptx/loop_ull.c: Likewise.
7018 * config/nvptx/mutex.c: Likewise.
7019 * config/nvptx/oacc-async.c: Likewise.
7020 * config/nvptx/oacc-cuda.c: Likewise.
7021 * config/nvptx/oacc-host.c: Likewise.
7022 * config/nvptx/oacc-init.c: Likewise.
7023 * config/nvptx/oacc-mem.c: Likewise.
7024 * config/nvptx/oacc-parallel.c: Likewise.
7025 * config/nvptx/oacc-plugin.c: Likewise.
7026 * config/nvptx/omp-lock.h: Likewise.
7027 * config/nvptx/ordered.c: Likewise.
7028 * config/nvptx/parallel.c: Likewise.
7029 * config/nvptx/proc.c: Likewise.
7030 * config/nvptx/ptrlock.c: Likewise.
7031 * config/nvptx/sections.c: Likewise.
7032 * config/nvptx/sem.c: Likewise.
7033 * config/nvptx/single.c: Likewise.
7034 * config/nvptx/splay-tree.c: Likewise.
7035 * config/nvptx/target.c: Likewise.
7036 * config/nvptx/task.c: Likewise.
7037 * config/nvptx/team.c: Likewise.
7038 * config/nvptx/time.c: Likewise.
7039 * config/nvptx/work.c: Likewise.
7040 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
7041 * configure: Regenerate.
7042 * configure.tgt (config_path): Set to "nvptx" for target
7043 nvptx*-*-*.
7044
7045 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
7046
7047 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
7048
7049 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
7050
7051 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
7052 (cuda_errlist): Constify.
7053 (errmsg): Move into ...
7054 (cuda_error): ... here. Make smaller.
7055 (_XSTR, _STR): Delete.
7056 (cuda_synames): Delete.
7057 (verify_device_library): Delete.
7058 (nvptx_init): Don't call it.
7059
7060 2015-07-28 Tom de Vries <tom@codesourcery.com>
7061
7062 * testsuite/libgomp.c/uns-outer-4.c: New test.
7063
7064 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
7065
7066 * testsuite/libgomp.c/pr66714.c: New test.
7067
7068 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
7069
7070 PR libgomp/66950
7071 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
7072 (fib_ref): New function.
7073 (fib): Correct corner cases in the recursion.
7074 (main): Replace the non-simd loop with fib_ref call.
7075 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
7076 subroutine.
7077 (fibonacci): Lower the parameter N to 30. Correct accordingly check
7078 for the last array element value. Replace the non-simd loop with
7079 fib_ref call. Remove redundant b_ref array. Remove the comparison
7080 of the last array element with according Fibonacci sequence element.
7081 (fib): Correct corner cases in the recursion.
7082
7083 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
7084
7085 * target.c (gomp_offload_image_to_device): Rename to ...
7086 (gomp_load_image_to_device): ... here.
7087 (GOMP_offload_register): Adjust call.
7088 (gomp_init_device): Likewise.
7089 (gomp_unload_image_from_device): New. Broken out of ...
7090 (GOMP_offload_unregister): ... here. Call it.
7091 (gomp_unload_device): New.
7092 * libgomp.h (gomp_unload_device): Declare.
7093 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
7094 mem maps.
7095
7096 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
7097
7098 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
7099 wait=-specific if.
7100 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
7101 !=0 condition.
7102 (goacc_waits): Move !num_waits handling to ...
7103 (GOACC_wait): ... here, the only caller that might have zero waits.
7104
7105 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
7106 (struct ptx_image_data): Move earlier, add fns field.
7107 (struct ptx_device): Add images and image_lock fields.
7108 (ptx_images, ptx_image_lock): Delete.
7109 (nvptx_open_device): Initialize images and image_lock fields.
7110 (nvptx_close_device): Destroy image_lock.
7111 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
7112 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
7113 fields.
7114
7115 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
7116
7117 * target.c (GOMP_offload_register): Use int for device type arg.
7118 (GOMP_offload_unregister): Likewise.
7119
7120 * target.c (struct_offload_image_descr): Constify host_table.
7121 (gomp_offload_image_to_device): Likewise.
7122 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
7123
7124 * libgomp.h (gomp_device_descr): Constify target data arguments.
7125 * target.c (struct offload_image_descr): Constify target_data.
7126 (gomp_offload_image_to_device): Likewise.
7127 (GOMP_offload_register): Likewise.
7128 (GOMP_offload_unregister): Likewise.
7129 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
7130 GOMP_OFFLOAD_unload_image): Constify target data.
7131 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
7132 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
7133
7134 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
7135
7136 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
7137 Workaround driver library const error.
7138 (struct nvptx_tdata, nvptx_tdata_t): New.
7139 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
7140 type.
7141
7142 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
7143
7144 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
7145 of EPS parameter from integer to real.
7146 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
7147 type of EPS parameter from integer to real.
7148
7149 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
7150
7151 * team.c (get_last_team): New.
7152 (gomp_new_team): Recycle last non-nested team if possible.
7153 (gomp_team_end): Move team work share list free lock destruction
7154 to ...
7155 (free_team): ... here.
7156
7157 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
7158
7159 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
7160 and ref from int to double. Replaced their comparison with
7161 an inequality of their difference and EPS.
7162 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
7163 comparison of pri and a reference number with an inequality of their
7164 difference and EPS.
7165 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
7166 the comparison of sum and sum_ref with an inequality of their
7167 difference and EPS.
7168 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
7169 the comparison of pri and a reference number with an inequality of
7170 their difference and EPS.
7171
7172 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
7173
7174 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
7175 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
7176 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
7177 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
7178 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
7179 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
7180 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
7181 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
7182 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
7183 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
7184 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
7185 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
7186 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
7187 variables.
7188 (vec_mult): Likewise. Add #pragma omp taskwait.
7189 (main): Adjust caller.
7190 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
7191 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
7192 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
7193 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
7194 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
7195 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
7196 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
7197 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
7198 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
7199 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
7200 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
7201 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
7202 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
7203 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
7204 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
7205 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
7206 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
7207 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
7208 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
7209 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
7210 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
7211 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
7212 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
7213 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
7214 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
7215 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
7216 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
7217 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
7218 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
7219 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
7220 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
7221 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
7222 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
7223 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
7224 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
7225 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
7226 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
7227 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
7228 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
7229 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
7230 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
7231 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
7232 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
7233 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
7234 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
7235 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
7236 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
7237 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
7238 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
7239 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
7240 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
7241 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
7242 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
7243 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
7244 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
7245 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
7246 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
7247 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
7248 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
7249 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
7250 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
7251 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
7252 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
7253 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
7254 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
7255 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
7256 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
7257 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
7258 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
7259 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
7260 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
7261 (vec_mult): Add !$omp taskwait.
7262 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
7263 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
7264 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
7265 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
7266 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
7267 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
7268 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
7269 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
7270 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
7271 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
7272 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
7273 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
7274 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
7275 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
7276 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
7277 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
7278 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
7279 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
7280 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
7281 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
7282 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
7283 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
7284 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
7285 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
7286 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
7287 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
7288 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
7289 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
7290 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
7291 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
7292 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
7293 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
7294 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
7295 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
7296 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
7297 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
7298 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
7299 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
7300 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
7301 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
7302 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
7303 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
7304 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
7305 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
7306 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
7307 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
7308 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
7309 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
7310 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
7311 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
7312 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
7313 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
7314 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
7315 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
7316 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
7317 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
7318 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
7319 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
7320 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
7321 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
7322 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
7323 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
7324 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
7325 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
7326 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
7327 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
7328 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
7329
7330 2015-07-10 Tom de Vries <tom@codesourcery.com>
7331
7332 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
7333 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
7334
7335 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
7336
7337 PR libgomp/65099
7338 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
7339 in a 64-bit configuration.
7340 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
7341 offloading testing if no such device is available.
7342 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7343 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7344
7345 2015-07-08 Tom de Vries <tom@codesourcery.com>
7346
7347 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
7348 second call to f.
7349 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7350
7351 2015-07-07 Tom de Vries <tom@codesourcery.com>
7352
7353 PR tree-optimization/66642
7354 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
7355 iteration count case.
7356 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
7357 function, factor out of ...
7358 (main): ... here. Test low iteration count case.
7359
7360 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
7361
7362 * libgomp.h (gomp_thread_pool): Comment last_team field.
7363
7364 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
7365
7366 * testsuite/libgomp.c++/pr66702-1.C: Require
7367 vect_simd_clones effective target.
7368 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
7369
7370 2015-06-30 Tom de Vries <tom@codesourcery.com>
7371
7372 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7373 already set. Use DEFAULT_CFLAGS in dg-runtest.
7374 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
7375 "-O2".
7376
7377 2015-06-30 Tom de Vries <tom@codesourcery.com>
7378
7379 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7380 already set. Use DEFAULT_CFLAGS in dg-runtest.
7381 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
7382 * testsuite/libgomp.c++/pr64824.C: Same.
7383 * testsuite/libgomp.c++/pr64868.C: Same.
7384 * testsuite/libgomp.c++/pr66199-1.C: Same.
7385 * testsuite/libgomp.c++/pr66199-2.C: Same.
7386 * testsuite/libgomp.c++/target-2.C: Same.
7387 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
7388 -std=<standard> option.
7389 * testsuite/libgomp.c++/udr-11.C: Same.
7390 * testsuite/libgomp.c++/udr-12.C: Same.
7391 * testsuite/libgomp.c++/udr-13.C: Same.
7392 * testsuite/libgomp.c++/udr-14.C: Same.
7393 * testsuite/libgomp.c++/udr-15.C: Same.
7394 * testsuite/libgomp.c++/udr-16.C: Same.
7395 * testsuite/libgomp.c++/udr-17.C: Same.
7396 * testsuite/libgomp.c++/udr-18.C: Same.
7397 * testsuite/libgomp.c++/udr-19.C: Same.
7398 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
7399 * testsuite/libgomp.c++/simd-1.C: Same.
7400 * testsuite/libgomp.c++/simd-2.C: Same.
7401 * testsuite/libgomp.c++/simd-3.C: Same.
7402 * testsuite/libgomp.c++/simd-4.C: Same.
7403 * testsuite/libgomp.c++/simd-5.C: Same.
7404 * testsuite/libgomp.c++/simd-6.C: Same.
7405 * testsuite/libgomp.c++/simd-7.C: Same.
7406 * testsuite/libgomp.c++/simd-8.C: Same.
7407 * testsuite/libgomp.c++/simd-9.C: Same.
7408 * testsuite/libgomp.c++/simd10.C: Same.
7409 * testsuite/libgomp.c++/simd11.C: Same.
7410 * testsuite/libgomp.c++/simd12.C: Same.
7411 * testsuite/libgomp.c++/simd13.C: Same.
7412
7413 2015-06-30 Jakub Jelinek <jakub@redhat.com>
7414
7415 PR middle-end/66702
7416 * testsuite/libgomp.c++/pr66702-1.C: New test.
7417 * testsuite/libgomp.c++/pr66702-2.C: New test.
7418
7419 2015-06-30 Tom de Vries <tom@codesourcery.com>
7420
7421 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
7422 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
7423 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
7424 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
7425
7426 2015-06-30 Tom de Vries <tom@codesourcery.com>
7427
7428 PR tree-optimization/66652
7429 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
7430 using restrict pointers.
7431 (main): Add arguments to calls to f.
7432 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7433
7434 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
7435
7436 * configure.ac: Fix check for header <sys/sysctl.h>.
7437 * configure: Regenerate.
7438 * config.h.in: Likewise.
7439
7440 2015-06-23 Tom de Vries <tom@codesourcery.com>
7441
7442 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
7443 abort.
7444 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
7445
7446 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
7447
7448 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
7449 acc_device_nvidia.
7450
7451 PR libgomp/66518
7452 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
7453 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7454
7455 2015-06-15 Tom de Vries <tom@codesourcery.com>
7456
7457 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
7458 dg-additional-options for any remaining options.
7459 * testsuite/libgomp.c/atomic-2.c: Same.
7460 * testsuite/libgomp.c/atomic-4.c: Same.
7461 * testsuite/libgomp.c/atomic-5.c: Same.
7462 * testsuite/libgomp.c/atomic-6.c: Same.
7463 * testsuite/libgomp.c/autopar-1.c: Same.
7464 * testsuite/libgomp.c/copyin-1.c: Same.
7465 * testsuite/libgomp.c/copyin-2.c: Same.
7466 * testsuite/libgomp.c/copyin-3.c: Same.
7467 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
7468 * testsuite/libgomp.c/nestedfn-5.c: Same.
7469 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
7470 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
7471 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
7472 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7473 * testsuite/libgomp.c/pr32362-1.c: Same.
7474 * testsuite/libgomp.c/pr32362-2.c: Same.
7475 * testsuite/libgomp.c/pr32362-3.c: Same.
7476 * testsuite/libgomp.c/pr39591-1.c: Same.
7477 * testsuite/libgomp.c/pr39591-2.c: Same.
7478 * testsuite/libgomp.c/pr39591-3.c: Same.
7479 * testsuite/libgomp.c/pr58392.c: Same.
7480 * testsuite/libgomp.c/pr58756.c: Same.
7481 * testsuite/libgomp.c/simd-1.c: Same.
7482 * testsuite/libgomp.c/simd-10.c: Same.
7483 * testsuite/libgomp.c/simd-11.c: Same.
7484 * testsuite/libgomp.c/simd-12.c: Same.
7485 * testsuite/libgomp.c/simd-13.c: Same.
7486 * testsuite/libgomp.c/simd-14.c: Same.
7487 * testsuite/libgomp.c/simd-15.c: Same.
7488 * testsuite/libgomp.c/simd-2.c: Same.
7489 * testsuite/libgomp.c/simd-3.c: Same.
7490 * testsuite/libgomp.c/simd-4.c: Same.
7491 * testsuite/libgomp.c/simd-5.c: Same.
7492 * testsuite/libgomp.c/simd-6.c: Same.
7493 * testsuite/libgomp.c/simd-7.c: Same.
7494 * testsuite/libgomp.c/simd-8.c: Same.
7495 * testsuite/libgomp.c/simd-9.c: Same.
7496
7497 2015-06-15 Tom de Vries <tom@codesourcery.com>
7498
7499 * testsuite/libgomp.c/pr35625.c: Fix typo.
7500
7501 2015-06-15 Tom de Vries <tom@codesourcery.com>
7502
7503 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
7504 in dg-options.
7505 * testsuite/libgomp.c/atomic-3.c: Same.
7506 * testsuite/libgomp.c/debug-1.c: Same.
7507 * testsuite/libgomp.c/nqueens-1.c: Same.
7508 * testsuite/libgomp.c/pr26171.c: Same.
7509 * testsuite/libgomp.c/pr48591.c: Same.
7510 * testsuite/libgomp.c/pr64824.c: Same.
7511 * testsuite/libgomp.c/pr64868.c: Same.
7512 * testsuite/libgomp.c/pr66133.c: Same.
7513 * testsuite/libgomp.c/pr66199-1.c: Same.
7514 * testsuite/libgomp.c/pr66199-2.c: Same.
7515 * testsuite/libgomp.c/target-8.c: Same.
7516
7517 2015-06-15 Tom de Vries <tom@codesourcery.com>
7518
7519 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
7520 -std={gnu99,c99}.
7521 * testsuite/libgomp.c/for-1.c: Same.
7522 * testsuite/libgomp.c/for-2.c: Same.
7523 * testsuite/libgomp.c/for-3.c: Same.
7524 * testsuite/libgomp.c/pr35625.c: Same.
7525 * testsuite/libgomp.c/pr39154.c: Same.
7526 * testsuite/libgomp.c/simd-16.c: Same.
7527 * testsuite/libgomp.c/simd-17.c: Same.
7528
7529 2015-06-13 Tom de Vries <tom@codesourcery.com>
7530
7531 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
7532
7533 2015-06-13 Tom de Vries <tom@codesourcery.com>
7534
7535 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
7536 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7537 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
7538 (N): Define.
7539 (main): Use N instead of hardcoded constants.
7540
7541 2015-06-05 Tom de Vries <tom@codesourcery.com>
7542
7543 merge from gomp4 branch:
7544 2015-05-28 Tom de Vries <tom@codesourcery.com>
7545
7546 PR tree-optimization/65443
7547 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
7548 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
7549 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
7550
7551 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7552
7553 * testsuite/libgomp.graphite/bounds.c: Adjust for
7554 cleanup-tree-dump removal.
7555 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
7556 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7557 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7558 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7559 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7560 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7561 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7562 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7563 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7564 * testsuite/libgomp.graphite/pr41118.c: Likewise.
7565
7566 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
7567
7568 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
7569 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
7570 (futex_wake) [!__x86_64__]: Ditto.
7571
7572 2015-05-28 Julian Brown <julian@codesourcery.com>
7573
7574 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
7575 function comment. Only call gomp_fatal if new argument is true.
7576 (acc_dev_num_out_of_range): New function.
7577 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
7578 acc_dev_num_out_of_range as appropriate.
7579 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7580 (acc_get_device_num, acc_set_device_num): Update calls to
7581 resolve_device.
7582 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
7583 output.
7584
7585 2015-05-28 Julian Brown <julian@codesourcery.com>
7586
7587 PR libgomp/65742
7588 * oacc-init.c (plugin/plugin-host.h): Include.
7589 (acc_on_device): Check whether we're in an offloaded region for
7590 host_nonshm
7591 plugin. Don't use __builtin_acc_on_device.
7592 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
7593 nonshm_exec flag in thread-local data.
7594 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
7595 data for host_nonshm plugin.
7596 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
7597 for host_nonshm plugin.
7598 * plugin/plugin-host.h: New.
7599
7600 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7601
7602 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
7603
7604 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7605
7606 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
7607 Declare as int.
7608 (FUTEX_PRIVATE_FLAG): Remove L suffix.
7609 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
7610 Declare as int.
7611
7612 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7613
7614 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
7615
7616 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
7617
7618 * target.c (gomp_map_pointer): New function abstracting out
7619 GOMP_MAP_POINTER handling.
7620 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
7621 gomp_map_pointer().
7622
7623 2015-05-19 Jakub Jelinek <jakub@redhat.com>
7624
7625 PR middle-end/66199
7626 * testsuite/libgomp.c/pr66199-1.c: New test.
7627 * testsuite/libgomp.c/pr66199-2.c: New test.
7628 * testsuite/libgomp.c++/pr66199-1.C: New test.
7629 * testsuite/libgomp.c++/pr66199-2.C: New test.
7630 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
7631 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
7632
7633 2015-05-19 Julian Brown <julian@codesourcery.com>
7634
7635 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
7636 on cuInit failure.
7637
7638 2015-05-13 Jakub Jelinek <jakub@redhat.com>
7639
7640 PR middle-end/66133
7641 * testsuite/libgomp.c/pr66133.c: New test.
7642
7643 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
7644
7645 * Makefile.in: Regenerated with automake-1.11.6.
7646 * aclocal.m4: Likewise.
7647 * config.h.in: Likewise.
7648 * configure: Likewise.
7649 * testsuite/Makefile.in: Likewise.
7650
7651 2015-05-08 Jason Merrill <jason@redhat.com>
7652
7653 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
7654 _Complex.
7655
7656 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
7657
7658 2015-05-06 Julian Brown <julian@codesourcery.com>
7659
7660 * oacc-init.c (acc_device_lock): Add explanatory comment.
7661 (resolve_device): Add comment about locking requirement.
7662 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
7663 gomp_init_device and gomp_fini_device calls.
7664 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7665 (acc_get_device_num, acc_set_device_num): Add locking around
7666 resolve_device and gomp_init_device calls.
7667
7668 2015-05-06 Julian Brown <julian@codesourcery.com>
7669
7670 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
7671 goacc_thread_lock on error paths.
7672 * oacc-mem.c (lookup_host): Remove locking from function. Note
7673 locking requirement for caller in function comment.
7674 (lookup_dev): Likewise.
7675 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
7676 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
7677 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7678 Add locking.
7679
7680 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
7681
7682 PR testsuite/65205
7683 PR libgomp/65993
7684 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
7685 don't expect "0x" prefix for "%p" format specifier, don't expect
7686 "(nil)" for NULL pointer.
7687 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7688 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7689 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7690 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7691 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7692 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7693 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7694 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7695 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7696 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7697 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7698 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7699 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7700 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7701 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7702 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7703 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7704 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7705 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7706 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7707 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7708 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7709 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7710 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7711 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7712 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7713 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7714 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7715 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
7716 accurately specify what we're looking for.
7717 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7718 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7719 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7720 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7721 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7722
7723 2015-04-30 James Norris <jnorris@codesourcery.com>
7724
7725 PR testsuite/65205
7726 * testsuite/lib/libgomp.exp
7727 (check_effective_target_openacc_host_selected)
7728 (check_effective_target_openacc_host_nonshm_selected): New
7729 procedures.
7730 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
7731 dg-shouldfail.
7732 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7733 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7734 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7735 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7736 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7737 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7738 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7739 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7740 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7741 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7742 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7743 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7744 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7745 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7746 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7747 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7748 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7749 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7750 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7751 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7752 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7753 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7754 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7755 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7756 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7757 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7758 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7759 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7760 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7761 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7762 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7763 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7764 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7765 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7766 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7767 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7768 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7769 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7770 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7771 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7772 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7773 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7774 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7775
7776 2015-04-08 Julian Brown <julian@codesourcery.com>
7777
7778 * libgomp.h (target_mem_desc: Remove mem_map field.
7779 (acc_dispatch_t): Remove open_device_func, close_device_func,
7780 get_device_num_func, set_device_num_func, target_data members.
7781 Change create_thread_data_func argument to device number instead of
7782 generic pointer.
7783 * oacc-async.c (assert.h): Include.
7784 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
7785 (acc_wait_all, acc_wait_all_async): Use current host thread's
7786 active device, not base_dev.
7787 * oacc-cuda.c (acc_get_current_cuda_device)
7788 (acc_get_current_cuda_context, acc_get_cuda_stream)
7789 (acc_set_cuda_stream): Likewise.
7790 * oacc-host.c (host_dispatch): Don't set open_device_func,
7791 close_device_func, get_device_num_func or set_device_num_func.
7792 * oacc-init.c (base_dev, init_key): Remove.
7793 (cached_base_dev): New.
7794 (name_of_acc_device_t): New.
7795 (acc_init_1): Initialise default-numbered device, not zeroth.
7796 (acc_shutdown_1): Close all devices of a given type.
7797 (goacc_destroy_thread): Don't use base_dev.
7798 (lazy_open, lazy_init, lazy_init_and_open): Remove.
7799 (goacc_attach_host_thread_to_device): New.
7800 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
7801 (acc_get_num_devices): Don't use base_dev.
7802 (acc_set_device_type): Reimplement.
7803 (acc_get_device_type): Don't use base_dev.
7804 (acc_get_device_num): Tweak logic.
7805 (acc_set_device_num): Likewise.
7806 (acc_on_device): Use acc_get_device_type.
7807 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
7808 (goacc_lazy_initialize): Reimplement with acc_init and
7809 goacc_attach_host_thread_to_device.
7810 * oacc-int.h (goacc_thread): Add base_dev field.
7811 (base_dev): Remove extern declaration.
7812 (goacc_attach_host_thread_to_device): Add prototype.
7813 * oacc-mem.c (acc_malloc): Use current thread's device instead of
7814 base_dev.
7815 (acc_free): Likewise.
7816 (acc_memcpy_to_device): Likewise.
7817 (acc_memcpy_from_device): Likewise.
7818 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
7819 goacc_lazy_initialize (throughout).
7820 (GOACC_parallel): Use tgt_offset to locate target functions.
7821 * target.c (gomp_map_vars): Don't set tgt->mem_map.
7822 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
7823 (gomp_load_plugin_for_device): Remove open_device, close_device,
7824 get_device_num, set_device_num openacc hook initialisation. Don't set
7825 openacc.target_data.
7826 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
7827 (GOMP_OFFLOAD_openacc_close_device)
7828 (GOMP_OFFLOAD_openacc_get_device_num)
7829 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
7830 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
7831 to int.
7832 * plugin/plugin-nvptx.c (ptx_inited): Remove.
7833 (instantiated_devices, ptx_dev_lock): New.
7834 (struct ptx_image_data): New.
7835 (ptx_devices, ptx_images, ptx_image_lock): New.
7836 (fini_streams_for_device): Reorder cuStreamDestroy call.
7837 (nvptx_get_num_devices): Remove forward declaration.
7838 (nvptx_init): Change return type to bool.
7839 (nvptx_fini): Remove.
7840 (nvptx_attach_host_thread_to_device): New.
7841 (nvptx_open_device): Return struct ptx_device* instead of void*.
7842 (nvptx_close_device): Change argument type to struct ptx_device*,
7843 return type to void.
7844 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
7845 (kernel_target_data, kernel_host_table): Remove static globals.
7846 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
7847 (GOMP_OFFLOAD_init_device): Reimplement.
7848 (GOMP_OFFLOAD_fini_device): Likewise.
7849 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
7850 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
7851 (GOMP_OFFLOAD_host2dev): Use ORD argument.
7852 (GOMP_OFFLOAD_openacc_open_device)
7853 (GOMP_OFFLOAD_openacc_close_device)
7854 (GOMP_OFFLOAD_openacc_set_device_num)
7855 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
7856 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
7857 (device number).
7858
7859 testsuite/
7860 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
7861
7862 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
7863
7864 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
7865 * libgomp.h (struct gomp_memory_mapping): Remove.
7866 (struct target_mem_desc): Change type of mem_map from
7867 gomp_memory_mapping * to splay_tree_s *.
7868 (struct gomp_device_descr): Remove register_image_func, get_table_func.
7869 Add load_image_func, unload_image_func.
7870 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
7871 Remove offload_regions_registered.
7872 (gomp_init_tables): Remove.
7873 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
7874 to splay_tree_s *.
7875 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
7876 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
7877 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
7878 offload_regions_registered.
7879 Initialize load_image_func, unload_image_func, mem_map.root.
7880 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
7881 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
7882 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
7883 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
7884 gomp_memory_mapping *. Use dev's lock and splay_tree.
7885 (lookup_dev): Use dev's lock.
7886 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
7887 (acc_is_present): Likewise.
7888 (acc_map_data): Likewise.
7889 (acc_unmap_data): Likewise. Use dev's lock.
7890 (present_create_copy): Likewise.
7891 (delete_copyout): Pass dev to lookup_host instead of mem_map.
7892 (update_dev_host): Likewise.
7893 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
7894 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
7895 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
7896 (GOMP_OFFLOAD_get_table): Remove
7897 (GOMP_OFFLOAD_load_image): New function.
7898 (GOMP_OFFLOAD_unload_image): New function.
7899 * target.c (register_lock): New mutex for offload image registration.
7900 (num_devices): Do not guard with PLUGIN_SUPPORT.
7901 (gomp_realloc_unlock): New static function.
7902 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
7903 before gomp_fatal.
7904 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
7905 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
7906 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
7907 mem_map's.
7908 (gomp_unmap_vars): Likewise.
7909 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
7910 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
7911 (gomp_offload_image_to_device): New static function.
7912 (GOMP_offload_register): Add mutex lock.
7913 Call gomp_offload_image_to_device for all initialized devices.
7914 Replace gomp_realloc with gomp_realloc_unlock.
7915 (GOMP_offload_unregister): New function.
7916 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
7917 get_table_func from the plugin with calls to init_device_func and
7918 gomp_offload_image_to_device.
7919 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
7920 to splay_tree_s *.
7921 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
7922 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
7923 (GOMP_target_data): Do not call gomp_init_tables.
7924 (GOMP_target_update): Likewise. Remove argument from gomp_update.
7925 (gomp_load_plugin_for_device): Replace register_image and get_table
7926 with load_image and unload_image in DLSYM ().
7927 (gomp_register_images_for_device): Remove function.
7928 (gomp_target_init): Do not initialize current_device.mem_map.*,
7929 current_device.offload_regions_registered.
7930 Remove call to gomp_register_images_for_device.
7931 Do not free offload_images and num_offload_images.
7932
7933 2015-03-30 Jakub Jelinek <jakub@redhat.com>
7934
7935 PR fortran/65597
7936 * testsuite/libgomp.fortran/pr65597.f90: New test.
7937
7938 2015-03-27 Tom de Vries <tom@codesourcery.com>
7939
7940 PR testsuite/65594
7941 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
7942 (init, check): New function.
7943 (foo): Change return type to void.
7944 (main): Call init and check.
7945
7946 2015-03-27 Tom de Vries <tom@codesourcery.com>
7947
7948 PR testsuite/65594
7949 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
7950 (foo): Use M for non-inner loops to scale down test-case.
7951
7952 2015-03-25 Kai Tietz <ktietz@redhat.com>
7953
7954 PR libgomp/64972
7955 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
7956 (GOACC_data_start): Likewise.
7957 * target.c (gomp_map_vars): Likewise.
7958
7959 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
7960
7961 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
7962 hppa*-*-hpux*.
7963
7964 2015-03-19 Jakub Jelinek <jakub@redhat.com>
7965
7966 * testsuite/libgomp.c/target-10.c: New test.
7967 * testsuite/libgomp.c++/target-4.C: New test.
7968
7969 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
7970
7971 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
7972 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
7973
7974 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
7975
7976 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
7977 * configure.ac (*-*-rtems*): Assume Pthread is supported.
7978 (pthread.h): Check for this header file.
7979 * configure: Regenerate.
7980
7981 2015-02-25 Tom de Vries <tom@codesourcery.com>
7982
7983 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
7984 (check_reduction_op, check_reduction_macro, max, min):
7985 Declare.
7986 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
7987 function.
7988 (main): Use new functions.
7989
7990 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
7991
7992 * target.c (gomp_load_plugin_for_device): Use const char * instead of
7993 char * for variables holding dlerror return values.
7994 (DLSYM_OPT): Ditto.
7995
7996 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
7997
7998 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
7999
8000 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
8001 Cesar Philippidis <cesar@codesourcery.com>
8002
8003 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
8004 GOACC_ctaid, and GOACC_nctaid routines.
8005
8006 2015-02-11 Jakub Jelinek <jakub@redhat.com>
8007
8008 PR c/64824
8009 * testsuite/libgomp.c/atomic-18.c: New test.
8010 * testsuite/libgomp.c++/atomic-16.C: New test.
8011
8012 2015-02-04 Jakub Jelinek <jakub@redhat.com>
8013
8014 PR c/64824
8015 PR c/64868
8016 * testsuite/libgomp.c/pr64824.c: New test.
8017 * testsuite/libgomp.c/pr64868.c: New test.
8018 * testsuite/libgomp.c++/pr64824.C: New test.
8019 * testsuite/libgomp.c++/pr64868.C: New test.
8020
8021 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
8022
8023 PR libgomp/64635
8024 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
8025 Link with -lpthread.
8026 * config/aix/plugin-suffix.h: Delete.
8027
8028 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
8029
8030 PR libgomp/64635
8031 * configure.tgt (*-*-aix*): Use config_path "aix posix".
8032 (*-*-darwin*): Use config_path "bsd darwin posix".
8033 (*-*-hpux*): Use config_path "hpux posix".
8034 * target.c: Add include of plugin-suffix.h and use
8035 SONAME_SUFFIX macro.
8036 * config/aix/plugin-suffix.h: New file.
8037 * config/darwin/plugin-suffix.h: New file.
8038 * config/hpux/plugin-suffix.h: New file.
8039 * config/posix/plugin-suffix.h: New file.
8040
8041 2015-01-23 Jakub Jelinek <jakub@redhat.com>
8042
8043 PR middle-end/64734
8044 * libgomp.c/pr64734.c: New test.
8045
8046 2015-01-23 Tom de Vries <tom@codesourcery.com>
8047
8048 PR libgomp/64672
8049 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
8050
8051 2015-01-23 Tom de Vries <tom@codesourcery.com>
8052
8053 PR libgomp/64707
8054 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
8055 dg-options.
8056
8057 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
8058
8059 PR libgomp/64625
8060 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
8061 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
8062 formal parameter. Update all users.
8063 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
8064 Document unused formal parameter.
8065
8066 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
8067
8068 * oacc-parallel.c: Don't include <alloca.h>.
8069 (GOACC_parallel): Use gomp_alloca instead of alloca.
8070
8071 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
8072
8073 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
8074
8075 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
8076 James Norris <jnorris@codesourcery.com>
8077 Tom de Vries <tom@codesourcery.com>
8078 Julian Brown <julian@codesourcery.com>
8079 Cesar Philippidis <cesar@codesourcery.com>
8080 Nathan Sidwell <nathan@codesourcery.com>
8081 Tobias Burnus <burnus@net-b.de>
8082
8083 * Makefile.am (search_path): Add $(top_srcdir)/../include.
8084 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
8085 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
8086 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
8087 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
8088 Include $(top_srcdir)/plugin/Makefrag.am.
8089 (nodist_libsubinclude_HEADERS): Add openacc.h.
8090 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
8091 openacc.f90, openacc.mod, openacc_kinds.mod.
8092 (omp_lib.mod): Generalize into...
8093 (%.mod): ... this new rule.
8094 (openacc_kinds.mod, openacc.mod): New rules.
8095 * plugin/configfrag.ac: New file.
8096 * configure.ac: Move plugin/offloading support into it. Include
8097 it. Instantiate testsuite/libgomp-test-support.pt.exp.
8098 * plugin/Makefrag.am: New file.
8099 * testsuite/Makefile.am (OFFLOAD_TARGETS)
8100 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
8101 export.
8102 (libgomp-test-support.exp): New rule.
8103 (all-local): Depend on it.
8104 * Makefile.in: Regenerate.
8105 * testsuite/Makefile.in: Regenerate.
8106 * config.h.in: Likewise.
8107 * configure: Likewise.
8108 * configure.tgt: Harden shell syntax.
8109 * env.c: Include "oacc-int.h".
8110 (parse_acc_device_type): New function.
8111 (gomp_debug_var, goacc_device_type, goacc_device_num): New
8112 variables.
8113 (initialize_env): Initialize those. Call
8114 goacc_runtime_initialize.
8115 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
8116 (gomp_fatal): Call gomp_vfatal.
8117 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
8118 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
8119 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
8120 (splay_tree_node, splay_tree, splay_tree_key)
8121 (struct target_mem_desc, struct splay_tree_key_s)
8122 (struct gomp_memory_mapping, struct acc_dispatch_t)
8123 (struct gomp_device_descr, gomp_acc_insert_pointer)
8124 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
8125 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
8126 (gomp_free_memmap, gomp_fini_device): New declarations.
8127 (gomp_vdebug, gomp_debug): New macros.
8128 Include "splay-tree.h".
8129 * libgomp.map (OACC_2.0): New symbol version. Use for
8130 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
8131 acc_set_device_type_h_, acc_get_device_type,
8132 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
8133 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
8134 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
8135 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
8136 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
8137 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
8138 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
8139 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
8140 acc_copyin_array_h_, acc_present_or_copyin,
8141 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
8142 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
8143 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
8144 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
8145 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
8146 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
8147 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
8148 acc_update_device, acc_update_device_32_h_,
8149 acc_update_device_64_h_, acc_update_device_array_h_,
8150 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
8151 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
8152 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
8153 acc_is_present_64_h_, acc_is_present_array_h_,
8154 acc_memcpy_to_device, acc_memcpy_from_device,
8155 acc_get_current_cuda_device, acc_get_current_cuda_context,
8156 acc_get_cuda_stream, acc_set_cuda_stream.
8157 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
8158 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
8159 GOACC_update, GOACC_wait, GOACC_get_thread_num,
8160 GOACC_get_num_threads.
8161 (GOMP_PLUGIN_1.0): New symbol version. Use for
8162 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
8163 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
8164 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
8165 GOMP_PLUGIN_acc_thread.
8166 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
8167 environment variable.
8168 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
8169 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
8170 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
8171 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
8172 (splay_tree_remove): New declarations.
8173 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
8174 (splay_tree_remove, splay_tree_lookup): Move into...
8175 * splay-tree.c: ... this new file.
8176 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
8177 (splay_tree_node, splay_tree, splay_tree_key)
8178 (struct target_mem_desc, struct splay_tree_key_s)
8179 (struct gomp_device_descr): Don't declare.
8180 (num_devices_openmp): New variable.
8181 (gomp_get_num_devices ): Use it.
8182 (gomp_init_targets_once): New function.
8183 (gomp_get_num_devices ): Use it.
8184 (get_kind, gomp_copy_from_async, gomp_free_memmap)
8185 (gomp_fini_device, gomp_register_image_for_device): New functions.
8186 (gomp_map_vars): Add devaddrs parameter.
8187 (gomp_update): Add mm parameter.
8188 (gomp_init_device): Move most of it into...
8189 (gomp_init_tables): ... this new function.
8190 (gomp_register_images_for_device): Remove function.
8191 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
8192 Make them hidden instead of static.
8193 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
8194 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
8195 (GOMP_target_end_data, GOMP_target_update)
8196 (gomp_load_plugin_for_device, gomp_target_init): Update for
8197 OpenACC changes.
8198 * oacc-async.c: New file.
8199 * oacc-cuda.c: Likewise.
8200 * oacc-host.c: Likewise.
8201 * oacc-init.c: Likewise.
8202 * oacc-int.h: Likewise.
8203 * oacc-mem.c: Likewise.
8204 * oacc-parallel.c: Likewise.
8205 * oacc-plugin.c: Likewise.
8206 * oacc-plugin.h: Likewise.
8207 * oacc-ptx.h: Likewise.
8208 * openacc.f90: Likewise.
8209 * openacc.h: Likewise.
8210 * openacc_lib.h: Likewise.
8211 * plugin/plugin-host.c: Likewise.
8212 * plugin/plugin-nvptx.c: Likewise.
8213 * libgomp-plugin.c: Likewise.
8214 * libgomp-plugin.h: Likewise.
8215 * libgomp_target.h: Remove file after merging content into the
8216 former file. Update all users.
8217 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
8218 (offload_targets_s, offload_targets_s_openacc): New variables.
8219 (check_effective_target_openacc_nvidia_accel_present)
8220 (check_effective_target_openacc_nvidia_accel_selected): New
8221 procedures.
8222 (libgomp_init): Update for OpenACC changes.
8223 * testsuite/libgomp-test-support.exp.in: New file.
8224 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
8225 * testsuite/libgomp.oacc-c/c.exp: Likewise.
8226 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
8227 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
8228 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
8229 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
8230 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
8231 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
8232 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
8233 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
8234 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
8235 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
8236 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
8237 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
8238 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
8239 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
8240 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
8241 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
8242 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
8243 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
8244 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
8245 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
8246 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
8247 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
8248 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
8249 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
8250 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
8251 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
8252 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
8253 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
8254 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
8255 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
8256 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
8257 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
8258 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
8259 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
8260 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
8261 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
8262 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
8263 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
8264 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
8265 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
8266 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
8267 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
8268 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
8269 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
8270 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
8271 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
8272 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8273 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8274 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8275 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8276 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8277 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8278 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8279 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8280 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8281 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8282 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8283 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
8284 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8285 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
8286 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8287 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8288 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8289 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
8290 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
8291 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8292 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8293 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8294 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
8295 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8296 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8297 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8298 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
8299 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
8300 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8301 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8302 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
8303 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
8304 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
8305 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
8306 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8307 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8308 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8309 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
8310 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
8311 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8312 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8313 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
8314 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
8315 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
8316 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
8317 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8318 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8319 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8320 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8321 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
8322 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8323 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8324 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
8325 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
8326 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
8327 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8328 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
8329 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
8330 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
8331 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
8332 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
8333 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8334 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
8335 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8336 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8337 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
8338 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8339 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8340 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
8341 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8342 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
8343 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
8344 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
8345 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
8346 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
8347 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
8348 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8349 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
8350 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8351 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
8352 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
8353 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
8354 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
8355 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
8356 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8357 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
8358 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
8359 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8360 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8361 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8362 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8363 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
8364 Likewise.
8365 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
8366 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
8367 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
8368 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8369 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
8370 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8371 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8372 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8373 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8374 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8375 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8376 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8377 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8378 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
8379 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8380 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
8381 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
8382 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
8383 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
8384 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
8385 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
8386 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8387 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8388 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
8389 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
8390 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
8391 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8392 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8393 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8394 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8395 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8396 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8397 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8398 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8399 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
8400 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
8401 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
8402 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
8403 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
8404 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
8405 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
8406 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
8407 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
8408 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
8409 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
8410 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8411 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
8412 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
8413 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
8414 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8415 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8416 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8417 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8418 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8419 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
8420 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
8421 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
8422 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
8423 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
8424 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
8425
8426 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
8427 Julian Brown <julian@codesourcery.com>
8428 David Malcolm <dmalcolm@redhat.com>
8429
8430 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
8431 to "GNU Offloading and Multi Processing Runtime Library". Change
8432 all users.
8433 * configure: Regenerate.
8434 * libgomp.texi: Update.
8435
8436 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
8437
8438 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
8439 "$tgt_dir/lib32".
8440 * configure: Regenerate.
8441
8442 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
8443 "intelmic" in $offload_targets.
8444
8445 2015-01-05 Jakub Jelinek <jakub@redhat.com>
8446
8447 Update copyright years.
8448
8449 * libgomp.texi: Bump @copying's copyright year.
8450
8451 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8452
8453 * testsuite/lib/libgomp.exp: Load target-utils.exp.
8454 Move load of target-supports.exp earlier.
8455
8456 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
8457
8458 * testsuite/libgomp.c/target-9.c: New test.
8459
8460 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
8461
8462 * config.h.in: Regenerate.
8463 * configure: Regenerate.
8464 * configure.ac: Add GCC_CHECK_EMUTLS.
8465 * libgomp.h: Add check for USE_EMUTLS: this case
8466 is equal to HAVE_TLS.
8467 * team.c: Likewise.
8468
8469 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
8470
8471 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
8472
8473 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
8474 Ilya Verbin <ilya.verbin@intel.com>
8475
8476 * testsuite/libgomp.c/target-critical-1.c: New test.
8477
8478 2014-11-26 Jakub Jelinek <jakub@redhat.com>
8479
8480 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
8481 to dg-options unless expensive testing is on.
8482 (TESTITERS): Define to N if not defined.
8483 (main): Use TESTITERS instead of N.
8484 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
8485 dg-additional-options depending on whether expensive testing is on.
8486 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
8487 Decrease N to 100000 and CHUNKSZ to 10000.
8488
8489 2014-11-24 Jakub Jelinek <jakub@redhat.com>
8490
8491 PR fortran/63938
8492 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
8493 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
8494
8495 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
8496
8497 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
8498
8499 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
8500
8501 PR bootstrap/63784
8502 * configure: Regenerated.
8503
8504 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
8505
8506 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
8507 vect_simd_clones effective target.
8508 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8509
8510 2014-11-14 Jakub Jelinek <jakub@redhat.com>
8511
8512 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
8513 of 32 as block_size.
8514 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
8515 instead of 32 as block_size.
8516
8517 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8518 Ilya Verbin <ilya.verbin@intel.com>
8519
8520 * Makefile.in: Regenerate.
8521 * configure: Regenerate.
8522 * configure.ac: Set up offload_additional_options,
8523 offload_additional_lib_paths and offload_targets.
8524 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
8525 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
8526 * testsuite/Makefile.in: Regenerate.
8527 * testsuite/lib/libgomp.exp (libgomp_init): Append
8528 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
8529 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
8530 build directory to LD_LIBRARY_PATH for intelmic offload targets.
8531
8532 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8533 Ilya Verbin <ilya.verbin@intel.com>
8534 Kirill Yukhin <kirill.yukhin@intel.com>
8535 Ilya Tocar <ilya.tocar@intel.com>
8536
8537 * testsuite/lib/libgomp.exp
8538 (check_effective_target_offload_device): New.
8539 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
8540 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
8541 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
8542 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
8543 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
8544 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
8545 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
8546 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
8547 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
8548 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
8549 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
8550 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
8551 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
8552 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
8553 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
8554 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
8555 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
8556 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
8557 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
8558 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
8559 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
8560 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
8561 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
8562 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
8563 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
8564 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
8565 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
8566 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
8567 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
8568 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
8569 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
8570 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
8571 * testsuite/libgomp.c/target-7.c: Fix test.
8572 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
8573 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
8574 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
8575 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
8576 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
8577 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
8578 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
8579 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
8580 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
8581 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
8582 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
8583 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
8584 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
8585 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
8586 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
8587 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
8588 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
8589 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
8590 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8591 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
8592 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
8593 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
8594 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
8595 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
8596 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
8597 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
8598 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
8599 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
8600 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
8601 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
8602 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
8603
8604 2014-11-13 Jakub Jelinek <jakub@redhat.com>
8605 Ilya Verbin <ilya.verbin@intel.com>
8606 Thomas Schwinge <thomas@codesourcery.com>
8607 Andrey Turetskiy <andrey.turetskiy@intel.com>
8608
8609 * libgomp.map (GOMP_4.0.1): New symbol version.
8610 Add GOMP_offload_register.
8611 * libgomp_target.h: New file.
8612 * splay-tree.h: New file.
8613 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
8614 (gomp_target_init): New forward declaration.
8615 (gomp_is_initialized): New static variable.
8616 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
8617 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
8618 New structures.
8619 (offload_images, num_offload_images, devices, num_devices): New static
8620 variables.
8621 (splay_compare): New static function.
8622 (struct gomp_device_descr): New structure.
8623 (gomp_get_num_devices): Call gomp_target_init.
8624 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
8625 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
8626 (GOMP_offload_register): New function.
8627 (GOMP_target): Arrange for host callback to be performed in a separate
8628 initial thread and contention group, inheriting ICVs from
8629 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
8630 Add device initialization and lookup for target function in splay tree.
8631 (GOMP_target_data): Add device initialization and call gomp_map_vars.
8632 (GOMP_target_end_data): Call gomp_unmap_vars.
8633 (GOMP_target_update): Add device initialization and call gomp_update.
8634 (gomp_load_plugin_for_device, gomp_register_images_for_device)
8635 (gomp_target_init): New static functions.
8636
8637 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
8638 Thomas Schwinge <thomas@codesourcery.com>
8639 Ilya Verbin <ilya.verbin@intel.com>
8640 Andrey Turetskiy <andrey.turetskiy@intel.com>
8641
8642 * config.h.in: Regenerate.
8643 * configure: Regenerate.
8644 * configure.ac: Check for libdl, required for plugin support.
8645 (PLUGIN_SUPPORT): Define if plugins are supported.
8646 (enable_offload_targets): Support Intel MIC targets.
8647 (OFFLOAD_TARGETS): List of target names suitable for offloading.
8648
8649 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8650
8651 PR target/63610
8652 * configure: Regenerate.
8653
8654 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8655
8656 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
8657
8658 2014-10-06 Marek Polacek <polacek@redhat.com>
8659
8660 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
8661 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
8662 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
8663 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8664
8665 2014-10-06 Marek Polacek <polacek@redhat.com>
8666
8667 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
8668 * testsuite/libgomp.c/nqueens-1.c: Likewise.
8669 * testsuite/libgomp.c/pr26943-3.c: Likewise.
8670 * testsuite/libgomp.c/pr26943-4.c: Likewise.
8671 * testsuite/libgomp.c/pr36802-2.c: Likewise.
8672 * testsuite/libgomp.c/pr36802-3.c: Likewise.
8673 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
8674 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8675 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
8676 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
8677 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
8678 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
8679 * testsuite/libgomp.c/omp-single-1.c: Likewise.
8680 * testsuite/libgomp.c/omp-single-2.c: Likewise.
8681 * testsuite/libgomp.c/omp_matvec.c: Likewise.
8682 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
8683 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
8684 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
8685 declarations.
8686
8687 2014-10-03 Jakub Jelinek <jakub@redhat.com>
8688
8689 PR libgomp/61200
8690 * testsuite/libgomp.c/pr61200.c: New test.
8691
8692 2014-09-18 Jakub Jelinek <jakub@redhat.com>
8693
8694 PR c++/63248
8695 * testsuite/libgomp.c++/pr63248.C: New test.
8696
8697 2014-08-04 Jakub Jelinek <jakub@redhat.com>
8698
8699 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
8700 is not zero, but taskgroup->children is NULL and there are
8701 any task->children, schedule those instead of waiting.
8702 * testsuite/libgomp.c/depend-6.c: New test.
8703 * testsuite/libgomp.c/depend-7.c: New test.
8704 * testsuite/libgomp.c/depend-8.c: New test.
8705 * testsuite/libgomp.c/depend-9.c: New test.
8706 * testsuite/libgomp.c/depend-10.c: New test.
8707
8708 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8709
8710 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
8711 (struct gomp_taskwait): New type.
8712 (struct gomp_task): Add taskwait and parent_depends_on, remove
8713 in_taskwait and taskwait_sem fields.
8714 (gomp_finish_task): Don't destroy taskwait_sem.
8715 * task.c (gomp_init_task): Don't init in_taskwait, instead init
8716 taskwait and parent_depends_on.
8717 (GOMP_task): For if (0) tasks with depend clause that depend on
8718 earlier tasks don't defer them, instead call
8719 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
8720 Initialize redundant_out field, for redundant out entries just
8721 move them at the end of linked list instead of removing them
8722 completely, and set redundant_out flag instead of redundant.
8723 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
8724 that task.
8725 (gomp_task_run_post_handle_dependers): If parent is in
8726 gomp_task_maybe_wait_for_dependencies and newly runnable task
8727 is not parent_depends_on, queue it in parent->children linked
8728 list after all runnable tasks with parent_depends_on set.
8729 Adjust for addition of taskwait indirection.
8730 (gomp_task_run_post_remove_parent): If parent is in
8731 gomp_task_maybe_wait_for_dependencies and task to be removed
8732 is parent_depends_on, decrement n_depend and if needed awake
8733 parent. Adjust for addition of taskwait indirection.
8734 (GOMP_taskwait): Adjust for addition of taskwait indirection.
8735 (gomp_task_maybe_wait_for_dependencies): New function.
8736 * testsuite/libgomp.c/depend-5.c: New test.
8737
8738 2014-07-13 Tobias Burnus <burnus@net-b.de>
8739
8740 * testsuite/libgomp.fortran/pr34020.f90: Make compile
8741 with TS 18508/Fortran 2015.
8742
8743 2014-07-06 Marek Polacek <polacek@redhat.com>
8744
8745 PR c/6940
8746 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
8747
8748 2014-07-03 Jakub Jelinek <jakub@redhat.com>
8749
8750 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
8751 matches regex $lang_source_re, add $lang_include_flags to options.
8752 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
8753 * testsuite/libgomp.c++/c++.exp: Likewise.
8754 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
8755 and lang_include_flags instead of adding -fintrinsic-modules-path= to
8756 ALWAYS_CFLAGS.
8757 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
8758
8759 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
8760
8761 * testsuite/libgomp.fortran/fortran.exp: Explain
8762 gfortran-dg-runtest usage.
8763
8764 2014-06-25 Jakub Jelinek <jakub@redhat.com>
8765
8766 * testsuite/libgomp.fortran/simd5.f90: New test.
8767 * testsuite/libgomp.fortran/simd6.f90: New test.
8768 * testsuite/libgomp.fortran/simd7.f90: New test.
8769
8770 2014-06-24 Jakub Jelinek <jakub@redhat.com>
8771
8772 * testsuite/libgomp.c/for-2.c: Define SC to static for
8773 #pragma omp for simd testing.
8774 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
8775 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
8776 SC macro.
8777 * testsuite/libgomp.c/simd-14.c: New test.
8778 * testsuite/libgomp.c/simd-15.c: New test.
8779 * testsuite/libgomp.c/simd-16.c: New test.
8780 * testsuite/libgomp.c/simd-17.c: New test.
8781 * testsuite/libgomp.c++/for-10.C: Define SC to static for
8782 #pragma omp for simd testing.
8783 * testsuite/libgomp.c++/simd10.C: New test.
8784 * testsuite/libgomp.c++/simd11.C: New test.
8785 * testsuite/libgomp.c++/simd12.C: New test.
8786 * testsuite/libgomp.c++/simd13.C: New test.
8787
8788 * testsuite/libgomp.fortran/aligned1.f03: New test.
8789 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
8790 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
8791 tasks with !$omp parallel !$omp single.
8792 * testsuite/libgomp.fortran/target8.f90: New test.
8793 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
8794 not to use trim in the combiner, instead call elemental function.
8795 (fn): New elemental function.
8796 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
8797 Make elemental.
8798 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
8799 omp_in): Likewise.
8800 * testsuite/libgomp.fortran/udr12.f90: New test.
8801 * testsuite/libgomp.fortran/udr13.f90: New test.
8802 * testsuite/libgomp.fortran/udr14.f90: New test.
8803 * testsuite/libgomp.fortran/udr15.f90: New test.
8804
8805 2014-06-18 Jakub Jelinek <jakub@redhat.com>
8806
8807 * omp_lib.f90.in (openmp_version): Set to 201307.
8808 * omp_lib.h.in (openmp_version): Likewise.
8809 * testsuite/libgomp.c/target-8.c: New test.
8810 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
8811 and inbranch clauses.
8812 * testsuite/libgomp.fortran/depend-3.f90: New test.
8813 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
8814 openmp_version.
8815 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8816 * testsuite/libgomp.fortran/target1.f90: New test.
8817 * testsuite/libgomp.fortran/target2.f90: New test.
8818 * testsuite/libgomp.fortran/target3.f90: New test.
8819 * testsuite/libgomp.fortran/target4.f90: New test.
8820 * testsuite/libgomp.fortran/target5.f90: New test.
8821 * testsuite/libgomp.fortran/target6.f90: New test.
8822 * testsuite/libgomp.fortran/target7.f90: New test.
8823
8824 2014-06-10 Jakub Jelinek <jakub@redhat.com>
8825
8826 PR fortran/60928
8827 * testsuite/libgomp.fortran/allocatable9.f90: New test.
8828 * testsuite/libgomp.fortran/allocatable10.f90: New test.
8829 * testsuite/libgomp.fortran/allocatable11.f90: New test.
8830 * testsuite/libgomp.fortran/allocatable12.f90: New test.
8831 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
8832 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
8833 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
8834 * testsuite/libgomp.fortran/associate1.f90: New test.
8835 * testsuite/libgomp.fortran/associate2.f90: New test.
8836 * testsuite/libgomp.fortran/procptr1.f90: New test.
8837
8838 2014-06-06 Jakub Jelinek <jakub@redhat.com>
8839
8840 * testsuite/libgomp.fortran/simd1.f90: New test.
8841 * testsuite/libgomp.fortran/udr1.f90: New test.
8842 * testsuite/libgomp.fortran/udr2.f90: New test.
8843 * testsuite/libgomp.fortran/udr3.f90: New test.
8844 * testsuite/libgomp.fortran/udr4.f90: New test.
8845 * testsuite/libgomp.fortran/udr5.f90: New test.
8846 * testsuite/libgomp.fortran/udr6.f90: New test.
8847 * testsuite/libgomp.fortran/udr7.f90: New test.
8848 * testsuite/libgomp.fortran/udr8.f90: New test.
8849 * testsuite/libgomp.fortran/udr9.f90: New test.
8850 * testsuite/libgomp.fortran/udr10.f90: New test.
8851 * testsuite/libgomp.fortran/udr11.f90: New test.
8852
8853 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
8854
8855 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
8856 vect_simd_clones effective target.
8857 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
8858
8859 2014-05-21 Jakub Jelinek <jakub@redhat.com>
8860
8861 PR middle-end/61252
8862 * testsuite/libgomp.c++/simd-9.C: New test.
8863
8864 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
8865
8866 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
8867 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
8868 texts according to their @menu entry positions.
8869
8870 2014-05-11 Jakub Jelinek <jakub@redhat.com>
8871
8872 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
8873 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
8874 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
8875 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
8876 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
8877 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
8878 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
8879 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
8880 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
8881 * testsuite/libgomp.fortran/depend-1.f90: New test.
8882 * testsuite/libgomp.fortran/depend-2.f90: New test.
8883 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
8884 * testsuite/libgomp.fortran/simd1.f90: New test.
8885 * testsuite/libgomp.fortran/simd2.f90: New test.
8886 * testsuite/libgomp.fortran/simd3.f90: New test.
8887 * testsuite/libgomp.fortran/simd4.f90: New test.
8888 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
8889
8890 2014-05-02 Jakub Jelinek <jakub@redhat.com>
8891
8892 * testsuite/libgomp.c/simd-10.c: New test.
8893 * testsuite/libgomp.c/simd-11.c: New test.
8894 * testsuite/libgomp.c/simd-12.c: New test.
8895 * testsuite/libgomp.c/simd-13.c: New test.
8896
8897 2014-04-24 Jakub Jelinek <jakub@redhat.com>
8898
8899 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
8900 atomic type clauses in any order and optional comma in between.
8901 * testsuite/libgomp.c++/atomic-15.C: Likewise.
8902 * testsuite/libgomp.c/atomic-17.c: Likewise.
8903
8904 * testsuite/libgomp.c/simd-7.c: New test.
8905 * testsuite/libgomp.c/simd-8.c: New test.
8906 * testsuite/libgomp.c/simd-9.c: New test.
8907 * testsuite/libgomp.c/loop-16.c: New test.
8908
8909 2014-04-02 Richard Henderson <rth@redhat.com>
8910
8911 * config/linux/futex.h (futex_wait): Get error value from errno.
8912 (futex_wake): Likewise.
8913
8914 2014-03-25 Jakub Jelinek <jakub@redhat.com>
8915
8916 PR c++/60331
8917 * testsuite/libgomp.c++/udr-11.C: New test.
8918 * testsuite/libgomp.c++/udr-12.C: New test.
8919 * testsuite/libgomp.c++/udr-13.C: New test.
8920 * testsuite/libgomp.c++/udr-14.C: New test.
8921 * testsuite/libgomp.c++/udr-15.C: New test.
8922 * testsuite/libgomp.c++/udr-16.C: New test.
8923 * testsuite/libgomp.c++/udr-17.C: New test.
8924 * testsuite/libgomp.c++/udr-18.C: New test.
8925 * testsuite/libgomp.c++/udr-19.C: New test.
8926
8927 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8928
8929 Update copyright years
8930
8931 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8932
8933 * hashtab.h: Use the standard form for the copyright notice.
8934
8935 2014-01-02 Tobias Burnus <burnus@net-b.de>
8936
8937 * libgomp.texi: Bump @copying's copyright year.
8938
8939 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
8940
8941 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
8942 alloca () with __builtin_alloca ().
8943 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
8944 * testsuite/libgomp.c/lock-3.c: Likewise.
8945 * testsuite/libgomp.c/pr48591.c: Likewise.
8946
8947 2013-12-17 Jakub Jelinek <jakub@redhat.com>
8948
8949 PR testsuite/59534
8950 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
8951 comparisons.
8952
8953 2013-12-16 Jakub Jelinek <jakub@redhat.com>
8954
8955 PR libgomp/58756
8956 * testsuite/libgomp.c/pr58756.c: New test.
8957
8958 2013-12-12 Jakub Jelinek <jakub@redhat.com>
8959
8960 PR libgomp/59467
8961 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
8962 !$omp parallel.
8963
8964 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
8965
8966 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
8967 ALWAYS_CFLAGS.
8968 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
8969 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
8970 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
8971 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
8972 Likewise.
8973
8974 * libgomp_g.h: Include <stddef.h> for size_t.
8975
8976 * libgomp.spec.in: Update comment about libgomp's dependencies.
8977 * configure.ac: Likewise.
8978 * configure: Regenerate.
8979
8980 2013-10-16 Tobias Burnus <burnus@net-b.de>
8981
8982 * libgomp.texi: (Runtime Library Routines): Update references for
8983 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
8984 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
8985 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
8986 (Environment Variables): Update references for OpenMP 4.0. Add
8987 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
8988 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
8989 order.
8990
8991 2013-10-14 Jakub Jelinek <jakub@redhat.com>
8992
8993 * env.c (parse_bind_var): Initialize value to avoid
8994 (false positive) warning.
8995
8996 2013-10-12 Jakub Jelinek <jakub@redhat.com>
8997
8998 PR libgomp/58691
8999 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
9000 to check variable.
9001 (gomp_init_num_threads): Move i variable declaration into
9002 #ifdef CPU_ALLOC_SIZE block.
9003 * config/linux/affinity.c (gomp_affinity_init_level): Test
9004 gomp_places_list_len == 0 rather than gomp_places_list == 0
9005 when checking for topology reading error.
9006 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
9007 * env.c (parse_affinity): Add ignore argument, if true, don't populate
9008 gomp_places_list, only parse env var and always return false.
9009 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
9010 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
9011 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
9012 and either of these variables were parsed correctly into a places
9013 list.
9014
9015 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9016 Jakub Jelinek <jakub@redhat.com>
9017
9018 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
9019 of 5 loopfn matches.
9020 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9021 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9022 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
9023 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9024 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9025 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9026 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9027 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9028
9029 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
9030
9031 * Makefile.am (omp_lib.mod): Streamline rule.
9032 * Makefile.in: Regenerate.
9033
9034 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
9035 exceptions.
9036
9037 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
9038 * testsuite/libgomp.fortran/lib1.f90: Likewise.
9039 * testsuite/libgomp.fortran/lib2.f: Likewise.
9040 * testsuite/libgomp.fortran/lib3.f: Likewise.
9041
9042 * configure.ac: Typo fix.
9043 * configure: Regenerate.
9044
9045 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
9046 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
9047
9048 * omp.h.in: Don't touch the user's namespace.
9049
9050 2013-10-11 Jakub Jelinek <jakub@redhat.com>
9051 Tobias Burnus <burnus@net-b.de>
9052 Richard Henderson <rth@redhat.com>
9053
9054 * target.c: New file.
9055 * Makefile.am (libgomp_la_SOURCES): Add target.c.
9056 * Makefile.in: Regenerated.
9057 * libgomp_g.h (GOMP_task): Add depend argument.
9058 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9059 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9060 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
9061 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9062 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9063 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
9064 GOMP_taskgroup_start, GOMP_taskgroup_end,
9065 GOMP_parallel_sections): New prototypes.
9066 * fortran.c (omp_is_initial_device): Add ialias_redirect.
9067 (omp_is_initial_device_): New function.
9068 (ULP, STR1, STR2, ialias_redirect): Removed.
9069 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
9070 omp_set_default_device_8_, omp_get_default_device_,
9071 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
9072 functions.
9073 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
9074 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
9075 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
9076 @@GOMP_4.0.
9077 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
9078 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
9079 omp_set_default_device, omp_set_default_device_,
9080 omp_set_default_device_8_, omp_get_default_device,
9081 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
9082 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
9083 omp_get_team_num_): Export @@OMP_4.0.
9084 * team.c (struct gomp_thread_start_data): Add place field.
9085 (gomp_thread_start): Clear thr->thread_pool and
9086 thr->task before returning. Use gomp_team_barrier_wait_final
9087 instead of gomp_team_barrier_wait. Initialize thr->place.
9088 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
9089 team_cancelled and task_queued_count fields.
9090 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
9091 before calling pthread_exit.
9092 (gomp_free_thread): No longer static. Use
9093 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
9094 (gomp_team_start): Add flags argument. Set
9095 thr->thread_pool->threads_busy to nthreads immediately after creating
9096 new pool. Use gomp_managed_threads_lock instead of
9097 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
9098 (gomp_team_end): Use gomp_managed_threads_lock instead of
9099 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
9100 of gomp_team_barrier_wait. If team->team_cancelled, call
9101 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
9102 rather than thr->ts.work_share.
9103 (initialize_team): Don't call gomp_sem_init here.
9104 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
9105 caller.
9106 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
9107 * env.c (gomp_global_icv): Add default_device_var, target_data and
9108 bind_var initializers.
9109 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9110 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9111 gomp_places_list_len): New variables.
9112 (parse_bind_var, parse_one_place, parse_places_var): New functions.
9113 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
9114 sized places.
9115 (gomp_cancel_var): New global variable.
9116 (parse_int): New function.
9117 (handle_omp_display_env): New function.
9118 (initialize_env): Use it. Initialize default_device_var.
9119 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
9120 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
9121 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
9122 been successfully parsed (and call gomp_init_affinity in that case).
9123 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9124 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9125 omp_get_team_num, omp_is_initial_device): New functions.
9126 * libgomp.h: Include stdlib.h.
9127 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
9128 Define.
9129 (struct target_mem_desc): Forward declare.
9130 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
9131 and thread_limit_var fields.
9132 (gomp_get_num_devices): New prototype.
9133 (gomp_cancel_var): New extern decl.
9134 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
9135 team_cancelled and task_queued_count fields. Add comments about
9136 task_{,queued_,running_}count.
9137 (gomp_cancel_kind): New enum.
9138 (gomp_work_share_end_cancel): New prototype.
9139 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
9140 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
9141 and depend fields.
9142 (struct gomp_taskgroup): New type.
9143 (struct gomp_task_depend_entry,
9144 struct gomp_dependers_vec): New types.
9145 (gomp_finish_task): Free depend_hash if non-NULL.
9146 (struct gomp_team_state): Add place_partition_off
9147 and place_partition_len fields.
9148 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
9149 gomp_places_list_len): New extern decls.
9150 (struct gomp_thread): Add place field.
9151 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
9152 (gomp_init_thread_affinity): Add place argument.
9153 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9154 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9155 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9156 gomp_affinity_init_level, gomp_affinity_print_place): New
9157 prototypes.
9158 (gomp_team_start): Add flags argument.
9159 (gomp_thread_limit_var, gomp_remaining_threads_count,
9160 gomp_remaining_threads_lock): Remove.
9161 (gomp_managed_threads_lock): New variable.
9162 (struct gomp_thread_pool): Add threads_busy field.
9163 (gomp_free_thread): New prototype.
9164 * task.c: Include hashtab.h.
9165 (hash_entry_type): New typedef.
9166 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
9167 (gomp_init_task): Clear dependers, depend_hash, depend_count,
9168 copy_ctors_done and taskgroup fields.
9169 (GOMP_task): Add depend argument, handle depend clauses. If
9170 gomp_team_barrier_cancelled or if it's taskgroup has been
9171 cancelled, don't queue or start new tasks. Set copy_ctors_done
9172 field if needed. Initialize taskgroup field. If copy_ctors_done
9173 and already cancelled, don't discard the task. If taskgroup is
9174 non-NULL, enqueue the task into taskgroup queue. Increment
9175 num_children field in taskgroup. Increment task_queued_count.
9176 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
9177 gomp_task_run_post_remove_taskgroup): New inline functions.
9178 (gomp_task_run_post_handle_depend_hash,
9179 gomp_task_run_post_handle_dependers,
9180 gomp_task_run_post_handle_depend): New functions.
9181 (GOMP_taskwait): Use them. If more than one new tasks
9182 have been queued, wake other threads if needed.
9183 (gomp_barrier_handle_tasks): Likewise. If
9184 gomp_team_barrier_cancelled, don't start any new tasks, just free
9185 all tasks.
9186 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
9187 * omp_lib.f90.in
9188 (omp_proc_bind_kind, omp_proc_bind_false,
9189 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9190 omp_proc_bind_spread): New params.
9191 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9192 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9193 omp_get_team_num, omp_is_initial_device): New interfaces.
9194 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
9195 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
9196 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
9197 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
9198 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
9199 useless use omp_lib_kinds.
9200 * omp.h.in (omp_proc_bind_t): New typedef.
9201 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9202 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9203 omp_get_team_num, omp_is_initial_device): New prototypes.
9204 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
9205 through to gomp_team_start.
9206 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
9207 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
9208 Adjust gomp_parallel_loop_start callers.
9209 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
9210 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
9211 GOMP_loop_end_cancel): New functions.
9212 (GOMP_parallel_end): Add ialias_redirect.
9213 * hashtab.h: New file.
9214 * libgomp.texi (Environment Variables): Minor cleanup,
9215 update section refs to OpenMP 4.0rc2.
9216 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
9217 environment variables.
9218 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
9219 team->work_shares_to_free to thr->ts.work_share before calling
9220 free_work_share.
9221 (gomp_work_share_end_cancel): New function.
9222 * config/linux/proc.c: Include errno.h.
9223 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
9224 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
9225 sizeof (cpu_set_t) to determine number of iterations. Fix up check
9226 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
9227 gomp_cpuset_size is sizeof (cpu_set_t).
9228 (gomp_init_num_threads): Initialize gomp_cpuset_size,
9229 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
9230 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
9231 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
9232 contain any logical CPUs.
9233 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
9234 is NULL. Use gomp_cpusetp instead of &cpuset and pass
9235 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
9236 pthread_getaffinity_np. Check gomp_places_list instead of
9237 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
9238 * config/linux/bar.c (gomp_barrier_wait_end,
9239 gomp_barrier_wait_last): Use BAR_* defines.
9240 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
9241 from state where needed. Set work_share_cancelled to 0 on last
9242 thread.
9243 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
9244 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
9245 functions.
9246 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
9247 Add cpusetsize argument.
9248 (gomp_cpuset_size, gomp_cpusetp): Declare.
9249 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
9250 (affinity_counter): Remove.
9251 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
9252 if CPU_ALLOC_SIZE isn't defined.
9253 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
9254 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
9255 bind current thread to the first place.
9256 (gomp_init_thread_affinity): Rewritten. Add place argument, just
9257 pthread_setaffinity_np to gomp_places_list[place].
9258 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9259 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9260 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9261 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
9262 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9263 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9264 (gomp_barrier_t): Add awaited_final field.
9265 (gomp_barrier_init): Initialize awaited_final field.
9266 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
9267 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
9268 prototypes.
9269 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
9270 defines.
9271 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
9272 gomp_team_barrier_cancelled): New inline functions.
9273 (gomp_barrier_last_thread,
9274 gomp_team_barrier_set_task_pending,
9275 gomp_team_barrier_clear_task_pending,
9276 gomp_team_barrier_set_waiting_for_tasks,
9277 gomp_team_barrier_waiting_for_tasks,
9278 gomp_team_barrier_done): Use BAR_* defines.
9279 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
9280 (gomp_barrier_wait_end): Use BAR_* defines.
9281 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
9282 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
9283 Use BAR_* defines.
9284 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
9285 gomp_team_barrier_cancel): New functions.
9286 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
9287 argument.
9288 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9289 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9290 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9291 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
9292 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9293 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9294 (gomp_barrier_t): Add cancellable field.
9295 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
9296 gomp_team_barrier_cancel): New prototypes.
9297 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
9298 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
9299 gomp_team_barrier_cancelled): New inline functions.
9300 (gomp_barrier_wait_start, gomp_barrier_last_thread,
9301 gomp_team_barrier_set_task_pending,
9302 gomp_team_barrier_clear_task_pending,
9303 gomp_team_barrier_set_waiting_for_tasks,
9304 gomp_team_barrier_waiting_for_tasks,
9305 gomp_team_barrier_done): Use BAR_* defines.
9306 * barrier.c (GOMP_barrier_cancel): New function.
9307 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
9308 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9309 omp_proc_bind_spread): New params.
9310 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9311 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9312 omp_get_team_num, omp_is_initial_device): New externals.
9313 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
9314 New functions.
9315 (gomp_resolve_num_threads): Adjust for thread_limit now being in
9316 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9317 infinity. If not nested, just return minimum of max_num_threads
9318 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
9319 to the returned value. Otherwise, don't update atomically
9320 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
9321 (GOMP_parallel_end): Adjust for thread_limit now being in
9322 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9323 infinity. Adjust threads_busy in the pool rather than
9324 gomp_remaining_threads_count. Remember team->nthreads and call
9325 gomp_team_end before adjusting threads_busy, if not nested
9326 afterwards, just set it to 1 non-atomically. Add ialias.
9327 (GOMP_parallel_start): Adjust gomp_team_start caller.
9328 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
9329 * testsuite/libgomp.c/affinity-1.c: New test.
9330 * testsuite/libgomp.c/atomic-15.c: New test.
9331 * testsuite/libgomp.c/atomic-16.c: New test.
9332 * testsuite/libgomp.c/atomic-17.c: New test.
9333 * testsuite/libgomp.c/cancel-for-1.c: New test.
9334 * testsuite/libgomp.c/cancel-for-2.c: New test.
9335 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
9336 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
9337 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
9338 * testsuite/libgomp.c/cancel-sections-1.c: New test.
9339 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
9340 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
9341 * testsuite/libgomp.c/depend-1.c: New test.
9342 * testsuite/libgomp.c/depend-2.c: New test.
9343 * testsuite/libgomp.c/depend-3.c: New test.
9344 * testsuite/libgomp.c/depend-4.c: New test.
9345 * testsuite/libgomp.c/for-1.c: New test.
9346 * testsuite/libgomp.c/for-1.h: New file.
9347 * testsuite/libgomp.c/for-2.c: New test.
9348 * testsuite/libgomp.c/for-2.h: New file.
9349 * testsuite/libgomp.c/for-3.c: New test.
9350 * testsuite/libgomp.c/pr58392.c: New test.
9351 * testsuite/libgomp.c/simd-1.c: New test.
9352 * testsuite/libgomp.c/simd-2.c: New test.
9353 * testsuite/libgomp.c/simd-3.c: New test.
9354 * testsuite/libgomp.c/simd-4.c: New test.
9355 * testsuite/libgomp.c/simd-5.c: New test.
9356 * testsuite/libgomp.c/simd-6.c: New test.
9357 * testsuite/libgomp.c/target-1.c: New test.
9358 * testsuite/libgomp.c/target-2.c: New test.
9359 * testsuite/libgomp.c/target-3.c: New test.
9360 * testsuite/libgomp.c/target-4.c: New test.
9361 * testsuite/libgomp.c/target-5.c: New test.
9362 * testsuite/libgomp.c/target-6.c: New test.
9363 * testsuite/libgomp.c/target-7.c: New test.
9364 * testsuite/libgomp.c/taskgroup-1.c: New test.
9365 * testsuite/libgomp.c/thread-limit-1.c: New test.
9366 * testsuite/libgomp.c/thread-limit-2.c: New test.
9367 * testsuite/libgomp.c/thread-limit-3.c: New test.
9368 * testsuite/libgomp.c/udr-1.c: New test.
9369 * testsuite/libgomp.c/udr-2.c: New test.
9370 * testsuite/libgomp.c/udr-3.c: New test.
9371 * testsuite/libgomp.c++/affinity-1.C: New test.
9372 * testsuite/libgomp.c++/atomic-10.C: New test.
9373 * testsuite/libgomp.c++/atomic-11.C: New test.
9374 * testsuite/libgomp.c++/atomic-12.C: New test.
9375 * testsuite/libgomp.c++/atomic-13.C: New test.
9376 * testsuite/libgomp.c++/atomic-14.C: New test.
9377 * testsuite/libgomp.c++/atomic-15.C: New test.
9378 * testsuite/libgomp.c++/cancel-for-1.C: New test.
9379 * testsuite/libgomp.c++/cancel-for-2.C: New test.
9380 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
9381 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
9382 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
9383 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
9384 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
9385 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
9386 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
9387 * testsuite/libgomp.c++/cancel-test.h: New file.
9388 * testsuite/libgomp.c++/for-9.C: New test.
9389 * testsuite/libgomp.c++/for-10.C: New test.
9390 * testsuite/libgomp.c++/for-11.C: New test.
9391 * testsuite/libgomp.c++/simd-1.C: New test.
9392 * testsuite/libgomp.c++/simd-2.C: New test.
9393 * testsuite/libgomp.c++/simd-3.C: New test.
9394 * testsuite/libgomp.c++/simd-4.C: New test.
9395 * testsuite/libgomp.c++/simd-5.C: New test.
9396 * testsuite/libgomp.c++/simd-6.C: New test.
9397 * testsuite/libgomp.c++/simd-7.C: New test.
9398 * testsuite/libgomp.c++/simd-8.C: New test.
9399 * testsuite/libgomp.c++/target-1.C: New test.
9400 * testsuite/libgomp.c++/target-2.C: New test.
9401 * testsuite/libgomp.c++/target-2-aux.cc: New file.
9402 * testsuite/libgomp.c++/target-3.C: New test.
9403 * testsuite/libgomp.c++/taskgroup-1.C: New test.
9404 * testsuite/libgomp.c++/udr-1.C: New test.
9405 * testsuite/libgomp.c++/udr-2.C: New test.
9406 * testsuite/libgomp.c++/udr-3.C: New test.
9407 * testsuite/libgomp.c++/udr-4.C: New test.
9408 * testsuite/libgomp.c++/udr-5.C: New test.
9409 * testsuite/libgomp.c++/udr-6.C: New test.
9410 * testsuite/libgomp.c++/udr-7.C: New test.
9411 * testsuite/libgomp.c++/udr-8.C: New test.
9412 * testsuite/libgomp.c++/udr-9.C: New test.
9413
9414 2013-09-20 Jakub Jelinek <jakub@redhat.com>
9415
9416 PR testsuite/57605
9417 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
9418 ALWAYS_CFLAGS.
9419
9420 2013-09-20 Alan Modra <amodra@gmail.com>
9421
9422 * configure: Regenerate.
9423
9424 2013-09-19 Jakub Jelinek <jakub@redhat.com>
9425
9426 * testsuite/libgomp.c/sections-2.c: New test.
9427
9428 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
9429
9430 * testsuite/libgomp.fortran/strassen.f90:
9431 Add dg-skip-if aarch64_tiny.
9432
9433 2013-06-20 Iain Sandoe <iain@codesourcery.com>
9434 Cesar Philippidis <cesar@codesourcery.com>
9435
9436 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
9437 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
9438 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
9439 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9440 * testsuite/libgomp.graphite/graphite.exp: Likewise.
9441 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
9442 Use dg-runtest rather than gfortran-dg-runtest.
9443
9444 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
9445
9446 * testsuite/libgomp.c/icv-2.c: Extend current handling of
9447 Linux-based x86 systems to cover all GNU systems.
9448 * testsuite/libgomp.c/lock-3.c: Likewise.
9449 * testsuite/libgomp.c/pr48591.c: Likewise.
9450
9451 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
9452
9453 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
9454 GNU/Hurd, as done for Linux-based systems.
9455
9456 * config/posix/ptrlock.h: Fix comment.
9457
9458 2013-05-27 Tobias Burnus <burnus@net-b.de>
9459
9460 PR fortran/57423
9461 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
9462 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
9463 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
9464 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
9465 omp_destroy_nest_lock): Correct arguments to match the one in
9466 the OpenMP spec.
9467 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
9468 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
9469 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
9470 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
9471
9472 2013-05-16 Jakub Jelinek <jakub@redhat.com>
9473
9474 * testsuite/libgomp.c/loop-13.c: New test.
9475 * testsuite/libgomp.c/loop-14.c: New test.
9476 * testsuite/libgomp.c/loop-15.c: New test.
9477 * testsuite/libgomp.c++/loop-13.C: New test.
9478 * testsuite/libgomp.c++/loop-14.C: New test.
9479 * testsuite/libgomp.c++/loop-15.C: New test.
9480
9481 2013-02-06 Jakub Jelinek <jakub@redhat.com>
9482
9483 PR middle-end/56217
9484 * testsuite/libgomp.c++/pr56217.C: New test.
9485
9486 2013-02-01 Alan Modra <amodra@gmail.com>
9487
9488 * task.c (GOMP_task, GOMP_taskwait): Comment.
9489
9490 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
9491 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
9492
9493 PR libgomp/55561
9494 * config/linux/wait.h (do_spin): Use atomic load for addr.
9495 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
9496 for intptr and ptrlock.
9497 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
9498 for ptrlock.
9499
9500 2013-01-22 Alan Modra <amodra@gmail.com>
9501
9502 PR libgomp/51376
9503 PR libgomp/56073
9504 * task.c (GOMP_task): Revert 2011-12-09 change.
9505 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
9506 barrier to read task->children..
9507 (gomp_barrier_handle_tasks): ..and matching atomic store with
9508 release barrier here when setting parent->children to NULL.
9509
9510 2013-01-16 Jakub Jelinek <jakub@redhat.com>
9511 Tobias Burnus <burnus@net-b.de>
9512
9513 PR driver/55884
9514 * testsuite/libgomp.fortran/fortran.exp: Use
9515 -fintrinsic-modules-path= instead of
9516 -fintrinsic-modules-path.
9517
9518 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
9519
9520 Update copyright years.
9521
9522 2012-12-19 Tobias Burnus <burnus@net-b.de>
9523
9524 * testsuite/libgomp.fortran/fortran.exp: Set
9525 -fintrinsic-modules-path.
9526
9527 2012-12-19 Tobias Burnus <burnus@net-b.de>
9528
9529 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
9530 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
9531
9532 2012-11-21 Jakub Jelinek <jakub@redhat.com>
9533
9534 PR libgomp/55411
9535 * team.c (gomp_free_thread): Decrease gomp_managed_threads
9536 if pool had any threads_used.
9537
9538 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
9539
9540 * testsuite/libgomp.c++/pr24455.C: Use
9541 -Wl,-undefined,dynamic_lookup on darwin.
9542
9543 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
9544
9545 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
9546
9547 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
9548
9549 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
9550
9551 2012-10-23 Ian Bolton <ian.bolton@arm.com>
9552 Jim MacArthur <jim.macarthur@arm.com>
9553 Marcus Shawcroft <marcus.shawcroft@arm.com>
9554 Nigel Stephens <nigel.stephens@arm.com>
9555 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9556 Richard Earnshaw <rearnsha@arm.com>
9557 Sofiane Naci <sofiane.naci@arm.com>
9558 Stephen Thomas <stephen.thomas@arm.com>
9559 Tejas Belagod <tejas.belagod@arm.com>
9560 Yufeng Zhang <yufeng.zhang@arm.com>
9561
9562 * configure.tgt: Add AArch64.
9563
9564 2012-10-04 Jason Merrill <jason@redhat.com>
9565
9566 * testsuite/libgomp.c++/tls-init1.C: New.
9567
9568 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
9569
9570 * configure: Regenerated.
9571
9572 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
9573
9574 * config/linux/mips/futex.h (sys_futex0): Change to static
9575 function with noinline, nomips16 attributes under MIPS16. Adjust
9576 asm statement to place 'li v0,SYS_futex' immediately before
9577 syscall insn.
9578
9579 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
9580
9581 * libgomp.texi (Library Index): Renamed from "Index" to prevent
9582 conflict with index.html on case-insensitive file systems.
9583
9584 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
9585
9586 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
9587 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
9588
9589 2012-07-02 Richard Guenther <rguenther@suse.de>
9590 Michael Matz <matz@suse.de>
9591 Tobias Grosser <tobias@grosser.es>
9592 Sebastian Pop <sebpop@gmail.com>
9593
9594 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
9595 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9596 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9597 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9598
9599 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
9600
9601 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
9602
9603 2012-06-22 Richard Guenther <rguenther@suse.de>
9604
9605 Merge from graphite branch
9606 2012-01-13 Tobias Grosser <tobias@grosser.es>
9607
9608 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9609 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9610
9611 2012-06-07 Jakub Jelinek <jakub@redhat.com>
9612
9613 PR middle-end/53580
9614 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
9615 use GOMP_barrier () call instead.
9616 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9617 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9618 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
9619 call GOMP_barrier instead.
9620 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9621
9622 2012-06-06 Jakub Jelinek <jakub@redhat.com>
9623
9624 PR libgomp/52993
9625 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
9626 argument to memset call.
9627
9628 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
9629
9630 * configure: Regenerated.
9631
9632 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9633
9634 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
9635
9636 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
9637
9638 PR bootstrap/52812
9639 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
9640
9641 2012-03-22 Jakub Jelinek <jakub@redhat.com>
9642
9643 PR middle-end/52547
9644 * testsuite/libgomp.c/pr52547.c: New test.
9645
9646 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9647
9648 * testsuite/lib/libgomp.exp: load fortran-modules.exp
9649
9650 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9651
9652 * configure.tgt (mips-sgi-irix6*): Remove.
9653
9654 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9655
9656 * configure.tgt (alpha*-dec-osf*): Remove.
9657
9658 * config/osf/sem.h: Remove.
9659 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
9660
9661 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
9662
9663 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
9664
9665 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9666
9667 PR libstdc++/52188
9668 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
9669 Remove ENABLE_SYMVERS_SOL2.
9670 * configure: Regenerate.
9671 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
9672 (PREPROCESS): New variable.
9673 (libgomp.ver): New target.
9674 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
9675 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
9676 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
9677 Use libgomp.ver.
9678 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
9679 * Makefile.in: Regenerate.
9680
9681 2012-02-14 Walter Lee <walt@tilera.com>
9682
9683 * configure.tgt: Handle tilegx and tilepro.
9684 * config/linux/tile/futex.h: New file.
9685
9686 2012-02-08 Richard Guenther <rguenther@suse.de>
9687
9688 PR tree-optimization/46886
9689 * testsuite/libgomp.c/pr46886.c: New testcase.
9690
9691 2012-01-25 Matthias Klose <doko@ubuntu.com>
9692
9693 * config/linux/arm: Remove empty directory.
9694 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
9695
9696 2011-12-09 Alan Modra <amodra@gmail.com>
9697
9698 PR libgomp/51376
9699 * task.c (GOMP_taskwait): Don't access task->children outside of
9700 task_lock mutex region.
9701 (GOMP_task): Likewise.
9702
9703 2011-12-06 Jakub Jelinek <jakub@redhat.com>
9704
9705 PR libgomp/51132
9706 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
9707 to file scope.
9708 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9709 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9710 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9711 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9712 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9713
9714 2011-12-02 Alan Modra <amodra@gmail.com>
9715
9716 * config/linux/affinity.c: Use atomic rather than sync builtin.
9717 * config/linux/lock.c: Likewise.
9718 * config/linux/ptrlock.h: Likewise.
9719 * config/linux/ptrlock.c: Likewise.
9720 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
9721 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
9722 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
9723 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
9724 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
9725 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
9726 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
9727 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
9728 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
9729 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
9730
9731 2011-11-30 Alan Modra <amodra@gmail.com>
9732
9733 PR libgomp/51298
9734 * config/linux/bar.h: Use atomic rather than sync builtins.
9735 * config/linux/bar.c: Likewise. Add missing acquire
9736 synchronisation on generation field.
9737 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
9738 double unlock.
9739
9740 2011-11-30 Alan Modra <amodra@gmail.com>
9741
9742 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
9743 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
9744 * config/linux/mutex.h: Use atomic rather than sync builtins.
9745 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
9746 * config/linux/omp-lock.h: Comment fix.
9747 * config/linux/arm/mutex.h: Delete.
9748 * config/linux/powerpc/mutex.h: Delete.
9749 * config/linux/ia64/mutex.h: Delete.
9750 * config/linux/mips/mutex.h: Delete.
9751
9752 2011-11-30 Alan Modra <amodra@gmail.com>
9753
9754 PR libgomp/51249
9755 * config/linux/sem.h: Rewrite.
9756 * config/linux/sem.c: Rewrite.
9757
9758 2011-11-28 Richard Henderson <rth@redhat.com>
9759
9760 * libgomp.h (enum memmodel): New.
9761
9762 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
9763
9764 * configure: Regenerate.
9765
9766 2011-10-10 Matthias Klose <doko@ubuntu.com>
9767
9768 * config/posix95: Remove empty directory.
9769
9770 2011-08-26 Jakub Jelinek <jakub@redhat.com>
9771
9772 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
9773
9774 2011-08-19 Jakub Jelinek <jakub@redhat.com>
9775
9776 PR fortran/49792
9777 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
9778 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
9779
9780 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9781
9782 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
9783
9784 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9785
9786 PR libgomp/49965
9787 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
9788
9789 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
9790
9791 * config/linux/proc.h: New.
9792 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
9793 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
9794 (gomp_init_num_threads): Update call to cpuset_popcount.
9795 (get_num_procs): Ditto.
9796 * config/linux/affinity.c (gomp_init_affinity): Call
9797 gomp_cpuset_popcount.
9798
9799 2011-08-02 Jakub Jelinek <jakub@redhat.com>
9800
9801 PR fortran/42041
9802 PR fortran/46752
9803 * omp.h.in (omp_in_final): New prototype.
9804 * omp_lib.f90.in (omp_in_final): New interface.
9805 (omp_integer_kind, omp_logical_kind): Remove
9806 and replace all its uses in the module with 4.
9807 (openmp_version): Change to 201107.
9808 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
9809 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
9810 kind for the parameters.
9811 (omp_in_final): New external.
9812 (openmp_version): Change to 201107.
9813 * task.c (omp_in_final): New function.
9814 (gomp_init_task): Initialize final_task.
9815 (GOMP_task): Remove unused attribute from flags. Handle final
9816 tasks.
9817 (GOMP_taskyield): New function.
9818 (omp_in_final): Return true if if (false) or final (true) task
9819 or descendant of final (true).
9820 * fortran.c (omp_in_final_): New function.
9821 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
9822 (GOMP_3.0): Export GOMP_taskyield.
9823 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
9824 variables.
9825 (parse_unsigned_long_list): New function.
9826 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
9827 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
9828 even if parse_affinity returned false.
9829 * config/linux/affinity.c (gomp_init_affinity): Handle
9830 gomp_cpu_affinity_len == 0.
9831 * libgomp_g.h (GOMP_taskyield): New prototype.
9832 * libgomp.h (struct gomp_task): Add final_task field.
9833 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
9834 * team.c (gomp_team_start): Override new task's nthreads_var icv
9835 if list form OMP_NUM_THREADS has been used and it has value for
9836 the new nesting level.
9837
9838 * testsuite/libgomp.c/atomic-11.c: New test.
9839 * testsuite/libgomp.c/atomic-12.c: New test.
9840 * testsuite/libgomp.c/atomic-13.c: New test.
9841 * testsuite/libgomp.c/atomic-14.c: New test.
9842 * testsuite/libgomp.c/reduction-6.c: New test.
9843 * testsuite/libgomp.c/task-5.c: New test.
9844 * testsuite/libgomp.c++/atomic-2.C: New test.
9845 * testsuite/libgomp.c++/atomic-3.C: New test.
9846 * testsuite/libgomp.c++/atomic-4.C: New test.
9847 * testsuite/libgomp.c++/atomic-5.C: New test.
9848 * testsuite/libgomp.c++/atomic-6.C: New test.
9849 * testsuite/libgomp.c++/atomic-7.C: New test.
9850 * testsuite/libgomp.c++/atomic-8.C: New test.
9851 * testsuite/libgomp.c++/atomic-9.C: New test.
9852 * testsuite/libgomp.c++/task-8.C: New test.
9853 * testsuite/libgomp.c++/reduction-4.C: New test.
9854 * testsuite/libgomp.fortran/allocatable7.f90: New test.
9855 * testsuite/libgomp.fortran/allocatable8.f90: New test.
9856 * testsuite/libgomp.fortran/crayptr3.f90: New test.
9857 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
9858 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
9859 * testsuite/libgomp.fortran/pointer1.f90: New test.
9860 * testsuite/libgomp.fortran/pointer2.f90: New test.
9861 * testsuite/libgomp.fortran/task4.f90: New test.
9862
9863 2011-08-02 Tobias Burnus <burnus@net-b.de>
9864
9865 * libgomp.texi: Update OpenMP spec references to 3.1.
9866 (omp_in_final,OMP_PROC_BIND): New sections.
9867 (OMP_NUM_THREADS): Document that the value can be now a list.
9868 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
9869
9870 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
9871
9872 * config/linux/x86/futex.h: Check __x86_64__ instead of
9873 __LP64__.
9874
9875 2011-07-29 Jakub Jelinek <jakub@redhat.com>
9876
9877 PR middle-end/49897
9878 PR middle-end/49898
9879 * testsuite/libgomp.c/pr49897-1.c: New test.
9880 * testsuite/libgomp.c/pr49897-2.c: New test.
9881 * testsuite/libgomp.c/pr49898-1.c: New test.
9882 * testsuite/libgomp.c/pr49898-2.c: New test.
9883
9884 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
9885
9886 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
9887 for ia32 instead of ilp32.
9888
9889 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
9890 * testsuite/libgomp.c/atomic-6.c: Likewise.
9891
9892 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
9893
9894 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
9895 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
9896
9897 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9898
9899 PR libgomp/45351
9900 * config/osf/sem.h: New file.
9901 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
9902
9903 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9904
9905 PR target/49541
9906 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
9907 ldflags.
9908
9909 2011-07-15 Jakub Jelinek <jakub@redhat.com>
9910
9911 * config/linux/wait.h (do_spin): New inline, largely copied
9912 from do_wait, just don't do futex_wait here, instead return true if
9913 it should be done.
9914 (do_wait): Implement using do_spin.
9915 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
9916 to prototype.
9917 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
9918 __sync_bool_compare_and_swap, pass the oldval to
9919 gomp_mutex_lock_slow.
9920 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
9921 If all mutex contenders are just spinning and not sleeping, don't
9922 change state to 2 unnecessarily. Optimize the loop when state has
9923 already become 2 to use just one atomic operation per loop instead
9924 of two.
9925 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
9926 to prototype.
9927 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
9928 __sync_bool_compare_and_swap, pass the oldval to
9929 gomp_mutex_lock_slow.
9930
9931 2011-06-22 Jakub Jelinek <jakub@redhat.com>
9932
9933 PR libgomp/49490
9934 * iter.c (gomp_iter_static_next): For chunk size 0
9935 only use n ceil/ nthreads size for the first
9936 n % nthreads threads in the team instead of
9937 all threads except for the last few ones which
9938 get less work or none at all.
9939 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
9940 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
9941 chunk argument, set run_sched_modifier to 0 for static
9942 resp. 1 for other kinds. If chunk argument is 0
9943 and not static, set value to 1.
9944
9945 2011-05-19 Jakub Jelinek <jakub@redhat.com>
9946
9947 PR c++/49043
9948 * testsuite/libgomp.c++/pr49043.C: New test.
9949
9950 PR c++/48869
9951 * testsuite/libgomp.c++/pr48869.C: New test.
9952
9953 2011-05-06 Jakub Jelinek <jakub@redhat.com>
9954
9955 PR fortran/48894
9956 * fortran.c: Include limits.h.
9957 (TO_INT): Define.
9958 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
9959 *set.
9960 (omp_set_num_threads_8_, omp_set_schedule_8_,
9961 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
9962 omp_get_team_size_8_): Use TO_INT macro.
9963 * testsuite/libgomp.fortran/pr48894.f90: New test.
9964
9965 2011-04-13 Jakub Jelinek <jakub@redhat.com>
9966
9967 PR middle-end/48591
9968 * testsuite/libgomp.c/pr48591.c: New test.
9969
9970 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9971
9972 PR bootstrap/48135
9973 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
9974 * configure: Regenerate.
9975
9976 2011-02-27 Jakub Jelinek <jakub@redhat.com>
9977
9978 PR fortran/47886
9979 * testsuite/libgomp.fortran/task3.f90: New test.
9980
9981 2011-02-24 Tobias Burnus <burnus@net-b.de>
9982
9983 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
9984
9985 2011-02-23 Jakub Jelinek <jakub@redhat.com>
9986
9987 PR libgomp/47854
9988 * libgomp.texi (omp_get_wtime): Don't say time in the past
9989 must be Unix Epoch.
9990
9991 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9992
9993 PR libgomp/47804
9994 * testsuite/libgomp.fortran/fortran.exp: Check for both
9995 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
9996 but $blddir != "", still append ${blddir}/${lang_library_path}
9997 to ld_library_path.
9998
9999 2011-02-16 Tobias Burnus <burnus@net-b.de>
10000
10001 PR libgomp/47758
10002 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
10003 of libquadmath.a before adding its libpath to ldflags.
10004
10005 2011-02-14 Jakub Jelinek <jakub@redhat.com>
10006
10007 PR libgomp/47731
10008 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
10009 to FUTEX_WAIT futex syscall.
10010 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
10011
10012 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10013
10014 * configure: Regenerate.
10015
10016 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
10017
10018 PR libstdc++/36104
10019 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
10020
10021 2011-01-16 Gerald Pfeifer
10022
10023 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
10024
10025 2010-12-14 Jakub Jelinek <jakub@redhat.com>
10026
10027 PR fortran/46874
10028 * libgomp.fortran/allocatable6.f90: New test.
10029
10030 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10031
10032 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
10033 * configure: Regenerate.
10034
10035 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
10036
10037 PR target/40125
10038 PR lto/46695
10039 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
10040 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
10041 * aclocal.m4: Regenerate.
10042 * configure: Regenerate.
10043 * Makefile.in: Regenerate.
10044 * testsuite/Makefile.in: Regenerate.
10045
10046 2010-12-02 Jakub Jelinek <jakub@redhat.com>
10047
10048 PR fortran/46753
10049 * libgomp.fortran/pr46753.f90: New test.
10050
10051 PR libgomp/43706
10052 * env.c (initialize_env): Default to spin count 300000
10053 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
10054 is specified.
10055
10056 PR libgomp/45240
10057 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
10058 at the end if sync builtins aren't supported.
10059
10060 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10061
10062 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
10063
10064 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10065
10066 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
10067
10068 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
10069
10070 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
10071
10072 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10073 Tobias Burnus <burnus@net-b.de>
10074
10075 PR fortran/32049
10076 * configure.ac:
10077 * configure: Regenerate.
10078
10079 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
10080
10081 * config/linux/futex.h: New.
10082 * config/linux/arm/mutex.h: New.
10083 * configure.tgt (arm*-*-linux*): Add config path.
10084
10085 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
10086
10087 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10088
10089 2010-09-23 Tobias Burnus <burnus@net-b.de>
10090
10091 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
10092 Change Fortran datatype to LOGICAL.
10093 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
10094 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
10095
10096 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10097
10098 * configure: Regenerate.
10099
10100 2010-07-26 Jakub Jelinek <jakub@redhat.com>
10101
10102 * libgomp.texi: Add function keyword to a couple of Fortran
10103 interfaces, use integer instead of int for Fortran.
10104
10105 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
10106
10107 * libgomp.texi: Fix spelling and pasto problems throughout.
10108 Adjust prototypes to match code.
10109
10110 2010-07-24 Tobias Burnus <burnus@net-b.de>
10111
10112 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
10113 silence -fwhole-file warning.
10114
10115 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10116
10117 * configure.tgt (*-*-solaris2.[56]*): Removed.
10118
10119 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10120
10121 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
10122 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
10123 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
10124 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
10125 targetting solaris2*.
10126 * configure: Regenerate.
10127 * config.h.in: Regenerate.
10128
10129 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
10130 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
10131 Add libgomp_version_dep.
10132 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
10133 versioning.
10134 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
10135 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
10136 * Makefile.in: Regenerate.
10137
10138 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
10139 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10140 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
10141 to common block, protected by
10142 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
10143
10144 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
10145
10146 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
10147
10148 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
10149
10150 PR bootstrap/43170
10151 * configure: Regenerate.
10152
10153 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10154
10155 PR other/43620
10156 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
10157 * configure: Regenerate.
10158 * Makefile.in: Regenerate.
10159 * testsuite/Makefile.in: Regenerate.
10160
10161 2010-04-26 Jakub Jelinek <jakub@redhat.com>
10162
10163 PR c/43893
10164 * testsuite/libgomp.c/pr43893.c: New test.
10165 * testsuite/libgomp.c++/pr43893.C: New test.
10166
10167 2010-04-21 Jakub Jelinek <jakub@redhat.com>
10168
10169 PR middle-end/43570
10170 * testsuite/libgomp.fortran/vla8.f90: New test.
10171
10172 2010-04-20 Jakub Jelinek <jakub@redhat.com>
10173
10174 PR libgomp/43706
10175 * config/linux/affinity.c (gomp_init_affinity): Decrease
10176 gomp_available_cpus if affinity mask confines the process to fewer
10177 CPUs.
10178 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
10179 non-NULL, just return gomp_available_cpus.
10180
10181 PR libgomp/43569
10182 * sections.c (gomp_sections_init): Initialize ws->mode.
10183
10184 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10185
10186 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
10187 not unused bar variable.
10188 * configure: Regenerate.
10189
10190 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10191
10192 * Makefile.in: Regenerate.
10193 * aclocal.m4: Regenerate.
10194 * testsuite/Makefile.in: Regenerate.
10195
10196 2010-03-22 Jakub Jelinek <jakub@redhat.com>
10197
10198 PR libgomp/42942
10199 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
10200 (initialize_env): Adjust callers.
10201 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
10202 when the argument is 0.
10203
10204 * testsuite/libgomp.c/pr42942.c: New test.
10205
10206 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
10207
10208 PR middle-end/42644
10209 PR middle-end/42130
10210 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
10211 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
10212
10213 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10214
10215 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
10216 * testsuite/libgomp.c++/task-6.C: Likewise.
10217
10218 2010-01-28 Steve Ellcey <sje@cup.hp.com>
10219
10220 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
10221
10222 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
10223
10224 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
10225 * configure: Regenerate.
10226
10227 2010-01-26 Jakub Jelinek <jakub@redhat.com>
10228
10229 PR fortran/42866
10230 * testsuite/libgomp.fortran/allocatable5.f90: New test.
10231
10232 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
10233
10234 * configure.ac: Test for executability of GFORTRAN.
10235 * configure: Regenerate.
10236
10237 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10238
10239 * configure: Regenerate.
10240
10241 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
10242
10243 PR libgomp/42602
10244 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
10245
10246 2010-01-03 Richard Guenther <rguenther@suse.de>
10247
10248 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
10249
10250 2009-12-23 Sebastian Pop <sebpop@gmail.com>
10251
10252 * testsuite/libgomp.graphite/pr4118.c: New.
10253
10254 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10255
10256 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
10257 for darwin, protect the test with require-effective-target tls_runtime.
10258 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
10259
10260 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10261
10262 PR target/41605
10263 * testsuite/lib/libgomp.exp: Provide -B options to allow for
10264 link spec %s substitutions for static libraries.
10265
10266 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
10267
10268 PR testsuite/42135
10269 * libgomp.graphite/force-parallel-2.c: Reduce array size.
10270
10271 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10272
10273 * Makefile.in: Regenerate.
10274 * configure: Regenerate.
10275 * testsuite/Makefile.in: Regenerate.
10276
10277 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
10278
10279 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
10280 settings for LC_ALL and LANG.
10281
10282 2009-11-25 Jakub Jelinek <jakub@redhat.com>
10283
10284 PR fortran/42162
10285 * testsuite/libgomp.fortran/pr42162.f90: New test.
10286
10287 2009-11-13 Jakub Jelinek <jakub@redhat.com>
10288
10289 PR middle-end/42029
10290 * testsuite/libgomp.c/pr42029.c: New test.
10291
10292 2009-10-26 Jakub Jelinek <jakub@redhat.com>
10293
10294 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
10295 *s. Accept ld version without text in ()s.
10296 * configure: Regenerated.
10297
10298 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
10299
10300 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
10301
10302 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10303
10304 PR libgomp/41418
10305 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
10306 or a hyphen (happens with fortran language disabled).
10307 * configure: Regenerate.
10308
10309 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10310
10311 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
10312 use sed script portable to Solaris /bin/sed for extracting ld
10313 version.
10314 * configure: Regenerate.
10315
10316 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
10317
10318 * testsuite/libgomp.graphite/bounds.c: New test.
10319
10320 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10321
10322 * Makefile.am (libgomp_la_LINK): New.
10323 * Makefile.in: Regenerate.
10324
10325 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10326
10327 * configure.ac (AC_PREREQ): Bump to 2.64.
10328
10329 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10330
10331 * Makefile.am (install-html, install-pdf): Remove.
10332 * Makefile.in: Regenerate.
10333
10334 * Makefile.in: Regenerate.
10335 * aclocal.m4: Regenerate.
10336 * config.h.in: Regenerate.
10337 * configure: Regenerate.
10338 * testsuite/Makefile.in: Regenerate.
10339
10340 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10341
10342 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
10343 * Makefile.in: Regenerate.
10344
10345 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
10346
10347 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
10348 * Makefile.in: Regenerate.
10349
10350 2009-08-19 Tobias Burnus <burnus@net-b.de>
10351
10352 PR fortran/41102
10353 omp_lib.h.in: Fix -std=f95 errors.
10354
10355 2009-08-14 David Edelsohn <edelsohn@gnu.org>
10356
10357 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
10358 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
10359 * testsuite/libgomp.graphite/graphite.exp: New.
10360
10361 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
10362
10363 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
10364 only build.
10365
10366 2009-08-04 David Daney <ddaney@caviumnetworks.com>
10367
10368 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
10369 needed memory barrier semantics.
10370 * config/linux/mips/mutex.h: New file.
10371
10372 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10373
10374 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
10375
10376 2009-07-16 Joseph Myers <joseph@codesourcery.com>
10377
10378 * configure: Regenerate.
10379
10380 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
10381
10382 PR testsuite/40699
10383 PR testsuite/40707
10384 PR testsuite/40709
10385 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
10386 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
10387 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
10388
10389 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
10390
10391 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
10392 options when choosing a multilib.
10393
10394 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
10395
10396 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
10397 ld_library_path. Use add_path. Add just find_libgcc_s to
10398 ld_library_path, not every libgcc multilib directory.
10399 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
10400 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
10401 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
10402 Use add_path.
10403 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
10404
10405 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
10406
10407 * Makefile.am (LTLDFLAGS): Define.
10408 (LINK): Define.
10409 * Makefile.in: Regenerate.
10410
10411 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
10412
10413 PR fortran/39718
10414 * testsuite/libgomp.fortran/fortran.exp: Don't link with
10415 libgfortranbegin, check existence of libgfortran.a instead of
10416 libgfortranbegin.a.
10417
10418 2009-05-20 Jakub Jelinek <jakub@redhat.com>
10419
10420 PR libgomp/40174
10421 * team.c (gomp_thread_start): Destroy thr->release semaphore.
10422 (gomp_free_pool_helper): Likewise.
10423
10424 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
10425 Jakub Jelinek <jakub@redhat.com>
10426
10427 PR fortran/35423
10428 * testsuite/libgomp.fortran/workshare2.f90: New test.
10429
10430 2009-04-09 Nick Clifton <nickc@redhat.com>
10431
10432 * iter.c: Change copyright header to refer to version 3 of the
10433 GNU General Public License with version 3.1 of the GCC Runtime
10434 Library Exception and to point readers at the COPYING3 and
10435 COPYING3.RUNTIME files and the FSF's license web page.
10436 * alloc.c: Likewise.
10437 * barrier.c: Likewise.
10438 * config/bsd/proc.c: Likewise.
10439 * config/linux/affinity.c: Likewise.
10440 * config/linux/alpha/futex.h: Likewise.
10441 * config/linux/bar.c: Likewise.
10442 * config/linux/bar.h: Likewise.
10443 * config/linux/ia64/futex.h: Likewise.
10444 * config/linux/ia64/mutex.h: Likewise.
10445 * config/linux/lock.c: Likewise.
10446 * config/linux/mips/futex.h: Likewise.
10447 * config/linux/mutex.c: Likewise.
10448 * config/linux/mutex.h: Likewise.
10449 * config/linux/powerpc/futex.h: Likewise.
10450 * config/linux/proc.c: Likewise.
10451 * config/linux/ptrlock.c: Likewise.
10452 * config/linux/ptrlock.h: Likewise.
10453 * config/linux/s390/futex.h: Likewise.
10454 * config/linux/sem.c: Likewise.
10455 * config/linux/sem.h: Likewise.
10456 * config/linux/sparc/futex.h: Likewise.
10457 * config/linux/wait.h: Likewise.
10458 * config/linux/x86/futex.h: Likewise.
10459 * config/mingw32/proc.c: Likewise.
10460 * config/mingw32/time.c: Likewise.
10461 * config/posix/affinity.c: Likewise.
10462 * config/posix/bar.c: Likewise.
10463 * config/posix/bar.h: Likewise.
10464 * config/posix/lock.c: Likewise.
10465 * config/posix/mutex.h: Likewise.
10466 * config/posix/proc.c: Likewise.
10467 * config/posix/ptrlock.h: Likewise.
10468 * config/posix/sem.c: Likewise.
10469 * config/posix/sem.h: Likewise.
10470 * config/posix/time.c: Likewise.
10471 * config/posix95/lock.c: Likewise.
10472 * critical.c: Likewise.
10473 * env.c: Likewise.
10474 * error.c: Likewise.
10475 * fortran.c: Likewise.
10476 * iter_ull.c: Likewise.
10477 * libgomp.h: Likewise.
10478 * libgomp_f.h.in: Likewise.
10479 * libgomp_g.h: Likewise.
10480 * loop.c: Likewise.
10481 * loop_ull.c: Likewise.
10482 * omp.h.in: Likewise.
10483 * omp_lib.f90.in: Likewise.
10484 * omp_lib.h.in: Likewise.
10485 * ordered.c: Likewise.
10486 * parallel.c: Likewise.
10487 * sections.c: Likewise.
10488 * single.c: Likewise.
10489 * task.c: Likewise.
10490 * team.c: Likewise.
10491 * work.c: Likewise.
10492
10493 2009-04-09 Jakub Jelinek <jakub@redhat.com>
10494
10495 * testsuite/config/default.exp: Change copyright header to refer to
10496 version 3 of the GNU General Public License and to point readers
10497 at the COPYING3 file and the FSF's license web page.
10498
10499 2009-04-08 Jakub Jelinek <jakub@redhat.com>
10500
10501 PR middle-end/39573
10502 * libgomp.c++/pr39573.C: New test.
10503
10504 2009-04-01 Jakub Jelinek <jakub@redhat.com>
10505
10506 PR other/39591
10507 * testsuite/libgomp.c/pr39591-1.c: New test.
10508 * testsuite/libgomp.c/pr39591-2.c: New test.
10509 * testsuite/libgomp.c/pr39591-3.c: New test.
10510
10511 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
10512
10513 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
10514 * testsuite/libgomp.c/atomic-6.c: Ditto.
10515
10516 2009-03-23 Jakub Jelinek <jakub@redhat.com>
10517
10518 PR c/39495
10519 * testsuite/libgomp.c/loop-12.c: New test.
10520 * testsuite/libgomp.c/loop-11.c: New test.
10521 * testsuite/libgomp.c++/loop-11.C: New test.
10522 * testsuite/libgomp.c++/loop-12.C: New test.
10523 * testsuite/libgomp.c++/for-8.C: New test.
10524
10525 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10526
10527 * configure: Regenerate.
10528
10529 2009-02-11 Jakub Jelinek <jakub@redhat.com>
10530
10531 PR middle-end/39154
10532 * testsuite/libgomp.c/pr39154.c: New test.
10533
10534 2009-01-30 Ian Lance Taylor <iant@google.com>
10535
10536 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
10537 libgomp_ld_is_gold. Get gold version number.
10538 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
10539 * configure: Rebuild.
10540
10541 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10542
10543 * testsuite/lib/libgomp.exp: Add -B option for targets that
10544 use libgfortran.a%s in their specs.
10545
10546 2009-01-07 Jakub Jelinek <jakub@redhat.com>
10547
10548 PR libgomp/38086
10549 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
10550 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
10551 HAVE_AS_SYMVER_DIRECTIVE is not defined.
10552 * configure: Regenerated.
10553 * config.h.in: Likewise.
10554
10555 2008-12-28 Jakub Jelinek <jakub@redhat.com>
10556
10557 PR c++/38650
10558 * testsuite/libgomp.c/pr38650.c: New test.
10559 * testsuite/libgomp.c++/pr38650.C: New test.
10560
10561 2008-12-27 Jakub Jelinek <jakub@redhat.com>
10562
10563 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
10564
10565 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
10566
10567 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
10568
10569 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10570
10571 * configure: Regenerate.
10572
10573 2008-12-08 Jakub Jelinek <jakub@redhat.com>
10574
10575 PR middle-end/36802
10576 * testsuite/libgomp.c/pr36802-1.c: New test.
10577 * testsuite/libgomp.c/pr36802-2.c: New test.
10578 * testsuite/libgomp.c/pr36802-3.c: New test.
10579
10580 2008-12-01 Janis Johnson <janis187@us.ibm.com>
10581
10582 PR libgomp/38270
10583 * config/linux/powerpc/mutex.h: New.
10584
10585 2008-12-01 Jakub Jelinek <jakub@redhat.com>
10586
10587 PR c++/38257
10588 * testsuite/libgomp.c++/for-7.C: New test.
10589
10590 PR c++/38348
10591 * testsuite/libgomp.c++/for-6.C: New test.
10592
10593 2008-11-26 Janis Johnson <janis187@us.ibm.com>
10594
10595 PR testsuite/28870
10596 * testsuite/lib/libgomp.exp: Include new timeout library files.
10597 (libgomp_target_compile): Set timeout value from new proc.
10598
10599 2008-11-13 Steve Ellcey <sje@cup.hp.com>
10600
10601 PR libgomp/37938
10602 * config/linux/ia64/mutex.h: New.
10603
10604 2008-11-04 Tobias Burnus <burnus@net-b.de>
10605
10606 PR libgomp/37935
10607 * libgomp.texi (Runtime library routines, environment variables):
10608 Update for OpenMP version 3.0.
10609
10610 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
10611 Steve Ellcey <sje@cup.hp.com>
10612
10613 * configure: Regenerate for new libtool.
10614 * Makefile.in: Ditto.
10615 * testsuite/Makefile.in: Ditto.
10616
10617 2008-09-19 Jakub Jelinek <jakub@redhat.com>
10618 Andreas Tobler <a.tobler@schweiz.org>
10619
10620 * config/bsd/proc.c: New file.
10621 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
10622 * configure.ac: Check for header <sys/sysctl.h>
10623 * configure: Regenerate.
10624 * config.h.in: Likewise.
10625
10626 2008-09-05 Janis Johnson <janis187@us.ibm.com>
10627
10628 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
10629
10630 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
10631
10632 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
10633 * Makefile.in: Regenerated.
10634 * testsuite/Makefile.in: Regenerated.
10635
10636 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
10637
10638 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
10639 depend on blddir if blddir exists.
10640 (libgomp_target_compile): Likewise.
10641 * testsuite/libgomp.c++/c++.exp: Likewise.
10642 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10643
10644 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10645
10646 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
10647 Do not list GPL as Invariant Section.
10648
10649 2008-07-28 Ilie Garbacea <ilie@mips.com>
10650 Chao-ying Fu <fu@mips.com>
10651
10652 * configure.tgt: Enable futex for MIPS.
10653 * config/linux/mips/futex.h: New file.
10654
10655 2008-07-16 Jakub Jelinek <jakub@redhat.com>
10656
10657 * team.c (gomp_team_end): Free team immediately if it has
10658 just one thread.
10659
10660 2008-07-08 David Edelsohn <edelsohn@gnu.org>
10661
10662 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
10663 * testsuite/libgomp.fortran/fortran.exp: Same.
10664 * testsuite/libgomp.c/c.exp: Same.
10665 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
10666 directory to library path first.
10667
10668 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
10669
10670 * env.c (parse_stacksize): Add cast to avoid warning.
10671 (parse_spincount): Likewise.
10672
10673 2008-06-27 Jakub Jelinek <jakub@redhat.com>
10674
10675 * testsuite/libgomp.c/loop-10.c: New test.
10676 * libgomp.c/loop-3.c (main): Add lastprivate clause.
10677 * libgomp.c++/loop-6.C (main): Likewise.
10678
10679 PR debug/36617
10680 * testsuite/libgomp.c/debug-1.c: New test.
10681
10682 2008-06-19 Jakub Jelinek <jakub@redhat.com>
10683
10684 * testsuite/libgomp.c/nqueens-1.c: New test.
10685
10686 PR c++/36523
10687 * testsuite/libgomp.c++/task-7.C: New function.
10688
10689 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10690
10691 * configure: Regenerate.
10692
10693 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10694
10695 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
10696 mutex when HAVE_SYNC_BUILTINS isn't defined.
10697
10698 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10699
10700 * libgomp.texi (omp_test_lock): Fix typo.
10701
10702 2008-06-12 Tobias Burnus <burnus@net-b.de>
10703
10704 * omp_lib.f90.in: Add "implicit none".
10705
10706 2008-06-12 Jakub Jelinek <jakub@redhat.com>
10707
10708 PR middle-end/36506
10709 * testsuite/libgomp.c/reduction-5.c: New test.
10710
10711 2008-06-11 Jakub Jelinek <jakub@redhat.com>
10712
10713 * libgomp.h (struct gomp_task): Add in_tied_task field.
10714 * task.c (gomp_init_task): Initialize it.
10715 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
10716 unconditionally. Don't call gomp_team_barrier_wake if
10717 current task is implicit or if(0) from implicit and number of
10718 running tasks is equal to nthreads - 1.
10719
10720 PR libgomp/36471
10721 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
10722 omp_get_team_size_8): Fix pastos.
10723
10724 PR libgomp/36469
10725 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
10726 * configure: Regenerated.
10727 * config.h.in: Regenerated.
10728 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
10729 defined.
10730
10731 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
10732
10733 PR bootstrap/36452
10734 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
10735 (GOMP_loop_ull_dynamic_start): Likewise.
10736 (GOMP_loop_ull_guided_start): Likewise.
10737 (GOMP_loop_ull_ordered_static_start): Likewise.
10738 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
10739 (GOMP_loop_ull_ordered_guided_start): Likewise.
10740
10741 2008-06-06 Jakub Jelinek <jakub@redhat.com>
10742 Richard Henderson <rth@redhat.com>
10743 Ulrich Drepper <drepper@redhat.com>
10744 Jakob Blomer <jakob.blomer@ira.uka.de>
10745
10746 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
10747 Substitute also OMP_*LOCK_25*.
10748 * configure: Regenerated.
10749 * config.h.in: Regenerated.
10750 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
10751 ptrlock.c and task.c.
10752 * Makefile.in: Regenerated.
10753 * testsuite/Makefile.in: Regenerated.
10754 * task.c: New file.
10755 * loop_ull.c: New file.
10756 * iter_ull.c: New file.
10757 * libgomp.h: Include ptrlock.h.
10758 (enum gomp_task_kind): New type.
10759 (struct gomp_team): Add task_lock, task_queue, task_count,
10760 task_running_count, single_count fields. Add
10761 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
10762 Remove work_share_lock, generation_mask,
10763 oldest_live_gen, num_live_gen and init_work_shares fields, add
10764 work work_share_list_alloc, work_share_list_free and work_share_chunk
10765 fields. Change work_shares from pointer to pointers into an array.
10766 Change ordered_release field into gomp_sem_t ** from flexible array
10767 member. Add implicit_task and initial_work_shares fields.
10768 Move close to the end of the struct.
10769 (struct gomp_team_state): Add single_count, last_work_share,
10770 active_level and level fields, remove work_share_generation.
10771 (gomp_barrier_handle_tasks): New prototype.
10772 (gomp_finish_task): New inline function.
10773 (struct gomp_work_share): Move chunk_size, end, incr into
10774 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
10775 next_ll fields. Reshuffle fields. Add next_alloc,
10776 next_ws, next_free and inline_ordered_team_ids fields, change
10777 ordered_team_ids into pointer from flexible array member.
10778 Add mode field. Put lock and next into a different cache line
10779 from most of the write-once fields.
10780 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
10781 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
10782 gomp_iter_ull_guided_next): New prototypes.
10783 (gomp_new_icv): New prototype.
10784 (struct gomp_thread): Add thread_pool and task fields.
10785 (struct gomp_thread_pool): New type.
10786 (gomp_new_team): New prototype.
10787 (gomp_team_start): Change type of last argument.
10788 (gomp_new_work_share): Removed.
10789 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
10790 (gomp_work_share_init_done): New static inline.
10791 (gomp_throttled_spin_count_var, gomp_available_cpus,
10792 gomp_managed_threads): New extern decls.
10793 (gomp_init_task): New prototype.
10794 (gomp_spin_count_var): New extern var decl.
10795 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
10796 or no alias support, or if not PIC.
10797 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
10798 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
10799 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
10800 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
10801 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
10802 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
10803 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
10804 gomp_test_nest_lock_25): New prototypes.
10805 (omp_lock_symver, strong_alias): Define.
10806 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
10807 decls.
10808 (gomp_end_task): New.
10809 (struct gomp_task_icv, gomp_global_icv): New.
10810 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
10811 (struct gomp_task): New.
10812 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
10813 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
10814 (gomp_icv): New.
10815 (gomp_schedule_type): Reorder enum to match
10816 omp_sched_t.
10817 * team.c (struct gomp_thread_start_data): Add thread_pool and task
10818 fields.
10819 (gomp_thread_start): Add gomp_team_barrier_wait call.
10820 For non-nested case remove clearing of docked thread thr fields.
10821 Use pool fields instead of global gomp_* variables. Use
10822 gomp_barrier_wait_last when needed. Initialize ts.active_level.
10823 Create tasks for each member thread.
10824 (free_team): Only destroy team barrier, task_lock here and free it.
10825 (gomp_free_thread): Free last_team if non-NULL.
10826 (gomp_team_end): Call gomp_team_barrier_wait instead of
10827 gomp_barrier_wait. For nested case call one extra
10828 gomp_barrier_wait. Move here some destruction from free_team.
10829 Call free_team on pool->last_team if any, rather than freeing
10830 current team. Destroy work_share_list_free_lock ifndef
10831 HAVE_SYNC_BUILTINS.
10832 (gomp_new_icv): New function.
10833 (gomp_threads, gomp_threads_size, gomp_threads_used,
10834 gomp_threads_dock): Removed.
10835 (gomp_thread_destructor): New variable.
10836 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
10837 functions.
10838 (gomp_team_start): Create new pool if current thread doesn't have
10839 one. Use pool fields instead of global gomp_* variables.
10840 Initialize thread_pool field for new threads. Clear single_count.
10841 Change last argument from ws to team, don't create
10842 new team, set ts.work_share to &team->work_shares[0] and clear
10843 ts.last_work_share. Don't clear ts.work_share_generation.
10844 If number of threads changed, adjust atomically gomp_managed_threads.
10845 Use gomp_init_task instead of gomp_new_task,
10846 set thr->task to the corresponding implicit_task array entry.
10847 Create tasks for each member thread. Initialize ts.level.
10848 (initialize_team): Call pthread_key_create on
10849 gomp_thread_destructor.
10850 (team_destructor): New function.
10851 (new_team): Removed.
10852 (gomp_new_team): New function.
10853 (free_team): Free gomp_work_share blocks chained through next_alloc,
10854 instead of freeing work_shares and destroying work_share_lock.
10855 (gomp_team_end): Call gomp_fini_work_share. If number of threads
10856 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
10857 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
10858 of gomp_barrier_wait.
10859 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
10860 instead of gomp_barrier_wait. Call gomp_work_share_init_done
10861 if gomp_work_share_start returned true. Don't unlock ws->lock.
10862 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
10863 of gomp_barrier_wait.
10864 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
10865 gomp_work_share_init_done if gomp_work_share_start returned true.
10866 Don't unlock ws->lock.
10867 * work.c: Include stddef.h.
10868 (free_work_share): Use work_share_list_free_lock instead
10869 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
10870 Call gomp_fini_work_share and then either free ws if orphaned, or
10871 put it into work_share_list_free list of the current team.
10872 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
10873 functions.
10874 (gomp_work_share_start, gomp_work_share_end,
10875 gomp_work_share_end_nowait): Rewritten.
10876 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
10877 (openmp_version): Set to 200805.
10878 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
10879 omp_sched_guided, omp_sched_auto): New parameters.
10880 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10881 omp_set_max_active_levels, omp_get_max_active_levels,
10882 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10883 omp_get_active_level): New interfaces.
10884 * omp_lib.h.in (openmp_version): Set to 200805.
10885 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
10886 omp_sched_guided, omp_sched_auto): New parameters.
10887 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10888 omp_set_max_active_levels, omp_get_max_active_levels,
10889 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10890 omp_get_active_level): New externals.
10891 * loop.c: Include limits.h.
10892 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
10893 GFS_AUTO.
10894 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
10895 Likewise. Use gomp_icv.
10896 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
10897 ts.static_trip here.
10898 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
10899 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
10900 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
10901 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
10902 don't unlock ws->lock, otherwise lock it.
10903 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
10904 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
10905 (gomp_parallel_loop_start): Call gomp_new_team instead of
10906 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
10907 Adjust gomp_team_start caller. Pass 0 as second argument to
10908 gomp_resolve_num_threads.
10909 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
10910 If adding ws->chunk_size nthreads + 1 times after end won't
10911 overflow, set ws->mode to 1.
10912 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
10913 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
10914 GOMP_loop_ull_ordered_static_start,
10915 GOMP_loop_ull_ordered_dynamic_start,
10916 GOMP_loop_ull_ordered_guided_start,
10917 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
10918 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
10919 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
10920 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
10921 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
10922 prototypes.
10923 * libgomp.map: Export lock routines also @@OMP_2.0.
10924 (GOMP_loop_ordered_dynamic_first,
10925 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
10926 GOMP_loop_ordered_static_first): Remove.
10927 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
10928 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
10929 GOMP_loop_ull_ordered_dynamic_next,
10930 GOMP_loop_ull_ordered_dynamic_start,
10931 GOMP_loop_ull_ordered_guided_next,
10932 GOMP_loop_ull_ordered_guided_start,
10933 GOMP_loop_ull_ordered_runtime_next,
10934 GOMP_loop_ull_ordered_runtime_start,
10935 GOMP_loop_ull_ordered_static_next,
10936 GOMP_loop_ull_ordered_static_start,
10937 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
10938 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
10939 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
10940 (omp_set_schedule, omp_get_schedule,
10941 omp_get_thread_limit, omp_set_max_active_levels,
10942 omp_get_max_active_levels, omp_get_level,
10943 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
10944 omp_set_schedule_, omp_set_schedule_8_,
10945 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
10946 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
10947 omp_get_max_active_levels_, omp_get_level_,
10948 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
10949 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
10950 New exports @@OMP_3.0.
10951 * omp.h.in (omp_sched_t): New type.
10952 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10953 omp_set_max_active_levels, omp_get_max_active_levels,
10954 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10955 omp_get_active_level): New prototypes.
10956 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
10957 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
10958 gomp_thread_limit_var, gomp_remaining_threads_count,
10959 gomp_remaining_threads_lock): New variables.
10960 (parse_spincount): New function.
10961 (initialize_env): Call gomp_init_num_threads unconditionally.
10962 Initialize gomp_available_cpus. Call parse_spincount,
10963 initialize gomp_{,throttled_}spin_count_var
10964 depending on presence and value of OMP_WAIT_POLICY and
10965 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
10966 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
10967 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
10968 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
10969 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
10970 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
10971 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
10972 (gomp_global_icv): New.
10973 (parse_schedule): Use it. Parse "auto".
10974 (omp_set_num_threads): Use gomp_icv.
10975 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
10976 Likewise.
10977 (omp_get_max_threads): Move from parallel.c.
10978 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10979 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
10980 add ialias.
10981 (parse_stacksize, parse_wait_policy): New functions.
10982 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
10983 both wrappers for compatibility and new locks.
10984 (omp_set_schedule, omp_get_schedule,
10985 omp_get_thread_limit, omp_set_max_active_levels,
10986 omp_get_max_active_levels, omp_get_level,
10987 omp_get_ancestor_thread_num, omp_get_team_size,
10988 omp_get_active_level): New ialias_redirect.
10989 (omp_set_schedule_, omp_set_schedule_8_,
10990 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
10991 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
10992 omp_get_max_active_levels_, omp_get_level_,
10993 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
10994 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
10995 New functions.
10996 * parallel.c: Include limits.h.
10997 (gomp_resolve_num_threads): Add count argument. Rewritten.
10998 (GOMP_parallel_start): Call gomp_new_team and pass that as last
10999 argument to gomp_team_start. Pass 0 as second argument to
11000 gomp_resolve_num_threads.
11001 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
11002 if gomp_thread_limit_var != ULONG_MAX.
11003 (omp_in_parallel): Implement using ts.active_level.
11004 (omp_get_max_threads): Move to env.c.
11005 (omp_get_level, omp_get_ancestor_thread_num,
11006 omp_get_team_size, omp_get_active_level): New functions,
11007 add ialias.
11008 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
11009 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
11010 gomp_iter_dynamic_next instead of the _locked variant and don't take
11011 lock around it, otherwise acquire it before calling
11012 gomp_iter_dynamic_next_locked.
11013 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
11014 gomp_iter_dynamic_next instead of the _locked variant and don't take
11015 lock around it.
11016 (GOMP_parallel_sections_start): Call gomp_new_team instead of
11017 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
11018 Adjust gomp_team_start caller. Pass count as second argument to
11019 gomp_resolve_num_threads, don't adjust num_threads after the call.
11020 Use gomp_icv.
11021 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
11022 ws->chunk_size by incr.
11023 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
11024 code.
11025 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
11026 types.
11027 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
11028 (omp_check_defines): Check even the compat defines.
11029 * config/linux/ptrlock.c: New file.
11030 * config/linux/ptrlock.h: New file.
11031 * config/linux/wait.h: New file.
11032 * config/posix/ptrlock.c: New file.
11033 * config/posix/ptrlock.h: New file.
11034 * config/linux/bar.h (gomp_team_barrier_wait,
11035 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11036 (gomp_team_barrier_set_task_pending,
11037 gomp_team_barrier_clear_task_pending,
11038 gomp_team_barrier_set_waiting_for_tasks,
11039 gomp_team_barrier_waiting_for_tasks,
11040 gomp_team_barrier_done): New inlines.
11041 (gomp_barrier_t): Rewritten.
11042 (gomp_barrier_state_t): New typedef.
11043 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
11044 gomp_barrier_wait_start): Rewritten.
11045 (gomp_barrier_wait_end): Change second argument to
11046 gomp_barrier_state_t.
11047 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11048 inlines.
11049 * config/linux/bar.c: Include wait.h instead of libgomp.h and
11050 futex.h.
11051 (gomp_barrier_wait_end): Rewritten.
11052 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11053 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
11054 * config/posix/bar.h (gomp_barrier_t): Add generation field.
11055 (gomp_barrier_state_t): New typedef.
11056 (gomp_team_barrier_wait,
11057 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
11058 (gomp_barrier_wait_start): Or all but low 2 bits from generation
11059 into the return value. Return gomp_barrier_state_t.
11060 (gomp_team_barrier_set_task_pending,
11061 gomp_team_barrier_clear_task_pending,
11062 gomp_team_barrier_set_waiting_for_tasks,
11063 gomp_team_barrier_waiting_for_tasks,
11064 gomp_team_barrier_done): New inlines.
11065 (gomp_barrier_wait_end): Change second argument to
11066 gomp_barrier_state_t.
11067 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
11068 inlines.
11069 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
11070 (gomp_barrier_wait_end): Change second argument to
11071 gomp_barrier_state_t.
11072 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
11073 gomp_team_barrier_wake): New functions.
11074 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
11075 futex.h.
11076 (gomp_futex_wake, gomp_futex_wait): New variables.
11077 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
11078 * config/linux/lock.c: Rewrite to make locks task owned,
11079 for backwards compatibility provide the old entrypoints
11080 if symbol versioning. Include wait.h instead of libgomp.h and
11081 futex.h.
11082 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
11083 * config/posix95/lock.c: Rewrite to make locks task owned,
11084 for backwards compatibility provide the old entrypoints
11085 if symbol versioning.
11086 * config/posix/lock.c: Rewrite to make locks task owned,
11087 for backwards compatibility provide the old entrypoints
11088 if symbol versioning.
11089 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
11090 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
11091 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
11092 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11093 (sys_futex0): Return error code.
11094 (futex_wake, futex_wait): If ENOSYS was returned, clear
11095 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11096 (cpu_relax, atomic_write_barrier): New static inlines.
11097 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11098 (futex_wake, futex_wait): If ENOSYS was returned, clear
11099 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11100 (cpu_relax, atomic_write_barrier): New static inlines.
11101 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11102 (sys_futex0): Return error code.
11103 (futex_wake, futex_wait): If ENOSYS was returned, clear
11104 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11105 (cpu_relax, atomic_write_barrier): New static inlines.
11106 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11107 (sys_futex0): Return error code.
11108 (futex_wake, futex_wait): If ENOSYS was returned, clear
11109 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11110 (cpu_relax, atomic_write_barrier): New static inlines.
11111 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11112 (sys_futex0): Return error code.
11113 (futex_wake, futex_wait): If ENOSYS was returned, clear
11114 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11115 (cpu_relax, atomic_write_barrier): New static inlines.
11116 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
11117 (sys_futex0): Return error code.
11118 (futex_wake, futex_wait): If ENOSYS was returned, clear
11119 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
11120 (cpu_relax, atomic_write_barrier): New static inlines.
11121 * config/linux/sem.c: Include wait.h instead of libgomp.h and
11122 futex.h.
11123 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
11124 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
11125 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
11126 types.
11127 (omp_nest_lock_t): Change owner into void *, add lock field.
11128 * config/posix95/omp-lock.h: Include semaphore.h.
11129 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11130 (omp_lock_t): Use sem_t instead of mutex if semaphores
11131 aren't broken.
11132 (omp_nest_lock_t): Likewise. Change owner to void *.
11133 * config/posix/omp-lock.h: Include semaphore.h.
11134 (omp_lock_25_t, omp_nest_lock_25_t): New types.
11135 (omp_lock_t): Use sem_t instead of mutex if semaphores
11136 aren't broken.
11137 (omp_nest_lock_t): Likewise. Add owner field.
11138
11139 2008-06-06 Jakub Jelinek <jakub@redhat.com>
11140
11141 * testsuite/libgomp.c/collapse-1.c: New test.
11142 * testsuite/libgomp.c/collapse-2.c: New test.
11143 * testsuite/libgomp.c/collapse-3.c: New test.
11144 * testsuite/libgomp.c/icv-1.c: New test.
11145 * testsuite/libgomp.c/icv-2.c: New test.
11146 * testsuite/libgomp.c/lib-2.c: New test.
11147 * testsuite/libgomp.c/lock-1.c: New test.
11148 * testsuite/libgomp.c/lock-2.c: New test.
11149 * testsuite/libgomp.c/lock-3.c: New test.
11150 * testsuite/libgomp.c/loop-4.c: New test.
11151 * testsuite/libgomp.c/loop-5.c: New test.
11152 * testsuite/libgomp.c/loop-6.c: New test.
11153 * testsuite/libgomp.c/loop-7.c: New test.
11154 * testsuite/libgomp.c/loop-8.c: New test.
11155 * testsuite/libgomp.c/loop-9.c: New test.
11156 * testsuite/libgomp.c/nested-3.c: New test.
11157 * testsuite/libgomp.c/nestedfn-6.c: New test.
11158 * testsuite/libgomp.c/sort-1.c: New test.
11159 * testsuite/libgomp.c/task-1.c: New test.
11160 * testsuite/libgomp.c/task-2.c: New test.
11161 * testsuite/libgomp.c/task-3.c: New test.
11162 * testsuite/libgomp.c/task-4.c: New test.
11163 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
11164 to C++ testsuite default compiler options.
11165 * testsuite/libgomp.c++/collapse-1.C: New test.
11166 * testsuite/libgomp.c++/collapse-2.C: New test.
11167 * testsuite/libgomp.c++/ctor-10.C: New test.
11168 * testsuite/libgomp.c++/for-1.C: New test.
11169 * testsuite/libgomp.c++/for-2.C: New test.
11170 * testsuite/libgomp.c++/for-3.C: New test.
11171 * testsuite/libgomp.c++/for-4.C: New test.
11172 * testsuite/libgomp.c++/for-5.C: New test.
11173 * testsuite/libgomp.c++/loop-8.C: New test.
11174 * testsuite/libgomp.c++/loop-9.C: New test.
11175 * testsuite/libgomp.c++/loop-10.C: New test.
11176 * testsuite/libgomp.c++/task-1.C: New test.
11177 * testsuite/libgomp.c++/task-2.C: New test.
11178 * testsuite/libgomp.c++/task-3.C: New test.
11179 * testsuite/libgomp.c++/task-4.C: New test.
11180 * testsuite/libgomp.c++/task-5.C: New test.
11181 * testsuite/libgomp.c++/task-6.C: New test.
11182 * testsuite/libgomp.fortran/allocatable1.f90: New test.
11183 * testsuite/libgomp.fortran/allocatable2.f90: New test.
11184 * testsuite/libgomp.fortran/allocatable3.f90: New test.
11185 * testsuite/libgomp.fortran/allocatable4.f90: New test.
11186 * testsuite/libgomp.fortran/collapse1.f90: New test.
11187 * testsuite/libgomp.fortran/collapse2.f90: New test.
11188 * testsuite/libgomp.fortran/collapse3.f90: New test.
11189 * testsuite/libgomp.fortran/collapse4.f90: New test.
11190 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
11191 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
11192 * testsuite/libgomp.fortran/lib4.f90: New test.
11193 * testsuite/libgomp.fortran/lock-1.f90: New test.
11194 * testsuite/libgomp.fortran/lock-2.f90: New test.
11195 * testsuite/libgomp.fortran/nested1.f90: New test.
11196 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
11197 * testsuite/libgomp.fortran/strassen.f90: New test.
11198 * testsuite/libgomp.fortran/tabs1.f90: New test.
11199 * testsuite/libgomp.fortran/tabs2.f: New test.
11200 * testsuite/libgomp.fortran/task1.f90: New test.
11201 * testsuite/libgomp.fortran/task2.f90: New test.
11202 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
11203 * testsuite/libgomp.fortran/vla5.f90: Likewise.
11204 * testsuite/libgomp.c/pr26943-2.c: Likewise.
11205 * testsuite/libgomp.c/pr26943-3.c: Likewise.
11206 * testsuite/libgomp.c/pr26943-4.c: Likewise.
11207
11208 2008-05-23 Jakub Jelinek <jakub@redhat.com>
11209
11210 PR c++/36308
11211 * testsuite/libgomp.c++/ctor-11.C: New test.
11212 * testsuite/libgomp.c++/ctor-12.C: New test.
11213
11214 2008-05-15 Janis Johnson <janis187@us.ibm.com>
11215
11216 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
11217
11218 2008-05-07 Jakub Jelinek <jakub@redhat.com>
11219
11220 PR middle-end/36106
11221 * testsuite/libgomp.c/atomic-5.c: New test.
11222 * testsuite/libgomp.c/atomic-6.c: New test.
11223 * testsuite/libgomp.c/autopar-1.c: New test.
11224
11225 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11226
11227 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
11228 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
11229 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
11230 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
11231 * configure: Regenerate.
11232 * Makefile.in, testsuite/Makefile.in: Likewise.
11233
11234 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
11235
11236 PR bootstrap/35457
11237 * aclocal.m4: Regenerate.
11238 * configure: Regenerate.
11239
11240 2008-03-18 Jakub Jelinek <jakub@redhat.com>
11241
11242 PR middle-end/35611
11243 * testsuite/libgomp.c/atomic-4.c: New test.
11244
11245 PR libgomp/35625
11246 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
11247 (gomp_iter_guided_next): Likewise.
11248 * testsuite/libgomp.c/pr35625.c: New test.
11249
11250 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11251
11252 * aclocal.m4: Regenerate.
11253 * configure: Likewise.
11254 * Makefile.in: Likewise.
11255 * testsuite/Makefile.in: Likewise.
11256
11257 2008-03-13 Jakub Jelinek <jakub@redhat.com>
11258
11259 PR middle-end/35185
11260 * testsuite/libgomp.c++/pr35185.C: New test.
11261
11262 2008-03-12 Jakub Jelinek <jakub@redhat.com>
11263
11264 PR middle-end/35549
11265 * testsuite/libgomp.c/pr35549.c: New test.
11266
11267 2008-03-06 Jakub Jelinek <jakub@redhat.com>
11268
11269 * testsuite/libgomp.c/atomic-3.c: New test.
11270
11271 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11272
11273 PR fortran/33197
11274 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
11275 .F08 file suffixes.
11276
11277 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
11278
11279 PR libgomp/33131
11280 * configure.ac: Add ACX_HEADER_STRING.
11281 * env.c: Include strings.h.
11282 * aclocal.m4: Regenerate.
11283 * config.h.in: Regenerate.
11284 * configure: Regenerate.
11285 * Makefile.in: Regenerate.
11286 * testsuite/Makefile.in: Regenerate.
11287
11288 2008-02-15 Jakub Jelinek <jakub@redhat.com>
11289
11290 PR middle-end/35196
11291 * testsuite/libgomp.c/pr35196.c: New test.
11292
11293 PR middle-end/35130
11294 * testsuite/libgomp.fortran/pr35130.f90: New test.
11295 * testsuite/libgomp.c/pr35130.c: New test.
11296
11297 2008-01-25 Jakub Jelinek <jakub@redhat.com>
11298
11299 PR middle-end/33880
11300 * testsuite/libgomp.c/pr33880.c: New test.
11301 * testsuite/libgomp.fortran/pr33880.f90: New test.
11302
11303 2008-01-24 David Edelsohn <edelsohn@gnu.org>
11304
11305 * configure: Regenerate.
11306
11307 2008-01-08 Jakub Jelinek <jakub@redhat.com>
11308
11309 * configure.ac: Move futex checking into ../config/futex.m4.
11310 * configure: Rebuilt.
11311 * aclocal.m4: Rebuilt.
11312 * Makefile.in: Rebuilt.
11313
11314 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
11315 2007-10-15 ../config/tls.m4 change.
11316
11317 2007-12-19 Jakub Jelinek <jakub@redhat.com>
11318
11319 PR c++/34513
11320 * testsuite/libgomp.c/pr34513.c: New test.
11321 * testsuite/libgomp.c++/pr34513.C: New test.
11322
11323 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
11324
11325 PR target/32765
11326 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
11327
11328 2007-12-04 Jakub Jelinek <jakub@redhat.com>
11329
11330 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
11331
11332 2007-12-03 Jakub Jelinek <jakub@redhat.com>
11333
11334 * testsuite/libgomp.c/private-1.c: New test.
11335
11336 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
11337 Paolo Bonzini <bonzini@gnu.org>
11338
11339 * Makefile.am: Use space as vpath separator. Use 'vpath %'
11340 instead of 'VPATH ='.
11341 * Makefile.in: Regenerate.
11342
11343 2007-11-23 Matthias Klose <doko@ubuntu.com>
11344
11345 * configure.ac: Adjust makeinfo version check.
11346 * configure: Regenerate.
11347
11348 2007-11-10 Jakub Jelinek <jakub@redhat.com>
11349
11350 PR fortran/34020
11351 * testsuite/libgomp.fortran/pr34020.f90: New test.
11352
11353 2007-11-06 Jakub Jelinek <jakub@redhat.com>
11354
11355 PR c++/33894
11356 * testsuite/libgomp.c++/atomic-1.C: New test.
11357
11358 2007-10-25 Jakub Jelinek <jakub@redhat.com>
11359
11360 PR libgomp/33275
11361 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
11362 Make x and y integers rather than (implicit) reals. Add private (j)
11363 clause to the last omp parallel.
11364
11365 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
11366
11367 * configure: Regenerate following changes to ../config/tls.m4.
11368
11369 2007-09-28 Jakub Jelinek <jakub@redhat.com>
11370
11371 * testsuite/libgomp.fortran/stack.f90: New test.
11372
11373 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
11374
11375 * config/mingw32/proc.c: New file.
11376
11377 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
11378
11379 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
11380 (main): Use __get_cpuid to get i386 target fetaures.
11381 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
11382 (main): Use __get_cpuid to get x86_64 target fetaures.
11383
11384 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
11385
11386 PR target/32765
11387 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
11388 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
11389
11390 2007-07-12 Jakub Jelinek <jakub@redhat.com>
11391
11392 PR fortran/32550
11393 * testsuite/libgomp.fortran/pr32550.f90: New test.
11394 * testsuite/libgomp.fortran/crayptr2.f90: New test.
11395
11396 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
11397
11398 * aclocal.m4: Regenerated.
11399
11400 2007-07-05 Tobias Burnus <burnus@net-b.de>
11401
11402 PR fortran/32359
11403 * testsuite/libgomp.fortran/pr32359.f90: New.
11404
11405 2007-07-02 Jakub Jelinek <jakub@redhat.com>
11406
11407 PR libgomp/32468
11408 * sections.c (GOMP_parallel_sections_start): Only decrease
11409 number of threads to COUNT if dyn_var is true.
11410 * testsuite/libgomp.c/pr32468.c: New test.
11411
11412 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11413
11414 PR libgomp/26308
11415 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
11416
11417 2007-06-21 Jakub Jelinek <jakub@redhat.com>
11418
11419 PR middle-end/32362
11420 * testsuite/libgomp.c/pr32362-1.c: New test.
11421 * testsuite/libgomp.c/pr32362-2.c: New test.
11422 * testsuite/libgomp.c/pr32362-3.c: New test.
11423
11424 2007-06-07 Jakub Jelinek <jakub@redhat.com>
11425
11426 * team.c (gomp_team_start): Fix setting up thread_attr
11427 stack size.
11428
11429 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
11430
11431 * configure: Regenerate.
11432
11433 2007-05-23 Steve Ellcey <sje@cup.hp.com>
11434
11435 * Makefile.in: Regenerate.
11436 * configure: Regenerate.
11437 * aclocal.m4: Regenerate.
11438 * testsuite/Makefile.in: Regenerate.
11439
11440 2007-05-04 Jakub Jelinek <jakub@redhat.com>
11441
11442 * config/linux/proc.c: New file.
11443
11444 PR libgomp/28482
11445 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
11446
11447 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
11448
11449 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
11450
11451 2007-04-16 Matthias Klose <doko@debian.org>
11452
11453 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
11454 flags if not building with -m64.
11455 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
11456 flag for i?86-*-* targets, if current target matches -m64.
11457
11458 2007-04-14 Steve Ellcey <sje@cup.hp.com>
11459
11460 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
11461 * Makefile.in: Regenerate.
11462
11463 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11464
11465 PR testsuite/31369
11466 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
11467 ld_library_path.
11468 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11469
11470 2007-04-04 Jakub Jelinek <jakub@redhat.com>
11471
11472 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
11473 decls.
11474 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
11475 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
11476 (parse_affinity): New function.
11477 (initialize_env): Call it and gomp_init_affinity.
11478 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
11479 create new pthread_attr_t and call gomp_init_thread_affinity
11480 on it for each thread before passing the attribute to pthread_create.
11481 * config/linux/affinity.c: New file.
11482 * config/posix/affinity.c: New file.
11483 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
11484 * configure: Rebuilt.
11485 * config.h.in: Rebuilt.
11486 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
11487 * Makefile.in: Rebuilt.
11488
11489 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
11490
11491 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
11492 *-*-darwin*.
11493 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
11494 and use it if found.
11495
11496 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
11497
11498 * testsuite/config/default.exp: New file.
11499 * testsuite/lib/libgomp.exp: New file.
11500 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
11501 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
11502 load_lib *, load_gcc_lib *): Move to libgomp.exp.
11503 (libgomp_load): Remove.
11504 * testsuite/lib/libgomp.exp (libgomp_init): Compute
11505 always_ld_library_path, not ld_library_path. Set additional_flags
11506 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
11507 (target_compile): Do not call libgomp_init. Append lang_library_path
11508 and lang_link_flags to options.
11509 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
11510 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
11511 here.
11512 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
11513 always_ld_library_path. Set LD_LIBRARY_PATH here.
11514 * testsuite/libgomp.fortran/fortran.exp: Ditto.
11515 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
11516 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
11517 CX8 flag.
11518 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
11519 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
11520 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
11521 * testsuite/libgomp.c/pr29947-1.c: Ditto.
11522 * testsuite/libgomp.c/atomic-10.c: Ditto.
11523
11524 2007-03-21 Jakub Jelinek <jakub@redhat.com>
11525
11526 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
11527 dg-final cleanup-modules line.
11528 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
11529 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
11530 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
11531 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11532 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11533 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11534 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11535
11536 2007-03-18 Andreas Schwab <schwab@suse.de>
11537
11538 * acinclude.m4: Adjust regular expression for ld version
11539 extraction.
11540 * configure: Regenerate.
11541
11542 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
11543
11544 * Makefile.am: Add install-pdf target as copied from
11545 automake v1.10 rules.
11546 * Makefile.in: Regenerate
11547
11548 2007-02-07 Jakub Jelinek <jakub@redhat.com>
11549
11550 PR libgomp/28486
11551 * configure: Regenerate.
11552
11553 PR c++/30703
11554 * testsuite/libgomp.c++/pr30703.C: New test.
11555
11556 2007-02-02 Jakub Jelinek <jakub@redhat.com>
11557
11558 Revert:
11559 2006-07-05 Eric Christopher <echristo@apple.com>
11560 * configure.ac: Depend addition of -pthread on host OS.
11561 * configure: Regenerate.
11562
11563 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11564
11565 * libgomp.texi: Fix spacing after abbreviations.
11566
11567 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
11568
11569 PR libgomp/30546
11570 * configure.ac: Add check for makeinfo
11571 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
11572 if an appropriate version of makeinfo is found.
11573 * aclocal.m4: Regenerated.
11574 * configure: Regenerated.
11575 * Makefile.in: Regenerated.
11576 * testsuite/Makefile.in: Regenerated.
11577
11578 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
11579
11580 PR libgomp/30540
11581 * libgomp.texi: More about implementation-dependent settings.
11582
11583 2007-01-26 Tobias Burnus <burnus@net-b.de>
11584
11585 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
11586
11587 2007-01-24 Jakub Jelinek <jakub@redhat.com>
11588
11589 PR middle-end/30494
11590 * testsuite/libgomp.c/pr30494.c: New test.
11591
11592 2007-01-15 Tom Tromey <tromey@redhat.com>
11593
11594 * configure: Rebuilt.
11595 * configure.ac: Fixed comment.
11596
11597 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
11598
11599 * libgomp.texi: Document implementation specific default values of
11600 environment variables.
11601
11602 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
11603
11604 PR libgomp/28209
11605 * libgomp.texi: New file.
11606 * configure.ac: Add --enable-generated-files-in-srcdir option.
11607 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
11608 files to srcdir.
11609 * Makefile.in: Regenerated.
11610 * config.h.in: Regenerated.
11611 * testsuite/Makefile.in: Regenerated.
11612 * NOTES: Removed.
11613
11614 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
11615
11616 PR libgomp/29949
11617 * env.c (omp_set_num_threads): Set illegal thread count to 1.
11618
11619 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
11620
11621 * configure: Regenerate.
11622
11623 2006-12-04 Jakub Jelinek <jakub@redhat.com>
11624
11625 PR libgomp/29947
11626 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
11627 start if there shouldn't be any loop iterations.
11628 (gomp_loop_ordered_static_start): Remove start == end test.
11629 * testsuite/libgomp.c/pr29947-1.c: New test.
11630 * testsuite/libgomp.c/pr29947-2.c: New test.
11631
11632 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
11633
11634 * configure.tgt: Force initial-exec TLS model on Linux only.
11635
11636 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
11637
11638 * configure: Regenerated.
11639
11640 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
11641
11642 * env.c (parse_schedule): Reject out of range values.
11643 (parse_unsigned_long): Reject out of range, negative or zero values.
11644
11645 2006-10-29 Jakub Jelinek <jakub@redhat.com>
11646
11647 PR fortran/29629
11648 * testsuite/libgomp.fortran/pr29629.f90: New test.
11649
11650 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
11651
11652 PR libgomp/29494
11653 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
11654 * config/posix95: New directory.
11655 * config/posix95/omp-lock.h: New file.
11656 * config/posix95/lock.c: Likewise.
11657
11658 2006-10-14 Geoffrey Keating <geoffk@apple.com>
11659
11660 * aclocal.m4: Regenerate.
11661 * configure: Regenerate.
11662
11663 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11664
11665 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
11666 '<' to '<='.
11667
11668 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11669
11670 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
11671 test.
11672 * configure: Regenerate.
11673 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
11674
11675 2006-09-26 Jakub Jelinek <jakub@redhat.com>
11676
11677 PR middle-end/25261
11678 PR middle-end/28790
11679 * testsuite/libgomp.c/nestedfn-4.c: New test.
11680 * testsuite/libgomp.c/nestedfn-5.c: New test.
11681 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
11682
11683 PR fortran/29097
11684 * testsuite/libgomp.fortran/condinc1.f: New test.
11685 * testsuite/libgomp.fortran/condinc2.f: New test.
11686 * testsuite/libgomp.fortran/condinc3.f90: New test.
11687 * testsuite/libgomp.fortran/condinc4.f90: New test.
11688 * testsuite/libgomp.fortran/condinc1.inc: New file.
11689
11690 2006-09-18 Tom Tromey <tromey@redhat.com>
11691
11692 * configure: Rebuilt.
11693
11694 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
11695
11696 PR c/28768
11697 PR preprocessor/14634
11698 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
11699 to AC_DEFINE.
11700 * configure: Regenerate.
11701
11702 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
11703
11704 * testsuite/libgomp.fortran/reduction3.f90: Change
11705 -2147483648 to -huge(i)-1 to avoid overflow.
11706 * testsuite/libgomp.fortran/reduction4.f90: Change
11707 Z'ffffffff' to not(0) to avoid overflow.
11708
11709 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
11710
11711 PR libgomp/25938
11712 * Makefile.am (libsubincludedir): New.
11713 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
11714 * Makefile.in: Regenerate.
11715
11716 2006-08-17 Jakub Jelinek <jakub@redhat.com>
11717
11718 PR libgomp/28725
11719 * env.c: Include ctype.h.
11720 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
11721 leading and/or trailing whitespace and compare strings case
11722 insensitively.
11723
11724 2006-07-16 Jakub Jelinek <jakub@redhat.com>
11725
11726 PR fortran/28390
11727 * testsuite/libgomp.fortran/pr28390.f: New test.
11728
11729 2006-07-05 Eric Christopher <echristo@apple.com>
11730
11731 * configure.ac: Depend addition of -pthread on host OS.
11732 * configure: Regenerate.
11733
11734 2006-06-21 Jakub Jelinek <jakub@redhat.com>
11735
11736 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
11737 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
11738 defined.
11739
11740 2006-06-20 Jakub Jelinek <jakub@redhat.com>
11741
11742 PR libgomp/26175
11743 PR libgomp/26477
11744 * configure.ac: If neither --enable-linux-futex nor
11745 --disable-linux-futex is passed, determine the default by checking
11746 for compiling and/or running against NPTL. With --enable-linux-futex,
11747 check if SYS_gettid and SYS_futex are defined.
11748 * configure: Rebuilt.
11749
11750 2006-06-14 Richard Henderson <rth@redhat.com>
11751
11752 PR libgomp/28008
11753 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
11754 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
11755
11756 2006-06-09 Richard Henderson <rth@redhat.com>
11757
11758 * env.c (gomp_nthreads_var): Change to unsigned long.
11759 (gomp_run_sched_chunk): Likewise.
11760 (parse_unsigned_long): Rename from parse_num_threads and generalize.
11761 (initialize_env): Initialize gomp_thread_attr.
11762 * libgomp.h (gomp_nthreads_var): Update decl.
11763 (gomp_run_sched_chunk): Likewise.
11764 (gomp_thread_attr): Declare.
11765 * team.c (gomp_thread_attr): Export.
11766 (initialize_team): Don't initialize it.
11767
11768 2006-06-09 Jakub Jelinek <jakub@redhat.com>
11769
11770 PR fortran/27916
11771 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
11772 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
11773
11774 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
11775
11776 * config/mingw32/time.c: New file.
11777 * configure.tgt: Use it.
11778
11779 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
11780
11781 * Makefile.am: Add install-html target. Add install-html to .PHONY
11782 * Makefile.in: Regenerate.
11783
11784 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11785
11786 PR libgomp/27612
11787 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
11788 * testsuite/libgomp.c/critical-1.c: Likewise.
11789 * testsuite/libgomp.c/loop-1.c: Likewise.
11790 * testsuite/libgomp.c/loop-2.c: Likewise.
11791 * testsuite/libgomp.c/single-1.c: Likewise.
11792 * testsuite/libgomp.c/ordered-1.c: Likewise.
11793 * testsuite/libgomp.c/ordered-2.c: Likewise.
11794
11795 2006-05-15 Jakub Jelinek <jakub@redhat.com>
11796
11797 PR middle-end/27416
11798 * libgomp.fortran/pr27416-1.f90: New test.
11799
11800 2006-05-03 Jakub Jelinek <jakub@redhat.com>
11801
11802 PR fortran/27395
11803 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
11804 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
11805
11806 2006-05-02 Jakub Jelinek <jakub@redhat.com>
11807
11808 PR c++/26943
11809 * testsuite/libgomp.c/pr26943-1.c: New test.
11810 * testsuite/libgomp.c/pr26943-2.c: New test.
11811 * testsuite/libgomp.c/pr26943-3.c: New test.
11812 * testsuite/libgomp.c/pr26943-4.c: New test.
11813 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
11814 * testsuite/libgomp.c++/pr26943.C: New test.
11815
11816 2006-05-02 Jakub Jelinek <jakub@redhat.com>
11817
11818 PR middle-end/27337
11819 * testsuite/libgomp.c++/pr27337.C: New test.
11820
11821 2006-04-26 Jakub Jelinek <jakub@redhat.com>
11822
11823 PR c/26171
11824 * testsuite/libgomp.c/pr26171.c: New test.
11825
11826 2006-04-25 Richard Henderson <rth@redhat.com>
11827
11828 PR libgomp/25865
11829 * configure.ac: Use GCC_CHECK_TLS.
11830 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
11831 * Makefile.in, aclocal.m4, configure: Regenerate.
11832
11833 2006-04-10 Matthias Klose <doko@debian.org>
11834
11835 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
11836 directory names containing underscores.
11837
11838 2006-03-21 Jakub Jelinek <jakub@redhat.com>
11839
11840 PR c++/26691
11841 * testsuite/libgomp.c++/pr26691.C: New test.
11842
11843 2006-03-13 Jakub Jelinek <jakub@redhat.com>
11844
11845 * testsuite/libgomp.fortran/retval2.f90: New test.
11846
11847 2006-03-09 Diego Novillo <dnovillo@redhat.com>
11848
11849 * testsuite/libgomp.c++: New directory.
11850
11851 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
11852
11853 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
11854 * config/posix/sem.c: Implement the above.
11855
11856 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
11857
11858 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
11859 define HAVE_BROKEN_POSIX_SEMAPHORES.
11860 * configure: Rebuilt.
11861 * config.h.in: Rebuilt.
11862
11863 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
11864
11865 PR bootstrap/26161
11866 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
11867 for the other pthread check.
11868 * configure: Regenerate.
11869 * config.h.in: Regenerate.
11870
11871 2006-02-15 Jakub Jelinek <jakub@redhat.com>
11872
11873 PR libgomp/25938
11874 PR libgomp/25984
11875 * Makefile.am (fincludedir): New variable.
11876 (nodist_include_HEADERS): Remove Fortran files.
11877 (nodist_finclude_HEADERS): New variable.
11878 * Makefile.in: Regenerated.
11879
11880 2006-02-13 Jakub Jelinek <jakub@redhat.com>
11881
11882 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
11883 Remove tests for returning assumed character length arrays.
11884
11885 2006-02-12 Roger Sayle <roger@eyesopen.com>
11886 John David Anglin <dave@hiauly1.hia.nrc.ca>
11887
11888 PR libgomp/25936
11889 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
11890
11891 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
11892
11893 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
11894
11895 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
11896
11897 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
11898 part of LD_LIBRARY_PATH manually.
11899
11900 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
11901
11902 PR libgomp/25852
11903 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
11904 libgomp_init.
11905
11906 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
11907
11908 PR libgomp/25884
11909 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
11910 * configure.ac (PERL): Don't set.
11911 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
11912 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
11913 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
11914 * omp.h.in: Wrap the new configure substitutions with @ characters.
11915 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
11916 * aclocal.m4, configure, Makefile.in: Regenerate.
11917 * mkomp_h.pl: Delete.
11918
11919 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
11920
11921 PR libgomp/25259
11922 * configure.ac: Use GCC_HEADER_STDINT.
11923 * libgomp.h: Include gstdint.h.
11924 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
11925 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
11926
11927 2006-01-24 Richard Henderson <rth@redhat.com>
11928
11929 PR libgomp/25942
11930 * configure.ac: Add AM_MAINTAINER_MODE.
11931 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
11932
11933 2006-01-24 Diego Novillo <dnovillo@redhat.com>
11934
11935 * Makefile.in: Regenerate.
11936 * testsuite/Makefile.in: Regenerate.
11937 * aclocal.m4: Regenerate.
11938
11939 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
11940
11941 * config/posix/proc.c: Conditional include of sys/loadavg.h for
11942 Solaris.
11943 * configure.ac: Add check for loadavg.h.
11944 (link_gomp): Adjust comment.
11945 * configure: Regenerate.
11946 * config.h.in: Regenerate.
11947
11948 2006-01-21 Steve Ellcey <sje@cup.hp.com>
11949
11950 PR libgomp/25877
11951 * configure.ac: Remove check for alloca.h.
11952 * configure: Regenerate.
11953 * config.h.in: Regenerate.
11954 * libgomp.h: define gomp_alloca to be __builtin_alloca.
11955 * team.c: Remove use of alloca.h.
11956 Call gomp_alloca instead of alloca.
11957
11958 2006-01-20 Steve Ellcey <sje@cup.hp.com>
11959
11960 PR libgomp/25877
11961 * team.c: Add include of alloca.h.
11962 * configure.ac: Add check for alloca.h.
11963 * configure: Regenerate.
11964 * config.h.in: Regenerate.
11965
11966 2006-01-17 Jakub Jelinek <jakub@redhat.com>
11967
11968 PR fortran/25219
11969 * testsuite/libgomp.fortran/pr25219.f90: New test.
11970
11971 2005-12-05 Uros Bizjak <uros@kss-loka.si>
11972
11973 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
11974 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
11975 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
11976 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
11977 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
11978 testsuite/libgomp.fortran/threadprivate1.f90,
11979 testsuite/libgomp.fortran/threadprivate2.f90,
11980 testsuite/libgomp.fortran/threadprivate3.f90,
11981 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
11982 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
11983 testsuite/libgomp.fortran/omp_parse3.f90: Change required
11984 effective-target to TLS runtime.
11985
11986 * testsuite/libgomp.fortran/pr25162.f: Require
11987 effective-target TLS runtime.
11988
11989 2005-12-01 Jakub Jelinek <jakub@redhat.com>
11990
11991 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
11992 * testsuite/libgomp.c/nestedfn-3.c: New test.
11993
11994 2005-11-30 Jakub Jelinek <jakub@redhat.com>
11995
11996 PR fortran/25162
11997 * testsuite/libgomp.fortran/pr25162.f: New test.
11998
11999 2005-11-28 Jakub Jelinek <jakub@redhat.com>
12000
12001 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
12002 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
12003
12004 2005-11-25 Jakub Jelinek <jakub@redhat.com>
12005
12006 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
12007 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
12008 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
12009 single.c, team.c, work.c, config/linux/alpha/futex.h,
12010 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
12011 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
12012 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
12013 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
12014 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
12015 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
12016 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
12017 FSF address.
12018
12019 2005-11-18 Jakub Jelinek <jakub@redhat.com>
12020
12021 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
12022 to nodist_noinst_HEADERS.
12023 * Makefile.in: Rebuilt.
12024
12025 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
12026 add integer count field.
12027 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
12028 omp_nest_lock_t type change.
12029 (omp_init_nest_lock): Likewise. Initialize count to 0.
12030 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
12031 Increment count.
12032 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
12033 Decrement count.
12034 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
12035 Increment count if successful and return the new nesting level.
12036 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
12037 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
12038 * testsuite/libgomp.c/lib-1.c: New test.
12039 * testsuite/libgomp.fortran/lib1.f90: New test.
12040 * testsuite/libgomp.fortran/lib2.f: New test.
12041 * testsuite/libgomp.fortran/lib3.f: New test.
12042
12043 2005-11-17 Richard Henderson <rth@redhat.com>
12044
12045 PR 24845
12046 * Makefile.am (nodist_toolexeclib_HEADERS): New.
12047 * configure.ac (link_gomp): New. Substitute it.
12048 (AC_CONFIG_FILES): Add libgomp.spec.
12049 * libgomp.spec.in: New file.
12050 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
12051 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
12052
12053 2005-11-18 Jakub Jelinek <jakub@redhat.com>
12054
12055 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
12056 reduction(-:var) behaving the same as reduction(+:var).
12057 * testsuite/libgomp.c/reduction-4.c: New test.
12058
12059 2005-11-15 Uros Bizjak <uros@kss-loka.si>
12060
12061 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
12062 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
12063 testsuite/libgomp.c/copyin-3.c,
12064 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
12065 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
12066 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
12067 testsuite/libgomp.c++/pr24455.C,
12068 testsuite/libgomp.fortran/threadprivate1.f90,
12069 testsuite/libgomp.fortran/threadprivate2.f90,
12070 testsuite/libgomp.fortran/threadprivate3.f90,
12071 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
12072 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
12073 testsuite/libgomp.fortran/omp_parse3.f90: Require
12074 effective-target TLS.
12075
12076 2005-11-14 Diego Novillo <dnovillo@redhat.com>
12077
12078 * HEADER: Remove.
12079
12080 2005-11-13 Jakub Jelinek <jakub@redhat.com>
12081
12082 PR libgomp/24797
12083 * team.c (initialize_team): Pass NULL rather than free as
12084 pthread_key_create destructor. Initialize thread specific data
12085 pointer in initial thread to a static local variable rather than
12086 malloced memory.
12087
12088 2005-11-11 Uros Bizjak <uros@kss-loka.si>
12089
12090 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
12091 its location to ld_library_path.
12092
12093 2005-11-10 Diego Novillo <dnovillo@redhat.com>
12094
12095 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
12096
12097 2005-11-10 Diego Novillo <dnovillo@redhat.com>
12098
12099 * testsuite/libgomp.c: Rename from libgomp.dg.
12100
12101 2005-11-09 Diego Novillo <dnovillo@redhat.com>
12102
12103 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
12104 threadprivate variable 'i'.
12105
12106 2005-11-09 Jakub Jelinek <jakub@redhat.com>
12107
12108 * config/linux/s390/futex.h: New file.
12109 * configure.tgt: Use it.
12110
12111 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
12112 before the parallel.
12113
12114 2005-11-08 Jakub Jelinek <jakub@redhat.com>
12115
12116 PR c++/24734
12117 * testsuite/libgomp.c++/master-1.C: New test.
12118
12119 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12120
12121 * testsuite/libgomp.dg/copyin-3.c: New test.
12122
12123 2005-11-07 Jakub Jelinek <jakub@redhat.com>
12124
12125 * testsuite/libgomp.fortran/retval1.f90: New test.
12126 * testsuite/libgomp.fortran/vla7.f90: New test.
12127
12128 2005-11-06 Jakub Jelinek <jakub@redhat.com>
12129
12130 * testsuite/libgomp.fortran/vla2.f90: New test.
12131 * testsuite/libgomp.fortran/vla3.f90: New test.
12132 * testsuite/libgomp.fortran/vla4.f90: New test.
12133 * testsuite/libgomp.fortran/vla5.f90: New test.
12134 * testsuite/libgomp.fortran/vla6.f90: New test.
12135
12136 2005-11-01 Jakub Jelinek <jakub@redhat.com>
12137
12138 * config/linux/sparc/futex.h: New file.
12139 * configure.tgt: Use it.
12140 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
12141
12142 * critical.c: Include stdlib.h.
12143 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
12144 ignoring return value.
12145 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
12146 LIBGOMP_CHECK_SYNC_BUILTINS check.
12147 * configure: Rebuilt.
12148
12149 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12150
12151 * testsuite/libgomp.fortran/vla1.f90: New test.
12152
12153 2005-10-31 Richard Henderson <rth@redhat.com>
12154
12155 * testsuite/libgomp.fortran/character2.f90: Fix race condition
12156 setting 's' in different threads.
12157
12158 2005-10-31 Jakub Jelinek <jakub@redhat.com>
12159
12160 * libgomp.h (attribute_hidden, ialias): Define.
12161 * config/posix/proc.c (omp_get_num_procs): Add ialias.
12162 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
12163 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
12164 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12165 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12166 omp_test_lock, omp_test_nest_lock): Likewise.
12167 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
12168 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
12169 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
12170 omp_test_lock, omp_test_nest_lock): Likewise.
12171 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
12172 omp_get_dynamic, omp_get_nested): Likewise.
12173 * parallel.c (omp_get_num_threads, omp_get_max_threads,
12174 omp_get_thread_num, omp_in_parallel): Likewise.
12175 * fortran.c (ialias_redirect): Define.
12176 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
12177 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
12178 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
12179 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
12180 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
12181 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
12182 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
12183 omp_get_wtime): Add ialias_redirect.
12184
12185 2005-10-30 Jakub Jelinek <jakub@redhat.com>
12186
12187 * fortran.c: Include stdlib.h.
12188
12189 2005-10-29 Jakub Jelinek <jakub@redhat.com>
12190
12191 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
12192 * Makefile.in: Regenerated.
12193
12194 2005-10-28 Jakub Jelinek <jakub@redhat.com>
12195
12196 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
12197 * libgomp_f.h.in (omp_check_defines): New function.
12198 * env.c: Include libgomp_f.h.
12199 (initialize_env): Call omp_check_defines.
12200
12201 * testsuite/libgomp.dg/copyin-2.c: New test.
12202 * testsuite/libgomp.c++/copyin-2.C: New test.
12203 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
12204
12205 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
12206 * testsuite/libgomp.fortran/sharing2.f90: New test.
12207
12208 * testsuite/libgomp.dg/copyin-1.c: New test.
12209 * testsuite/libgomp.c++/copyin-1.C: New test.
12210
12211 2005-10-26 Jakub Jelinek <jakub@redhat.com>
12212
12213 * testsuite/libgomp.fortran/crayptr1.f90: New test.
12214
12215 * testsuite/libgomp.fortran/workshare1.f90: New test.
12216
12217 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
12218 only test.
12219 * libgomp.fortran/sharing1.f90: New test.
12220
12221 2005-10-24 Jakub Jelinek <jakub@redhat.com>
12222
12223 PR c++/24502
12224 * testsuite/libgomp.c++/loop-7.C: New test.
12225
12226 * testsuite/libgomp.dg/nestedfn-2.c: New test.
12227
12228 * testsuite/libgomp.dg/nestedfn-1.c: New test.
12229 * testsuite/libgomp.fortran/reduction6.f90: New test.
12230 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
12231
12232 2005-10-23 Richard Henderson <rth@redhat.com>
12233
12234 * testsuite/libgomp.c++/ctor-1.C: New.
12235 * testsuite/libgomp.c++/ctor-2.C: New.
12236 * testsuite/libgomp.c++/ctor-3.C: New.
12237 * testsuite/libgomp.c++/ctor-4.C: New.
12238 * testsuite/libgomp.c++/ctor-5.C: New.
12239 * testsuite/libgomp.c++/ctor-6.C: New.
12240 * testsuite/libgomp.c++/ctor-7.C: New.
12241 * testsuite/libgomp.c++/ctor-8.C: New.
12242 * testsuite/libgomp.c++/ctor-9.C: New.
12243
12244 2005-10-21 Diego Novillo <dnovillo@redhat.com>
12245
12246 PR 24455
12247 * testsuite/libgomp.c++/pr24455-1.C: New test.
12248 * testsuite/libgomp.c++/pr24455.C: New test.
12249 * testsuite/libgomp.dg/pr24455-1.c: New test.
12250 * testsuite/libgomp.dg/pr24455.c: New test.
12251
12252 2005-10-20 Richard Henderson <rth@redhat.com>
12253
12254 * testsuite/libgomp.c++/loop-6.C: New.
12255 * testsuite/libgomp.dg/loop-3.c: New.
12256
12257 2005-10-20 Jakub Jelinek <jakub@redhat.com>
12258
12259 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
12260 explicitly private.
12261 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
12262 explicitly shared.
12263
12264 2005-10-19 Diego Novillo <dnovillo@redhat.com>
12265
12266 * testsuite/libgomp.fortran/jacobi.f: New test.
12267
12268 2005-10-19 Richard Henderson <rth@redhat.com>
12269
12270 * configure.tgt (i?86-linux): Default to with_arch instead of
12271 CFLAGS. Add -mtune to match target_cpu.
12272 (x86_64-linux): Tune to i686.
12273
12274 * fortran.c (omp_test_nest_lock_): Fix typo.
12275
12276 2005-10-19 Jakub Jelinek <jakub@redhat.com>
12277
12278 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12279 gomp_ordered_sync): Do nothing if team->nthreads == 1.
12280 * testsuite/libgomp.dg/ordered-3.c: New test.
12281
12282 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
12283 Remove volatile keyword.
12284
12285 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
12286 in COMMON block to avoid warnings on 64-bit targets.
12287
12288 2005-10-18 Diego Novillo <dnovillo@redhat.com>
12289
12290 * testsuite/libgomp.dg/shared-3.c: New test.
12291
12292 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12293
12294 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
12295 * testsuite/libgomp.fortran/reduction5.f90: New test.
12296
12297 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12298
12299 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
12300 dg-options.
12301 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
12302 flush loop now that __sync_synchronize has proper memory barrier.
12303 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
12304 Add -ffixed-form to dg-options.
12305
12306 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12307
12308 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
12309 from subdirectories.
12310 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
12311 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
12312 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
12313 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
12314 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
12315 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
12316 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
12317 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
12318 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
12319 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
12320 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
12321 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
12322 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
12323 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
12324 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
12325 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
12326 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
12327 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
12328 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
12329 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
12330 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
12331 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
12332 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
12333 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
12334 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
12335
12336 2005-10-17 Jakub Jelinek <jakub@redhat.com>
12337
12338 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
12339 lang_library_path exists. Use find instead of glob to gather tests.
12340 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
12341
12342 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12343
12344 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
12345 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
12346 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
12347 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
12348 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
12349 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
12350 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
12351 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
12352 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
12353 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
12354 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
12355 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
12356 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
12357
12358 2005-10-15 Jakub Jelinek <jakub@redhat.com>
12359
12360 * testsuite/libgomp.dg/vla-1.c: New test.
12361
12362 * testsuite/libgomp.fortran/reference2.f90: New test.
12363
12364 * testsuite/libgomp.fortran/character2.f90: Remove explicit
12365 declaration of omp_get_thread_num.
12366 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
12367 use omp_lib.
12368
12369 * testsuite/libgomp.fortran/reduction1.f90: New test.
12370 * testsuite/libgomp.fortran/reduction2.f90: New test.
12371 * testsuite/libgomp.fortran/reduction3.f90: New test.
12372 * testsuite/libgomp.fortran/reduction4.f90: New test.
12373
12374 2005-10-13 Richard Henderson <rth@redhat.com>
12375
12376 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
12377 * Makefile.in: Regenerate.
12378 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
12379 * libgomp.h: Include bar.h.
12380 (struct gomp_barrier): Remove.
12381 (struct gomp_team): Add barrier. Replace master_barrier with
12382 master_release. Replace threads with ordered_release.
12383 (struct gomp_thread): Replace barrier with release.
12384 * ordered.c (gomp_ordered_first): Update for ordered_release change.
12385 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
12386 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
12387 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
12388 (GOMP_single_copy_end): Likewise.
12389 * team.c (gomp_threads_dock): New.
12390 (gomp_barrier_init, gomp_barrier_destroy): Remove.
12391 (gomp_thread_start): Use gomp_barrier_wait.
12392 (new_team, free_team): Update for gomp_team changes.
12393 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
12394 (gomp_team_end): Use gomp_barrier_wait.
12395 (initialize_team): Update for gomp_thread changes.
12396 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
12397 (gomp_work_share_end_nowait): Use atomic ops when available.
12398 * config/linux/bar.c, config/linux/bar.h: New files.
12399 * config/posix/bar.c, config/posix/bar.h: New files.
12400
12401 2005-10-13 Jakub Jelinek <jakub@redhat.com>
12402
12403 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
12404 * testsuite/libgomp.dg/single-2.c: New test.
12405
12406 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
12407 lang_link_flags): Unset, so that they aren't inherited from previously
12408 sourced *.exp.
12409
12410 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
12411
12412 2005-10-12 Richard Henderson <rth@redhat.com>
12413
12414 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
12415 (libgomp_init): Use lang_test_file, lang_library_path, and
12416 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
12417
12418 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
12419 (lang_test_file, lang_link_flags): New.
12420 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
12421
12422 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
12423 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
12424 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
12425 testsuite/libgomp.c++/parallel-1.C,
12426 testsuite/libgomp.c++/reduction-1.C,
12427 testsuite/libgomp.c++/reduction-2.C,
12428 testsuite/libgomp.c++/reduction-3.C,
12429 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
12430 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
12431 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
12432 New files, largely cribbed from the C testsuite.
12433
12434 2005-10-12 Jakub Jelinek <jakub@redhat.com>
12435
12436 * testsuite/libgomp.fortran/character1.f90: New test.
12437 * testsuite/libgomp.fortran/character2.f90: New test.
12438
12439 * testsuite/libgomp.dg/nested-1.c: New test.
12440 * testsuite/libgomp.dg/nested-2.c: New test.
12441 * testsuite/libgomp.fortran/do1.f90: New test.
12442 * testsuite/libgomp.fortran/do2.f90: New test.
12443
12444 * testsuite/libgomp.fortran/reference1.f90: New test.
12445
12446 2005-10-11 Jakub Jelinek <jakub@redhat.com>
12447
12448 * testsuite/libgomp.dg/reduction-1.c: New test.
12449 * testsuite/libgomp.dg/reduction-2.c: New test.
12450 * testsuite/libgomp.dg/reduction-3.c: New test.
12451
12452 2005-10-10 Jakub Jelinek <jakub@redhat.com>
12453
12454 * testsuite/libgomp.dg/atomic-1.c: New test.
12455 * testsuite/libgomp.dg/atomic-2.c: New test.
12456
12457 2005-10-09 Richard Henderson <rth@redhat.com>
12458
12459 * critical.c (atomic_lock): New.
12460 (initialize_critical): Initialize it.
12461 (GOMP_atomic_start, GOMP_atomic_end): New.
12462 * libgomp.map: Export them.
12463 * libgomp_g.h: Declare them.
12464
12465 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
12466
12467 2005-10-02 Richard Henderson <rth@redhat.com>
12468
12469 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
12470 to XCFLAGS instead of CFLAGS.
12471
12472 2005-09-30 Richard Henderson <rth@redhat.com>
12473
12474 * configure.ac: Determine whether -pthread or -lpthread is needed.
12475 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
12476 * Makefile.in, configure: Rebuild.
12477
12478 2005-09-28 Richard Henderson <rth@redhat.com>
12479
12480 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
12481 * testsuite/libgomp.dg/omp-single-3.c: New test.
12482
12483 2005-09-28 Diego Novillo <dnovillo@redhat.com>
12484
12485 * testsuite/libgomp.dg/omp-single-2.c: New test.
12486 * testsuite/libgomp.dg/shared-2.c: Fix return code.
12487
12488 2005-09-27 Richard Henderson <rth@redhat.com>
12489
12490 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
12491 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
12492
12493 2005-09-27 Jakub Jelinek <jakub@redhat.com>
12494
12495 * testsuite/libgomp.dg/omp-loop03.c: New test.
12496
12497 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12498
12499 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
12500
12501 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12502
12503 * testsuite/libgomp.dg/omp-single-1.c: New test.
12504 * testsuite/libgomp.dg/shared-1.c: Return 0.
12505 Add prototype for abort.
12506 * testsuite/libgomp.dg/shared-2.c: Likewise.
12507
12508 2005-09-26 Jakub Jelinek <jakub@redhat.com>
12509
12510 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
12511 constructs.
12512
12513 2005-09-26 Diego Novillo <dnovillo@redhat.com>
12514
12515 * testsuite/libgomp.dg/shared-1.c: New test.
12516 * testsuite/libgomp.dg/shared-2.c: New test.
12517
12518 2005-09-24 Richard Henderson <rth@redhat.com>
12519
12520 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
12521
12522 2005-09-24 Richard Henderson <rth@redhat.com>
12523
12524 * iter.c (gomp_iter_static_next): Round up when computing number
12525 of iterations. Don't bother distributing a remainder equally.
12526
12527 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
12528 Don't call srand. Zero b before testing.
12529 (main): New.
12530
12531 2005-09-24 Jakub Jelinek <jakub@redhat.com>
12532
12533 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
12534 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
12535
12536 2005-09-23 Jakub Jelinek <jakub@redhat.com>
12537
12538 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
12539 without !$omp end do, followed immediately by subroutine end.
12540
12541 2005-09-23 Diego Novillo <dnovillo@redhat.com>
12542
12543 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
12544
12545 2005-09-22 Richard Henderson <rth@redhat.com>
12546
12547 * critical.c (GOMP_critical_name_start): Change argument to void**.
12548 Reuse the pointer space if the mutex fits.
12549 (GOMP_critical_name_end): Likewise.
12550 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
12551 * libgomp_g.h (GOMP_critical_name_start): Update decl.
12552 (GOMP_critical_name_end): Likewise.
12553 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
12554 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
12555
12556 2005-09-20 Richard Henderson <rth@redhat.com>
12557
12558 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
12559 (create_lock_lock): New.
12560 (initialize_critical): Initialize it.
12561 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
12562 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
12563
12564 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12565
12566 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
12567
12568 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12569
12570 * testsuite/libgomp.dg/omp-loop01.c: New test.
12571 * testsuite/libgomp.dg/omp-loop02.c: New test.
12572
12573 2005-09-20 Jakub Jelinek <jakub@redhat.com>
12574
12575 * configure.ac (AC_PROG_FC): Add.
12576 (USE_FORTRAN): New automake conditional.
12577 * configure: Rebuilt.
12578 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
12579 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
12580 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
12581 Add rules to build them.
12582 * Makefile.in: Rebuilt.
12583 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
12584 OMP_NEST_LOCK_KIND.
12585 * libgomp.map: Add Fortran wrappers.
12586 * libgomp_f.h.in: New file.
12587 * omp_lib.h.in: New file.
12588 * omp_lib.f90.in: New file.
12589 * fortran.c: New file.
12590 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
12591 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
12592 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
12593 libgfortran has been built.
12594 * testsuite/libgomp.fortran/fortran.exp: New file.
12595 * testsuite/libgomp.fortran/omp_cond1.f: New test.
12596 * testsuite/libgomp.fortran/omp_cond2.f: New test.
12597 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
12598 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
12599 * testsuite/libgomp.fortran/omp_hello.f: New test.
12600 * testsuite/libgomp.fortran/omp_orphan.f: New test.
12601 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
12602 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
12603 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
12604 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
12605 * testsuite/libgomp.fortran/omp_reduction.f: New test.
12606 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
12607 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
12608
12609 2005-08-30 Richard Henderson <rth@redhat.com>
12610
12611 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
12612 function for when aliases are not usable.
12613 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
12614 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12615 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
12616 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
12617 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
12618 GOMP_loop_ordered_guided_next): Likewise.
12619 * ordered.c (GOMP_ordered_start): Likewise.
12620
12621 2005-08-01 Diego Novillo <dnovillo@redhat.com>
12622
12623 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
12624 * testsuite/libgomp.dg/omp_hello.c: Fix return code
12625 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
12626 * testsuite/libgomp.dg/omp_orphan.c: Likewise
12627 * testsuite/libgomp.dg/omp_reduction.c: Likewise
12628 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
12629 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
12630 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
12631 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
12632
12633 2005-07-07 Eric Christopher <echristo@redhat.com>
12634 Diego Novillo <dnovillo@redhat.com>
12635
12636 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
12637 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
12638 up code.
12639 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
12640 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
12641 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
12642 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
12643 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
12644 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
12645 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
12646
12647 2005-06-13 Diego Novillo <dnovillo@redhat.com>
12648
12649 * TOPLEVEL.patch: Remove.
12650
12651 2005-05-16 Richard Henderson <rth@redhat.com>
12652
12653 * configure.ac: Test for clock_gettime.
12654 * config.h.in, configure: Rebuild.
12655 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
12656 (omp_get_wtime): Use clock_gettime if available.
12657 (omp_get_wtick): Use clock_getres if available.
12658
12659 2005-05-11 Richard Henderson <rth@redhat.com>
12660
12661 * config/linux/ia64/futex.h: New file.
12662 * configure.tgt: Use it.
12663
12664 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
12665
12666 2005-05-07 Richard Henderson <rth@redhat.com>
12667
12668 * config/linux/powerpc/futex.h: New file.
12669 * configure.tgt: Use it.
12670
12671 * config/linux/i486/futex.h: Merge ...
12672 * config/linux/x86_64/futex.h: ... into ...
12673 * config/linux/x86/futex.h: ... here.
12674 * configure.tgt: Update to match.
12675
12676 2005-05-06 Richard Henderson <rth@redhat.com>
12677
12678 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
12679 * config/linux/i486/futex.h: Likewise.
12680 * config/linux/x86_64/futex.h: Likewise.
12681
12682 * config/linux/lock.c: New file.
12683 * config/linux/omp-lock.h: New file.
12684
12685 * critical.c, env.h: Don't include omp.h
12686 * config/posix/lock.c: Include libgomp.h instead of omp.h.
12687 * config/posix/time.c: Likewise.
12688 * config/posix/omp-lock.h: New file.
12689 * libgomp.h: Include omp-lock.h and omp.h.
12690 * Makefile.am (nodist_include_HEADERS): New.
12691 (omp.h): New rule.
12692 * configure.ac (PERL): New.
12693 * mkomp_h.pl: New file.
12694 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
12695 with templates.
12696 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
12697
12698 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
12699 build directory. Re-add -march=i486 hack.
12700
12701 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
12702 (libgomp_link_flags): Remove.
12703 (libgomp_initialized): Remove.
12704 (libgomp_init): Don't protect from reinitialization. Copy code
12705 from libstdc++ for getting the multilib set correctly.
12706
12707 2005-05-05 Richard Henderson <rth@redhat.com>
12708
12709 * config/linux/alpha/futex.h: New file.
12710 * configure.tgt (alpha*-*-linux*): Use it.
12711
12712 * config/posix/mutex.c: New file.
12713 * config/posix/sem.c: Use libgomp.h.
12714
12715 * configure.tgt (x86_64-linux): Also test CC for -m32.
12716 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
12717
12718 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
12719 after $gccpath.
12720
12721 * Makefile.am (SUBDIRS): New.
12722 (libgomp_la_LDFLAGS): Add -lpthread.
12723 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
12724 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
12725
12726 * libgomp_g.h: New file.
12727 * libgomp.h: Split out all public declarations to libgomp_g.h.
12728 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
12729 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
12730 * config/linux/sem.h: Likewise.
12731 * config/posix/sem.h: Likewise.
12732
12733 * Makefile.am (AM_LDFLAGS): New.
12734 (libgomp_version_script): Split out from ...
12735 (libgomp_la_LDFLAGS): ... here.
12736 (libgomp_version_info): New.
12737 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
12738 (LIBGOMP_ENABLE): New.
12739 (LIBGOMP_CHECK_LINKER_FEATURES): New.
12740 (LIBGOMP_ENABLE_SYMVERS): New.
12741 * configure.ac (AC_INIT): Version 1.0.
12742 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
12743 (enable-linux-futex): Likewise. Rename from enable-futex.
12744 (libtool_VERSION): New.
12745 (LIBGOMP_ENABLE_SYMVERS): Use it.
12746 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
12747 * Makefile.in, aclocal.m4, configure: Rebuild.
12748
12749 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
12750 (gomp_mutex_unlock_slow): Fix typo.
12751 * config/linux/sem.c: Similarly.
12752 (gomp_sem_post_slow): Fix typo.
12753 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
12754 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
12755 [__PIC__] (sys_futex0): Don't use tmp output in asm.
12756
12757 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
12758 (libgomp_la_LDFLAGS): Add top_srcdir to path.
12759 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
12760 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
12761 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
12762 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
12763 LDFLAGS. Pull enable_futex check to top-level.
12764 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
12765 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
12766
12767 First attempt at real configury.
12768 * Makefile, config.h: Remove file.
12769 * Makefile.am, Makefile.in: New file.
12770 * acinclude.m4 aclocal.m4: New file.
12771 * configure.ac, configure.tgt, configure: New file.
12772
12773 * config/posix/lock.c: Rename from sys-lock.c.
12774 * config/posix/mutex.h: Rename from sys-mutex.h.
12775 * config/posix/sem.c: Rename from sys-sem.c.
12776 * config/posix/sem.h: Rename from sys-sem.h.
12777 * config/posix/proc.c: Rename from sys-proc.c.
12778 * config/posix/time.c: Rename from sys-proc.c.
12779
12780 * config/linux/mutex.c: New file.
12781 * config/linux/mutex.h: New file.
12782 * config/linux/sem.c: New file.
12783 * config/linux/sem.h: New file.
12784 * config/linux/i486/futex.h: New file.
12785 * config/linux/x86_64/futex.h: New file.
12786
12787 2005-05-04 Richard Henderson <rth@redhat.com>
12788
12789 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
12790 * libgomp.h: Declare them.
12791 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
12792 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
12793
12794 2005-05-04 Richard Henderson <rth@redhat.com>
12795
12796 * libgomp-1 code drop
12797
12798 2005-05-04 Richard Henderson <rth@redhat.com>
12799
12800 * iter.c (gomp_iter_static_next): Return tri-state on 0.
12801 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
12802 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
12803 (gomp_iter_static_next): Update.
12804 (gomp_ordered_static_next): Update.
12805 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
12806 (gomp_loop_ordered_static_start): Likewise. Exit early for a
12807 totally empty range.
12808 (gomp_loop_ordered_static_next): Refine test for calling
12809 gomp_ordered_static_next.
12810 * testsuite/ordered-1.c: Add case for more threads than iterations.
12811
12812 * iter.c (gomp_iter_runtime_next_locked): Remove.
12813 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
12814 gomp_loop_guided_start, gomp_loop_ordered_static_start,
12815 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
12816 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
12817 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
12818 gomp_loop_ordered_guided_next): Downcase name, make static, add
12819 an external alias with the old name.
12820 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
12821 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
12822 switch and call one of the above static functions.
12823 * libgomp.h: Update.
12824
12825 * work.c (gomp_work_share_start): Lock the mutex for !first too.
12826 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
12827 GOMP_loop_guided_start, GOMP_loop_runtime_start,
12828 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12829 GOMP_loop_ordered_guided_start): Update to match.
12830 * sections.c (GOMP_sections_start): Likewise.
12831 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
12832
12833 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12834 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
12835 Use bounds check instead of modulus.
12836 (gomp_ordered_sync): Split out of GOMP_ordered_start.
12837 (gomp_ordered_last): Don't sync with ordered_owner here.
12838 (gomp_ordered_next): Likewise.
12839 (gomp_ordered_static_loop_next): Likewise.
12840 * loop.c, libgomp.h: Update to match.
12841
12842 * libgomp.h (GOMP_barrier): Declare.
12843
12844 * testsuite/barrier-1.c: New file.
12845 * testsuite/critical-1.c: New file.
12846 * testsuite/ordered-2.c: New file.
12847 * testsuite/ordered-1.c: New file.
12848 * testsuite/sections-1.c: New file.
12849 * testsuite/single-1.c: New file.
12850 * testsuite/Makefile (TESTS): Add them.
12851
12852 2005-05-04 Richard Henderson <rth@redhat.com>
12853
12854 * libgomp.h (struct gomp_work_share): Add ordered_owner.
12855 * loop.c (GOMP_loop_static_start): If not the startup thread,
12856 acquire the mutex to wait for initialization complete.
12857 (GOMP_loop_ordered_static_start): Likewise.
12858 (GOMP_loop_ordered_runtime_start): Likewise.
12859 (GOMP_loop_ordered_static_first): Remove.
12860 (GOMP_loop_ordered_dynamic_first): Remove.
12861 (GOMP_loop_ordered_guided_first): Remove.
12862 (GOMP_loop_ordered_runtime_first): Remove.
12863 * ordered.c (gomp_ordered_loop_first): Post to own release when
12864 we're the first thread.
12865 (gomp_ordered_loop_last): Wait on release if not owner.
12866 (gomp_ordered_loop_next): Likewise.
12867 (gomp_ordered_static_loop_init): New.
12868 (gomp_ordered_static_loop_next): Use ordered_owner.
12869 (GOMP_ordered_start): Likewise.
12870 * work.c (gomp_new_work_share): Initialize ordered_owner.
12871
12872 2005-05-03 Richard Henderson <rth@redhat.com>
12873
12874 * Makefile (OPT): New.
12875 (CFLAGS): Use it.
12876
12877 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
12878 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
12879 * libgomp.h, libgomp.map, NOTES: Update to match.
12880
12881 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
12882 Add initialized and thr members.
12883 (gomp_thread_start): Pause when initially spawned to wait for
12884 the whole team to be created.
12885 (gomp_team_start): Release team members at the end.
12886
12887 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
12888 (f_foo_1): Use GOMP_loop_end.
12889 (f_foo_2): Use GOMP_loop_end_nowait.
12890
12891 * testsuite/loop-2.c: New file.
12892 * testsuite/Makefile (TESTS): Add it.
12893
12894 2005-05-03 Richard Henderson <rth@redhat.com>
12895
12896 * iter.c (gomp_iter_static_next): Fix overflow check typo.
12897 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
12898 * team.c (new_team): Initialize oldest_live_gen to 1 if no
12899 initial work_share.
12900
12901 * testsuite/Makefile: New file.
12902 * testsuite/loop-1.c: New file.
12903
12904 2005-05-03 Richard Henderson <rth@redhat.com>
12905
12906 Initial implementation and checkin.
12907 \f
12908 Copyright (C) 2005-2020 Free Software Foundation, Inc.
12909
12910 Copying and distribution of this file, with or without modification,
12911 are permitted in any medium without royalty provided the copyright
12912 notice and this notice are preserved.