]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/ChangeLog
[OpenACC] Refactor 'goacc_remove_pointer' interface
[thirdparty/gcc.git] / libgomp / ChangeLog
1 2019-12-18 Thomas Schwinge <thomas@codesourcery.com>
2
3 * oacc-mem.c (goacc_remove_pointer): Refactor interface. Adjust
4 all users.
5
6 * oacc-mem.c (GOACC_enter_exit_data): Refactor code to call
7 'goacc_enter_data', 'goacc_exit_data'.
8
9 * oacc-mem.c (delete_copyout): Refactor into...
10 (goacc_exit_data): ... this. Adjust all users.
11
12 * oacc-mem.c (present_create_copy): Refactor into...
13 (goacc_enter_data): ... this. Adjust all users.
14
15 * target.c (gomp_unmap_vars_internal): Add a safeguard to
16 'gomp_remove_var'.
17
18 * target.c (gomp_to_device_kind_p): Handle 'GOMP_MAP_FORCE_FROM'
19 like 'GOMP_MAP_FROM'.
20
21 PR libgomp/92726
22 PR libgomp/92970
23 PR libgomp/92984
24 * oacc-mem.c (delete_copyout): No-op behavior if 'lookup_host'
25 fails.
26 (GOACC_enter_exit_data): Simplify accordingly.
27 * testsuite/libgomp.oacc-c-c++-common/pr92970-1.c: New file,
28 subsuming...
29 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: ... this file...
30 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: ..., and this
31 file.
32 * testsuite/libgomp.oacc-c-c++-common/pr92984-1.c: New file,
33 subsuming...
34 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: ... this file...
35 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: ..., and this
36 file.
37 * testsuite/libgomp.oacc-c-c++-common/pr92726-1.c: New file,
38 subsuming...
39 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: ... this file.
40
41 * oacc-mem.c (GOACC_enter_exit_data): Simplify 'exit data'
42 'finalize' handling.
43
44 PR libgomp/92848
45 * oacc-mem.c (acc_map_data, present_create_copy)
46 (goacc_insert_pointer): Use 'GOMP_MAP_VARS_ENTER_DATA'.
47 (acc_unmap_data, delete_copyout, goacc_remove_pointer): Adjust.
48 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Remove.
49 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-a.c: New file
50 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-d-p.c: Likewise.
51 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-a.c: Likewise.
52 * testsuite/libgomp.oacc-c-c++-common/pr92848-1-r-p.c: Likewise.
53 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
54 Remove "XFAIL"s.
55
56 * target.c (gomp_unmap_tgt): Make it 'static'.
57 * libgomp.h (gomp_unmap_tgt): Remove.
58
59 2019-12-18 Tobias Burnus <tobias@codesourcery.com>
60
61 PR middle-end/86416
62 * testsuite/libgomp.c/pr86416-1.c: New.
63 * testsuite/libgomp.c/pr86416-2.c: New.
64
65 2019-12-17 Tobias Burnus <tobias@codesourcery.com>
66
67 * config/accel/openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark
68 all symbols as public except for the 'use …, only' imported symbol,
69 which is private.
70 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
71 all symbols from module openacc_kinds as PUBLIC
72 * openacc.f90: Add comment with crossref to that file and openmp_lib.h;
73 fix comment typo.
74 * openacc_lib.h (acc_device_gcn): Add this PARAMETER.
75
76 2019-12-13 Julian Brown <julian@codesourcery.com>
77
78 PR libgomp/92881
79
80 * libgomp.h (gomp_remove_var_async): Add prototype.
81 * oacc-mem.c (delete_copyout): Call gomp_remove_var_async instead of
82 gomp_remove_var.
83 * target.c (gomp_unref_tgt): Change return type to bool, indicating
84 whether target_mem_desc was unmapped.
85 (gomp_unref_tgt_void): New.
86 (gomp_remove_var): Reimplement in terms of...
87 (gomp_remove_var_internal): ...this new helper function.
88 (gomp_remove_var_async): New, implemented using above helper function.
89 (gomp_unmap_vars_internal): Use gomp_unref_tgt_void instead of
90 gomp_unref_tgt.
91
92 2019-12-13 Andrew Stubbs <ams@codesourcery.com>
93
94 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Handle gcn.
95 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c: Likewise.
96 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c: Likewise.
97 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Likewise.
98 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c:
99 Likewise.
100 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Disable on GCN.
101 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Likewise.
102
103 2019-12-13 Tobias Burnus <tobias@codesourcery.com>
104
105 * openacc.f90 (module openacc_kinds): Use 'PUBLIC' to mark all symbols
106 as public except for the 'use …, only' imported symbol, which is
107 private.
108 (module openacc): Default to 'PRIVATE' to exclude openacc_internal; mark
109 all symbols from module openacc_kinds as PUBLIC; add missing PUBLIC
110 attributes for acc_copyout_finalize and acc_delete_finalize.
111
112 2019-12-11 Jakub Jelinek <jakub@redhat.com>
113
114 PR fortran/92899
115 * testsuite/libgomp.fortran/atomic1.f90: New test.
116
117 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
118
119 PR libgomp/92843
120 * oacc-mem.c (present_create_copy, delete_copyout): Fix dynamic
121 reference counting for structured 'REFCOUNT_INFINITY'. Add some
122 assertions.
123 (goacc_insert_pointer, goacc_remove_pointer): Adjust accordingly.
124 * testsuite/libgomp.oacc-c-c++-common/pr92843-1.c: New file.
125 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Fix OpenACC.
126 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
127 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
128
129 * oacc-parallel.c (find_pointer, GOACC_enter_exit_data): Move...
130 * oacc-mem.c: ... here.
131 (gomp_acc_insert_pointer, gomp_acc_remove_pointer): Rename to
132 'goacc_insert_pointer', 'goacc_remove_pointer', and make 'static'.
133 * libgomp.h (gomp_acc_insert_pointer, gomp_acc_remove_pointer):
134 Remove.
135 * libgomp_g.h: Update.
136
137 * oacc-parallel.c (GOACC_wait, goacc_wait): Move...
138 * oacc-async.c: ... here.
139 * oacc-int.h (goacc_wait): Declare.
140 * libgomp_g.h: Update
141
142 PR libgomp/92854
143 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-1.c:
144 New file.
145 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-2.c:
146 Likewise.
147 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-device_already-3.c:
148 Likewise.
149 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-1.c:
150 Likewise.
151 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-2.c:
152 Likewise.
153 * testsuite/libgomp.oacc-c-c++-common/acc_map_data-host_already-3.c:
154 Likewise.
155
156 2019-12-11 Thomas Schwinge <thomas@codesourcery.com>
157 Julian Brown <julian@codesourcery.com>
158
159 * target.c (gomp_load_image_to_device, omp_target_associate_ptr):
160 Initialize 'dynamic_refcount' whenever we initialize 'refcount'.
161
162 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
163
164 * omp_lib.h.in: Fix spelling of function declaration
165 omp_get_cancell(l)ation.
166 * libgomp.texi (acc_is_present, acc_async_test, acc_async_test_all):
167 Fix typos.
168 * env.c: Fix comment typos.
169 * oacc-host.c: Likewise.
170 * ordered.c: Likewise.
171 * task.c: Likewise.
172 * team.c: Likewise.
173 * config/gcn/task.c: Likewise.
174 * config/gcn/team.c: Likewise.
175 * config/nvptx/task.c: Likewise.
176 * config/nvptx/team.c: Likewise.
177 * plugin/plugin-gcn.c: Likewise.
178 * testsuite/libgomp.fortran/jacobi.f: Likewise.
179 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
180 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: Likewise.
181
182 2019-12-11 Tobias Burnus <tobias@codesourcery.com>
183
184 * testsuite/libgomp.oacc-fortran/optional-cache.f95: Add 'dg-do run'.
185 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: Remove
186 unnecessary 'dg-additional-options "-w"'.
187
188 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
189 Julian Brown <julian@codesourcery.com>
190
191 PR libgomp/92116
192 PR libgomp/92877
193
194 * oacc-mem.c (lookup_dev): Reimplement. Adjust all users.
195 * libgomp.h (struct acc_dispatch_t): Remove 'data_environ' member.
196 Adjust all users.
197 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
198 Remove XFAIL.
199 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
200 Likewise.
201 * testsuite/libgomp.oacc-c-c++-common/pr92877-1.c: New file.
202
203 2019-12-09 Thomas Schwinge <thomas@codesourcery.com>
204
205 PR libgomp/92503
206 * oacc-mem.c (acc_free): Error out instead of 'acc_unmap_data'.
207 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-1.c: New
208 file.
209 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-2.c:
210 Likewise.
211 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3-2.c:
212 Likewise.
213 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-3.c:
214 Likewise.
215 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4-2.c:
216 Likewise.
217 * testsuite/libgomp.oacc-c-c++-common/acc_free-pr92503-4.c:
218 Likewise.
219 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
220 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
221 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
222 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
223 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
224 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
225 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
226 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
227 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
228 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
229
230 PR libgomp/92840
231 * oacc-mem.c (acc_map_data): Clarify reference counting behavior.
232 (acc_unmap_data): Add error case for 'REFCOUNT_INFINITY'.
233 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-1.c:
234 New file.
235 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-2.c:
236 Likewise.
237 * testsuite/libgomp.oacc-c-c++-common/acc_unmap_data-pr92840-3.c:
238 Likewise.
239 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Adjust.
240 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Adjust.
241
242 PR libgomp/92511
243 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: Remove
244 this file...
245 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: ..., and
246 this file...
247 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: ..., and this
248 file...
249 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: ..., and this
250 file...
251 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-p.c:
252 ... with their content moved into, and extended in this new file.
253 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-a.c:
254 New file.
255 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-d-p.c:
256 Likewise.
257 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-1-r-a.c:
258 Likewise.
259 * testsuite/libgomp.oacc-c-c++-common/subset-subarray-mappings-2.c:
260 Likewise.
261
262 * testsuite/libgomp.oacc-c-c++-common/map-data-1.c: New file.
263
264 PR libgomp/92854
265 * testsuite/libgomp.oacc-c-c++-common/pr92854-1.c: New file.
266
267 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New file.
268
269 * target.c (gomp_exit_data): Use 'gomp_remove_var'.
270
271 2019-12-09 Tobias Burnus <tobias@codesourcery.com>
272
273 * testsuite/libgomp.fortran/use_device_addr-3.f90: Make 'stop' codes
274 unique.
275 * testsuite/libgomp.fortran/use_device_addr-4.f90: Ditto.
276 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: Ditto.
277 * testsuite/libgomp.oacc-fortran/declare-5.f90: Ditto.
278 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90:
279 Ditto.
280 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: Ditto.
281 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: Ditto.
282
283 2019-12-06 Kwok Cheung Yeung <kcy@codesourcery.com>
284
285 * config/accel/proc.c (omp_get_num_procs): Apply ialias macro.
286
287 2019-12-06 Tobias Burnus <tobias@codesourcery.com>
288 Kwok Cheung Yeung <kcy@codesourcery.com>
289
290 * oacc-mem.c (update_dev_host, gomp_acc_insert_pointer): Just return
291 if input it a NULL pointer.
292 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Remove; dependent on
293 diagnostic of NULL pointer.
294 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Ditto.
295 * testsuite/libgomp.fortran/optional-map.f90: New.
296 * testsuite/libgomp.fortran/use_device_addr-1.f90
297 (test_dummy_opt_callee_1_absent): New.
298 (test_dummy_opt_call_1): Call it.
299 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
300 * testsuite/libgomp.fortran/use_device_addr-3.f90: Likewise.
301 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
302 * testsuite/libgomp.oacc-fortran/optional-cache.f95: New.
303 * testsuite/libgomp.oacc-fortran/optional-data-copyin-by-value.f90: New.
304 * testsuite/libgomp.oacc-fortran/optional-data-copyin.f90: New.
305 * testsuite/libgomp.oacc-fortran/optional-data-copyout.f90: New.
306 * testsuite/libgomp.oacc-fortran/optional-data-enter-exit.f90: New.
307 * testsuite/libgomp.oacc-fortran/optional-declare.f90: New.
308 * testsuite/libgomp.oacc-fortran/optional-firstprivate.f90: New.
309 * testsuite/libgomp.oacc-fortran/optional-host_data.f90: New.
310 * testsuite/libgomp.oacc-fortran/optional-nested-calls.f90: New.
311 * testsuite/libgomp.oacc-fortran/optional-private.f90: New.
312 * testsuite/libgomp.oacc-fortran/optional-reduction.f90: New.
313 * testsuite/libgomp.oacc-fortran/optional-update-device.f90: New.
314 * testsuite/libgomp.oacc-fortran/optional-update-host.f90: New.
315
316 2019-12-05 Tobias Burnus <tobias@codesourcery.com>
317
318 * testsuite/libgomp.oacc-fortran/error_stop-1.f: Also don't
319 expect dg-output of 'Error termination.' for GCN.
320 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
321 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
322
323 2019-12-04 Jakub Jelinek <jakub@redhat.com>
324
325 PR fortran/92756
326 * testsuite/libgomp.fortran/teams1.f90: New test.
327 * testsuite/libgomp.fortran/teams2.f90: New test.
328
329 2019-12-03 Frederik Harwath <frederik@codesourcery.com>
330
331 * oacc-init.c (acc_known_device_type): Add function.
332 (unknown_device_type_error): Add function.
333 (name_of_acc_device_t): Change to call unknown_device_type_error
334 on unknown type.
335 (resolve_device): Use acc_known_device_type.
336 (acc_init): Fail if acc_device_t argument is not valid.
337 (acc_shutdown): Likewise.
338 (acc_get_num_devices): Likewise.
339 (acc_set_device_type): Likewise.
340 (acc_get_device_num): Likewise.
341 (acc_set_device_num): Likewise.
342 (acc_on_device): Add comment that argument validity is not checked.
343
344 2019-12-03 Andrew Stubbs <ams@codesourcery.com>
345
346 * testsuite/lib/libgomp.exp (offload_target_to_openacc_device_type):
347 Recognize amdgcn.
348 (check_effective_target_openacc_amdgcn_accel_present): New proc.
349 (check_effective_target_openacc_amdgcn_accel_selected): New proc.
350 * testsuite/libgomp.oacc-c++/c++.exp: Add support for amdgcn.
351 * testsuite/libgomp.oacc-c/c.exp: Likewise.
352 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
353
354 2019-12-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
355
356 PR libgomp/91938
357 * configure.tgt: Avoid IE tls on *-*-musl*.
358
359 2019-11-29 Tobias Burnus <tobias@codesourcery.com>
360
361 * testsuite/libgomp.oacc-fortran/declare-5.f90: Extend by
362 adding a common-block test case.
363
364 2019-11-29 Jakub Jelinek <jakub@redhat.com>
365
366 PR c++/60228
367 * testsuite/libgomp.c++/udr-20.C: New test.
368 * testsuite/libgomp.c++/udr-21.C: New test.
369
370 2019-11-27 Thomas Schwinge <thomas@codesourcery.com>
371
372 * testsuite/lib/libgomp.exp
373 (check_effective_target_offload_target_nvptx): New proc.
374 * testsuite/libgomp.fortran/target-print-1.f90: Use it with
375 'dg-skip-if'.
376 * testsuite/libgomp.oacc-fortran/print-1.f90: Likewise.
377 * testsuite/libgomp.fortran/target-print-1-nvptx.f90: New file.
378 * testsuite/libgomp.oacc-fortran/print-1-nvptx.f90: Likewise.
379
380 2019-11-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
381
382 * testsuite/libgomp.c/pr39591-1.c: Rename err to e.
383 * testsuite/libgomp.c/pr39591-2.c: Likewise.
384 * testsuite/libgomp.c/pr39591-3.c: Likewise.
385 * testsuite/libgomp.c/private-1.c: Likewise.
386 * testsuite/libgomp.c/task-1.c: Likewise.
387 * testsuite/libgomp.c/task-5.c: Renamed err to serr.
388
389 2019-11-20 Julian Brown <julian@codesourcery.com>
390
391 * plugin/plugin-gcn.c (wait_for_queue_nonfull): Don't lock/unlock
392 aq->mutex here.
393 (queue_push_launch): Lock aq->mutex before calling
394 wait_for_queue_nonfull.
395 (queue_push_callback): Likewise.
396 (queue_push_asyncwait): Likewise.
397 (queue_push_placeholder): Likewise.
398
399 2019-11-20 Julian Brown <julian@codesourcery.com>
400
401 * plugin/plugin-gcn.c (hsa_memory_copy_wrapper): New.
402 (copy_data, GOMP_OFFLOAD_host2dev): Use above function.
403 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_dev2dev): Check hsa_memory_copy
404 return code.
405
406 2019-11-20 Julian Brown <julian@codesourcery.com>
407
408 PR libgomp/92511
409
410 * oacc-mem.c (present_create_copy): Fix device pointer return value in
411 case of "present" subarray. Use tgt->tgt_start instead of tgt->to_free
412 in non-present/create case.
413 (delete_copyout): Change error condition to fail only on copies outside
414 of mapped block. Adjust error message accordingly.
415 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-1.c: New test.
416 * testsuite/libgomp.oacc-c-c++-common/copyin-devptr-2.c: New test.
417 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Adjust expected error
418 message.
419 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
420 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Allow test to pass now.
421 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
422
423 2019-11-20 Maciej W. Rozycki <macro@wdc.com>
424
425 * testsuite/lib/libgomp.exp (libgomp_init): Add flags to find
426 libatomic in build-tree testing.
427
428 2019-11-18 Maciej W. Rozycki <macro@wdc.com>
429
430 * testsuite/Makefile.in: Regenerate.
431
432 2019-11-15 Andrew Stubbs <ams@codesourcery.com>
433
434 * testsuite/libgomp.c/target-print-1.c: New file.
435 * testsuite/libgomp.fortran/target-print-1.f90: New file.
436 * testsuite/libgomp.oacc-c/print-1.c: New file.
437 * testsuite/libgomp.oacc-fortran/print-1.f90: New file.
438
439 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
440 Kwok Cheung Yeung <kcy@codesourcery.com>
441 Julian Brown <julian@codesourcery.com>
442 Tom de Vries <tom@codesourcery.com>
443
444 * plugin/Makefrag.am: Add amdgcn plugin support.
445 * plugin/configfrag.ac: Likewise.
446 * plugin/plugin-gcn.c: New file.
447 * configure: Regenerate.
448 * Makefile.in: Regenerate.
449 * testsuite/Makefile.in: Regenerate.
450
451 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
452
453 * config/gcn/team.c (gomp_gcn_enter_kernel): Set up the team arena
454 and use team_malloc variants.
455 (gomp_gcn_exit_kernel): Use team_free.
456 * libgomp.h (TEAM_ARENA_SIZE): Define.
457 (TEAM_ARENA_START): Define.
458 (TEAM_ARENA_FREE): Define.
459 (TEAM_ARENA_END): Define.
460 (team_malloc): New function.
461 (team_malloc_cleared): New function.
462 (team_free): New function.
463 * team.c (gomp_new_team): Initialize and use team_malloc.
464 (free_team): Use team_free.
465 (gomp_free_thread): Use team_free.
466 (gomp_pause_host): Use team_free.
467 * work.c (gomp_init_work_share): Use team_malloc.
468 (gomp_fini_work_share): Use team_free.
469
470 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
471 Kwok Cheung Yeung <kcy@codesourcery.com>
472 Julian Brown <julian@codesourcery.com>
473 Tom de Vries <tom@codesourcery.com>
474
475 * Makefile.am (libgomp_la_SOURCES): Add oacc-target.c.
476 * Makefile.in: Regenerate.
477 * config.h.in (PLUGIN_GCN): Add new undef.
478 * config/accel/openacc.f90 (acc_device_gcn): New parameter.
479 * config/gcn/affinity-fmt.c: New file.
480 * config/gcn/bar.c: New file.
481 * config/gcn/bar.h: New file.
482 * config/gcn/doacross.h: New file.
483 * config/gcn/icv-device.c: New file.
484 * config/gcn/oacc-target.c: New file.
485 * config/gcn/simple-bar.h: New file.
486 * config/gcn/target.c: New file.
487 * config/gcn/task.c: New file.
488 * config/gcn/team.c: New file.
489 * config/gcn/time.c: New file.
490 * configure.ac: Add amdgcn*-*-*.
491 * configure: Regenerate.
492 * configure.tgt: Add amdgcn*-*-*.
493 * libgomp-plugin.h (offload_target_type): Add OFFLOAD_TARGET_TYPE_GCN.
494 * libgomp.h (gcn_thrs): Add amdgcn variant.
495 (set_gcn_thrs): Likewise.
496 (gomp_thread): Likewise.
497 * oacc-int.h (goacc_thread): Likewise.
498 * oacc-target.c: New file.
499 * openacc.f90 (acc_device_gcn): New parameter.
500 * openacc.h (acc_device_t): Add acc_device_gcn.
501 * team.c (gomp_free_pool_helper): Add amdgcn support.
502
503 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
504 Julian Brown <julian@codesourcery.com>
505
506 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_async_construct): Add int
507 parameter.
508 * oacc-async.c (lookup_goacc_asyncqueue): Pass device number to the
509 queue constructor.
510 * oacc-host.c (host_openacc_async_construct): Add device parameter.
511 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_openacc_async_construct): Add
512 device parameter.
513
514 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
515
516 * configure.tgt (nvptx*-*-*): Add "accel" directory.
517 * config/nvptx/libgomp-plugin.c: Move ...
518 * config/accel/libgomp-plugin.c: ... to here.
519 * config/nvptx/lock.c: Move ...
520 * config/accel/lock.c: ... to here.
521 * config/nvptx/mutex.c: Move ...
522 * config/accel/mutex.c: ... to here.
523 * config/nvptx/mutex.h: Move ...
524 * config/accel/mutex.h: ... to here.
525 * config/nvptx/oacc-async.c: Move ...
526 * config/accel/oacc-async.c: ... to here.
527 * config/nvptx/oacc-cuda.c: Move ...
528 * config/accel/oacc-cuda.c: ... to here.
529 * config/nvptx/oacc-host.c: Move ...
530 * config/accel/oacc-host.c: ... to here.
531 * config/nvptx/oacc-init.c: Move ...
532 * config/accel/oacc-init.c: ... to here.
533 * config/nvptx/oacc-mem.c: Move ...
534 * config/accel/oacc-mem.c: ... to here.
535 * config/nvptx/oacc-plugin.c: Move ...
536 * config/accel/oacc-plugin.c: ... to here.
537 * config/nvptx/omp-lock.h: Move ...
538 * config/accel/omp-lock.h: ... to here.
539 * config/nvptx/openacc.f90: Move ...
540 * config/accel/openacc.f90: ... to here.
541 * config/nvptx/pool.h: Move ...
542 * config/accel/pool.h: ... to here.
543 * config/nvptx/proc.c: Move ...
544 * config/accel/proc.c: ... to here.
545 * config/nvptx/ptrlock.c: Move ...
546 * config/accel/ptrlock.c: ... to here.
547 * config/nvptx/ptrlock.h: Move ...
548 * config/accel/ptrlock.h: ... to here.
549 * config/nvptx/sem.c: Move ...
550 * config/accel/sem.c: ... to here.
551 * config/nvptx/sem.h: Move ...
552 * config/accel/sem.h: ... to here.
553 * config/nvptx/thread-stacksize.h: Move ...
554 * config/accel/thread-stacksize.h: ... to here.
555
556 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
557 Tobias Burnus <tobias@codesourcery.com>
558 Frederik Harwath <frederik@codesourcery.com>
559 Thomas Schwinge <thomas@codesourcery.com>
560
561 libgomp/
562 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New test.
563 * testsuite/libgomp.oacc-fortran/parallel-dims-aux.c: New test.
564 * testsuite/libgomp.oacc-fortran/parallel-dims.f89: New test.
565
566 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
567 Kwok Cheung Yeung <kcy@codesourcery.com>
568
569 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90: Extend.
570 * testsuite/libgomp.fortran/use_device_ptr-optional-2.f90: New.
571
572 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
573
574 * testsuite/libgomp.fortran/target9.f90: Specify 'dg-do run'.
575
576 * testsuite/libgomp.fortran/use_device_addr-3.f90: Specify 'dg-do
577 run'.
578 * testsuite/libgomp.fortran/use_device_addr-4.f90: Likewise.
579 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Likewise.
580
581 2019-11-06 Thomas Schwinge <thomas@codesourcery.com>
582
583 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c:
584 Add expected warnings about missing reduction clauses.
585 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
586 Likewise.
587 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c:
588 Likewise.
589 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c:
590 Likewise.
591
592 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
593
594 * testsuite/libgomp.fortran/pr66199-1.f90: Remove
595 'dg-do run' (implies torture test) as 'dg-options "O2"' is used.
596 * testsuite/libgomp.fortran/pr66199-2.f90: Ditto.
597 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
598 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
599 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
600
601 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
602
603 PR fortran/92305
604 * testsuite/libgomp.fortran/allocatable2.f90: Use
605 unique numbers with 'stop'.
606 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
607 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
608 * testsuite/libgomp.fortran/use_device_ptr-1.f90: Ditto.
609 * testsuite/libgomp.oacc-fortran/lib-15.f90: Ditto.
610 * testsuite/libgomp.oacc-fortran/pset-1.f90: Ditto.
611
612 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
613
614 * testsuite/libgomp.fortran/use_device_addr-1.f90 (test_nullptr_1,
615 test_dummy_opt_nullptr_callee_1): Add present but unallocated test.
616 * testsuite/libgomp.fortran/use_device_addr-2.f90: Likewise.
617 * testsuite/libgomp.fortran/use_device_addr-3.f90: New.
618 * testsuite/libgomp.fortran/use_device_addr-4.f90: New.
619 * testsuite/testsuite/libgomp.fortran/use_device_ptr-1.f90: New.
620
621 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
622
623 * testsuite/libgomp.fortran/target9.f90: New.
624
625 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
626
627 * testsuite/libgomp.fortran/aligned1.f03: Replace 'STOP' by 'stop'.
628 * testsuite/libgomp.fortran/alloc-comp-1.f90: Ditto.
629 * testsuite/libgomp.fortran/alloc-comp-2.f90: Ditto.
630 * testsuite/libgomp.fortran/alloc-comp-3.f90: Ditto.
631 * testsuite/libgomp.fortran/allocatable1.f90: Ditto.
632 * testsuite/libgomp.fortran/allocatable10.f90: Ditto.
633 * testsuite/libgomp.fortran/allocatable11.f90: Ditto.
634 * testsuite/libgomp.fortran/allocatable12.f90: Ditto.
635 * testsuite/libgomp.fortran/allocatable2.f90: Ditto.
636 * testsuite/libgomp.fortran/allocatable3.f90: Ditto.
637 * testsuite/libgomp.fortran/allocatable4.f90: Ditto.
638 * testsuite/libgomp.fortran/allocatable5.f90: Ditto.
639 * testsuite/libgomp.fortran/allocatable6.f90: Ditto.
640 * testsuite/libgomp.fortran/allocatable7.f90: Ditto.
641 * testsuite/libgomp.fortran/allocatable8.f90: Ditto.
642 * testsuite/libgomp.fortran/allocatable9.f90: Ditto.
643 * testsuite/libgomp.fortran/associate1.f90: Ditto.
644 * testsuite/libgomp.fortran/associate2.f90: Ditto.
645 * testsuite/libgomp.fortran/associate3.f90: Ditto.
646 * testsuite/libgomp.fortran/async_io_4.f90: Ditto.
647 * testsuite/libgomp.fortran/async_io_5.f90: Ditto.
648 * testsuite/libgomp.fortran/async_io_6.f90: Ditto.
649 * testsuite/libgomp.fortran/async_io_7.f90: Ditto.
650 * testsuite/libgomp.fortran/cancel-do-1.f90: Ditto.
651 * testsuite/libgomp.fortran/cancel-do-2.f90: Ditto.
652 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Ditto.
653 * testsuite/libgomp.fortran/cancel-sections-1.f90: Ditto.
654 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Ditto.
655 * testsuite/libgomp.fortran/character1.f90: Ditto.
656 * testsuite/libgomp.fortran/character2.f90: Ditto.
657 * testsuite/libgomp.fortran/collapse1.f90: Ditto.
658 * testsuite/libgomp.fortran/collapse2.f90: Ditto.
659 * testsuite/libgomp.fortran/collapse3.f90: Ditto.
660 * testsuite/libgomp.fortran/collapse4.f90: Ditto.
661 * testsuite/libgomp.fortran/crayptr1.f90: Ditto.
662 * testsuite/libgomp.fortran/crayptr2.f90: Ditto.
663 * testsuite/libgomp.fortran/crayptr3.f90: Ditto.
664 * testsuite/libgomp.fortran/declare-simd-1.f90: Ditto.
665 * testsuite/libgomp.fortran/declare-simd-3.f90: Ditto.
666 * testsuite/libgomp.fortran/declare-target-2.f90: Ditto.
667 * testsuite/libgomp.fortran/depend-1.f90: Ditto.
668 * testsuite/libgomp.fortran/depend-2.f90: Ditto.
669 * testsuite/libgomp.fortran/depend-3.f90: Ditto.
670 * testsuite/libgomp.fortran/do1.f90: Ditto.
671 * testsuite/libgomp.fortran/do2.f90: Ditto.
672 * testsuite/libgomp.fortran/do_concurrent_5.f90: Ditto.
673 * testsuite/libgomp.fortran/doacross1.f90: Ditto.
674 * testsuite/libgomp.fortran/doacross2.f90: Ditto.
675 * testsuite/libgomp.fortran/doacross3.f90: Ditto.
676 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Ditto.
677 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Ditto.
678 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Ditto.
679 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Ditto.
680 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Ditto.
681 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Ditto.
682 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Ditto.
683 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Ditto.
684 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Ditto.
685 * testsuite/libgomp.fortran/examples-4/device-1.f90: Ditto.
686 * testsuite/libgomp.fortran/examples-4/device-2.f90: Ditto.
687 * testsuite/libgomp.fortran/examples-4/device-3.f90: Ditto.
688 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Ditto.
689 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Ditto.
690 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Ditto.
691 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Ditto.
692 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Ditto.
693 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Ditto.
694 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Ditto.
695 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Ditto.
696 * testsuite/libgomp.fortran/examples-4/target-1.f90: Ditto.
697 * testsuite/libgomp.fortran/examples-4/target-2.f90: Ditto.
698 * testsuite/libgomp.fortran/examples-4/target-3.f90: Ditto.
699 * testsuite/libgomp.fortran/examples-4/target-4.f90: Ditto.
700 * testsuite/libgomp.fortran/examples-4/target-5.f90: Ditto.
701 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Ditto.
702 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Ditto.
703 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Ditto.
704 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Ditto.
705 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Ditto.
706 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Ditto.
707 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Ditto.
708 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Ditto.
709 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Ditto.
710 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Ditto.
711 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Ditto.
712 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Ditto.
713 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Ditto.
714 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Ditto.
715 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Ditto.
716 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Ditto.
717 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Ditto.
718 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Ditto.
719 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Ditto.
720 * testsuite/libgomp.fortran/lastprivate1.f90: Ditto.
721 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
722 * testsuite/libgomp.fortran/lib1.f90: Ditto.
723 * testsuite/libgomp.fortran/lib4.f90: Ditto.
724 * testsuite/libgomp.fortran/lock-1.f90: Ditto.
725 * testsuite/libgomp.fortran/lock-2.f90: Ditto.
726 * testsuite/libgomp.fortran/nested1.f90: Ditto.
727 * testsuite/libgomp.fortran/nestedfn1.f90: Ditto.
728 * testsuite/libgomp.fortran/nestedfn2.f90: Ditto.
729 * testsuite/libgomp.fortran/nestedfn3.f90: Ditto.
730 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
731 * testsuite/libgomp.fortran/nestedfn5.f90: Ditto.
732 * testsuite/libgomp.fortran/omp_atomic1.f90: Ditto.
733 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
734 * testsuite/libgomp.fortran/omp_atomic3.f90: Ditto.
735 * testsuite/libgomp.fortran/omp_atomic4.f90: Ditto.
736 * testsuite/libgomp.fortran/omp_atomic5.f90: Ditto.
737 * testsuite/libgomp.fortran/omp_cond1.f: Ditto.
738 * testsuite/libgomp.fortran/omp_cond2.f: Ditto.
739 * testsuite/libgomp.fortran/omp_cond3.F90: Ditto.
740 * testsuite/libgomp.fortran/omp_cond4.F90: Ditto.
741 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
742 * testsuite/libgomp.fortran/omp_parse2.f90: Ditto.
743 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
744 * testsuite/libgomp.fortran/omp_parse4.f90: Ditto.
745 * testsuite/libgomp.fortran/openmp_version-1.f: Ditto.
746 * testsuite/libgomp.fortran/openmp_version-2.f90: Ditto.
747 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Ditto.
748 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Ditto.
749 * testsuite/libgomp.fortran/pointer1.f90: Ditto.
750 * testsuite/libgomp.fortran/pointer2.f90: Ditto.
751 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
752 * testsuite/libgomp.fortran/pr27395-1.f90: Ditto.
753 * testsuite/libgomp.fortran/pr27395-2.f90: Ditto.
754 * testsuite/libgomp.fortran/pr27416-1.f90: Ditto.
755 * testsuite/libgomp.fortran/pr27916-1.f90: Ditto.
756 * testsuite/libgomp.fortran/pr27916-2.f90: Ditto.
757 * testsuite/libgomp.fortran/pr28390.f: Ditto.
758 * testsuite/libgomp.fortran/pr29629.f90: Ditto.
759 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
760 * testsuite/libgomp.fortran/pr33880.f90: Ditto.
761 * testsuite/libgomp.fortran/pr34020.f90: Ditto.
762 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
763 * testsuite/libgomp.fortran/pr42162.f90: Ditto.
764 * testsuite/libgomp.fortran/pr46753.f90: Ditto.
765 * testsuite/libgomp.fortran/pr48894.f90: Ditto.
766 * testsuite/libgomp.fortran/pr49792-1.f90: Ditto.
767 * testsuite/libgomp.fortran/pr49792-2.f90: Ditto.
768 * testsuite/libgomp.fortran/pr63938-1.f90: Ditto.
769 * testsuite/libgomp.fortran/pr63938-2.f90: Ditto.
770 * testsuite/libgomp.fortran/pr65597.f90: Ditto.
771 * testsuite/libgomp.fortran/pr66199-1.f90: Ditto.
772 * testsuite/libgomp.fortran/pr71014.f90: Ditto.
773 * testsuite/libgomp.fortran/pr81304.f90: Ditto.
774 * testsuite/libgomp.fortran/pr81841.f90: Ditto.
775 * testsuite/libgomp.fortran/pr84418-1.f90: Ditto.
776 * testsuite/libgomp.fortran/pr84418-2.f90: Ditto.
777 * testsuite/libgomp.fortran/procptr1.f90: Ditto.
778 * testsuite/libgomp.fortran/recursion1.f90: Ditto.
779 * testsuite/libgomp.fortran/reduction1.f90: Ditto.
780 * testsuite/libgomp.fortran/reduction2.f90: Ditto.
781 * testsuite/libgomp.fortran/reduction3.f90: Ditto.
782 * testsuite/libgomp.fortran/reduction4.f90: Ditto.
783 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
784 * testsuite/libgomp.fortran/reduction6.f90: Ditto.
785 * testsuite/libgomp.fortran/reference1.f90: Ditto.
786 * testsuite/libgomp.fortran/reference2.f90: Ditto.
787 * testsuite/libgomp.fortran/retval1.f90: Ditto.
788 * testsuite/libgomp.fortran/retval2.f90: Ditto.
789 * testsuite/libgomp.fortran/sharing1.f90: Ditto.
790 * testsuite/libgomp.fortran/sharing2.f90: Ditto.
791 * testsuite/libgomp.fortran/simd1.f90: Ditto.
792 * testsuite/libgomp.fortran/simd2.f90: Ditto.
793 * testsuite/libgomp.fortran/simd3.f90: Ditto.
794 * testsuite/libgomp.fortran/simd4.f90: Ditto.
795 * testsuite/libgomp.fortran/simd5.f90: Ditto.
796 * testsuite/libgomp.fortran/simd6.f90: Ditto.
797 * testsuite/libgomp.fortran/simd7.f90: Ditto.
798 * testsuite/libgomp.fortran/stack.f90: Ditto.
799 * testsuite/libgomp.fortran/strassen.f90: Ditto.
800 * testsuite/libgomp.fortran/tabs1.f90: Ditto.
801 * testsuite/libgomp.fortran/tabs2.f: Ditto.
802 * testsuite/libgomp.fortran/target1.f90: Ditto.
803 * testsuite/libgomp.fortran/target2.f90: Ditto.
804 * testsuite/libgomp.fortran/target3.f90: Ditto.
805 * testsuite/libgomp.fortran/target4.f90: Ditto.
806 * testsuite/libgomp.fortran/target5.f90: Ditto.
807 * testsuite/libgomp.fortran/target6.f90: Ditto.
808 * testsuite/libgomp.fortran/target7.f90: Ditto.
809 * testsuite/libgomp.fortran/target8.f90: Ditto.
810 * testsuite/libgomp.fortran/task1.f90: Ditto.
811 * testsuite/libgomp.fortran/task2.f90: Ditto.
812 * testsuite/libgomp.fortran/task3.f90: Ditto.
813 * testsuite/libgomp.fortran/task4.f90: Ditto.
814 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
815 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
816 * testsuite/libgomp.fortran/taskloop2.f90: Ditto.
817 * testsuite/libgomp.fortran/taskloop3.f90: Ditto.
818 * testsuite/libgomp.fortran/taskloop4.f90: Ditto.
819 * testsuite/libgomp.fortran/threadprivate1.f90: Ditto.
820 * testsuite/libgomp.fortran/threadprivate2.f90: Ditto.
821 * testsuite/libgomp.fortran/threadprivate3.f90: Ditto.
822 * testsuite/libgomp.fortran/threadprivate4.f90: Ditto.
823 * testsuite/libgomp.fortran/udr1.f90: Ditto.
824 * testsuite/libgomp.fortran/udr10.f90: Ditto.
825 * testsuite/libgomp.fortran/udr11.f90: Ditto.
826 * testsuite/libgomp.fortran/udr12.f90: Ditto.
827 * testsuite/libgomp.fortran/udr13.f90: Ditto.
828 * testsuite/libgomp.fortran/udr14.f90: Ditto.
829 * testsuite/libgomp.fortran/udr15.f90: Ditto.
830 * testsuite/libgomp.fortran/udr2.f90: Ditto.
831 * testsuite/libgomp.fortran/udr3.f90: Ditto.
832 * testsuite/libgomp.fortran/udr4.f90: Ditto.
833 * testsuite/libgomp.fortran/udr5.f90: Ditto.
834 * testsuite/libgomp.fortran/udr6.f90: Ditto.
835 * testsuite/libgomp.fortran/udr7.f90: Ditto.
836 * testsuite/libgomp.fortran/udr8.f90: Ditto.
837 * testsuite/libgomp.fortran/udr9.f90: Ditto.
838 * testsuite/libgomp.fortran/vla1.f90: Ditto.
839 * testsuite/libgomp.fortran/vla2.f90: Ditto.
840 * testsuite/libgomp.fortran/vla3.f90: Ditto.
841 * testsuite/libgomp.fortran/vla4.f90: Ditto.
842 * testsuite/libgomp.fortran/vla5.f90: Ditto.
843 * testsuite/libgomp.fortran/vla6.f90: Ditto.
844 * testsuite/libgomp.fortran/vla7.f90: Ditto.
845 * testsuite/libgomp.fortran/vla8.f90: Ditto.
846 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
847 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
848
849 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
850
851 * testsuite/libgomp.fortran/target-simd.f90: Use stop not abort.
852 * testsuite/libgomp.fortran/use_device_ptr-optional-1.f90:
853 Ditto; add 'dg-do run' for torture testing.
854 * testsuite/libgomp.fortran/lastprivate1.f90: Add 'dg-do run'.
855 * testsuite/libgomp.fortran/lastprivate2.f90: Ditto.
856 * testsuite/libgomp.fortran/nestedfn4.f90: Ditto.
857 * testsuite/libgomp.fortran/pr25219.f90: Ditto.
858 * testsuite/libgomp.fortran/pr28390.f: Ditto.
859 * testsuite/libgomp.fortran/pr35130.f90: Ditto.
860 * testsuite/libgomp.fortran/pr90779.f90: Ditto.
861 * testsuite/libgomp.fortran/task2.f90: Ditto.
862 * testsuite/libgomp.fortran/taskgroup1.f90: Ditto.
863 * testsuite/libgomp.fortran/taskloop1.f90: Ditto.
864 * testsuite/libgomp.fortran/use_device_addr-1.f90: Ditto.
865 * testsuite/libgomp.fortran/use_device_addr-2.f90: Ditto.
866 * testsuite/libgomp.fortran/workshare1.f90: Ditto.
867 * testsuite/libgomp.fortran/workshare2.f90: Ditto.
868
869 2019-10-28 Tobias Burnus <tobias@codesourcery.com>
870
871 * testsuite/libgomp.oacc-fortran/abort-1.f90: Add 'dg-do run'.
872 * testsuite/libgomp.oacc-fortran/abort-2.f90: Ditto.
873 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Ditto.
874 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f90: Ditto.
875 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f90: Ditto.
876 * testsuite/libgomp.oacc-fortran/lib-1.f90: Ditto.
877 * testsuite/libgomp.oacc-fortran/common-block-1.f90:
878 Use 'stop' not abort().
879 * testsuite/libgomp.oacc-fortran/common-block-2.f90: Ditto.
880 * testsuite/libgomp.oacc-fortran/common-block-3.f90: Ditto.
881 * testsuite/libgomp.oacc-fortran/data-1.f90: Ditto.
882 * testsuite/libgomp.oacc-fortran/data-2.f90: Ditto.
883 * testsuite/libgomp.oacc-fortran/data-5.f90: Ditto.
884 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Ditto.
885 * testsuite/libgomp.oacc-fortran/gemm-2.f90: Ditto.
886 * testsuite/libgomp.oacc-fortran/gemm.f90: Ditto.
887 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Ditto.
888 * testsuite/libgomp.oacc-fortran/host_data-3.f90: Ditto.
889 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Ditto.
890 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Ditto.
891 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Ditto.
892 * testsuite/libgomp.oacc-fortran/kernels-independent.f90: Ditto.
893 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Ditto.
894 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Ditto.
895 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
896 Ditto.
897 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
898 Ditto.
899 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
900 Ditto.
901 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
902 Ditto.
903 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
904 Ditto.
905 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-1.f90:
906 Ditto.
907 * testsuite/libgomp.oacc-fortran/kernels-private-vars-vector-2.f90:
908 Ditto.
909 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-1.f90:
910 Ditto.
911 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-2.f90:
912 Ditto.
913 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-3.f90:
914 Ditto.
915 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-4.f90:
916 Ditto.
917 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-5.f90:
918 Ditto.
919 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-6.f90:
920 Ditto.
921 * testsuite/libgomp.oacc-fortran/kernels-private-vars-worker-7.f90:
922 Ditto.
923 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90: Ditto.
924 * testsuite/libgomp.oacc-fortran/lib-12.f90: Ditto.
925 * testsuite/libgomp.oacc-fortran/lib-13.f90: Ditto.
926 * testsuite/libgomp.oacc-fortran/lib-14.f90: Ditto.
927 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
928 Likewise and also add 'dg-do run'.
929 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
930 Ditto.
931
932 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
933 Tobias Burnus <tobias@codesourcery.com>
934
935 * testsuite/libgomp.oacc-fortran/common-block-1.f90: New test.
936 * testsuite/libgomp.oacc-fortran/common-block-2.f90: New test.
937 * testsuite/libgomp.oacc-fortran/common-block-3.f90: New test.
938
939 2019-10-14 Jakub Jelinek <jakub@redhat.com>
940
941 PR libgomp/92081
942 * testsuite/libgomp.fortran/target-simd.f90: Iterate from 1 rather
943 than 0.
944
945 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
946
947 * testsuite/libgomp.fortran/use_device_addr-1.f90: New.
948 * testsuite/libgomp.fortran/use_device_addr-2.f90: New.
949
950 2019-10-09 Thomas Schwinge <thomas@codesourcery.com>
951
952 PR middle-end/92036
953 * testsuite/libgomp.oacc-c-c++-common/data-firstprivate-1.c: New
954 file.
955
956 2019-10-09 Tobias Burnus <tobias@codesourcery.com>
957
958 PR testsuite/91884
959 * testsuite/libgomp.fortran/fortran.exp: Conditionally
960 add -lquadmath.
961 * testsuite/libgomp.oacc-fortran/fortran.exp: Ditto.
962
963 2019-10-09 Jakub Jelinek <jakub@redhat.com>
964
965 PR libgomp/92028
966 * target.c (gomp_map_vars_internal): Readd the previous
967 GOMP_MAP_USE_DEVICE_PTR handling code in the first loop,
968 though do that just in the !not_found_cnt case.
969
970 2019-10-08 Tobias Burnus <tobias@codesourcery.com>
971
972 * gfortran.dg/gomp/target-simd.f90: New.
973
974 2019-10-02 Julian Brown <julian@codesourcery.com>
975 Cesar Philippidis <cesar@codesourcery.com>
976
977 * libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
978 * target.c (FIELD_TGT_EMPTY): Define.
979 (gomp_map_val): Use OFFSET_* macros instead of magic constants. Write
980 as switch instead of list of ifs.
981 (gomp_map_vars_internal): Use OFFSET_* and FIELD_TGT_EMPTY macros.
982
983 2019-10-02 Andreas Tobler <andreast@gcc.gnu.org>
984
985 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: Remove alloca.h
986 include. Replace alloca () with __builtin_alloca ().
987 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Likewise.
988
989 2019-10-01 Jakub Jelinek <jakub@redhat.com>
990
991 * configure.ac: Remove GCC_HEADER_STDINT(gstdint.h).
992 * libgomp.h: Include <stdint.h> instead of "gstdint.h".
993 * oacc-parallel.c: Don't include "libgomp_g.h".
994 * plugin/plugin-hsa.c: Include <stdint.h> instead of "gstdint.h".
995 * plugin/plugin-nvptx.c: Don't include "gstdint.h".
996 * aclocal.m4: Regenerated.
997 * config.h.in: Regenerated.
998 * configure: Regenerated.
999 * Makefile.in: Regenerated.
1000
1001 2019-09-30 Kwok Cheung Yeung <kcy@codesourcery.com>
1002
1003 * libgomp_g.h: Include stdint.h instead of gstdint.h.
1004
1005 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
1006
1007 * configure: Regenerate.
1008
1009 2019-09-13 Tobias Burnus <tobias@codesourcery.com>
1010
1011 * plugin/plugin-hsa.c (hsa_warn, hsa_fatal, hsa_error): Ensure
1012 string is initialized.
1013
1014 2019-09-06 Florian Weimer <fweimer@redhat.com>
1015
1016 * configure: Regenerate.
1017
1018 2019-09-03 Chung-Lin Tang <cltang@codesourcery.com>
1019
1020 PR other/79543
1021 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Fix GNU ld --version
1022 scanning to conform to the GNU Coding Standards.
1023 * configure: Regenerate.
1024
1025 2019-08-28 Jakub Jelinek <jakub@redhat.com>
1026
1027 PR libgomp/91530
1028 * testsuite/libgomp.c/scan-21.c: New test.
1029 * testsuite/libgomp.c/scan-22.c: New test.
1030
1031 2019-08-27 Jakub Jelinek <jakub@redhat.com>
1032
1033 PR libgomp/91530
1034 * testsuite/libgomp.c/scan-11.c: Add -msse2 option for sse2_runtime
1035 targets.
1036 * testsuite/libgomp.c/scan-12.c: Likewise.
1037 * testsuite/libgomp.c/scan-13.c: Likewise.
1038 * testsuite/libgomp.c/scan-14.c: Likewise.
1039 * testsuite/libgomp.c/scan-15.c: Likewise.
1040 * testsuite/libgomp.c/scan-16.c: Likewise.
1041 * testsuite/libgomp.c/scan-17.c: Likewise.
1042 * testsuite/libgomp.c/scan-18.c: Likewise.
1043 * testsuite/libgomp.c/scan-19.c: Likewise.
1044 * testsuite/libgomp.c/scan-20.c: Likewise.
1045 * testsuite/libgomp.c++/scan-9.C: Likewise.
1046 * testsuite/libgomp.c++/scan-10.C: Likewise.
1047 * testsuite/libgomp.c++/scan-11.C: Likewise.
1048 * testsuite/libgomp.c++/scan-12.C: Likewise.
1049 * testsuite/libgomp.c++/scan-14.C: Likewise.
1050 * testsuite/libgomp.c++/scan-15.C: Likewise.
1051 * testsuite/libgomp.c++/scan-13.C: Likewise. Use sse2_runtime
1052 instead of i?86-*-* x86_64-*-* as target for scan-tree-dump-times.
1053 * testsuite/libgomp.c++/scan-16.C: Likewise.
1054
1055 2019-08-17 Thomas Koenig <tkoenig@gcc.gnu.org>
1056
1057 PR fortran/91473
1058 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add
1059 -std=legacy so invalid code in the test case is accepted.
1060
1061 2019-08-12 Thomas Koenig <tkoenig@gcc.gnu.org>
1062
1063 PR fortran/91422
1064 * testsuite/libgomp.oacc-fortran/routine-7.f90: Correct array
1065 dimension.
1066
1067 2019-08-08 Jakub Jelinek <jakub@redhat.com>
1068
1069 * target.c (gomp_map_vars_internal): For GOMP_MAP_USE_DEVICE_PTR
1070 perform the lookup in the first loop only if !not_found_cnt, otherwise
1071 perform lookups for it in the second loop guarded with
1072 if (not_found_cnt || has_firstprivate).
1073 * testsuite/libgomp.c/target-37.c: New test.
1074 * testsuite/libgomp.c++/target-22.C: New test.
1075
1076 2019-08-07 Jakub Jelinek <jakub@redhat.com>
1077
1078 * testsuite/libgomp.c/target-18.c (struct S): New type.
1079 (foo): Use use_device_addr clause instead of use_device_ptr clause
1080 where required by OpenMP 5.0, add further tests for both use_device_ptr
1081 and use_device_addr clauses.
1082 * testsuite/libgomp.c++/target-9.C (struct S): New type.
1083 (foo): Use use_device_addr clause instead of use_device_ptr clause
1084 where required by OpenMP 5.0, add further tests for both use_device_ptr
1085 and use_device_addr clauses. Add t and u arguments.
1086 (main): Adjust caller.
1087
1088 2019-08-06 Jakub Jelinek <jakub@redhat.com>
1089
1090 * testsuite/libgomp.c++/loop-13.C: New test.
1091 * testsuite/libgomp.c++/loop-14.C: New test.
1092 * testsuite/libgomp.c++/loop-15.C: New test.
1093
1094 2019-07-31 Jakub Jelinek <jakub@redhat.com>
1095
1096 PR middle-end/91301
1097 * testsuite/libgomp.c++/for-27.C: New test.
1098
1099 2019-07-23 Steven G. Kargl <kargl@gcc.gnu.org>
1100
1101 * testsuite/libgomp.fortran/reduction4.f90: Update BOZ usage.
1102 * testsuite/libgomp.fortran/reduction5.f90: Ditto.
1103
1104 2019-07-20 Jakub Jelinek <jakub@redhat.com>
1105
1106 * testsuite/libgomp.c-c++-common/loop-1.c: New test.
1107
1108 2019-07-08 Jakub Jelinek <jakub@redhat.com>
1109
1110 * testsuite/libgomp.c++/scan-13.C: Replace xfail with target x86.
1111 * testsuite/libgomp.c++/scan-16.C: Likewise.
1112
1113 2019-07-06 Jakub Jelinek <jakub@redhat.com>
1114
1115 * testsuite/libgomp.c/scan-19.c: New test.
1116 * testsuite/libgomp.c/scan-20.c: New test.
1117
1118 * testsuite/libgomp.c/scan-11.c: New test.
1119 * testsuite/libgomp.c/scan-12.c: New test.
1120 * testsuite/libgomp.c/scan-13.c: New test.
1121 * testsuite/libgomp.c/scan-14.c: New test.
1122 * testsuite/libgomp.c/scan-15.c: New test.
1123 * testsuite/libgomp.c/scan-16.c: New test.
1124 * testsuite/libgomp.c/scan-17.c: New test.
1125 * testsuite/libgomp.c/scan-18.c: New test.
1126 * testsuite/libgomp.c++/scan-9.C: New test.
1127 * testsuite/libgomp.c++/scan-10.C: New test.
1128 * testsuite/libgomp.c++/scan-11.C: New test.
1129 * testsuite/libgomp.c++/scan-12.C: New test.
1130 * testsuite/libgomp.c++/scan-13.C: New test.
1131 * testsuite/libgomp.c++/scan-14.C: New test.
1132 * testsuite/libgomp.c++/scan-15.C: New test.
1133 * testsuite/libgomp.c++/scan-16.C: New test.
1134
1135 2019-07-04 Jakub Jelinek <jakub@redhat.com>
1136
1137 * testsuite/libgomp.c/scan-9.c: New test.
1138 * testsuite/libgomp.c/scan-10.c: New test.
1139
1140 2019-07-03 Jakub Jelinek <jakub@redhat.com>
1141
1142 * testsuite/libgomp.c++/scan-1.C: New test.
1143 * testsuite/libgomp.c++/scan-2.C: New test.
1144 * testsuite/libgomp.c++/scan-3.C: New test.
1145 * testsuite/libgomp.c++/scan-4.C: New test.
1146 * testsuite/libgomp.c++/scan-5.C: New test.
1147 * testsuite/libgomp.c++/scan-6.C: New test.
1148 * testsuite/libgomp.c++/scan-7.C: New test.
1149 * testsuite/libgomp.c++/scan-8.C: New test.
1150 * testsuite/libgomp.c/scan-1.c: New test.
1151 * testsuite/libgomp.c/scan-2.c: New test.
1152 * testsuite/libgomp.c/scan-3.c: New test.
1153 * testsuite/libgomp.c/scan-4.c: New test.
1154 * testsuite/libgomp.c/scan-5.c: New test.
1155 * testsuite/libgomp.c/scan-6.c: New test.
1156 * testsuite/libgomp.c/scan-7.c: New test.
1157 * testsuite/libgomp.c/scan-8.c: New test.
1158
1159 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1160
1161 * testsuite/libgomp.oacc-c++/firstprivate-mappings-1.C: New file.
1162 * testsuite/libgomp.oacc-c-c++-common/firstprivate-mappings-1.c:
1163 Likewise.
1164
1165 * testsuite/libgomp.fortran/allocatable3.f90: Add missing results
1166 check.
1167
1168 2019-06-18 Cesar Philippidis <cesar@codesourcery.com>
1169
1170 * testsuite/libgomp.oacc-fortran/allocatable-array-1.f90: New
1171 file.
1172
1173 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
1174
1175 PR fortran/90743
1176 * oacc-parallel.c (GOACC_parallel_keyed): Handle NULL mapping
1177 case.
1178 * testsuite/libgomp.fortran/target-allocatable-1-1.f90: New file.
1179 * testsuite/libgomp.fortran/target-allocatable-1-2.f90: Likewise.
1180 * testsuite/libgomp.oacc-fortran/allocatable-1-1.f90: Likewise.
1181 * testsuite/libgomp.oacc-fortran/allocatable-1-2.f90: Likewise.
1182
1183 PR testsuite/90861
1184 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: Update.
1185
1186 PR middle-end/90862
1187 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Update.
1188
1189 2019-06-16 Tom de Vries <tdevries@suse.de>
1190
1191 PR tree-optimization/89376
1192 * testsuite/libgomp.oacc-c-c++-common/pr89376.c: New test.
1193
1194 2019-06-15 Tom de Vries <tdevries@suse.de>
1195
1196 PR tree-optimization/89713
1197 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: Expect no bar.sync.
1198 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: Same.
1199
1200 2019-06-15 Jakub Jelinek <jakub@redhat.com>
1201
1202 PR middle-end/90779
1203 * testsuite/libgomp.c/pr90779.c: New test.
1204 * testsuite/libgomp.fortran/pr90779.f90: New test.
1205
1206 2019-06-15 Tom de Vries <tdevries@suse.de>
1207
1208 PR tree-optimization/90009
1209 * testsuite/libgomp.oacc-c-c++-common/pr90009.c: New test.
1210
1211 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
1212
1213 PR tree-optimization/89713
1214 * testsuite/libgomp.oacc-c-c++-common/pr84955-1.c: New test.
1215
1216 2019-06-11 Jakub Jelinek <jakub@redhat.com>
1217
1218 PR target/90811
1219 * testsuite/libgomp.c/pr90811.c: New test.
1220
1221 2019-06-05 Jakub Jelinek <jakub@redhat.com>
1222
1223 * testsuite/libgomp.c++/lastprivate-conditional-1.C: New test.
1224 * testsuite/libgomp.c++/lastprivate-conditional-2.C: New test.
1225
1226 2019-06-04 Jakub Jelinek <jakub@redhat.com>
1227
1228 * testsuite/libgomp.c-c++-common/lastprivate-conditional-7.c: New test.
1229 * testsuite/libgomp.c-c++-common/lastprivate-conditional-8.c: New test.
1230 * testsuite/libgomp.c-c++-common/lastprivate-conditional-9.c: New test.
1231 * testsuite/libgomp.c-c++-common/lastprivate-conditional-10.c: New test.
1232
1233 2019-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1234
1235 * configure.ac: Call AX_COUNT_CPUS.
1236 Substitute CPU_COUNT.
1237 * testsuite/Makefile.am (check-am): Use CPU_COUNT as processor
1238 count fallback.
1239 * aclocal.m4: Regenerate.
1240 * configure: Regenerate.
1241 * Makefile.in, testsuite/Makefile.in: Regenerate.
1242
1243 2019-05-29 Jakub Jelinek <jakub@redhat.com>
1244
1245 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: Rename
1246 to ...
1247 * testsuite/libgomp.c-c++-common/lastprivate-conditional-4.c: ... this.
1248 * testsuite/libgomp.c-c++-common/lastprivate-conditional-5.c: New test.
1249 * testsuite/libgomp.c-c++-common/lastprivate-conditional-6.c: New test.
1250
1251 2019-05-27 Jakub Jelinek <jakub@redhat.com>
1252
1253 * testsuite/libgomp.c-c++-common/lastprivate_conditional_4.c: New test.
1254
1255 * testsuite/libgomp.c-c++-common/lastprivate-conditional-3.c: New test.
1256
1257 PR libgomp/90641
1258 * work.c (gomp_init_work_share): Instead of aligning final ordered
1259 value to multiples of long long alignment, align to that the
1260 first part (ordered team ids) and if inline_ordered_team_ids
1261 is not on a long long alignment boundary within the structure,
1262 use __alignof__ (long long) - 1 pad size always.
1263 * loop.c (GOMP_loop_start): Fix *mem computation if
1264 inline_ordered_team_ids is not aligned on long long alignment boundary
1265 within the structure.
1266 * loop-ull.c (GOMP_loop_ull_start): Likewise.
1267 * sections.c (GOMP_sections2_start): Likewise.
1268
1269 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1270
1271 * testsuite/libgomp.c-c++-common/lastprivate-conditional-1.c: New test.
1272 * testsuite/libgomp.c-c++-common/lastprivate-conditional-2.c: New test.
1273
1274 PR libgomp/90585
1275 * plugin/plugin-hsa.c: Include gstdint.h. Include inttypes.h only if
1276 HAVE_INTTYPES_H is defined.
1277 (print_uint64_t): New typedef.
1278 (PRIu64): Define if HAVE_INTTYPES_H is not defined.
1279 (print_kernel_dispatch, run_kernel): Use PRIu64 macro instead of
1280 "lu", cast uint64_t HSA_DEBUG and fprintf arguments to print_uint64_t.
1281 (release_kernel_dispatch): Likewise. Cast shadow->debug to uintptr_t
1282 before casting to void *.
1283 * plugin/plugin-nvptx.c: Include gstdint.h instead of stdint.h.
1284 * oacc-mem.c: Don't include config.h nor stdint.h.
1285 * target.c: Don't include config.h.
1286 * oacc-cuda.c: Likewise.
1287 * oacc-host.c: Don't include stdint.h.
1288
1289 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1290
1291 PR libgomp/90527
1292 * alloc.c (_GNU_SOURCE): Define.
1293
1294 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
1295
1296 * acc_prof.h: New file.
1297 * oacc-profiling.c: Likewise.
1298 * Makefile.am (nodist_libsubinclude_HEADERS, libgomp_la_SOURCES):
1299 Add these, respectively.
1300 * Makefile.in: Regenerate.
1301 * env.c (initialize_env): Call goacc_profiling_initialize.
1302 * oacc-plugin.c (GOMP_PLUGIN_goacc_thread)
1303 (GOMP_PLUGIN_goacc_profiling_dispatch): New functions.
1304 * oacc-plugin.h (GOMP_PLUGIN_goacc_thread)
1305 (GOMP_PLUGIN_goacc_profiling_dispatch): Declare.
1306 * libgomp.map (OACC_2.5.1): Add acc_prof_lookup,
1307 acc_prof_register, acc_prof_unregister, and acc_register_library.
1308 (GOMP_PLUGIN_1.3): Add GOMP_PLUGIN_goacc_profiling_dispatch, and
1309 GOMP_PLUGIN_goacc_thread.
1310 * oacc-int.h (struct goacc_thread): Add prof_info, api_info,
1311 prof_callbacks_enabled members.
1312 (goacc_prof_enabled, goacc_profiling_initialize)
1313 (_goacc_profiling_dispatch_p, _goacc_profiling_setup_p)
1314 (goacc_profiling_dispatch): Declare.
1315 (GOACC_PROF_ENABLED, GOACC_PROFILING_DISPATCH_P)
1316 (GOACC_PROFILING_SETUP_P): Define.
1317 * oacc-async.c (acc_async_test, acc_async_test_all, acc_wait)
1318 (acc_wait_async, acc_wait_all, acc_wait_all_async): Update for
1319 OpenACC Profiling Interface.
1320 * oacc-cuda.c (acc_get_current_cuda_device)
1321 (acc_get_current_cuda_context, acc_get_cuda_stream)
1322 (acc_set_cuda_stream): Likewise.
1323 * oacc-init.c (acc_init_1, goacc_attach_host_thread_to_device)
1324 (acc_init, acc_set_device_type, acc_get_device_type)
1325 (acc_get_device_num, goacc_lazy_initialize): Likewise.
1326 * oacc-mem.c (acc_malloc, acc_free, memcpy_tofrom_device)
1327 (acc_deviceptr, acc_hostptr, acc_is_present, acc_map_data)
1328 (acc_unmap_data, present_create_copy, delete_copyout)
1329 (update_dev_host): Likewise.
1330 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_data_start)
1331 (GOACC_data_end, GOACC_enter_exit_data, GOACC_update, GOACC_wait):
1332 Likewise.
1333 * plugin/plugin-nvptx.c (nvptx_exec, nvptx_alloc, nvptx_free)
1334 (GOMP_OFFLOAD_openacc_exec, GOMP_OFFLOAD_openacc_async_exec):
1335 Likewise.
1336 * libgomp.texi: Update.
1337 * testsuite/libgomp.oacc-c-c++-common/acc_prof-dispatch-1.c: New
1338 file.
1339 * testsuite/libgomp.oacc-c-c++-common/acc_prof-init-1.c: Likewise.
1340 * testsuite/libgomp.oacc-c-c++-common/acc_prof-kernels-1.c:
1341 Likewise.
1342 * testsuite/libgomp.oacc-c-c++-common/acc_prof-parallel-1.c:
1343 Likewise.
1344 * testsuite/libgomp.oacc-c-c++-common/acc_prof-valid_bytes-1.c:
1345 Likewise.
1346 * testsuite/libgomp.oacc-c-c++-common/acc_prof-version-1.c:
1347 Likewise.
1348
1349 2019-05-13 Chung-Lin Tang <cltang@codesourcery.com>
1350
1351 * libgomp-plugin.h (struct goacc_asyncqueue): Declare.
1352 (struct goacc_asyncqueue_list): Likewise.
1353 (goacc_aq): Likewise.
1354 (goacc_aq_list): Likewise.
1355 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1356 (GOMP_OFFLOAD_openacc_async_test): Remove.
1357 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1358 (GOMP_OFFLOAD_openacc_async_wait): Remove.
1359 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1360 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1361 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1362 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1363 (GOMP_OFFLOAD_openacc_exec): Adjust declaration.
1364 (GOMP_OFFLOAD_openacc_cuda_get_stream): Likewise.
1365 (GOMP_OFFLOAD_openacc_cuda_set_stream): Likewise.
1366 (GOMP_OFFLOAD_openacc_async_exec): Declare.
1367 (GOMP_OFFLOAD_openacc_async_construct): Declare.
1368 (GOMP_OFFLOAD_openacc_async_destruct): Declare.
1369 (GOMP_OFFLOAD_openacc_async_test): Declare.
1370 (GOMP_OFFLOAD_openacc_async_synchronize): Declare.
1371 (GOMP_OFFLOAD_openacc_async_serialize): Declare.
1372 (GOMP_OFFLOAD_openacc_async_queue_callback): Declare.
1373 (GOMP_OFFLOAD_openacc_async_host2dev): Declare.
1374 (GOMP_OFFLOAD_openacc_async_dev2host): Declare.
1375
1376 * libgomp.h (struct acc_dispatch_t): Define 'async' sub-struct.
1377 (gomp_acc_insert_pointer): Adjust declaration.
1378 (gomp_copy_host2dev): New declaration.
1379 (gomp_copy_dev2host): Likewise.
1380 (gomp_map_vars_async): Likewise.
1381 (gomp_unmap_tgt): Likewise.
1382 (gomp_unmap_vars_async): Likewise.
1383 (gomp_fini_device): Likewise.
1384
1385 * oacc-async.c (get_goacc_thread): New function.
1386 (get_goacc_thread_device): New function.
1387 (lookup_goacc_asyncqueue): New function.
1388 (get_goacc_asyncqueue): New function.
1389 (acc_async_test): Adjust code to use new async design.
1390 (acc_async_test_all): Likewise.
1391 (acc_wait): Likewise.
1392 (acc_wait_async): Likewise.
1393 (acc_wait_all): Likewise.
1394 (acc_wait_all_async): Likewise.
1395 (goacc_async_free): New function.
1396 (goacc_init_asyncqueues): Likewise.
1397 (goacc_fini_asyncqueues): Likewise.
1398 * oacc-cuda.c (acc_get_cuda_stream): Adjust code to use new async
1399 design.
1400 (acc_set_cuda_stream): Likewise.
1401 * oacc-host.c (host_openacc_exec): Adjust parameters, remove 'async'.
1402 (host_openacc_register_async_cleanup): Remove.
1403 (host_openacc_async_exec): New function.
1404 (host_openacc_async_test): Adjust parameters.
1405 (host_openacc_async_test_all): Remove.
1406 (host_openacc_async_wait): Remove.
1407 (host_openacc_async_wait_async): Remove.
1408 (host_openacc_async_wait_all): Remove.
1409 (host_openacc_async_wait_all_async): Remove.
1410 (host_openacc_async_set_async): Remove.
1411 (host_openacc_async_synchronize): New function.
1412 (host_openacc_async_serialize): New function.
1413 (host_openacc_async_host2dev): New function.
1414 (host_openacc_async_dev2host): New function.
1415 (host_openacc_async_queue_callback): New function.
1416 (host_openacc_async_construct): New function.
1417 (host_openacc_async_destruct): New function.
1418 (struct gomp_device_descr host_dispatch): Remove initialization of old
1419 interface, add initialization of new async sub-struct.
1420 * oacc-init.c (acc_shutdown_1): Adjust to use gomp_fini_device.
1421 (goacc_attach_host_thread_to_device): Remove old async code usage.
1422 * oacc-int.h (goacc_init_asyncqueues): New declaration.
1423 (goacc_fini_asyncqueues): Likewise.
1424 (goacc_async_copyout_unmap_vars): Likewise.
1425 (goacc_async_free): Likewise.
1426 (get_goacc_asyncqueue): Likewise.
1427 (lookup_goacc_asyncqueue): Likewise.
1428 * oacc-mem.c (memcpy_tofrom_device): Adjust code to use new async
1429 design.
1430 (present_create_copy): Adjust code to use new async design.
1431 (delete_copyout): Likewise.
1432 (update_dev_host): Likewise.
1433 (gomp_acc_insert_pointer): Add async parameter, adjust code to use new
1434 async design.
1435 (gomp_acc_remove_pointer): Adjust code to use new async design.
1436 * oacc-parallel.c (GOACC_parallel_keyed): Adjust code to use new async
1437 design.
1438 (GOACC_enter_exit_data): Likewise.
1439 (goacc_wait): Likewise.
1440 (GOACC_update): Likewise.
1441 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Change to assert fail
1442 when called, warn as obsolete in comment.
1443 * target.c (goacc_device_copy_async): New function.
1444 (gomp_copy_host2dev): Remove 'static', add goacc_asyncqueue parameter,
1445 add goacc_device_copy_async case.
1446 (gomp_copy_dev2host): Likewise.
1447 (gomp_map_vars_existing): Add goacc_asyncqueue parameter, adjust code.
1448 (gomp_map_pointer): Likewise.
1449 (gomp_map_fields_existing): Likewise.
1450 (gomp_map_vars_internal): New always_inline function, renamed from
1451 gomp_map_vars.
1452 (gomp_map_vars): Implement by calling gomp_map_vars_internal.
1453 (gomp_map_vars_async): Implement by calling gomp_map_vars_internal,
1454 passing goacc_asyncqueue argument.
1455 (gomp_unmap_tgt): Remove static, add attribute_hidden.
1456 (gomp_unref_tgt): New function.
1457 (gomp_unmap_vars_internal): New always_inline function, renamed from
1458 gomp_unmap_vars.
1459 (gomp_unmap_vars): Implement by calling gomp_unmap_vars_internal.
1460 (gomp_unmap_vars_async): Implement by calling
1461 gomp_unmap_vars_internal, passing goacc_asyncqueue argument.
1462 (gomp_fini_device): New function.
1463 (gomp_exit_data): Adjust gomp_copy_dev2host call.
1464 (gomp_load_plugin_for_device): Remove old interface, adjust to load
1465 new async interface.
1466 (gomp_target_fini): Adjust code to call gomp_fini_device.
1467
1468 * plugin/plugin-nvptx.c (struct cuda_map): Remove.
1469 (struct ptx_stream): Remove.
1470 (struct nvptx_thread): Remove current_stream field.
1471 (cuda_map_create): Remove.
1472 (cuda_map_destroy): Remove.
1473 (map_init): Remove.
1474 (map_fini): Remove.
1475 (map_pop): Remove.
1476 (map_push): Remove.
1477 (struct goacc_asyncqueue): Define.
1478 (struct nvptx_callback): Define.
1479 (struct ptx_free_block): Define.
1480 (struct ptx_device): Remove null_stream, active_streams, async_streams,
1481 stream_lock, and next fields.
1482 (enum ptx_event_type): Remove.
1483 (struct ptx_event): Remove.
1484 (ptx_event_lock): Remove.
1485 (ptx_events): Remove.
1486 (init_streams_for_device): Remove.
1487 (fini_streams_for_device): Remove.
1488 (select_stream_for_async): Remove.
1489 (nvptx_init): Remove ptx_events and ptx_event_lock references.
1490 (nvptx_attach_host_thread_to_device): Remove CUDA_ERROR_NOT_PERMITTED
1491 case.
1492 (nvptx_open_device): Add free_blocks initialization, remove
1493 init_streams_for_device call.
1494 (nvptx_close_device): Remove fini_streams_for_device call, add
1495 free_blocks destruct code.
1496 (event_gc): Remove.
1497 (event_add): Remove.
1498 (nvptx_exec): Adjust parameters and code.
1499 (nvptx_free): Likewise.
1500 (nvptx_host2dev): Remove.
1501 (nvptx_dev2host): Remove.
1502 (nvptx_set_async): Remove.
1503 (nvptx_async_test): Remove.
1504 (nvptx_async_test_all): Remove.
1505 (nvptx_wait): Remove.
1506 (nvptx_wait_async): Remove.
1507 (nvptx_wait_all): Remove.
1508 (nvptx_wait_all_async): Remove.
1509 (nvptx_get_cuda_stream): Remove.
1510 (nvptx_set_cuda_stream): Remove.
1511 (GOMP_OFFLOAD_alloc): Adjust code.
1512 (GOMP_OFFLOAD_free): Likewise.
1513 (GOMP_OFFLOAD_openacc_register_async_cleanup): Remove.
1514 (GOMP_OFFLOAD_openacc_exec): Adjust parameters and code.
1515 (GOMP_OFFLOAD_openacc_async_test_all): Remove.
1516 (GOMP_OFFLOAD_openacc_async_wait): Remove.
1517 (GOMP_OFFLOAD_openacc_async_wait_async): Remove.
1518 (GOMP_OFFLOAD_openacc_async_wait_all): Remove.
1519 (GOMP_OFFLOAD_openacc_async_wait_all_async): Remove.
1520 (GOMP_OFFLOAD_openacc_async_set_async): Remove.
1521 (cuda_free_argmem): New function.
1522 (GOMP_OFFLOAD_openacc_async_exec): New plugin hook function.
1523 (GOMP_OFFLOAD_openacc_create_thread_data): Adjust code.
1524 (GOMP_OFFLOAD_openacc_cuda_get_stream): Adjust code.
1525 (GOMP_OFFLOAD_openacc_cuda_set_stream): Adjust code.
1526 (GOMP_OFFLOAD_openacc_async_construct): New plugin hook function.
1527 (GOMP_OFFLOAD_openacc_async_destruct): New plugin hook function.
1528 (GOMP_OFFLOAD_openacc_async_test): Remove and re-implement.
1529 (GOMP_OFFLOAD_openacc_async_synchronize): New plugin hook function.
1530 (GOMP_OFFLOAD_openacc_async_serialize): New plugin hook function.
1531 (GOMP_OFFLOAD_openacc_async_queue_callback): New plugin hook function.
1532 (cuda_callback_wrapper): New function.
1533 (cuda_memcpy_sanity_check): New function.
1534 (GOMP_OFFLOAD_host2dev): Remove and re-implement.
1535 (GOMP_OFFLOAD_dev2host): Remove and re-implement.
1536 (GOMP_OFFLOAD_openacc_async_host2dev): New plugin hook function.
1537 (GOMP_OFFLOAD_openacc_async_dev2host): New plugin hook function.
1538
1539 2019-05-07 Thomas Schwinge <thomas@codesourcery.com>
1540
1541 PR target/87835
1542 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: Update.
1543
1544 2019-05-06 Thomas Schwinge <thomas@codesourcery.com>
1545
1546 * oacc-parallel.c: Add comments to legacy entry points (GCC 5).
1547
1548 2019-03-27 Kevin Buettner <kevinb@redhat.com>
1549
1550 * team.c (gomp_team_start): Initialize pool->threads[0].
1551
1552 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
1553
1554 * testsuite/libgomp.oacc-c++/c++.exp: Specify
1555 "-foffload=$offload_target".
1556 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1557 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1558 * testsuite/lib/libgomp.exp
1559 (check_effective_target_openacc_nvidia_accel_configured): Remove,
1560 as (conceptually) merged into
1561 check_effective_target_openacc_nvidia_accel_selected. Adjust all
1562 users.
1563
1564 * plugin/configfrag.ac: Populate and AC_SUBST offload_targets.
1565 * testsuite/libgomp-test-support.exp.in: Adjust.
1566 * testsuite/lib/libgomp.exp: Likewise. Don't populate
1567 openacc_device_types_s.
1568 (offload_target_to_openacc_device_type): New proc.
1569 * testsuite/libgomp.oacc-c++/c++.exp: Adjust.
1570 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1571 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1572 * Makefile.in: Regenerate.
1573 * configure: Likewise.
1574 * testsuite/Makefile.in: Likewise.
1575
1576 * plugin/configfrag.ac: Populate and AC_SUBST offload_plugins
1577 instead of offload_targets, and AC_DEFINE_UNQUOTED OFFLOAD_PLUGINS
1578 instead of OFFLOAD_TARGETS.
1579 * target.c (gomp_target_init): Adjust.
1580 * testsuite/libgomp-test-support.exp.in: Likewise.
1581 * testsuite/lib/libgomp.exp: Likewise. Populate
1582 openacc_device_types_s instead of offload_targets_s_openacc.
1583 (check_effective_target_openacc_nvidia_accel_selected)
1584 (check_effective_target_openacc_host_selected): Adjust.
1585 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
1586 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1587 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1588 * Makefile.in: Regenerate.
1589 * config.h.in: Likewise.
1590 * configure: Likewise.
1591 * testsuite/Makefile.in: Likewise.
1592
1593 * testsuite/lib/libgomp.exp: Error out for unknown offload target.
1594 * testsuite/libgomp.oacc-c++/c++.exp: Likewise. Report if
1595 "offloading: supported, but hardware not accessible".
1596 * testsuite/libgomp.oacc-c/c.exp: Likewise.
1597 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
1598
1599 2019-02-19 Chung-Lin Tang <cltang@codesourcery.com>
1600
1601 PR c/87924
1602 * oacc-parallel.c (GOACC_parallel_keyed): Remove condition on call to
1603 goacc_wait().
1604 (goacc_wait): Handle ACC_ASYNC_NOVAL case, remove goacc_thread() call
1605 and related adjustment.
1606
1607 2019-01-30 Jakub Jelinek <jakub@redhat.com>
1608
1609 PR c++/88988
1610 * testsuite/libgomp.c++/pr88988.C: New test.
1611
1612 2019-01-28 Jakub Jelinek <jakub@redhat.com>
1613
1614 PR middle-end/89002
1615 * testsuite/libgomp.c/pr89002.c: New test.
1616
1617 2019-01-28 Richard Biener <rguenther@suse.de>
1618
1619 PR testsuite/89064
1620 PR tree-optimization/86865
1621 * testsuite/libgomp.graphite/force-parallel-5.c: XFAIL.
1622
1623 2019-01-24 Tom de Vries <tdevries@suse.de>
1624
1625 * plugin/plugin-nvptx.c (GOMP_OFFLOAD_fini_device): Free ptx_devices
1626 once instantiated_devices drops to 0.
1627
1628 2019-01-23 Tom de Vries <tdevries@suse.de>
1629
1630 PR target/PR88946
1631 * plugin/plugin-nvptx.c (cuda_map_destroy): Use CUDA_CALL_NOCHECK for
1632 cuMemFree.
1633 (nvptx_exec): Don't call map_push if mapnum == 0.
1634 * testsuite/libgomp.oacc-c-c++-common/pr88946.c: New test.
1635
1636 2019-01-23 Tom de Vries <tdevries@suse.de>
1637
1638 PR target/88941
1639 PR target/88939
1640 * plugin/plugin-nvptx.c (cuda_map_destroy): Handle map->active case.
1641 (map_fini): Remove "assert (!s->map->active)".
1642 * testsuite/libgomp.oacc-c-c++-common/pr88941.c: New test.
1643
1644 2019-01-23 Tom de Vries <tdevries@suse.de>
1645
1646 PR target/87835
1647 * plugin/plugin-nvptx.c (map_push): Fix adding of allocated element.
1648 * testsuite/libgomp.oacc-c-c++-common/pr87835.c: New test.
1649
1650 2019-01-15 Tom de Vries <tdevries@suse.de>
1651
1652 PR target/80547
1653 * testsuite/libgomp.oacc-c-c++-common/gang-reduction-var-assignment.c:
1654 New test.
1655
1656 2019-01-12 Tom de Vries <tdevries@suse.de>
1657
1658 * testsuite/libgomp.oacc-c-c++-common/pr85486-2.c: New test.
1659 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-2.c: New test.
1660 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-5.c: New test.
1661 * testsuite/libgomp.oacc-fortran/gemm-2.f90: New test.
1662
1663 2019-01-12 Tom de Vries <tdevries@suse.de>
1664
1665 * plugin/plugin-nvptx.c (nvptx_exec): Update error message.
1666
1667 2019-01-12 Tom de Vries <tdevries@suse.de>
1668
1669 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-1.c: New test.
1670 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-2.c: New test.
1671 * testsuite/libgomp.oacc-c-c++-common/vector-length-64-3.c: New test.
1672
1673 2019-01-12 Tom de Vries <tdevries@suse.de>
1674
1675 PR target/85486
1676 * testsuite/libgomp.oacc-c-c++-common/pr85486-3.c: New test.
1677 * testsuite/libgomp.oacc-c-c++-common/pr85486.c: New test.
1678
1679 2019-01-12 Tom de Vries <tdevries@suse.de>
1680
1681 PR target/85381
1682 * testsuite/libgomp.oacc-c-c++-common/pr85381-5.c: New test.
1683 * testsuite/libgomp.oacc-c-c++-common/pr85381.c: New test.
1684
1685 2019-01-12 Tom de Vries <tdevries@suse.de>
1686
1687 * testsuite/libgomp.oacc-c-c++-common/vred2d-128.c: New test.
1688 * testsuite/libgomp.oacc-fortran/gemm.f90: New test.
1689 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-10.c: New test.
1690
1691 2019-01-12 Tom de Vries <tdevries@suse.de>
1692
1693 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-7.c: New test.
1694 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-4.c: New test.
1695 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-6.c: New test.
1696
1697 2019-01-12 Tom de Vries <tdevries@suse.de>
1698
1699 * plugin/plugin-nvptx.c (nvptx_exec): Update insufficient hardware
1700 resources diagnostic.
1701
1702 2019-01-12 Tom de Vries <tdevries@suse.de>
1703
1704 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: Expect
1705 vector length to be 128.
1706 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Expect vector
1707 length 2097152 to be reduced to 1024 instead of 32.
1708
1709 2019-01-11 Thomas Schwinge <thomas@codesourcery.com>
1710 James Norris <jnorris@codesourcery.com>
1711
1712 * libgomp.texi: Better distinguish OpenACC and OpenMP "Runtime
1713 Library Routines", and "Environment Variables".
1714
1715 2019-01-11 Tom de Vries <tdevries@suse.de>
1716
1717 * plugin/plugin-nvptx.c (nvptx_exec): Prevent vector_length 64 and
1718 num_workers 16.
1719
1720 2019-01-11 Tom de Vries <tdevries@suse.de>
1721
1722 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Remove
1723 -foffload=-w.
1724 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Same.
1725 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Same.
1726 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Same.
1727 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Same.
1728
1729 2019-01-11 Tom de Vries <tdevries@suse.de>
1730
1731 * testsuite/libgomp.oacc-c-c++-common/insufficient-resources.c: New
1732 test.
1733
1734 2019-01-10 Nathan Sidwell <nathan@acm.org>
1735 Julian Brown <julian@codesourcery.com>
1736
1737 PR lto/71959
1738 * testsuite/libgomp.oacc-c++/pr71959-aux.cc: New.
1739 * testsuite/libgomp.oacc-c++/pr71959.C: New.
1740
1741 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
1742
1743 * config/rtems/bar.c: Include "../linux/bar.c" and delete copy
1744 and paste code.
1745
1746 2019-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
1747
1748 * config/rtems/affinity-fmt.c: New file. Include affinity-fmt.c,
1749 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
1750 write.
1751
1752 2019-01-09 Tom de Vries <tdevries@suse.de>
1753
1754 PR target/88756
1755 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (ng, nw, vl): Use
1756 #define instead of "const int".
1757 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c (ng, nw, vl): Same.
1758 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c (ng, nw, vl): Same.
1759 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (ng, nw, vl): Same.
1760 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c (ng, nw, vl): Same.
1761
1762 2019-01-09 Tom de Vries <tdevries@suse.de>
1763
1764 * plugin/plugin-nvptx.c (nvptx_exec): Make sure to launch with at least
1765 one worker.
1766
1767 2019-01-07 Tom de Vries <tdevries@suse.de>
1768
1769 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: Fix
1770 GOMP_OPENACC_DIM argument.
1771
1772 2019-01-03 Tom de Vries <tdevries@suse.de>
1773
1774 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-1.c: New test.
1775 * testsuite/libgomp.oacc-c-c++-common/vector-length-128-3.c: New test.
1776
1777 2019-01-01 Jakub Jelinek <jakub@redhat.com>
1778
1779 Update copyright years.
1780
1781 2019-01-01 Jakub Jelinek <jakub@redhat.com>
1782
1783 * libgomp.texi: Bump @copying's copyright year.
1784
1785 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
1786
1787 * oacc-parallel.c (GOACC_parallel_keyed, GOACC_parallel)
1788 (GOACC_data_start, GOACC_enter_exit_data, GOACC_update)
1789 (GOACC_declare): Redefine the "device" argument to "flags".
1790
1791 2018-12-28 Thomas Schwinge <thomas@codesourcery.com>
1792 Cesar Philippidis <cesar@codesourcery.com>
1793
1794 * target.c (struct gomp_coalesce_chunk): New structure.
1795 (struct gomp_coalesce_buf): Update the chunks member to use that
1796 type. Adjust all users.
1797
1798 2018-12-19 Tom de Vries <tdevries@suse.de>
1799
1800 * testsuite/libgomp.oacc-c-c++-common/pr85381-2.c: New test.
1801 * testsuite/libgomp.oacc-c-c++-common/pr85381-3.c: New test.
1802 * testsuite/libgomp.oacc-c-c++-common/pr85381-4.c: New test.
1803
1804 2018-12-19 Tom de Vries <tdevries@suse.de>
1805
1806 * testsuite/lib/libgomp.exp: Add load_lib of scanoffloadrtl.exp.
1807 * testsuite/libgomp.oacc-c-c++-common/nvptx-merged-loop.c: Move from
1808 gcc/testsuite/gcc.dg/goacc.
1809 * testsuite/libgomp.oacc-c-c++-common/nvptx-sese-1.c: Same.
1810
1811 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
1812 Chung-Lin Tang <cltang@codesourcery.com>
1813
1814 * oacc-mem.c (acc_present_or_create): Remove definition and change
1815 to alias of acc_create.
1816 (acc_present_or_copyin): Remove definition and change to alias of
1817 acc_copyin.
1818 * oacc-parallel.c (GOACC_enter_exit_data): Call acc_create instead
1819 of acc_present_or_create.
1820 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Remove.
1821 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
1822 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
1823 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
1824 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
1825 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
1826 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
1827 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
1828 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
1829 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
1830 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
1831 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
1832 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
1833 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
1834 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
1835 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
1836
1837 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
1838
1839 PR libgomp/88495
1840 * plugin/plugin-nvptx.c (nvptx_wait_async): Don't refuse
1841 "identical parameters".
1842 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: Update.
1843 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Remove.
1844
1845 PR libgomp/88484
1846 * oacc-parallel.c (GOACC_wait): Correct handling for "async >= 0".
1847 * testsuite/libgomp.oacc-c-c++-common/asyncwait-nop-1.c: New file.
1848
1849 PR libgomp/88407
1850 * plugin/plugin-nvptx.c (nvptx_async_test, nvptx_wait)
1851 (nvptx_wait_async): Unseen async-argument is a no-op.
1852 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Update.
1853 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Likewise.
1854 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
1855 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
1856 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
1857 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Merge into...
1858 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: ... this. Update.
1859 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Merge into...
1860 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: ... this. Update
1861
1862 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Revise.
1863 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
1864
1865 2018-12-14 Chung-Lin Tang <cltang@codesourcery.com>
1866
1867 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Adjust.
1868 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
1869 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
1870
1871 2018-12-14 Thomas Schwinge <thomas@codesourcery.com>
1872
1873 PR libgomp/88370
1874 * libgomp.texi (acc_get_current_cuda_context, acc_get_cuda_stream)
1875 (acc_set_cuda_stream): Clarify.
1876 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
1877 "async_valid_p".
1878 * plugin/plugin-nvptx.c (nvptx_set_cuda_stream): Refuse "async ==
1879 acc_async_sync".
1880 * testsuite/libgomp.oacc-c-c++-common/acc_set_cuda_stream-1.c: New file.
1881 * testsuite/libgomp.oacc-c-c++-common/async_queue-1.c: Likewise.
1882 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Update.
1883 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
1884
1885 2018-12-14 Tom de Vries <tdevries@suse.de>
1886
1887 * testsuite/libgomp.c-c++-common/function-not-offloaded-aux.c: New test.
1888 * testsuite/libgomp.c-c++-common/function-not-offloaded.c: New test.
1889 * testsuite/libgomp.c-c++-common/variable-not-offloaded.c: New test.
1890 * testsuite/libgomp.oacc-c-c++-common/function-not-offloaded.c: New test.
1891 * testsuite/libgomp.oacc-c-c++-common/variable-not-offloaded.c: New test.
1892
1893 2018-12-13 Tom de Vries <tdevries@suse.de>
1894
1895 * affinity-fmt.c (gomp_print_string): New function, factored out of ...
1896 (omp_display_affinity, gomp_display_affinity_thread): ... here, and ...
1897 * fortran.c (omp_display_affinity_): ... here.
1898 * libgomp.h (gomp_print_string): Declare.
1899 * config/nvptx/affinity-fmt.c: New file. Include affinity-fmt.c,
1900 undefining HAVE_GETPID and HAVE_GETHOSTNAME, and mapping fwrite to
1901 write.
1902
1903 2018-12-13 Jakub Jelinek <jakub@redhat.com>
1904
1905 PR libgomp/88460
1906 * testsuite/libgomp.c++/for-24.C (results): Include it in
1907 omp declare target region.
1908 (main): Use map (always, tofrom: results) instead of
1909 map (tofrom: results).
1910
1911 2018-12-12 Jakub Jelinek <jakub@redhat.com>
1912
1913 PR fortran/88463
1914 * testsuite/libgomp.fortran/pr88463-1.f90: New test.
1915 * testsuite/libgomp.fortran/pr88463-2.f90: New test.
1916
1917 * testsuite/libgomp.c-c++-common/for-16.c: New test.
1918
1919 2018-12-12 Andreas Schwab <schwab@suse.de>
1920
1921 * config/linux/ia64/futex.h (sys_futex0): Don't mark r12 as
1922 clobbered.
1923
1924 2018-12-09 Thomas Koenig <tkoenig@gcc.gnu.org>
1925
1926 PR fortran/88411
1927 * testsuite/libgomp.fortran/async_io_8.f90: New test.
1928
1929 2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
1930 Jakub Jelinek <jakub@redhat.com>
1931
1932 * target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
1933 devicep->host2dev_func.
1934
1935 2018-12-08 Jakub Jelinek <jakub@redhat.com>
1936
1937 PR libgomp/87995
1938 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: Require
1939 tls_runtime effective target.
1940 (t): New threadprivate variable.
1941 (main): Set t in threads which execute iterations of the worksharing
1942 loop. Propagate that to the task after the loop and don't abort
1943 if the current taskgroup hasn't been cancelled.
1944
1945 2018-12-02 Jakub Jelinek <jakub@redhat.com>
1946
1947 * testsuite/libgomp.c/task-reduction-3.c: New test.
1948
1949 * testsuite/libgomp.c-c++-common/cancel-taskgroup-4.c: New test.
1950
1951 2018-11-30 Cesar Philippidis <cesar@codesourcery.com>
1952
1953 PR libgomp/88288
1954 * oacc-parallel.c (GOACC_parallel_keyed): Add offset to devaddrs.
1955 * testsuite/libgomp.oacc-c-c++-common/pr88288.c: New test.
1956
1957 2018-11-30 Thomas Schwinge <thomas@codesourcery.com>
1958
1959 * testsuite/libgomp.oacc-fortran/lib-16-2.f90: New file.
1960
1961 2018-10-19 Richard Biener <rguenther@suse.de>
1962
1963 PR tree-optimization/88182
1964 * testsuite/libgomp.c++/pr88182.C: Move to g++.dg/gomp.
1965
1966 2018-11-26 Jakub Jelinek <jakub@redhat.com>
1967
1968 * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Drop dejagnu.
1969 (RUNTEST): Don't define.
1970 (RUNTESTDEFAULTFLAGS): Add.
1971 (check-DEJAGNU, site.exp, distclean-DEJAGNU): New goals.
1972 (distclean-am): Depend on distclean-DEJAGNU.
1973 (check-am): If -j% option is present in MFLAGS and if
1974 `getconf _NPROCESSORS_ONLN` is more than 8, export OMP_NUM_THREADS=8.
1975 (.PHONY): Add check-DEJAGNU and distclean-DEJAGNU.
1976 * testsuite/Makefile.in: Regenerated.
1977
1978 2018-11-26 Richard Biener <rguenther@suse.de>
1979
1980 PR tree-optimization/88182
1981 * testsuite/libgomp.c++/pr88182.C: New testcase.
1982
1983 2018-11-20 Jakub Jelinek <jakub@redhat.com>
1984
1985 PR bootstrap/88106
1986 * config/mingw32/affinity-fmt.c: New file.
1987
1988 2018-11-09 Jakub Jelinek <jakub@redhat.com>
1989
1990 * affinity-fmt.c: Include inttypes.h if HAVE_INTTYPES_H.
1991 (gomp_display_affinity): Use __builtin_choose_expr to handle
1992 properly handle argument having integral, or pointer or some other
1993 type. If inttypes.h is available and PRIx64 is defined, use PRIx64
1994 with uint64_t type instead of %llx and unsigned long long.
1995
1996 * testsuite/libgomp.c-c++-common/task-reduction-13.c: New test.
1997 * testsuite/libgomp.c-c++-common/task-reduction-14.c: New test.
1998
1999 2018-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2000
2001 * affinity.c: Include <string.h>, <stdio.h>.
2002 (gomp_display_affinity_place): Remove cpusetp.
2003 * teams.c: Include <limits.h>.
2004
2005 2018-11-08 Jakub Jelinek <jakub@redhat.com>
2006
2007 * testsuite/libgomp.c-c++-common/task-reduction-8.c (bar): Add
2008 in_reduction clause for s[0].
2009
2010 * affinity.c (gomp_display_affinity_place): New function.
2011 * affinity-fmt.c: New file.
2012 * alloc.c (gomp_aligned_alloc, gomp_aligned_free): New functions.
2013 * config/linux/affinity.c (gomp_display_affinity_place): New function.
2014 * config/nvptx/icv-device.c (omp_get_num_teams, omp_get_team_num):
2015 Move these functions to ...
2016 * config/nvptx/teams.c: ... here. New file.
2017 * config/nvptx/target.c (omp_pause_resource, omp_pause_resource_all):
2018 New functions.
2019 * config/nvptx/team.c (gomp_team_start, gomp_pause_host): New
2020 functions.
2021 * configure.ac: Check for aligned_alloc, posix_memalign, memalign
2022 and _aligned_malloc.
2023 (HAVE_UNAME, HAVE_GETHOSTNAME, HAVE_GETPID): Add new tests.
2024 * configure.tgt: Add -DUSING_INITIAL_EXEC_TLS to XCFLAGS for Linux.
2025 * env.c (gomp_display_affinity_var, gomp_affinity_format_var,
2026 gomp_affinity_format_len): New variables.
2027 (parse_schedule): Parse monotonic and nonmonotonic modifiers in
2028 OMP_SCHEDULE variable. Set GFS_MONOTONIC for monotonic schedules.
2029 (handle_omp_display_env): Display monotonic/nonmonotonic schedule
2030 modifiers. Display (non-default) chunk sizes. Print
2031 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT.
2032 (initialize_env): Don't call pthread_attr_setdetachstate. Handle
2033 OMP_DISPLAY_AFFINITY and OMP_AFFINITY_FORMAT env vars.
2034 * fortran.c: Include stdio.h and string.h.
2035 (omp_pause_resource, omp_pause_resource_all): Add ialias_redirect.
2036 (omp_get_schedule_, omp_get_schedule_8_): Mask off GFS_MONOTONIC bit.
2037 (omp_set_affinity_format_, omp_get_affinity_format_,
2038 omp_display_affinity_, omp_capture_affinity_, omp_pause_resource_,
2039 omp_pause_resource_all_): New functions.
2040 * icv.c (omp_set_schedule): Mask off omp_sched_monotonic bit in
2041 switch.
2042 * icv-device.c (omp_get_num_teams, omp_get_team_num): Move these
2043 functions to ...
2044 * teams.c: ... here. New file.
2045 * libgomp_g.h: Include gstdint.h.
2046 (GOMP_loop_nonmonotonic_runtime_start,
2047 GOMP_loop_maybe_nonmonotonic_runtime_start, GOMP_loop_start,
2048 GOMP_loop_ordered_start, GOMP_loop_nonmonotonic_runtime_next,
2049 GOMP_loop_maybe_nonmonotonic_runtime_next, GOMP_loop_doacross_start,
2050 GOMP_parallel_loop_nonmonotonic_runtime,
2051 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2052 GOMP_loop_ull_nonmonotonic_runtime_start,
2053 GOMP_loop_ull_maybe_nonmonotonic_runtime_start, GOMP_loop_ull_start,
2054 GOMP_loop_ull_ordered_start, GOMP_loop_ull_nonmonotonic_runtime_next,
2055 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2056 GOMP_loop_ull_doacross_start, GOMP_parallel_reductions,
2057 GOMP_taskwait_depend, GOMP_taskgroup_reduction_register,
2058 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2059 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2060 GOMP_teams_reg): Declare.
2061 * libgomp.h (GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC): Define unless
2062 gomp_aligned_alloc uses fallback implementation.
2063 (gomp_aligned_alloc, gomp_aligned_free): Declare.
2064 (enum gomp_schedule_type): Add GFS_MONOTONIC.
2065 (struct gomp_doacross_work_share): Add extra field.
2066 (struct gomp_work_share): Add task_reductions field.
2067 (struct gomp_taskgroup): Add workshare and reductions fields.
2068 (GOMP_NEEDS_THREAD_HANDLE): Define if needed.
2069 (gomp_thread_handle): New typedef.
2070 (gomp_display_affinity_place, gomp_set_affinity_format,
2071 gomp_display_string, gomp_display_affinity,
2072 gomp_display_affinity_thread): Declare.
2073 (gomp_doacross_init, gomp_doacross_ull_init): Add size_t argument.
2074 (gomp_parallel_reduction_register, gomp_workshare_taskgroup_start,
2075 gomp_workshare_task_reduction_register): Declare.
2076 (gomp_team_start): Add taskgroup argument.
2077 (gomp_pause_host): Declare.
2078 (gomp_init_work_share, gomp_work_share_start): Change bool argument
2079 to size_t.
2080 (gomp_thread_self, gomp_thread_to_pthread_t): New inline functions.
2081 * libgomp.map (GOMP_5.0): Export GOMP_loop_start,
2082 GOMP_loop_ordered_start, GOMP_loop_doacross_start,
2083 GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2084 GOMP_loop_ull_doacross_start,
2085 GOMP_workshare_task_reduction_unregister, GOMP_sections2_start,
2086 GOMP_loop_maybe_nonmonotonic_runtime_next,
2087 GOMP_loop_maybe_nonmonotonic_runtime_start,
2088 GOMP_loop_nonmonotonic_runtime_next,
2089 GOMP_loop_nonmonotonic_runtime_start,
2090 GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2091 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2092 GOMP_loop_ull_nonmonotonic_runtime_next,
2093 GOMP_loop_ull_nonmonotonic_runtime_start,
2094 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2095 GOMP_parallel_loop_nonmonotonic_runtime, GOMP_parallel_reductions,
2096 GOMP_taskgroup_reduction_register,
2097 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2098 GOMP_teams_reg and GOMP_taskwait_depend.
2099 (OMP_5.0): Export omp_pause_resource{,_all}{,_},
2100 omp_{capture,display}_affinity{,_}, and
2101 omp_[gs]et_affinity_format{,_}.
2102 * loop.c: Include string.h.
2103 (GOMP_loop_runtime_next): Add ialias.
2104 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2105 (gomp_loop_static_start, gomp_loop_dynamic_start,
2106 gomp_loop_guided_start, gomp_loop_ordered_static_start,
2107 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
2108 gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
2109 gomp_loop_doacross_guided_start): Adjust gomp_work_share_start
2110 or gomp_doacross_init callers.
2111 (gomp_adjust_sched, GOMP_loop_start, GOMP_loop_ordered_start,
2112 GOMP_loop_doacross_start): New functions.
2113 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
2114 GOMP_loop_doacross_runtime_start, GOMP_parallel_loop_runtime_start):
2115 Mask off GFS_MONOTONIC bit.
2116 (GOMP_loop_maybe_nonmonotonic_runtime_next,
2117 GOMP_loop_maybe_nonmonotonic_runtime_start,
2118 GOMP_loop_nonmonotonic_runtime_next,
2119 GOMP_loop_nonmonotonic_runtime_start,
2120 GOMP_parallel_loop_maybe_nonmonotonic_runtime,
2121 GOMP_parallel_loop_nonmonotonic_runtime): New aliases or wrapper
2122 functions.
2123 (gomp_parallel_loop_start): Pass NULL as taskgroup to
2124 gomp_team_start.
2125 * loop_ull.c: Include string.h.
2126 (GOMP_loop_ull_runtime_next): Add ialias.
2127 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2128 (gomp_loop_ull_static_start, gomp_loop_ull_dynamic_start,
2129 gomp_loop_ull_guided_start, gomp_loop_ull_ordered_static_start,
2130 gomp_loop_ull_ordered_dynamic_start,
2131 gomp_loop_ull_ordered_guided_start,
2132 gomp_loop_ull_doacross_static_start,
2133 gomp_loop_ull_doacross_dynamic_start,
2134 gomp_loop_ull_doacross_guided_start): Adjust gomp_work_share_start
2135 and gomp_doacross_ull_init callers.
2136 (gomp_adjust_sched, GOMP_loop_ull_start, GOMP_loop_ull_ordered_start,
2137 GOMP_loop_ull_doacross_start): New functions.
2138 (GOMP_loop_ull_runtime_start,
2139 GOMP_loop_ull_ordered_runtime_start,
2140 GOMP_loop_ull_doacross_runtime_start): Mask off GFS_MONOTONIC bit.
2141 (GOMP_loop_ull_maybe_nonmonotonic_runtime_next,
2142 GOMP_loop_ull_maybe_nonmonotonic_runtime_start,
2143 GOMP_loop_ull_nonmonotonic_runtime_next,
2144 GOMP_loop_ull_nonmonotonic_runtime_start): Likewise.
2145 * Makefile.am (libgomp_la_SOURCES): Add teams.c and affinity-fmt.c.
2146 * omp.h.in (enum omp_sched_t): Add omp_sched_monotonic.
2147 (omp_pause_resource_t, omp_depend_t): New typedefs.
2148 (enum omp_lock_hint_t): Renamed to ...
2149 (enum omp_sync_hint_t): ... this. Define omp_sync_hint_*
2150 enumerators using numbers and omp_lock_hint_* as their aliases.
2151 (omp_lock_hint_t): New typedef. Rename to ...
2152 (omp_sync_hint_t): ... this.
2153 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint): Use
2154 omp_sync_hint_t instead of omp_lock_hint_t.
2155 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2156 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2157 Declare.
2158 (omp_target_is_present, omp_target_disassociate_ptr):
2159 Change first argument from void * to const void *.
2160 (omp_target_memcpy, omp_target_memcpy_rect): Change second argument
2161 from void * to const void *.
2162 (omp_target_associate_ptr): Change first and second arguments from
2163 void * to const void *.
2164 * omp_lib.f90.in (omp_pause_resource_kind, omp_pause_soft,
2165 omp_pause_hard): New parameters.
2166 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2167 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2168 New interfaces.
2169 * omp_lib.h.in (omp_pause_resource_kind, omp_pause_soft,
2170 omp_pause_hard): New parameters.
2171 (omp_pause_resource, omp_pause_resource_all, omp_set_affinity_format,
2172 omp_get_affinity_format, omp_display_affinity, omp_capture_affinity):
2173 New externals.
2174 * ordered.c (gomp_doacross_init, gomp_doacross_ull_init): Add
2175 EXTRA argument. If not needed to prepare array, if extra is 0,
2176 clear ws->doacross, otherwise allocate just doacross structure and
2177 extra payload. If array is needed, allocate also extra payload.
2178 (GOMP_doacross_post, GOMP_doacross_wait, GOMP_doacross_ull_post,
2179 GOMP_doacross_ull_wait): Handle doacross->array == NULL like
2180 doacross == NULL.
2181 * parallel.c (GOMP_parallel_start): Pass NULL as taskgroup to
2182 gomp_team_start.
2183 (GOMP_parallel): Likewise. Formatting fix.
2184 (GOMP_parallel_reductions): New function.
2185 (GOMP_cancellation_point): If taskgroup has workshare
2186 flag set, check cancelled of prev taskgroup if any.
2187 (GOMP_cancel): If taskgroup has workshare flag set, set cancelled
2188 on prev taskgroup if any.
2189 * sections.c: Include string.h.
2190 (GOMP_taskgroup_reduction_register): Add ialias_redirect.
2191 (GOMP_sections_start): Adjust gomp_work_share_start caller.
2192 (GOMP_sections2_start): New function.
2193 (GOMP_parallel_sections_start, GOMP_parallel_sections):
2194 Pass NULL as taskgroup to gomp_team_start.
2195 * single.c (GOMP_single_start, GOMP_single_copy_start): Adjust
2196 gomp_work_share_start callers.
2197 * target.c (GOMP_target_update_ext, GOMP_target_enter_exit_data):
2198 If taskgroup has workshare flag set, check cancelled on prev
2199 taskgroup if any. Guard all cancellation tests with
2200 gomp_cancel_var test.
2201 (omp_target_is_present, omp_target_disassociate_ptr):
2202 Change ptr argument from void * to const void *.
2203 (omp_target_memcpy): Change src argument from void * to const void *.
2204 (omp_target_memcpy_rect): Likewise.
2205 (omp_target_memcpy_rect_worker): Likewise. Use const char * casts
2206 instead of char * where needed.
2207 (omp_target_associate_ptr): Change host_ptr and device_ptr arguments
2208 from void * to const void *.
2209 (omp_pause_resource, omp_pause_resource_all): New functions.
2210 * task.c (gomp_task_handle_depend): Handle new depend array format
2211 in addition to the old. Handle mutexinoutset kinds the same as
2212 inout for now, handle unspecified kinds.
2213 (gomp_create_target_task): If taskgroup has workshare flag set, check
2214 cancelled on prev taskgroup if any. Guard all cancellation tests with
2215 gomp_cancel_var test. Handle new depend array format count in
2216 addition to the old.
2217 (GOMP_task): Likewise. Adjust function comment.
2218 (gomp_task_run_pre): If taskgroup has workshare flag set, check
2219 cancelled on prev taskgroup if any. Guard all cancellation tests with
2220 gomp_cancel_var test.
2221 (GOMP_taskwait_depend): New function.
2222 (gomp_task_maybe_wait_for_dependencies): Handle new depend array
2223 format in addition to the old. Handle mutexinoutset kinds the same as
2224 inout for now, handle unspecified kinds. Fix a function comment typo.
2225 (gomp_taskgroup_init): New function.
2226 (GOMP_taskgroup_start): Use it.
2227 (gomp_reduction_register, gomp_create_artificial_team,
2228 GOMP_taskgroup_reduction_register,
2229 GOMP_taskgroup_reduction_unregister, GOMP_task_reduction_remap,
2230 gomp_parallel_reduction_register,
2231 gomp_workshare_task_reduction_register,
2232 gomp_workshare_taskgroup_start,
2233 GOMP_workshare_task_reduction_unregister): New functions.
2234 * taskloop.c (GOMP_taskloop): If taskgroup has workshare flag set,
2235 check cancelled on prev taskgroup if any. Guard all cancellation
2236 tests with gomp_cancel_var test. Handle GOMP_TASK_FLAG_REDUCTION flag
2237 by calling GOMP_taskgroup_reduction_register.
2238 * team.c (gomp_thread_attr): Remove comment.
2239 (struct gomp_thread_start_data): Add handle field.
2240 (gomp_thread_start): Call pthread_detach.
2241 (gomp_new_team): Adjust gomp_init_work_share caller.
2242 (gomp_free_pool_helper): Call pthread_detach.
2243 (gomp_team_start): Add taskgroup argument, initialize implicit
2244 tasks' taskgroup field to that. Don't call
2245 pthread_attr_setdetachstate. Handle OMP_DISPLAY_AFFINITY env var.
2246 (gomp_team_end): Determine nesting by thr->ts.level != 0
2247 rather than thr->ts.team != NULL.
2248 (gomp_pause_pool_helper, gomp_pause_host): New functions.
2249 * work.c (alloc_work_share): Use gomp_aligned_alloc instead of
2250 gomp_malloc if GOMP_HAVE_EFFICIENT_ALIGNED_ALLOC is defined.
2251 (gomp_init_work_share): Change ORDERED argument from bool to size_t,
2252 if more than 1 allocate also extra payload at the end of array. Never
2253 keep ordered_team_ids NULL, set it to inline_ordered_team_ids instead.
2254 (gomp_work_share_start): Change ORDERED argument from bool to size_t,
2255 return true instead of ws.
2256 * Makefile.in: Regenerated.
2257 * configure: Regenerated.
2258 * config.h.in: Regenerated.
2259 * testsuite/libgomp.c/cancel-for-2.c (foo): Use cancel modifier
2260 in some cases.
2261 * testsuite/libgomp.c-c++-common/cancel-parallel-1.c: New test.
2262 * testsuite/libgomp.c-c++-common/cancel-taskgroup-3.c: New test.
2263 * testsuite/libgomp.c-c++-common/depend-iterator-1.c: New test.
2264 * testsuite/libgomp.c-c++-common/depend-iterator-2.c: New test.
2265 * testsuite/libgomp.c-c++-common/depend-mutexinout-1.c: New test.
2266 * testsuite/libgomp.c-c++-common/depend-mutexinout-2.c: New test.
2267 * testsuite/libgomp.c-c++-common/depobj-1.c: New test.
2268 * testsuite/libgomp.c-c++-common/display-affinity-1.c: New test.
2269 * testsuite/libgomp.c-c++-common/for-10.c: New test.
2270 * testsuite/libgomp.c-c++-common/for-11.c: New test.
2271 * testsuite/libgomp.c-c++-common/for-12.c: New test.
2272 * testsuite/libgomp.c-c++-common/for-13.c: New test.
2273 * testsuite/libgomp.c-c++-common/for-14.c: New test.
2274 * testsuite/libgomp.c-c++-common/for-15.c: New test.
2275 * testsuite/libgomp.c-c++-common/for-2.h: If CONDNE macro is defined,
2276 define a different N(test), don't define N(f0) to N(f14), but instead
2277 define N(f20) to N(f34) using != comparisons.
2278 * testsuite/libgomp.c-c++-common/for-7.c: New test.
2279 * testsuite/libgomp.c-c++-common/for-8.c: New test.
2280 * testsuite/libgomp.c-c++-common/for-9.c: New test.
2281 * testsuite/libgomp.c-c++-common/master-combined-1.c: New test.
2282 * testsuite/libgomp.c-c++-common/pause-1.c: New test.
2283 * testsuite/libgomp.c-c++-common/pause-2.c: New test.
2284 * testsuite/libgomp.c-c++-common/pr66199-10.c: New test.
2285 * testsuite/libgomp.c-c++-common/pr66199-11.c: New test.
2286 * testsuite/libgomp.c-c++-common/pr66199-12.c: New test.
2287 * testsuite/libgomp.c-c++-common/pr66199-13.c: New test.
2288 * testsuite/libgomp.c-c++-common/pr66199-14.c: New test.
2289 * testsuite/libgomp.c-c++-common/simd-1.c: New test.
2290 * testsuite/libgomp.c-c++-common/taskloop-reduction-1.c: New test.
2291 * testsuite/libgomp.c-c++-common/taskloop-reduction-2.c: New test.
2292 * testsuite/libgomp.c-c++-common/taskloop-reduction-3.c: New test.
2293 * testsuite/libgomp.c-c++-common/taskloop-reduction-4.c: New test.
2294 * testsuite/libgomp.c-c++-common/task-reduction-11.c: New test.
2295 * testsuite/libgomp.c-c++-common/task-reduction-12.c: New test.
2296 * testsuite/libgomp.c-c++-common/task-reduction-1.c: New test.
2297 * testsuite/libgomp.c-c++-common/task-reduction-2.c: New test.
2298 * testsuite/libgomp.c-c++-common/task-reduction-3.c: New test.
2299 * testsuite/libgomp.c-c++-common/task-reduction-4.c: New test.
2300 * testsuite/libgomp.c-c++-common/task-reduction-5.c: New test.
2301 * testsuite/libgomp.c-c++-common/task-reduction-6.c: New test.
2302 * testsuite/libgomp.c-c++-common/task-reduction-7.c: New test.
2303 * testsuite/libgomp.c-c++-common/task-reduction-8.c: New test.
2304 * testsuite/libgomp.c-c++-common/task-reduction-9.c: New test.
2305 * testsuite/libgomp.c-c++-common/taskwait-depend-1.c: New test.
2306 * testsuite/libgomp.c++/depend-1.C: New test.
2307 * testsuite/libgomp.c++/depend-iterator-1.C: New test.
2308 * testsuite/libgomp.c++/depobj-1.C: New test.
2309 * testsuite/libgomp.c++/for-16.C: New test.
2310 * testsuite/libgomp.c++/for-21.C: New test.
2311 * testsuite/libgomp.c++/for-22.C: New test.
2312 * testsuite/libgomp.c++/for-23.C: New test.
2313 * testsuite/libgomp.c++/for-24.C: New test.
2314 * testsuite/libgomp.c++/for-25.C: New test.
2315 * testsuite/libgomp.c++/for-26.C: New test.
2316 * testsuite/libgomp.c++/taskloop-reduction-1.C: New test.
2317 * testsuite/libgomp.c++/taskloop-reduction-2.C: New test.
2318 * testsuite/libgomp.c++/taskloop-reduction-3.C: New test.
2319 * testsuite/libgomp.c++/taskloop-reduction-4.C: New test.
2320 * testsuite/libgomp.c++/task-reduction-10.C: New test.
2321 * testsuite/libgomp.c++/task-reduction-11.C: New test.
2322 * testsuite/libgomp.c++/task-reduction-12.C: New test.
2323 * testsuite/libgomp.c++/task-reduction-13.C: New test.
2324 * testsuite/libgomp.c++/task-reduction-14.C: New test.
2325 * testsuite/libgomp.c++/task-reduction-15.C: New test.
2326 * testsuite/libgomp.c++/task-reduction-16.C: New test.
2327 * testsuite/libgomp.c++/task-reduction-17.C: New test.
2328 * testsuite/libgomp.c++/task-reduction-18.C: New test.
2329 * testsuite/libgomp.c++/task-reduction-19.C: New test.
2330 * testsuite/libgomp.c/task-reduction-1.c: New test.
2331 * testsuite/libgomp.c++/task-reduction-1.C: New test.
2332 * testsuite/libgomp.c/task-reduction-2.c: New test.
2333 * testsuite/libgomp.c++/task-reduction-2.C: New test.
2334 * testsuite/libgomp.c++/task-reduction-3.C: New test.
2335 * testsuite/libgomp.c++/task-reduction-4.C: New test.
2336 * testsuite/libgomp.c++/task-reduction-5.C: New test.
2337 * testsuite/libgomp.c++/task-reduction-6.C: New test.
2338 * testsuite/libgomp.c++/task-reduction-7.C: New test.
2339 * testsuite/libgomp.c++/task-reduction-8.C: New test.
2340 * testsuite/libgomp.c++/task-reduction-9.C: New test.
2341 * testsuite/libgomp.c/teams-1.c: New test.
2342 * testsuite/libgomp.c/teams-2.c: New test.
2343 * testsuite/libgomp.c/thread-limit-4.c: New test.
2344 * testsuite/libgomp.c/thread-limit-5.c: New test.
2345 * testsuite/libgomp.fortran/display-affinity-1.f90: New test.
2346
2347 2018-11-06 Chung-Lin Tang <cltang@codesourcery.com>
2348
2349 * oacc-mem.c (memcpy_tofrom_device): New function, combined from
2350 acc_memcpy_to/from_device functions, now with async parameter.
2351 (acc_memcpy_to_device): Modify to use memcpy_tofrom_device.
2352 (acc_memcpy_from_device): Likewise.
2353 (acc_memcpy_to_device_async): New API function.
2354 (acc_memcpy_from_device_async): Likewise.
2355 (present_create_copy): Add async parameter and async setting/unsetting.
2356 (acc_create): Adjust present_create_copy call.
2357 (acc_copyin): Likewise.
2358 (acc_present_or_create): Likewise.
2359 (acc_present_or_copyin): Likewise.
2360 (acc_create_async): New API function.
2361 (acc_copyin_async): New API function.
2362 (delete_copyout): Add async parameter and async setting/unsetting.
2363 (acc_delete): Adjust delete_copyout call.
2364 (acc_copyout): Likewise.
2365 (acc_delete_async): New API function.
2366 (acc_copyout_async): Likewise.
2367 (update_dev_host): Add async parameter and async setting/unsetting.
2368 (acc_update_device): Adjust update_dev_host call.
2369 (acc_update_self): Likewise.
2370 (acc_update_device_async): New API function.
2371 (acc_update_self_async): Likewise.
2372 * openacc.h (acc_copyin_async): Declare new API function.
2373 (acc_create_async): Likewise.
2374 (acc_copyout_async): Likewise.
2375 (acc_delete_async): Likewise.
2376 (acc_update_device_async): Likewise.
2377 (acc_update_self_async): Likewise.
2378 (acc_memcpy_to_device_async): Likewise.
2379 (acc_memcpy_from_device_async): Likewise.
2380 * openacc_lib.h (acc_copyin_async_32_h): New subroutine.
2381 (acc_copyin_async_64_h): New subroutine.
2382 (acc_copyin_async_array_h): New subroutine.
2383 (acc_create_async_32_h): New subroutine.
2384 (acc_create_async_64_h): New subroutine.
2385 (acc_create_async_array_h): New subroutine.
2386 (acc_copyout_async_32_h): New subroutine.
2387 (acc_copyout_async_64_h): New subroutine.
2388 (acc_copyout_async_array_h): New subroutine.
2389 (acc_delete_async_32_h): New subroutine.
2390 (acc_delete_async_64_h): New subroutine.
2391 (acc_delete_async_array_h): New subroutine.
2392 (acc_update_device_async_32_h): New subroutine.
2393 (acc_update_device_async_64_h): New subroutine.
2394 (acc_update_device_async_array_h): New subroutine.
2395 (acc_update_self_async_32_h): New subroutine.
2396 (acc_update_self_async_64_h): New subroutine.
2397 (acc_update_self_async_array_h): New subroutine.
2398 * openacc.f90 (acc_copyin_async_32_h): New subroutine.
2399 (acc_copyin_async_64_h): New subroutine.
2400 (acc_copyin_async_array_h): New subroutine.
2401 (acc_create_async_32_h): New subroutine.
2402 (acc_create_async_64_h): New subroutine.
2403 (acc_create_async_array_h): New subroutine.
2404 (acc_copyout_async_32_h): New subroutine.
2405 (acc_copyout_async_64_h): New subroutine.
2406 (acc_copyout_async_array_h): New subroutine.
2407 (acc_delete_async_32_h): New subroutine.
2408 (acc_delete_async_64_h): New subroutine.
2409 (acc_delete_async_array_h): New subroutine.
2410 (acc_update_device_async_32_h): New subroutine.
2411 (acc_update_device_async_64_h): New subroutine.
2412 (acc_update_device_async_array_h): New subroutine.
2413 (acc_update_self_async_32_h): New subroutine.
2414 (acc_update_self_async_64_h): New subroutine.
2415 (acc_update_self_async_array_h): New subroutine.
2416 * libgomp.map (OACC_2.5): Add acc_copyin_async*, acc_copyout_async*,
2417 acc_copyout_finalize_async*, acc_create_async*, acc_delete_async*,
2418 acc_delete_finalize_async*, acc_memcpy_from_device_async*,
2419 acc_memcpy_to_device_async*, acc_update_device_async*, and
2420 acc_update_self_async* entries.
2421 * testsuite/libgomp.oacc-c-c++-common/lib-94.c: New test.
2422 * testsuite/libgomp.oacc-c-c++-common/lib-95.c: New test.
2423 * testsuite/libgomp.oacc-fortran/lib-16.f90: New test.
2424
2425 2018-10-31 Joseph Myers <joseph@codesourcery.com>
2426
2427 PR bootstrap/82856
2428 * Makefile.am: Include multilib.am
2429 (AUTOMAKE_OPTIONS): Add info-in-builddir.
2430 (CLEANFILES): Remove libgomp.info.
2431 * configure.ac: Remove AC_PREREQ.
2432 * testsuite/Makefile.am (RUNTEST): Remove quotes.
2433 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in:
2434 Regenerate.
2435
2436 2018-10-29 Joseph Myers <joseph@codesourcery.com>
2437 Julian Brown <julian@codesourcery.com>
2438
2439 * testsuite/libgomp.oacc-c++/this.C: New.
2440
2441 2018-09-18 Cesar Philippidis <cesar@codesourcery.com>
2442
2443 * plugin/plugin-nvptx.c (struct cuda_map): New.
2444 (struct ptx_stream): Replace d, h, h_begin, h_end, h_next, h_prev,
2445 h_tail with (cuda_map *) map.
2446 (cuda_map_create): New function.
2447 (cuda_map_destroy): New function.
2448 (map_init): Update to use a linked list of cuda_map objects.
2449 (map_fini): Likewise.
2450 (map_pop): Likewise.
2451 (map_push): Likewise. Return CUdeviceptr instead of void.
2452 (init_streams_for_device): Remove stales references to ptx_stream
2453 members.
2454 (select_stream_for_async): Likewise.
2455 (nvptx_exec): Update call to map_init.
2456
2457 2018-09-09 Cesar Philippidis <cesar@codesourcery.com>
2458 Julian Brown <julian@codesourcery.com>
2459
2460 PR middle-end/86336
2461 * testsuite/libgomp.oacc-c++/non-scalar-data.C: Remove XFAIL.
2462
2463 2018-08-21 Nicolas Koenig <koenigni@gcc.gnu.org>
2464 Thomas Koenig <tkoenig@gcc.gnu.org>
2465
2466 PR fortran/25829
2467 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2468 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2469 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2470 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2471 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2472 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2473 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2474
2475 2018-08-13 Cesar Philippidis <cesar@codesourcery.com>
2476 Tom de Vries <tdevries@suse.de>
2477
2478 PR target/85590
2479 * plugin/cuda/cuda.h (CUoccupancyB2DSize): New typedef.
2480 (cuOccupancyMaxPotentialBlockSize): Declare.
2481 * plugin/cuda-lib.def (cuOccupancyMaxPotentialBlockSize): New
2482 CUDA_ONE_CALL_MAYBE_NULL.
2483 * plugin/plugin-nvptx.c (CUDA_VERSION < 6050): Define
2484 CUoccupancyB2DSize and declare
2485 cuOccupancyMaxPotentialBlockSize.
2486 (nvptx_exec): Use cuOccupancyMaxPotentialBlockSize to set the
2487 default num_gangs and num_workers when the driver supports it.
2488
2489 2018-08-08 Tom de Vries <tdevries@suse.de>
2490
2491 * plugin/cuda-lib.def (cuLinkAddData_v2, cuLinkCreate_v2): Declare using
2492 CUDA_ONE_CALL_MAYBE_NULL.
2493 * plugin/plugin-nvptx.c (cuLinkAddData, cuLinkCreate): Undef and declare.
2494 (cuLinkAddData_v2, cuLinkCreate_v2): Declare.
2495 (link_ptx): Fall back to cuLinkAddData/cuLinkCreate if the _v2 versions
2496 are not found.
2497
2498 2018-08-08 Tom de Vries <tdevries@suse.de>
2499
2500 * plugin/cuda-lib.def (cuGetErrorString): Use CUDA_ONE_CALL_MAYBE_NULL.
2501 * plugin/plugin-nvptx.c (cuda_error): Handle if cuGetErrorString is not
2502 present.
2503
2504 2018-08-08 Tom de Vries <tdevries@suse.de>
2505
2506 * plugin/plugin-nvptx.c
2507 (CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR): Define.
2508 (nvptx_open_device): Use
2509 CU_DEVICE_ATTRIBUTE_MAX_REGISTERS_PER_MULTIPROCESSOR.
2510
2511 2018-08-08 Tom de Vries <tdevries@suse.de>
2512
2513 * plugin/plugin-nvptx.c (cuda_error): Move declaration of cuGetErrorString ...
2514 (cuGetErrorString): ... here. Guard with CUDA_VERSION < 6000.
2515
2516 2018-08-07 Tom de Vries <tdevries@suse.de>
2517
2518 * plugin/plugin-nvptx.c (DO_PRAGMA): Define.
2519 (struct cuda_lib_s): Add def/undef of CUDA_ONE_CALL_MAYBE_NULL.
2520 (init_cuda_lib): Add new param to CUDA_ONE_CALL_1. Add arg to
2521 corresponding call in CUDA_ONE_CALL. Add def/undef of
2522 CUDA_ONE_CALL_MAYBE_NULL.
2523 (CUDA_CALL_EXISTS): Define.
2524
2525 2018-08-07 Tom de Vries <tdevries@suse.de>
2526
2527 * plugin/plugin-nvptx.c (struct cuda_lib_s, init_cuda_lib): Put
2528 CUDA_ONE_CALL defines right before the cuda-lib.def include, and the
2529 corresponding undefs right after.
2530
2531 2018-08-04 Tom de Vries <tdevries@suse.de>
2532
2533 * plugin/configfrag.ac: For --without-cuda-driver, set
2534 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB to no. Handle
2535 CUDA_DRIVER_INCLUDE == no and CUDA_DRIVER_LIB == no.
2536 * configure: Regenerate.
2537
2538 2018-08-02 Tom de Vries <tdevries@suse.de>
2539
2540 PR target/86660
2541 * testsuite/libgomp.oacc-c++/routine-1-auto.C: Remove -fno-exceptions.
2542 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Same.
2543 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
2544 Same.
2545 * testsuite/libgomp.oacc-c++/routine-1-template.C: Same.
2546 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C: Same.
2547 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Same.
2548
2549 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
2550 Thomas Schwinge <thomas@codesourcery.com>
2551
2552 * config/nvptx/oacc-parallel.c: Truncate.
2553
2554 2018-08-01 Cesar Philippidis <cesar@codesourcery.com>
2555 James Norris <jnorris@codesourcery.com>
2556
2557 * plugin/plugin-nvptx.c (struct map): Removed.
2558 (map_init, map_pop): Remove use of struct map.
2559 (map_push): Likewise and change argument list.
2560 * testsuite/libgomp.oacc-c-c++-common/mapping-1.c: New
2561
2562 2018-08-01 Tom de Vries <tdevries@suse.de>
2563
2564 * plugin/cuda-lib.def: New file. Factor out of ...
2565 * plugin/plugin-nvptx.c (CUDA_CALLS): ... here.
2566 (struct cuda_lib_s, init_cuda_lib): Include cuda-lib.def instead of
2567 using CUDA_CALLS.
2568
2569 2018-07-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
2570
2571 Revert 'AsyncI/O patch committed'.
2572 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
2573 Thomas Koenig <tkoenig@gcc.gnu.org>
2574
2575 PR fortran/25829
2576 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2577 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2578 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2579 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2580 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2581 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2582 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2583
2584 2018-07-30 Tom de Vries <tdevries@suse.de>
2585
2586 * plugin/plugin-nvptx.c (MIN, MAX): Redefine.
2587 (nvptx_exec): Ensure worker and vector default dims don't exceed
2588 targ_fn->max_threads_per_block.
2589
2590 2018-07-30 Tom de Vries <tdevries@suse.de>
2591
2592 * plugin/plugin-nvptx.c (struct ptx_device): Add default_dims field.
2593 (nvptx_open_device): Init default_dims for device.
2594 (nvptx_exec): Use default_dims from device.
2595
2596 2018-07-26 Jakub Jelinek <jakub@redhat.com>
2597
2598 PR testsuite/86660
2599 * testsuite/libgomp.c++/for-15.C (results): Include it in
2600 omp declare target region.
2601 (main): Use map (always, tofrom: results) instead of
2602 map (tofrom: results).
2603
2604 PR middle-end/86660
2605 * testsuite/libgomp.c/pr86660.c: New test.
2606
2607 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
2608 Tom de Vries <tdevries@suse.de>
2609
2610 * plugin/plugin-nvptx.c (nvptx_exec): Error if the hardware doesn't have
2611 sufficient resources to launch a kernel, and give a hint on how to fix
2612 it.
2613
2614 2018-07-26 Cesar Philippidis <cesar@codesourcery.com>
2615 Tom de Vries <tdevries@suse.de>
2616
2617 * plugin/plugin-nvptx.c (struct ptx_device): Add warp_size,
2618 max_threads_per_block and max_threads_per_multiprocessor fields.
2619 (nvptx_open_device): Initialize new fields.
2620 (nvptx_exec): Use num_sms, and new fields.
2621
2622 2018-07-26 Tom de Vries <tdevries@suse.de>
2623
2624 * testsuite/libgomp.oacc-fortran/lib-12.f90: Move acc_async_test calls
2625 to correct locations. Remove xfail.
2626
2627 2018-07-26 Tom de Vries <tdevries@suse.de>
2628
2629 * testsuite/libgomp.oacc-fortran/lib-13.f90: Replace acc_wait_all with
2630 acc_wait. Move acc_async_test calls to correct locations. Remove
2631 xfail.
2632
2633 2018-07-25 Nicolas Koenig <koenigni@gcc.gnu.org>
2634 Thomas Koenig <tkoenig@gcc.gnu.org>
2635
2636 PR fortran/25829
2637 * testsuite/libgomp.fortran/async_io_1.f90: New test.
2638 * testsuite/libgomp.fortran/async_io_2.f90: New test.
2639 * testsuite/libgomp.fortran/async_io_3.f90: New test.
2640 * testsuite/libgomp.fortran/async_io_4.f90: New test.
2641 * testsuite/libgomp.fortran/async_io_5.f90: New test.
2642 * testsuite/libgomp.fortran/async_io_6.f90: New test.
2643 * testsuite/libgomp.fortran/async_io_7.f90: New test.
2644
2645 2018-07-17 Jakub Jelinek <jakub@redhat.com>
2646
2647 PR middle-end/86542
2648 * testsuite/libgomp.c++/pr86542.C: New test.
2649
2650 PR middle-end/86539
2651 * testsuite/libgomp.c++/pr86539.C: New test.
2652
2653 2018-07-11 Jakub Jelinek <jakub@redhat.com>
2654
2655 PR c++/86443
2656 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable.
2657 (results): Make sure the variable is not inside declare target region.
2658 (qux): Remove unused function.
2659
2660 2018-07-10 Jakub Jelinek <jakub@redhat.com>
2661
2662 PR c++/86443
2663 * testsuite/libgomp.c++/for-15.C: New test.
2664
2665 2018-06-26 Jakub Jelinek <jakub@redhat.com>
2666
2667 PR c++/86291
2668 * testsuite/libgomp.c++/pr86291.C: New test.
2669
2670 2018-06-24 Gerald Pfeifer <gerald@pfeifer.com>
2671
2672 * libgomp.texi (Top): Move www.openmp.org to https.
2673 (Enabling OpenMP): Ditto.
2674 (omp_get_active_level): Ditto.
2675 (omp_get_ancestor_thread_num): Ditto.
2676 (omp_get_cancellation): Ditto.
2677 (omp_get_default_device): Ditto.
2678 (omp_get_dynamic): Ditto.
2679 (omp_get_level): Ditto.
2680 (omp_get_max_active_levels): Ditto.
2681 (omp_get_max_task_priority): Ditto.
2682 (omp_get_max_threads): Ditto.
2683 (omp_get_nested): Ditto.
2684 (omp_get_num_devices): Ditto.
2685 (omp_get_num_procs): Ditto.
2686 (omp_get_num_teams): Ditto.
2687 (omp_get_num_threads): Ditto.
2688 (omp_get_proc_bind): Ditto.
2689 (omp_get_schedule): Ditto.
2690 (omp_get_team_num): Ditto.
2691 (omp_get_team_size): Ditto.
2692 (omp_get_thread_limit): Ditto.
2693 (omp_get_thread_num): Ditto.
2694 (omp_in_parallel): Ditto.
2695 (omp_in_final): Ditto.
2696 (omp_is_initial_device): Ditto.
2697 (omp_set_default_device): Ditto.
2698 (omp_set_dynamic): Ditto.
2699 (omp_set_max_active_levels): Ditto.
2700 (omp_set_nested): Ditto.
2701 (omp_set_num_threads): Ditto.
2702 (omp_set_schedule): Ditto.
2703 (omp_init_lock): Ditto.
2704 (omp_set_lock): Ditto.
2705 (omp_test_lock): Ditto.
2706 (omp_unset_lock): Ditto.
2707 (omp_destroy_lock): Ditto.
2708 (omp_init_nest_lock): Ditto.
2709 (omp_set_nest_lock): Ditto.
2710 (omp_test_nest_lock): Ditto.
2711 (omp_unset_nest_lock): Ditto.
2712 (omp_destroy_nest_lock): Ditto.
2713 (omp_get_wtick): Ditto.
2714 (omp_get_wtime): Ditto.
2715 (OMP_CANCELLATION): Ditto.
2716 (OMP_DISPLAY_ENV): Ditto.
2717 (OMP_DEFAULT_DEVICE): Ditto.
2718 (OMP_DYNAMIC): Ditto.
2719 (OMP_MAX_ACTIVE_LEVELS): Ditto.
2720 (OMP_MAX_TASK_PRIORITY): Ditto.
2721 (OMP_NESTED): Ditto.
2722 (OMP_NUM_THREADS): Ditto.
2723 (OMP_PROC_BIND): Ditto.
2724 (OMP_PLACES): Ditto.
2725 (OMP_STACKSIZE): Ditto.
2726 (OMP_SCHEDULE): Ditto.
2727 (OMP_THREAD_LIMIT): Ditto.
2728 (OMP_WAIT_POLICY): Ditto.
2729
2730 2018-06-22 Cesar Philippidis <cesar@codesourcery.com>
2731 James Norris <jnorris@codesourcery.com>
2732 Julian Brown <julian@codesourcery.com>
2733 Thomas Schwinge <thomas@codesourcery.com>
2734 Tom de Vries <tom@codesourcery.com>
2735
2736 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Don't force "-O2".
2737 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update.
2738 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: Likewise.
2739 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: Likewise.
2740 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
2741 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
2742 * testsuite/libgomp.oacc-c++/non-scalar-data.C: New file.
2743 * testsuite/libgomp.oacc-c-c++-common/declare-3.c: Likewise.
2744 * testsuite/libgomp.oacc-c-c++-common/enter-data.c: Likewise.
2745 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c:
2746 Likewise.
2747 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
2748 Likewise.
2749 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
2750 Likewise.
2751 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c:
2752 Likewise.
2753 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c:
2754 Likewise.
2755 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
2756 Likewise.
2757 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-1.c:
2758 Likewise.
2759 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-2.c:
2760 Likewise.
2761 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-3.c:
2762 Likewise.
2763 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-4.c:
2764 Likewise.
2765 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-local-worker-5.c:
2766 Likewise.
2767 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-1.c:
2768 Likewise.
2769 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-2.c:
2770 Likewise.
2771 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-3.c:
2772 Likewise.
2773 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-4.c:
2774 Likewise.
2775 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-5.c:
2776 Likewise.
2777 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-gang-6.c:
2778 Likewise.
2779 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-1.c:
2780 Likewise.
2781 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-vector-2.c:
2782 Likewise.
2783 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-1.c:
2784 Likewise.
2785 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-2.c:
2786 Likewise.
2787 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-3.c:
2788 Likewise.
2789 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-4.c:
2790 Likewise.
2791 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-5.c:
2792 Likewise.
2793 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-6.c:
2794 Likewise.
2795 * testsuite/libgomp.oacc-c-c++-common/kernels-private-vars-loop-worker-7.c:
2796 Likewise.
2797 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction-1.c:
2798 Likewise.
2799 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.c: Likewise.
2800 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-1.h: Likewise.
2801 * testsuite/libgomp.oacc-c-c++-common/parallel-loop-2.h: Likewise.
2802 * testsuite/libgomp.oacc-fortran/cublas-fixed.h: Likewise.
2803 * testsuite/libgomp.oacc-fortran/dummy-array.f90: Likewise.
2804 * testsuite/libgomp.oacc-fortran/host_data-2.f90: Likewise.
2805 * testsuite/libgomp.oacc-fortran/host_data-3.f: Likewise.
2806 * testsuite/libgomp.oacc-fortran/host_data-4.f90: Likewise.
2807 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction-2.f90:
2808 Likewise.
2809 * testsuite/libgomp.oacc-fortran/kernels-acc-loop-reduction.f90:
2810 Likewise.
2811 * testsuite/libgomp.oacc-fortran/kernels-collapse-3.f90: Likewise.
2812 * testsuite/libgomp.oacc-fortran/kernels-collapse-4.f90: Likewise.
2813 * testsuite/libgomp.oacc-fortran/kernels-independent.f90:
2814 Likewise.
2815 * testsuite/libgomp.oacc-fortran/kernels-loop-1.f90: Likewise.
2816 * testsuite/libgomp.oacc-fortran/kernels-map-1.f90: Likewise.
2817 * testsuite/libgomp.oacc-fortran/kernels-parallel-loop-data-enter-exit.f95:
2818 Likewise.
2819 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-1.f90:
2820 Likewise.
2821 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-2.f90:
2822 Likewise.
2823 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-3.f90:
2824 Likewise.
2825 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-gang-6.f90:
2826 Likewise.
2827 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-1.f90:
2828 Likewise.
2829 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-vector-2.f90:
2830 Likewise.
2831 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-1.f90:
2832 Likewise.
2833 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-2.f90:
2834 Likewise.
2835 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-3.f90:
2836 Likewise.
2837 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-4.f90:
2838 Likewise.
2839 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-5.f90:
2840 Likewise.
2841 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-6.f90:
2842 Likewise.
2843 * testsuite/libgomp.oacc-fortran/kernels-private-vars-loop-worker-7.f90:
2844 Likewise.
2845 * testsuite/libgomp.oacc-fortran/kernels-reduction-1.f90:
2846 Likewise.
2847 * testsuite/libgomp.oacc-fortran/lib-12.f90: Likewise.
2848 * testsuite/libgomp.oacc-fortran/lib-13.f90: Likewise.
2849 * testsuite/libgomp.oacc-fortran/lib-14.f90: Likewise.
2850 * testsuite/libgomp.oacc-fortran/lib-15.f90: Likewise.
2851 * testsuite/libgomp.oacc-fortran/parallel-loop-1.f90: Likewise.
2852 * testsuite/libgomp.oacc-fortran/reference-reductions.f90: Likewise.
2853 * testsuite/libgomp.oacc-fortran/vector-routine.f90: Likewise.
2854
2855 2018-06-20 Chung-Lin Tang <cltang@codesourcery.com>
2856 Thomas Schwinge <thomas@codesourcery.com>
2857 Cesar Philippidis <cesar@codesourcery.com>
2858
2859 * libgomp.h (struct splay_tree_key_s): Add dynamic_refcount member.
2860 (gomp_acc_remove_pointer): Update declaration.
2861 (gomp_acc_declare_allocate): Declare.
2862 (gomp_remove_var): Declare.
2863 * libgomp.map (OACC_2.5): Define.
2864 * oacc-mem.c (acc_map_data): Update refcount.
2865 (acc_unmap_data): Likewise.
2866 (present_create_copy): Likewise.
2867 (acc_create): Add FLAG_PRESENT when calling present_create_copy.
2868 (acc_copyin): Likewise.
2869 (FLAG_FINALIZE): Define.
2870 (delete_copyout): Update dynamic refcounts, add support for FINALIZE.
2871 (acc_delete_finalize): New function.
2872 (acc_delete_finalize_async): New function.
2873 (acc_copyout_finalize): New function.
2874 (acc_copyout_finalize_async): New function.
2875 (gomp_acc_insert_pointer): Update refcounts.
2876 (gomp_acc_remove_pointer): Return if data is not present on the
2877 accelerator.
2878 * oacc-parallel.c (find_pset): Rename to find_pointer.
2879 (find_pointer): Add support for GOMP_MAP_POINTER.
2880 (handle_ftn_pointers): New function.
2881 (GOACC_parallel_keyed): Update refcounts of variables.
2882 (GOACC_enter_exit_data): Add support for finalized data mappings.
2883 Add support for GOMP_MAP_{TO,ALLOC,RELESE,FROM}. Update handling
2884 of fortran arrays.
2885 (GOACC_update): Add support for GOMP_MAP_{ALWAYS_POINTER,TO,FROM}.
2886 (GOACC_declare): Add support for GOMP_MAP_RELEASE, remove support
2887 for GOMP_MAP_FORCE_FROM.
2888 * openacc.f90 (module openacc_internal): Add
2889 acc_copyout_finalize_{32_h,64_h,array_h,_l}, and
2890 acc_delete_finalize_{32_h,64_h,array_h,_l}. Add interfaces for
2891 acc_copyout_finalize and acc_delete_finalize.
2892 (acc_copyout_finalize_32_h): New subroutine.
2893 (acc_copyout_finalize_64_h): New subroutine.
2894 (acc_copyout_finalize_array_h): New subroutine.
2895 (acc_delete_finalize_32_h): New subroutine.
2896 (acc_delete_finalize_64_h): New subroutine.
2897 (acc_delete_finalize_array_h): New subroutine.
2898 * openacc.h (acc_copyout_finalize): Declare.
2899 (acc_copyout_finalize_async): Declare.
2900 (acc_delete_finalize): Declare.
2901 (acc_delete_finalize_async): Declare.
2902 * openacc_lib.h (acc_copyout_finalize): New interface.
2903 (acc_delete_finalize): New interface.
2904 * target.c (gomp_map_vars): Update dynamic_refcount.
2905 (gomp_remove_var): New function.
2906 (gomp_unmap_vars): Use it.
2907 (gomp_unload_image_from_device): Likewise.
2908 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Update test
2909 case to utilize OpenACC 2.5 data clause semantics.
2910 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
2911 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
2912 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
2913 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
2914 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
2915 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
2916 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
2917 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
2918 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
2919 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
2920 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
2921 * testsuite/libgomp.oacc-fortran/data-5.f90: New test.
2922 * testsuite/libgomp.oacc-fortran/data-already-1.f: Update test case to
2923 utilize OpenACC 2.5 data clause semantics.
2924 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
2925 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
2926 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
2927 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
2928 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
2929 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
2930 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
2931 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
2932 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
2933
2934 2018-05-21 Janus Weil <janus@gcc.gnu.org>
2935
2936 PR fortran/85841
2937 PR testsuite/85865
2938 * testsuite/libgomp.fortran/collapse2.f90: Add option "-std=legacy".
2939 * testsuite/libgomp.fortran/omp_atomic2.f90: Ditto.
2940 * testsuite/libgomp.fortran/omp_parse1.f90: Ditto.
2941 * testsuite/libgomp.fortran/omp_parse3.f90: Ditto.
2942 * testsuite/libgomp.fortran/task2.f90: Ditto.
2943 * testsuite/libgomp.fortran/vla1.f90: Ditto.
2944 * testsuite/libgomp.fortran/vla2.f90: Ditto.
2945 * testsuite/libgomp.fortran/vla3.f90: Ditto.
2946 * testsuite/libgomp.fortran/vla4.f90: Ditto.
2947 * testsuite/libgomp.fortran/vla5.f90: Ditto.
2948 * testsuite/libgomp.fortran/vla6.f90: Ditto.
2949 * testsuite/libgomp.fortran/vla8.f90: Ditto.
2950 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Ditto.
2951 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Ditto.
2952
2953 2018-05-18 Cesar Philippidis <cesar@codesourcery.com>
2954
2955 PR c++/85782
2956 * testsuite/libgomp.oacc-c-c++-common/pr85782.c: New test.
2957
2958 2018-05-09 Tom de Vries <tom@codesourcery.com>
2959
2960 PR libgomp/82901
2961 * oacc-parallel.c (GOACC_declare): Use GOMP_ASYNC_SYNC as async argument
2962 to GOACC_enter_exit_data.
2963
2964 2018-05-09 Tom de Vries <tom@codesourcery.com>
2965
2966 PR libgomp/83792
2967 * oacc-int.h (async_valid_stream_id_p, async_valid_p)
2968 (async_synchronous_p): New function.
2969 * oacc-async.c (acc_async_test, acc_wait, acc_wait_all_async): Use
2970 async_valid_p.
2971 * oacc-cuda.c (acc_get_cuda_stream, acc_set_cuda_stream): Use
2972 async_valid_stream_id_p.
2973 * oacc-mem.c (gomp_acc_remove_pointer): Use async_synchronous_p.
2974 * oacc-parallel.c (GOACC_parallel_keyed): Same.
2975
2976 2018-05-07 Tom de Vries <tom@codesourcery.com>
2977
2978 PR testsuite/85677
2979 * testsuite/lib/libgomp.exp (libgomp_init): Move inclusion of top-level
2980 include directory in ALWAYS_CFLAGS out of $blddir != "" condition.
2981
2982 2018-05-03 Tom de Vries <tom@codesourcery.com>
2983
2984 PR testsuite/85106
2985 * testsuite/lib/libgomp-dg.exp (libgomp-dg-test): Add save-temps to
2986 extra_tool_flags if it contains an -foffload=-fdump-* flag.
2987 * testsuite/lib/libgomp.exp: Include scanoffloadtree.exp.
2988 * testsuite/libgomp.oacc-c/vec.c: Use scan-offload-tree-dump.
2989
2990 2018-05-02 Tom de Vries <tom@codesourcery.com>
2991
2992 PR libgomp/85411
2993 * plugin/plugin-nvptx.c (nvptx_exec): Move parsing of
2994 GOMP_OPENACC_DIM ...
2995 * env.c (parse_gomp_openacc_dim): ... here. New function.
2996 (initialize_env): Call parse_gomp_openacc_dim.
2997 (goacc_default_dims): Define.
2998 * libgomp.h (goacc_default_dims): Declare.
2999 * oacc-plugin.c (GOMP_PLUGIN_acc_default_dim): New function.
3000 * oacc-plugin.h (GOMP_PLUGIN_acc_default_dim): Declare.
3001 * libgomp.map: New version "GOMP_PLUGIN_1.2". Add
3002 GOMP_PLUGIN_acc_default_dim.
3003 * testsuite/libgomp.oacc-c-c++-common/loop-default-runtime.c: New test.
3004 * testsuite/libgomp.oacc-c-c++-common/loop-default.h: New test.
3005
3006 2018-05-02 Tom de Vries <tom@codesourcery.com>
3007
3008 PR testsuite/83791
3009 * testsuite/libgomp.c++/udr-9.C: Update.
3010 * testsuite/libgomp.c++/atomic-16.C: Remove.
3011 * testsuite/libgomp.c++/cancel-taskgroup-2.C: Remove.
3012 * testsuite/libgomp.c++/loop-13.C: Remove.
3013 * testsuite/libgomp.c++/loop-14.C: Remove.
3014 * testsuite/libgomp.c++/loop-15.C: Remove.
3015 * testsuite/libgomp.c++/monotonic-1.C: Remove.
3016 * testsuite/libgomp.c++/monotonic-2.C: Remove.
3017 * testsuite/libgomp.c++/nonmonotonic-1.C: Remove.
3018 * testsuite/libgomp.c++/nonmonotonic-2.C: Remove.
3019 * testsuite/libgomp.c++/ordered-1.C: Remove.
3020 * testsuite/libgomp.c++/pr45784.C: Remove.
3021 * testsuite/libgomp.c++/pr64824.C: Remove.
3022 * testsuite/libgomp.c++/pr64868.C: Remove.
3023 * testsuite/libgomp.c++/pr66199-1.C: Remove.
3024 * testsuite/libgomp.c++/pr66199-2.C: Remove.
3025 * testsuite/libgomp.c++/pr66199-3.C: Remove.
3026 * testsuite/libgomp.c++/pr66199-4.C: Remove.
3027 * testsuite/libgomp.c++/pr66199-5.C: Remove.
3028 * testsuite/libgomp.c++/pr66199-6.C: Remove.
3029 * testsuite/libgomp.c++/pr66199-7.C: Remove.
3030 * testsuite/libgomp.c++/pr66199-8.C: Remove.
3031 * testsuite/libgomp.c++/pr66199-9.C: Remove.
3032 * testsuite/libgomp.c++/pr69389.C: Remove.
3033 * testsuite/libgomp.c++/simd10.C: Remove.
3034 * testsuite/libgomp.c++/simd11.C: Remove.
3035 * testsuite/libgomp.c++/simd12.C: Remove.
3036 * testsuite/libgomp.c++/simd13.C: Remove.
3037 * testsuite/libgomp.c++/target-1.C: Remove.
3038 * testsuite/libgomp.c++/target-3.C: Remove.
3039 * testsuite/libgomp.c++/target-4.C: Remove.
3040 * testsuite/libgomp.c++/target-5.C: Remove.
3041 * testsuite/libgomp.c++/taskgroup-1.C: Remove.
3042 * testsuite/libgomp.c++/taskloop-1.C: Remove.
3043 * testsuite/libgomp.c++/taskloop-2.C: Remove.
3044 * testsuite/libgomp.c++/taskloop-3.C: Remove.
3045 * testsuite/libgomp.c++/taskloop-4.C: Remove.
3046 * testsuite/libgomp.c++/udr-9.C: Remove.
3047 * testsuite/libgomp.c++/for-10.C: Remove.
3048 * testsuite/libgomp.c++/for-11.C: Remove.
3049 * testsuite/libgomp.c++/for-12.C: Remove.
3050 * testsuite/libgomp.c++/for-13.C: Remove.
3051 * testsuite/libgomp.c++/for-14.C: Remove.
3052 * testsuite/libgomp.c++/for-9.C: Remove.
3053 * testsuite/libgomp.c/atomic-18.c: Move ...
3054 * testsuite/libgomp.c-c++-common/atomic-18.c: ... here.
3055 * testsuite/libgomp.c/cancel-taskgroup-2.c: Move ...
3056 * testsuite/libgomp.c-c++-common/cancel-taskgroup-2.c: here.
3057 * testsuite/libgomp.c/loop-13.c: Move ...
3058 * testsuite/libgomp.c-c++-common/loop-13.c: ... here.
3059 * testsuite/libgomp.c/loop-14.c: Move ...
3060 * testsuite/libgomp.c-c++-common/loop-14.c: ... here.
3061 * testsuite/libgomp.c/loop-15.c: Remove.
3062 * testsuite/libgomp.c-c++-common/loop-15.c: New test.
3063 * testsuite/libgomp.c/monotonic-1.c: Move ...
3064 * testsuite/libgomp.c-c++-common/monotonic-1.c: ... here.
3065 * testsuite/libgomp.c/monotonic-2.c: Move ...
3066 * testsuite/libgomp.c-c++-common/monotonic-2.c: ... here.
3067 * testsuite/libgomp.c/nonmonotonic-1.c: Move ...
3068 * testsuite/libgomp.c-c++-common/nonmonotonic-1.c: ... here.
3069 * testsuite/libgomp.c/nonmonotonic-2.c: Move ...
3070 * testsuite/libgomp.c-c++-common/nonmonotonic-2.c: ... here.
3071 * testsuite/libgomp.c/ordered-4.c: Move ...
3072 * testsuite/libgomp.c-c++-common/ordered-4.c: ... here.
3073 * testsuite/libgomp.c/pr45784.c: Move ...
3074 * testsuite/libgomp.c-c++-common/pr45784.c: ... here.
3075 * testsuite/libgomp.c/pr64824.c: Move ...
3076 * testsuite/libgomp.c-c++-common/pr64824.c: ... here.
3077 * testsuite/libgomp.c/pr64868.c: Move ...
3078 * testsuite/libgomp.c-c++-common/pr64868.c: ... here.
3079 * testsuite/libgomp.c/pr66199-1.c: Move ...
3080 * testsuite/libgomp.c-c++-common/pr66199-1.c: ... here.
3081 * testsuite/libgomp.c/pr66199-2.c: Move ...
3082 * testsuite/libgomp.c-c++-common/pr66199-2.c: ... here.
3083 * testsuite/libgomp.c/pr66199-3.c: Move ...
3084 * testsuite/libgomp.c-c++-common/pr66199-3.c: ... here.
3085 * testsuite/libgomp.c/pr66199-4.c: Move ...
3086 * testsuite/libgomp.c-c++-common/pr66199-4.c: ... here.
3087 * testsuite/libgomp.c/pr66199-5.c: Move ...
3088 * testsuite/libgomp.c-c++-common/pr66199-5.c: ... here.
3089 * testsuite/libgomp.c/pr66199-6.c: Move ...
3090 * testsuite/libgomp.c-c++-common/pr66199-6.c: ... here.
3091 * testsuite/libgomp.c/pr66199-7.c: Move ...
3092 * testsuite/libgomp.c-c++-common/pr66199-7.c: ... here.
3093 * testsuite/libgomp.c/pr66199-8.c: Move ...
3094 * testsuite/libgomp.c-c++-common/pr66199-8.c: ... here.
3095 * testsuite/libgomp.c/pr66199-9.c: Move ...
3096 * testsuite/libgomp.c-c++-common/pr66199-9.c: ... here.
3097 * testsuite/libgomp.c/pr69389.c: Move ...
3098 * testsuite/libgomp.c-c++-common/pr69389.c: ... here.
3099 * testsuite/libgomp.c/simd-14.c: Move ...
3100 * testsuite/libgomp.c-c++-common/simd-14.c: ... here.
3101 * testsuite/libgomp.c/simd-15.c: Move ...
3102 * testsuite/libgomp.c-c++-common/simd-15.c: ... here.
3103 * testsuite/libgomp.c/simd-16.c: Move ...
3104 * testsuite/libgomp.c-c++-common/simd-16.c: ... here.
3105 * testsuite/libgomp.c/simd-17.c: Move ...
3106 * testsuite/libgomp.c-c++-common/simd-17.c: ... here.
3107 * testsuite/libgomp.c/target-1.c: Move ...
3108 * testsuite/libgomp.c-c++-common/target-1.c: ... here.
3109 * testsuite/libgomp.c/target-10.c: Move ...
3110 * testsuite/libgomp.c-c++-common/target-10.c: ... here.
3111 * testsuite/libgomp.c/target-13.c: Move ...
3112 * testsuite/libgomp.c-c++-common/target-13.c: ... here.
3113 * testsuite/libgomp.c/target-2.c: Move ...
3114 * testsuite/libgomp.c-c++-common/target-2.c: ... here.
3115 * testsuite/libgomp.c/taskgroup-1.c: Move ...
3116 * testsuite/libgomp.c-c++-common/taskgroup-1.c: ... here.
3117 * testsuite/libgomp.c/taskloop-1.c: Move ...
3118 * testsuite/libgomp.c-c++-common/taskloop-1.c: ... here.
3119 * testsuite/libgomp.c/taskloop-2.c: Move ...
3120 * testsuite/libgomp.c-c++-common/taskloop-2.c: ... here.
3121 * testsuite/libgomp.c/taskloop-3.c: Move ...
3122 * testsuite/libgomp.c-c++-common/taskloop-3.c: ... here.
3123 * testsuite/libgomp.c/taskloop-4.c: Move ...
3124 * testsuite/libgomp.c-c++-common/taskloop-4.c: ... here.
3125 * testsuite/libgomp.c/udr-1.c: Move ...
3126 * testsuite/libgomp.c-c++-common/udr-1.c: ... here.
3127 * testsuite/libgomp.c/for-1.c: Move ...
3128 * testsuite/libgomp.c-c++-common/for-1.c: ... here.
3129 * testsuite/libgomp.c/for-1.h: Move ...
3130 * testsuite/libgomp.c-c++-common/for-1.h: ... here.
3131 * testsuite/libgomp.c/for-2.c: Move ...
3132 * testsuite/libgomp.c-c++-common/for-2.c: ... here.
3133 * testsuite/libgomp.c/for-2.h: Move ...
3134 * testsuite/libgomp.c-c++-common/for-2.h: ... here.
3135 * testsuite/libgomp.c/for-3.c: Move ...
3136 * testsuite/libgomp.c-c++-common/for-3.c: ... here.
3137 * testsuite/libgomp.c/for-4.c: Move ...
3138 * testsuite/libgomp.c-c++-common/for-4.c: ... here.
3139 * testsuite/libgomp.c/for-5.c: Move ...
3140 * testsuite/libgomp.c-c++-common/for-5.c: ... here.
3141 * testsuite/libgomp.c/for-6.c: Move ...
3142 * testsuite/libgomp.c-c++-common/for-6.c: ... here.
3143
3144 2018-05-02 Tom de Vries <tom@codesourcery.com>
3145
3146 PR libgomp/82428
3147 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Use
3148 __builtin_goacc_parlevel_{id,size}.
3149 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Same.
3150 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Same.
3151 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Same.
3152 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Same.
3153 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Same.
3154 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Same.
3155 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Same.
3156 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Same.
3157 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Same.
3158 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Same.
3159 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Same.
3160 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Same.
3161 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Same.
3162 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Same.
3163 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Same.
3164 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Same.
3165 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Same.
3166 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Same.
3167 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Same.
3168 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Same.
3169 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Same.
3170 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Same.
3171 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: Same.
3172
3173 2018-05-02 Tom de Vries <tom@codesourcery.com>
3174
3175 PR testsuite/85106
3176 * testsuite/lib/libgomp.exp: Include scanltranstree.exp.
3177
3178 2018-05-02 Tom de Vries <tom@codesourcery.com>
3179
3180 PR testsuite/85106
3181 * testsuite/lib/libgomp.exp: Include scanwpaipa.exp.
3182
3183 2018-04-29 Julian Brown <julian@codesourcery.com>
3184 Tom de Vries <tom@codesourcery.com>
3185
3186 PR testsuite/85527
3187 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: Allow
3188 arbitrary order for iterations of atomic subtract check.
3189
3190 2018-04-28 Tom de Vries <tom@codesourcery.com>
3191
3192 PR testsuite/85527
3193 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90 (main): Store
3194 atomic capture results obtained in parallel loop to an array, instead of
3195 to a scalar.
3196
3197 2018-04-26 Tom de Vries <tom@codesourcery.com>
3198
3199 PR libgomp/84020
3200 * plugin/cuda/cuda.h (CUjit_option): Add CU_JIT_OPTIMIZATION_LEVEL.
3201 * plugin/plugin-nvptx.c (_GNU_SOURCE): Define.
3202 (process_GOMP_NVPTX_JIT): New function.
3203 (link_ptx): Use process_GOMP_NVPTX_JIT.
3204
3205 2018-04-26 Richard Biener <rguenther@suse.de>
3206 Tom de Vries <tom@codesourcery.com>
3207
3208 PR lto/85422
3209 * testsuite/libgomp.oacc-c-c++-common/pr85422.c: New test.
3210
3211 2018-04-26 Tom de Vries <tom@codesourcery.com>
3212
3213 PR target/85519
3214 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
3215 recursion depth from 25 to 23.
3216 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
3217
3218 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
3219
3220 * configure: Regenerated.
3221
3222 2018-04-20 Nathan Sidwell <nathan@codesourcery.com>
3223 Tom de Vries <tom@codesourcery.com>
3224
3225 PR target/85445
3226 * testsuite/libgomp.oacc-c++/ref-1.C: New.
3227
3228 2018-04-19 Thomas Schwinge <thomas@codesourcery.com>
3229
3230 PR libgomp/85463
3231 * testsuite/libgomp.oacc-fortran/error_stop-1.f: New file.
3232 * testsuite/libgomp.oacc-fortran/error_stop-2.f: Likewise.
3233 * testsuite/libgomp.oacc-fortran/error_stop-3.f: Likewise.
3234 * testsuite/libgomp.oacc-fortran/stop-1.f: Likewise.
3235 * testsuite/libgomp.oacc-fortran/stop-2.f: Likewise.
3236 * testsuite/libgomp.oacc-fortran/stop-3.f: Likewise.
3237
3238 PR libfortran/85166
3239 * testsuite/libgomp.oacc-fortran/abort-1.f90: Switch back to "call
3240 abort".
3241 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3242
3243 2018-04-19 Jakub Jelinek <jakub@redhat.com>
3244
3245 * configure: Regenerated.
3246
3247 2018-04-18 David Malcolm <dmalcolm@redhat.com>
3248
3249 PR jit/85384
3250 * configure: Regenerate.
3251
3252 2018-04-16 Cesar Philippidis <cesar@codesourcery.com>
3253 Tom de Vries <tom@codesourcery.com>
3254
3255 PR middle-end/84955
3256 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3257 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3258
3259 2018-04-12 Thomas Koenig <tkoenig@gcc.gnu.org>
3260
3261 PR fortran/83064
3262 PR testsuite/85346
3263 * testsuite/libgomp.fortran/do_concurrent_5.f90: Move modified
3264 test from gfortran.dg to here.
3265
3266 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3267
3268 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: Revert 259346.
3269 * testsuite/libgomp.oacc-fortran/pr84955.f90: Likewise.
3270
3271 2018-04-12 Cesar Philippidis <cesar@codesourcery.com>
3272
3273 PR middle-end/84955
3274 * testsuite/libgomp.oacc-c-c++-common/pr84955.c: New test.
3275 * testsuite/libgomp.oacc-fortran/pr84955.f90: New test.
3276
3277 2018-04-05 Tom de Vries <tom@codesourcery.com>
3278
3279 PR target/85204
3280 * testsuite/libgomp.oacc-c-c++-common/broadcast-1.c: New test.
3281
3282 2018-03-26 Tom de Vries <tom@codesourcery.com>
3283
3284 PR tree-optimization/85063
3285 * testsuite/libgomp.c/switch-conversion-2.c: New test.
3286 * testsuite/libgomp.c/switch-conversion.c: New test.
3287 * testsuite/libgomp.oacc-c-c++-common/switch-conversion-2.c: New test.
3288 * testsuite/libgomp.oacc-c-c++-common/switch-conversion.c: New test.
3289
3290 2018-03-25 Thomas Koenig <tkoenig@gcc.gnu.org>
3291
3292 PR fortran/84381
3293 * testsuite/libgomp.fortran/aligned1.f03: Replace non-standard
3294 call abort by STOP n.
3295 * testsuite/libgomp.fortran/alloc-comp-1.f90: Likewise.
3296 * testsuite/libgomp.fortran/alloc-comp-2.f90: Likewise.
3297 * testsuite/libgomp.fortran/alloc-comp-3.f90: Likewise.
3298 * testsuite/libgomp.fortran/allocatable1.f90: Likewise.
3299 * testsuite/libgomp.fortran/allocatable10.f90: Likewise.
3300 * testsuite/libgomp.fortran/allocatable11.f90: Likewise.
3301 * testsuite/libgomp.fortran/allocatable12.f90: Likewise.
3302 * testsuite/libgomp.fortran/allocatable2.f90: Likewise.
3303 * testsuite/libgomp.fortran/allocatable3.f90: Likewise.
3304 * testsuite/libgomp.fortran/allocatable4.f90: Likewise.
3305 * testsuite/libgomp.fortran/allocatable5.f90: Likewise.
3306 * testsuite/libgomp.fortran/allocatable6.f90: Likewise.
3307 * testsuite/libgomp.fortran/allocatable7.f90: Likewise.
3308 * testsuite/libgomp.fortran/allocatable8.f90: Likewise.
3309 * testsuite/libgomp.fortran/allocatable9.f90: Likewise.
3310 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise.
3311 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Likewise.
3312 * testsuite/libgomp.fortran/associate1.f90: Likewise.
3313 * testsuite/libgomp.fortran/associate2.f90: Likewise.
3314 * testsuite/libgomp.fortran/associate3.f90: Likewise.
3315 * testsuite/libgomp.fortran/cancel-do-1.f90: Likewise.
3316 * testsuite/libgomp.fortran/cancel-do-2.f90: Likewise.
3317 * testsuite/libgomp.fortran/cancel-parallel-1.f90: Likewise.
3318 * testsuite/libgomp.fortran/cancel-sections-1.f90: Likewise.
3319 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: Likewise.
3320 * testsuite/libgomp.fortran/character1.f90: Likewise.
3321 * testsuite/libgomp.fortran/character2.f90: Likewise.
3322 * testsuite/libgomp.fortran/collapse1.f90: Likewise.
3323 * testsuite/libgomp.fortran/collapse2.f90: Likewise.
3324 * testsuite/libgomp.fortran/collapse3.f90: Likewise.
3325 * testsuite/libgomp.fortran/collapse4.f90: Likewise.
3326 * testsuite/libgomp.fortran/crayptr1.f90: Likewise.
3327 * testsuite/libgomp.fortran/crayptr2.f90: Likewise.
3328 * testsuite/libgomp.fortran/crayptr3.f90: Likewise.
3329 * testsuite/libgomp.fortran/declare-simd-1.f90: Likewise.
3330 * testsuite/libgomp.fortran/declare-simd-3.f90: Likewise.
3331 * testsuite/libgomp.fortran/declare-target-2.f90: Likewise.
3332 * testsuite/libgomp.fortran/depend-1.f90: Likewise.
3333 * testsuite/libgomp.fortran/depend-2.f90: Likewise.
3334 * testsuite/libgomp.fortran/depend-3.f90: Likewise.
3335 * testsuite/libgomp.fortran/do1.f90: Likewise.
3336 * testsuite/libgomp.fortran/do2.f90: Likewise.
3337 * testsuite/libgomp.fortran/doacross1.f90: Likewise.
3338 * testsuite/libgomp.fortran/doacross2.f90: Likewise.
3339 * testsuite/libgomp.fortran/doacross3.f90: Likewise.
3340 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: Likewise.
3341 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: Likewise.
3342 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: Likewise.
3343 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
3344 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Likewise.
3345 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Likewise.
3346 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: Likewise.
3347 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: Likewise.
3348 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: Likewise.
3349 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
3350 * testsuite/libgomp.fortran/examples-4/device-2.f90: Likewise.
3351 * testsuite/libgomp.fortran/examples-4/device-3.f90: Likewise.
3352 * testsuite/libgomp.fortran/examples-4/simd-1.f90: Likewise.
3353 * testsuite/libgomp.fortran/examples-4/simd-2.f90: Likewise.
3354 * testsuite/libgomp.fortran/examples-4/simd-3.f90: Likewise.
3355 * testsuite/libgomp.fortran/examples-4/simd-4.f90: Likewise.
3356 * testsuite/libgomp.fortran/examples-4/simd-5.f90: Likewise.
3357 * testsuite/libgomp.fortran/examples-4/simd-6.f90: Likewise.
3358 * testsuite/libgomp.fortran/examples-4/simd-7.f90: Likewise.
3359 * testsuite/libgomp.fortran/examples-4/simd-8.f90: Likewise.
3360 * testsuite/libgomp.fortran/examples-4/target-1.f90: Likewise.
3361 * testsuite/libgomp.fortran/examples-4/target-2.f90: Likewise.
3362 * testsuite/libgomp.fortran/examples-4/target-3.f90: Likewise.
3363 * testsuite/libgomp.fortran/examples-4/target-4.f90: Likewise.
3364 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
3365 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: Likewise.
3366 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: Likewise.
3367 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: Likewise.
3368 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: Likewise.
3369 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: Likewise.
3370 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
3371 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
3372 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: Likewise.
3373 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: Likewise.
3374 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: Likewise.
3375 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: Likewise.
3376 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: Likewise.
3377 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: Likewise.
3378 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: Likewise.
3379 * testsuite/libgomp.fortran/examples-4/teams-2.f90: Likewise.
3380 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Likewise.
3381 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
3382 * testsuite/libgomp.fortran/examples-4/teams-5.f90: Likewise.
3383 * testsuite/libgomp.fortran/examples-4/teams-6.f90: Likewise.
3384 * testsuite/libgomp.fortran/lastprivate1.f90: Likewise.
3385 * testsuite/libgomp.fortran/lastprivate2.f90: Likewise.
3386 * testsuite/libgomp.fortran/lib1.f90: Likewise.
3387 * testsuite/libgomp.fortran/lib2.f: Likewise.
3388 * testsuite/libgomp.fortran/lib3.f: Likewise.
3389 * testsuite/libgomp.fortran/lib4.f90: Likewise.
3390 * testsuite/libgomp.fortran/lock-1.f90: Likewise.
3391 * testsuite/libgomp.fortran/lock-2.f90: Likewise.
3392 * testsuite/libgomp.fortran/nested1.f90: Likewise.
3393 * testsuite/libgomp.fortran/nestedfn1.f90: Likewise.
3394 * testsuite/libgomp.fortran/nestedfn2.f90: Likewise.
3395 * testsuite/libgomp.fortran/nestedfn3.f90: Likewise.
3396 * testsuite/libgomp.fortran/nestedfn4.f90: Likewise.
3397 * testsuite/libgomp.fortran/nestedfn5.f90: Likewise.
3398 * testsuite/libgomp.fortran/omp_atomic1.f90: Likewise.
3399 * testsuite/libgomp.fortran/omp_atomic2.f90: Likewise.
3400 * testsuite/libgomp.fortran/omp_atomic3.f90: Likewise.
3401 * testsuite/libgomp.fortran/omp_atomic4.f90: Likewise.
3402 * testsuite/libgomp.fortran/omp_atomic5.f90: Likewise.
3403 * testsuite/libgomp.fortran/omp_cond1.f: Likewise.
3404 * testsuite/libgomp.fortran/omp_cond2.f: Likewise.
3405 * testsuite/libgomp.fortran/omp_cond3.F90: Likewise.
3406 * testsuite/libgomp.fortran/omp_cond4.F90: Likewise.
3407 * testsuite/libgomp.fortran/omp_parse1.f90: Likewise.
3408 * testsuite/libgomp.fortran/omp_parse2.f90: Likewise.
3409 * testsuite/libgomp.fortran/omp_parse3.f90: Likewise.
3410 * testsuite/libgomp.fortran/omp_parse4.f90: Likewise.
3411 * testsuite/libgomp.fortran/openmp_version-1.f: Likewise.
3412 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
3413 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: Likewise.
3414 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: Likewise.
3415 * testsuite/libgomp.fortran/pointer1.f90: Likewise.
3416 * testsuite/libgomp.fortran/pointer2.f90: Likewise.
3417 * testsuite/libgomp.fortran/pr25162.f: Likewise.
3418 * testsuite/libgomp.fortran/pr25219.f90: Likewise.
3419 * testsuite/libgomp.fortran/pr27395-1.f90: Likewise.
3420 * testsuite/libgomp.fortran/pr27395-2.f90: Likewise.
3421 * testsuite/libgomp.fortran/pr27416-1.f90: Likewise.
3422 * testsuite/libgomp.fortran/pr27916-1.f90: Likewise.
3423 * testsuite/libgomp.fortran/pr27916-2.f90: Likewise.
3424 * testsuite/libgomp.fortran/pr28390.f: Likewise.
3425 * testsuite/libgomp.fortran/pr29629.f90: Likewise.
3426 * testsuite/libgomp.fortran/pr32550.f90: Likewise.
3427 * testsuite/libgomp.fortran/pr33880.f90: Likewise.
3428 * testsuite/libgomp.fortran/pr34020.f90: Likewise.
3429 * testsuite/libgomp.fortran/pr35130.f90: Likewise.
3430 * testsuite/libgomp.fortran/pr42162.f90: Likewise.
3431 * testsuite/libgomp.fortran/pr46753.f90: Likewise.
3432 * testsuite/libgomp.fortran/pr48894.f90: Likewise.
3433 * testsuite/libgomp.fortran/pr49792-1.f90: Likewise.
3434 * testsuite/libgomp.fortran/pr49792-2.f90: Likewise.
3435 * testsuite/libgomp.fortran/pr63938-1.f90: Likewise.
3436 * testsuite/libgomp.fortran/pr63938-2.f90: Likewise.
3437 * testsuite/libgomp.fortran/pr65597.f90: Likewise.
3438 * testsuite/libgomp.fortran/pr66199-1.f90: Likewise.
3439 * testsuite/libgomp.fortran/pr71014.f90: Likewise.
3440 * testsuite/libgomp.fortran/pr81304.f90: Likewise.
3441 * testsuite/libgomp.fortran/pr81841.f90: Likewise.
3442 * testsuite/libgomp.fortran/pr84418-1.f90: Likewise.
3443 * testsuite/libgomp.fortran/pr84418-2.f90: Likewise.
3444 * testsuite/libgomp.fortran/procptr1.f90: Likewise.
3445 * testsuite/libgomp.fortran/recursion1.f90: Likewise.
3446 * testsuite/libgomp.fortran/reduction1.f90: Likewise.
3447 * testsuite/libgomp.fortran/reduction2.f90: Likewise.
3448 * testsuite/libgomp.fortran/reduction3.f90: Likewise.
3449 * testsuite/libgomp.fortran/reduction4.f90: Likewise.
3450 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
3451 * testsuite/libgomp.fortran/reduction6.f90: Likewise.
3452 * testsuite/libgomp.fortran/reference1.f90: Likewise.
3453 * testsuite/libgomp.fortran/reference2.f90: Likewise.
3454 * testsuite/libgomp.fortran/retval1.f90: Likewise.
3455 * testsuite/libgomp.fortran/retval2.f90: Likewise.
3456 * testsuite/libgomp.fortran/sharing1.f90: Likewise.
3457 * testsuite/libgomp.fortran/sharing2.f90: Likewise.
3458 * testsuite/libgomp.fortran/simd1.f90: Likewise.
3459 * testsuite/libgomp.fortran/simd2.f90: Likewise.
3460 * testsuite/libgomp.fortran/simd3.f90: Likewise.
3461 * testsuite/libgomp.fortran/simd4.f90: Likewise.
3462 * testsuite/libgomp.fortran/simd5.f90: Likewise.
3463 * testsuite/libgomp.fortran/simd6.f90: Likewise.
3464 * testsuite/libgomp.fortran/simd7.f90: Likewise.
3465 * testsuite/libgomp.fortran/stack.f90: Likewise.
3466 * testsuite/libgomp.fortran/strassen.f90: Likewise.
3467 * testsuite/libgomp.fortran/tabs1.f90: Likewise.
3468 * testsuite/libgomp.fortran/tabs2.f: Likewise.
3469 * testsuite/libgomp.fortran/target1.f90: Likewise.
3470 * testsuite/libgomp.fortran/target2.f90: Likewise.
3471 * testsuite/libgomp.fortran/target3.f90: Likewise.
3472 * testsuite/libgomp.fortran/target4.f90: Likewise.
3473 * testsuite/libgomp.fortran/target5.f90: Likewise.
3474 * testsuite/libgomp.fortran/target6.f90: Likewise.
3475 * testsuite/libgomp.fortran/target7.f90: Likewise.
3476 * testsuite/libgomp.fortran/target8.f90: Likewise.
3477 * testsuite/libgomp.fortran/task1.f90: Likewise.
3478 * testsuite/libgomp.fortran/task2.f90: Likewise.
3479 * testsuite/libgomp.fortran/task3.f90: Likewise.
3480 * testsuite/libgomp.fortran/task4.f90: Likewise.
3481 * testsuite/libgomp.fortran/taskgroup1.f90: Likewise.
3482 * testsuite/libgomp.fortran/taskloop1.f90: Likewise.
3483 * testsuite/libgomp.fortran/taskloop2.f90: Likewise.
3484 * testsuite/libgomp.fortran/taskloop3.f90: Likewise.
3485 * testsuite/libgomp.fortran/taskloop4.f90: Likewise.
3486 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
3487 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
3488 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
3489 * testsuite/libgomp.fortran/threadprivate4.f90: Likewise.
3490 * testsuite/libgomp.fortran/udr1.f90: Likewise.
3491 * testsuite/libgomp.fortran/udr10.f90: Likewise.
3492 * testsuite/libgomp.fortran/udr11.f90: Likewise.
3493 * testsuite/libgomp.fortran/udr12.f90: Likewise.
3494 * testsuite/libgomp.fortran/udr13.f90: Likewise.
3495 * testsuite/libgomp.fortran/udr14.f90: Likewise.
3496 * testsuite/libgomp.fortran/udr15.f90: Likewise.
3497 * testsuite/libgomp.fortran/udr2.f90: Likewise.
3498 * testsuite/libgomp.fortran/udr3.f90: Likewise.
3499 * testsuite/libgomp.fortran/udr4.f90: Likewise.
3500 * testsuite/libgomp.fortran/udr5.f90: Likewise.
3501 * testsuite/libgomp.fortran/udr6.f90: Likewise.
3502 * testsuite/libgomp.fortran/udr7.f90: Likewise.
3503 * testsuite/libgomp.fortran/udr8.f90: Likewise.
3504 * testsuite/libgomp.fortran/udr9.f90: Likewise.
3505 * testsuite/libgomp.fortran/vla1.f90: Likewise.
3506 * testsuite/libgomp.fortran/vla2.f90: Likewise.
3507 * testsuite/libgomp.fortran/vla3.f90: Likewise.
3508 * testsuite/libgomp.fortran/vla4.f90: Likewise.
3509 * testsuite/libgomp.fortran/vla5.f90: Likewise.
3510 * testsuite/libgomp.fortran/vla6.f90: Likewise.
3511 * testsuite/libgomp.fortran/vla7.f90: Likewise.
3512 * testsuite/libgomp.fortran/vla8.f90: Likewise.
3513 * testsuite/libgomp.fortran/workshare1.f90: Likewise.
3514 * testsuite/libgomp.fortran/workshare2.f90: Likewise.
3515 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
3516 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
3517 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
3518 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
3519 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
3520 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
3521 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
3522 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
3523 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
3524 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: Likewise.
3525 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
3526 * testsuite/libgomp.oacc-fortran/c2.pl: Likewise.
3527 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
3528 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
3529 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
3530 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
3531 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
3532 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
3533 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
3534 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
3535 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
3536 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90: Likewise.
3537 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: Likewise.
3538 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
3539 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
3540 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
3541 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
3542 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
3543 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
3544 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
3545 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
3546 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
3547 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
3548 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
3549 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
3550 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
3551 * testsuite/libgomp.oacc-fortran/host_data-1.f90: Likewise.
3552 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
3553 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90: Likewise.
3554 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
3555 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Likewise.
3556 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95: Likewise.
3557 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Likewise.
3558 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Likewise.
3559 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
3560 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
3561 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
3562 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
3563 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
3564 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
3565 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Likewise.
3566 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
3567 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
3568 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
3569 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
3570 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
3571 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
3572 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
3573 * testsuite/libgomp.oacc-fortran/nested-function-1.f90: Likewise.
3574 * testsuite/libgomp.oacc-fortran/nested-function-2.f90: Likewise.
3575 * testsuite/libgomp.oacc-fortran/nested-function-3.f90: Likewise.
3576 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
3577 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
3578 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
3579 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: Likewise.
3580 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
3581 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: Likewise.
3582 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
3583 * testsuite/libgomp.oacc-fortran/pr70643.f90: Likewise.
3584 * testsuite/libgomp.oacc-fortran/pr81352.f90: Likewise.
3585 * testsuite/libgomp.oacc-fortran/pr83920.f90: Likewise.
3586 * testsuite/libgomp.oacc-fortran/pr84028.f90: Likewise.
3587 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
3588 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
3589 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
3590 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
3591 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
3592 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
3593 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
3594 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
3595 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Likewise.
3596 * testsuite/libgomp.oacc-fortran/reduction-8.f90: Likewise.
3597 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
3598 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
3599 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
3600 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
3601 * testsuite/libgomp.oacc-fortran/routine-5.f90: Likewise.
3602 * testsuite/libgomp.oacc-fortran/routine-7.f90: Likewise.
3603 * testsuite/libgomp.oacc-fortran/routine-9.f90: Likewise.
3604 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
3605 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
3606 * testsuite/libgomp.oacc-fortran/update-1.f90: Likewise.
3607
3608 2018-03-20 Richard Biener <rguenther@suse.de>
3609
3610 * testsuite/libgomp.graphite/force-parallel-4.c: XFAIL one
3611 parallelizable loop.
3612
3613 2018-02-19 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
3614
3615 PR target/84148
3616 * configure: Regenerate.
3617
3618 2018-02-16 Jakub Jelinek <jakub@redhat.com>
3619
3620 PR fortran/84418
3621 * libgomp.fortran/pr84418-1.f90: New test.
3622 * libgomp.fortran/pr84418-2.f90: New test.
3623
3624 2018-02-14 Jakub Jelinek <jakub@redhat.com>
3625
3626 PR fortran/84313
3627 * testsuite/libgomp.fortran/threadprivate4.f90: Add
3628 -std=f2003 -fall-intrinsics into dg-additional-options.
3629
3630 2018-02-08 Martin Jambor <mjambor@suse.cz>
3631
3632 * testsuite/libgomp.hsa.c/pr82416.c: Make the function with target
3633 clonable.
3634
3635 2018-02-08 Martin Jambor <mjambor@suse.cz>
3636
3637 * testsuite/libgomp.hsa.c/staticvar.c: New test.
3638
3639 2018-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3640
3641 * testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort)
3642 [__cplusplus]: Declare extern "C".
3643
3644 2018-02-07 Tom de Vries <tom@codesourcery.com>
3645
3646 PR libgomp/84217
3647 * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test.
3648
3649 2018-01-29 Christoph Spiel <cspiel@freenet.de>
3650 Jakub Jelinek <jakub@redhat.com>
3651
3652 PR libgomp/84096
3653 * omp.h.in (omp_init_nest_lock_with_hint): Use omp_nest_lock_t
3654 instead of omp_lock_t.
3655
3656 2018-01-25 Tom de Vries <tom@codesourcery.com>
3657
3658 PR target/84028
3659 * testsuite/libgomp.oacc-fortran/pr84028.f90: New test.
3660
3661 2018-01-24 Tom de Vries <tom@codesourcery.com>
3662
3663 PR target/83589
3664 * testsuite/libgomp.oacc-c-c++-common/pr83589.c: New test.
3665
3666 2018-01-24 Tom de Vries <tom@codesourcery.com>
3667
3668 PR target/81352
3669 * testsuite/libgomp.oacc-fortran/pr81352.f90: New test.
3670
3671 2018-01-19 Tom de Vries <tom@codesourcery.com>
3672 Cesar Philippidis <cesar@codesourcery.com>
3673
3674 PR target/83920
3675 * testsuite/libgomp.oacc-c-c++-common/pr83920.c: New test.
3676 * testsuite/libgomp.oacc-fortran/pr83920.f90: New test.
3677
3678 2018-01-03 Jakub Jelinek <jakub@redhat.com>
3679
3680 Update copyright years.
3681
3682 * libgomp.texi: Bump @copying's copyright year.
3683
3684 2017-12-30 Tom de Vries <tom@codesourcery.com>
3685
3686 PR libgomp/83046
3687 * testsuite/libgomp.oacc-c-c++-common/pr83046.c: New test.
3688 * testsuite/libgomp.c-c++-common/pr83046.c: New test.
3689
3690 2017-12-27 Tom de Vries <tom@codesourcery.com>
3691
3692 PR c++/83046
3693 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c (test_static)
3694 (test_nonstatic): Fix return type to workaround PR83046.
3695
3696 2017-12-05 Jakub Jelinek <jakub@redhat.com>
3697
3698 PR testsuite/83281
3699 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c (main): Use
3700 j suffix instead of i.
3701 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c (main):
3702 Likewise.
3703
3704 2017-12-01 Cesar Philippidis <cesar@codesourcery.com>
3705
3706 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: Add missing
3707 call to acc_wait (1).
3708
3709 2017-11-24 Jakub Jelinek <jakub@redhat.com>
3710
3711 PR fortran/81304
3712 * testsuite/libgomp.fortran/pr81304.f90: New test.
3713
3714 2017-11-23 Jakub Jelinek <jakub@redhat.com>
3715
3716 PR fortran/81841
3717 * libgomp.fortran/pr81841.f90: New test.
3718
3719 2017-11-22 Jakub Jelinek <jakub@redhat.com>
3720
3721 PR libgomp/83106
3722 * target.c (gomp_target_init): Compute lengths just once and
3723 use them in both malloc size and subsequent copying.
3724
3725 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
3726
3727 * configure.ac: Set CET_FLAGS, update XCFLAGS and FCFLAGS.
3728 * acinclude.m4: Add cet.m4.
3729 * configure: Regenerate.
3730 * Makefile.in: Likewise.
3731 * testsuite/Makefile.in: Likewise.
3732
3733 2017-11-15 Tom de Vries <tom@codesourcery.com>
3734
3735 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-1.c: New test, copied
3736 from asyncwait-1.f90. Rewrite into C. Rewrite from float to int.
3737 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-2.c: New test, copied
3738 from asyncwait-2.f90. Rewrite into C. Rewrite from float to int.
3739 * testsuite/libgomp.oacc-c-c++-common/f-asyncwait-3.c: New test, copied
3740 from asyncwait-3.f90. Rewrite into C. Rewrite from float to int.
3741
3742 2017-11-14 Tom de Vries <tom@codesourcery.com>
3743
3744 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Allow to run for
3745 non-nvidia devices.
3746
3747 2017-11-07 Jakub Jelinek <jakub@redhat.com>
3748
3749 PR c++/82835
3750 * testsuite/libgomp.c++/pr82835.C: New test.
3751
3752 2017-11-06 Martin Liska <mliska@suse.cz>
3753
3754 * testsuite/libgomp.c++/loop-2.C: Return a value
3755 for functions with non-void return type, or change type to void,
3756 or add -Wno-return-type for test.
3757 * testsuite/libgomp.c++/loop-4.C: Likewise.
3758 * testsuite/libgomp.c++/parallel-1.C: Likewise.
3759 * testsuite/libgomp.c++/shared-1.C: Likewise.
3760 * testsuite/libgomp.c++/single-1.C: Likewise.
3761 * testsuite/libgomp.c++/single-2.C: Likewise.
3762
3763 2017-10-31 Tom de Vries <tom@codesourcery.com>
3764
3765 * plugin/plugin-hsa.c (HSA_LOG): Remove semicolon after
3766 "do {} while (false)".
3767 (init_single_kernel, GOMP_OFFLOAD_async_run): Add missing semicolon
3768 after HSA_DEBUG call.
3769
3770 2017-10-28 Jakub Jelinek <jakub@redhat.com>
3771
3772 * target.c (struct gomp_coalesce_buf): New type.
3773 (MAX_COALESCE_BUF_SIZE, MAX_COALESCE_BUF_GAP): Define.
3774 (gomp_coalesce_buf_add, gomp_to_device_kind_p): New functions.
3775 (gomp_copy_host2dev): Add CBUF argument, if copying into
3776 the cached ranges, memcpy into buffer instead of copying
3777 into device.
3778 (gomp_map_vars_existing, gomp_map_pointer, gomp_map_fields_existing):
3779 Add CBUF argument, pass it through to other calls.
3780 (gomp_map_vars): Aggregate copies from host to device if small enough
3781 and with small enough gaps in between into memcpy into a buffer and
3782 fewer host to device copies from the buffer.
3783 (gomp_update): Adjust gomp_copy_host2dev caller.
3784
3785 2017-10-17 Thomas Schwinge <thomas@codesourcery.com>
3786
3787 * testsuite/libgomp.oacc-fortran/declare-1.f90: Restore "dg-do
3788 run" directive.
3789 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
3790 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
3791 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
3792 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
3793
3794 2017-10-16 Tom de Vries <tom@codesourcery.com>
3795
3796 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: Don't require
3797 openacc_nvidia_accel_selected.
3798 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Same.
3799 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Same.
3800 * testsuite/libgomp.oacc-fortran/declare-2.f90: Same.
3801 * testsuite/libgomp.oacc-fortran/declare-4.f90: Same
3802 * testsuite/libgomp.oacc-fortran/declare-5.f90: Same.
3803 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Don't require
3804 openacc_nvidia_accel_selected. Skip for shared memory device.
3805 * testsuite/libgomp.oacc-fortran/declare-1.f90: Same.
3806 * testsuite/libgomp.oacc-fortran/declare-3.f90: Same.
3807
3808 2017-10-09 Martin Jambor <mjambor@suse.cz>
3809
3810 PR hsa/82416
3811 * testsuite/libgomp.hsa.c/pr82416.c: New test.
3812
3813 2017-10-07 Tom de Vries <tom@codesourcery.com>
3814
3815 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
3816 Remove acc_device_nvidia references.
3817 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
3818 Same.
3819
3820 2017-10-05 Tom de Vries <tom@codesourcery.com>
3821
3822 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
3823 vector_length(32) clause from acc parallel directive.
3824 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same.
3825
3826 2017-10-04 Tom de Vries <tom@codesourcery.com>
3827
3828 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c
3829 (main): Reduce sum of arr elements. Assert that hres is exactly
3830 representable in 32-bit floating point.
3831 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c
3832 (main): Reduce sum of arr elements. Assert that hres and hmres are
3833 exactly representable in 32-bit floating point.
3834 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c (gwv_np_4): Same.
3835
3836 2017-09-28 Tom de Vries <tom@codesourcery.com>
3837
3838 * testsuite/libgomp.c++/for-12.C: Remove superfluous -fopenmp option
3839 setting.
3840 * testsuite/libgomp.c++/pr69393.C: Same.
3841 * testsuite/libgomp.c++/taskloop-1.C: Same.
3842 * testsuite/libgomp.c++/taskloop-3.C: Same.
3843 * testsuite/libgomp.c++/taskloop-4.C: Same.
3844 * testsuite/libgomp.c/for-4.c: Same.
3845 * testsuite/libgomp.c/pr66199-3.c: Same.
3846 * testsuite/libgomp.c/pr66199-4.c: Same.
3847 * testsuite/libgomp.c/pr66199-6.c: Same.
3848 * testsuite/libgomp.c/taskloop-1.c: Same.
3849 * testsuite/libgomp.c/taskloop-3.c: Same.
3850 * testsuite/libgomp.c/taskloop-4.c: Same.
3851 * testsuite/libgomp.fortran/aligned1.f03: Same.
3852 * testsuite/libgomp.fortran/condinc1.f: Same.
3853 * testsuite/libgomp.fortran/condinc3.f90: Same.
3854 * testsuite/libgomp.fortran/crayptr1.f90: Same.
3855 * testsuite/libgomp.fortran/crayptr2.f90: Same.
3856 * testsuite/libgomp.fortran/crayptr3.f90: Same.
3857 * testsuite/libgomp.fortran/omp_cond1.f: Same.
3858 * testsuite/libgomp.fortran/omp_cond3.F90: Same.
3859 * testsuite/libgomp.fortran/pr66199-1.f90: Same.
3860 * testsuite/libgomp.fortran/pr66199-2.f90: Same.
3861 * testsuite/libgomp.fortran/recursion1.f90: Same.
3862 * testsuite/libgomp.fortran/target2.f90: Same.
3863 * testsuite/libgomp.fortran/target5.f90: Same.
3864 * testsuite/libgomp.fortran/task3.f90: Same.
3865
3866 2017-09-28 Tom de Vries <tom@codesourcery.com>
3867
3868 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove
3869 vector_length(32) clause from acc parallel directive.
3870 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same.
3871
3872 2017-09-27 Tom de Vries <tom@codesourcery.com>
3873
3874 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
3875 Remove acc_device_nvidia references.
3876
3877 2017-09-16 Tom de Vries <tom@codesourcery.com>
3878
3879 PR c/81875
3880 * testsuite/libgomp.c-c++-common/pr81875.c: New test.
3881
3882 2017-09-14 Tom de Vries <tom@codesourcery.com>
3883
3884 * testsuite/libgomp.c++/cancel-taskgroup-1.C: Remove.
3885 * testsuite/libgomp.c/cancel-taskgroup-1.c: Move to ...
3886 * testsuite/libgomp.c-c++-common/cancel-taskgroup-1.c: ... here.
3887 * testsuite/libgomp.c/c.exp: Include test-cases from
3888 libgomp.c-c++-common.
3889 * testsuite/libgomp.c++/c++.exp: Same. Force c++-mode compilation of .c
3890 files.
3891
3892 2017-09-14 Jakub Jelinek <jakub@redhat.com>
3893
3894 PR c++/81314
3895 * testsuite/libgomp.c++/pr81314.C: New test.
3896
3897 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
3898
3899 * libgomp.texi (Top): www.openacc.org now uses https.
3900 (Enabling OpenACC): Ditto.
3901 (acc_get_num_devices): Ditto.
3902 (acc_set_device_type): Ditto.
3903 (acc_get_device_type): Ditto.
3904 (acc_set_device_num): Ditto.
3905 (acc_get_device_num): Ditto.
3906 (acc_async_test): Ditto.
3907 (acc_async_test_all): Ditto.
3908 (acc_wait): Ditto.
3909 (acc_wait_all): Ditto.
3910 (acc_wait_all_async): Ditto.
3911 (acc_wait_async): Ditto.
3912 (acc_init): Ditto.
3913 (acc_shutdown): Ditto.
3914 (acc_on_device): Ditto.
3915 (acc_malloc): Ditto.
3916 (acc_free): Ditto.
3917 (acc_copyin): Ditto.
3918 (acc_present_or_copyin): Ditto.
3919 (acc_create): Ditto.
3920 (acc_present_or_create): Ditto.
3921 (acc_copyout): Ditto.
3922 (acc_delete): Ditto.
3923 (acc_update_device): Ditto.
3924 (acc_update_self): Ditto.
3925 (acc_map_data): Ditto.
3926 (acc_unmap_data): Ditto.
3927 (acc_deviceptr): Ditto.
3928 (acc_hostptr): Ditto.
3929 (acc_is_present): Ditto.
3930 (acc_memcpy_to_device): Ditto.
3931 (acc_memcpy_from_device): Ditto.
3932 (acc_get_current_cuda_device): Ditto.
3933 (acc_get_current_cuda_context): Ditto.
3934 (acc_get_cuda_stream): Ditto.
3935 (acc_set_cuda_stream): Ditto.
3936 (ACC_DEVICE_TYPE): Ditto.
3937 (ACC_DEVICE_NUM): Ditto.
3938 (OpenACC Library Interoperability): Ditto.
3939
3940 2017-08-09 Jakub Jelinek <jakub@redhat.com>
3941
3942 PR c/81687
3943 * testsuite/libgomp.c/pr81687-1.c: New test.
3944 * testsuite/libgomp.c/pr81687-2.c: New test.
3945
3946 2017-08-07 Jakub Jelinek <jakub@redhat.com>
3947
3948 PR c/69389
3949 * testsuite/libgomp.c/pr69389.c: New test.
3950 * testsuite/libgomp.c++/pr69389.C: New test.
3951
3952 2017-08-07 Tom de Vries <tom@codesourcery.com>
3953
3954 PR middle-end/78266
3955 * testsuite/libgomp.oacc-c-c++-common/vprop-2.c: New test.
3956 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove xfail.
3957
3958 2017-07-27 Jakub Jelinek <jakub@redhat.com>
3959
3960 PR c/45784
3961 * testsuite/libgomp.c/pr45784.c: New test.
3962 * testsuite/libgomp.c++/pr45784.C: New test.
3963
3964 2017-07-19 Tom de Vries <tom@codesourcery.com>
3965
3966 * testsuite/libgomp.oacc-c/vec.c: New test.
3967
3968 2017-07-03 Tom de Vries <tom@codesourcery.com>
3969
3970 * plugin/plugin-hsa.c: Fix secure_getenv.h include.
3971
3972 2017-06-27 Tom de Vries <tom@codesourcery.com>
3973
3974 * plugin/plugin-nvptx.c (notify_var): New function.
3975 (nvptx_exec): Use notify_var for GOMP_OPENACC_DIM.
3976
3977 2017-06-27 Tom de Vries <tom@codesourcery.com>
3978
3979 * env.c (parse_unsigned_long_1): Factor out of ...
3980 (parse_unsigned_long): ... here.
3981 (parse_int_1): Factor out of ...
3982 (parse_int): ... here.
3983 (parse_int_secure): New function.
3984 (initialize_env): Use parse_int_secure for GOMP_DEBUG.
3985 * secure_getenv.h: Factor out of ...
3986 * plugin/plugin-hsa.c: ... here.
3987 * testsuite/libgomp.oacc-c-c++-common/gomp-debug-env.c: New test.
3988
3989 2017-06-21 Jakub Jelinek <jakub@redhat.com>
3990
3991 PR c++/81130
3992 * testsuite/libgomp.c++/pr81130.C: New test.
3993
3994 2017-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3995
3996 * testsuite/libgomp.fortran/strassen.f90: Remove dg-skip-if
3997 default args.
3998 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Remove
3999 dg-xfail-run-if default args.
4000
4001 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
4002
4003 * testsuite/libgomp.c/pr39591-2.c: Fix test case.
4004 * testsuite/libgomp.c/pr39591-3.c: Likewise.
4005
4006 2017-05-30 Jakub Jelinek <jakub@redhat.com>
4007
4008 PR libgomp/80822
4009 * config/linux/affinity.c (gomp_affinity_init_level_1): New function.
4010 (gomp_affinity_init_level): Use it. Always analyze the core and thread
4011 sibling lists, depending on level just pick up what CPUs to put
4012 together into a place vs. whether add multiple ordered places.
4013
4014 2017-05-24 Thomas Schwinge <thomas@codesourcery.com>
4015
4016 * openacc.h (acc_async_wait, acc_async_wait_all): New prototypes.
4017 * libgomp.map (OACC_2.0.1): Add these.
4018 * oacc-async.c (acc_async_wait, acc_async_wait_all): New aliases
4019 for "acc_wait", and "acc_wait_all", respectively.
4020 * openacc.f90 (acc_async_wait, acc_async_wait_all): New interfaces
4021 for "acc_wait", and "acc_wait_all", respectively.
4022 * openacc_lib.h (acc_async_wait, acc_async_wait_all): Likewise.
4023 * libgomp.texi (acc_wait, acc_wait_all): Update.
4024 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Update.
4025 * testsuite/libgomp.oacc-fortran/par-reduction-2-1.f: New file.
4026 * testsuite/libgomp.oacc-fortran/par-reduction-2-2.f: Likewise.
4027
4028 * openacc_lib.h (acc_pcopyin, acc_pcreate): Route to
4029 acc_present_or_copyin and acc_present_or_create procedures,
4030 respectively.
4031 * testsuite/libgomp.oacc-fortran/lib-32-1.f: Exercise these, and
4032 generally different variants of OpenACC Runtime Library functions.
4033 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4034
4035 * testsuite/libgomp.oacc-fortran/lib-32-1.f: New file.
4036 * testsuite/libgomp.oacc-fortran/lib-32-2.f: Likewise.
4037
4038 * openacc.h (acc_pcopyin, acc_pcreate): Provide prototypes instead
4039 of preprocessor definitions.
4040 * libgomp.h (strong_alias): Guard by "#ifdef
4041 HAVE_ATTRIBUTE_ALIAS".
4042 * oacc-mem.c: Provide "acc_pcreate" as alias for
4043 "acc_present_or_create", and "acc_pcopyin" as alias for
4044 "acc_present_or_copyin".
4045 * libgomp.map: New version "OACC_2.0.1".
4046 (OACC_2.0.1): Add "acc_pcopyin", and "acc_pcreate".
4047 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Remove, merging
4048 its content into...
4049 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: ... this file.
4050 Extend testing.
4051
4052 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Debugging output
4053 when disabling nvptx offloading.
4054
4055 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
4056
4057 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Update.
4058 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
4059 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Likewise.
4060
4061 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Rewrite.
4062 * testsuite/lib/libgomp.exp
4063 (check_effective_target_openacc_nvidia_accel_configured): New
4064 proc.
4065 * testsuite/libgomp.oacc-c++/c++.exp (check_effective_target_c)
4066 (check_effective_target_c++): New procs.
4067 * testsuite/libgomp.oacc-c/c.exp (check_effective_target_c)
4068 (check_effective_target_c++): Likewise.
4069
4070 2017-05-22 Jakub Jelinek <jakub@redhat.com>
4071
4072 PR middle-end/80809
4073 * testsuite/libgomp.c/pr80809-2.c: New test.
4074 * testsuite/libgomp.c/pr80809-3.c: New test.
4075
4076 PR middle-end/80809
4077 * testsuite/libgomp.c/pr80809-1.c: New test.
4078
4079 PR middle-end/80853
4080 * testsuite/libgomp.c/pr80853.c: New test.
4081
4082 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
4083
4084 * testsuite/libgomp.oacc-c++/template-reduction.C: Update.
4085 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Update.
4086 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
4087 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
4088 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Likewise.
4089
4090 * plugin/plugin-hsa.c (DLSYM_FN, init_hsa_runtime_functions):
4091 Debug output for failure.
4092
4093 2017-05-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4094
4095 * testsuite/lib/libgomp.exp: Load scanlang.exp.
4096
4097 2017-04-27 Jakub Jelinek <jakub@redhat.com>
4098
4099 PR bootstrap/80531
4100 * configure.tgt (*-*-aix*): Add -frandom-seed=$@ to XCFLAGS to avoid
4101 bootstrap compare failures.
4102
4103 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
4104
4105 * testsuite/libgomp.c/target-36.c: New testcase.
4106
4107 2017-04-13 Jakub Jelinek <jakub@redhat.com>
4108
4109 * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
4110 instead of char.
4111
4112 2017-04-11 Jakub Jelinek <jakub@redhat.com>
4113
4114 PR libgomp/80394
4115 * testsuite/libgomp.c/pr80394.c: New test.
4116
4117 2017-04-04 Jakub Jelinek <jakub@redhat.com>
4118
4119 PR libgomp/79876
4120 * config/posix/thread-stacksize.h: New file.
4121 * config/darwin/thread-stacksize.h: New file.
4122 * config/nvptx/thread-stacksize.h: New file.
4123 * env.c: Include thread-stacksize.h.
4124 (initialize_env): Initialize stacksize to GOMP_DEFAULT_STACKSIZE
4125 instead of 0. Call pthread_attr_setstacksize even if
4126 GOMP_DEFAULT_STACKSIZE is non-zero.
4127
4128 2017-03-30 Jakub Jelinek <jakub@redhat.com>
4129
4130 * env.c (initialize_env): Initialize stacksize to 0.
4131
4132 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
4133
4134 PR c++/80029
4135 * testsuite/libgomp.oacc-c-c++-common/declare-vla.c: New test.
4136
4137 2017-03-08 Jakub Jelinek <jakub@redhat.com>
4138
4139 PR c/79940
4140 * testsuite/libgomp.c/pr79940.c: New test.
4141
4142 2017-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4143
4144 * testsuite/libgomp.c/pr48591.c: Enable on all __float128
4145 targets.
4146 Add __float128 options.
4147
4148 2017-02-11 John David Anglin <danglin@gcc.gnu.org>
4149
4150 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Remove
4151 hppa*-*-* dg-skip-if directive.
4152
4153 2017-02-09 Jakub Jelinek <jakub@redhat.com>
4154
4155 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Move
4156 dg-skip-if directive into a comment.
4157
4158 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
4159 Chung-Lin Tang <cltang@codesourcery.com>
4160
4161 * testsuite/libgomp.oacc-c-c++-common/tile-1.c: New.
4162 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust and
4163 add additional case.
4164 * testsuite/libgomp.oacc-c-c++-common/vprop.c: XFAIL under
4165 "openacc_nvidia_accel_selected".
4166 * libgomp.oacc-fortran/nested-function-1.f90 (test2):
4167 Add num_workers(8) clause.
4168
4169 2017-02-08 John David Anglin <danglin@gcc.gnu.org>
4170
4171 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: Skip on
4172 hppa*-*-*.
4173 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Don't
4174 include complex.h on hppa*-*-hpux*.
4175 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4176
4177 2017-02-02 Thomas Schwinge <thomas@codesourcery.com>
4178
4179 * plugin/plugin-nvptx.c (nvptx_exec): Make it static.
4180
4181 * libgomp-plugin.h (GOMP_OFFLOAD_openacc_parallel): Rename to
4182 GOMP_OFFLOAD_openacc_exec. Adjust all users.
4183 (GOMP_OFFLOAD_openacc_get_current_cuda_device): Rename to
4184 GOMP_OFFLOAD_openacc_cuda_get_current_device. Adjust all users.
4185 (GOMP_OFFLOAD_openacc_get_current_cuda_context): Rename to
4186 GOMP_OFFLOAD_openacc_cuda_get_current_context. Adjust all users.
4187 (GOMP_OFFLOAD_openacc_get_cuda_stream): Rename to
4188 GOMP_OFFLOAD_openacc_cuda_get_stream. Adjust all users.
4189 (GOMP_OFFLOAD_openacc_set_cuda_stream): Rename to
4190 GOMP_OFFLOAD_openacc_cuda_set_stream. Adjust all users.
4191
4192 2017-01-31 Thomas Schwinge <thomas@codesourcery.com>
4193
4194 * libgomp-plugin.h: #include <stdbool.h>.
4195 (GOMP_OFFLOAD_get_name, GOMP_OFFLOAD_get_caps)
4196 (GOMP_OFFLOAD_get_type, GOMP_OFFLOAD_get_num_devices)
4197 (GOMP_OFFLOAD_init_device, GOMP_OFFLOAD_fini_device)
4198 (GOMP_OFFLOAD_version, GOMP_OFFLOAD_load_image)
4199 (GOMP_OFFLOAD_unload_image, GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free)
4200 (GOMP_OFFLOAD_dev2host, GOMP_OFFLOAD_host2dev)
4201 (GOMP_OFFLOAD_dev2dev, GOMP_OFFLOAD_can_run, GOMP_OFFLOAD_run)
4202 (GOMP_OFFLOAD_async_run, GOMP_OFFLOAD_openacc_parallel)
4203 (GOMP_OFFLOAD_openacc_register_async_cleanup)
4204 (GOMP_OFFLOAD_openacc_async_test)
4205 (GOMP_OFFLOAD_openacc_async_test_all)
4206 (GOMP_OFFLOAD_openacc_async_wait)
4207 (GOMP_OFFLOAD_openacc_async_wait_async)
4208 (GOMP_OFFLOAD_openacc_async_wait_all)
4209 (GOMP_OFFLOAD_openacc_async_wait_all_async)
4210 (GOMP_OFFLOAD_openacc_async_set_async)
4211 (GOMP_OFFLOAD_openacc_create_thread_data)
4212 (GOMP_OFFLOAD_openacc_destroy_thread_data)
4213 (GOMP_OFFLOAD_openacc_get_current_cuda_device)
4214 (GOMP_OFFLOAD_openacc_get_current_cuda_context)
4215 (GOMP_OFFLOAD_openacc_get_cuda_stream)
4216 (GOMP_OFFLOAD_openacc_set_cuda_stream): New prototypes.
4217 * libgomp.h (struct acc_dispatch_t, struct gomp_device_descr): Use
4218 these.
4219 * plugin/plugin-hsa.c (GOMP_OFFLOAD_load_image)
4220 (GOMP_OFFLOAD_unload_image): Fix argument types.
4221
4222 2017-01-26 Jakub Jelinek <jakub@redhat.com>
4223
4224 * testsuite/lib/libgomp.exp
4225 (check_effective_target_hsa_offloading_selected_nocache): Fix up
4226 check_compile invocation. Fix up removal of executable. Drop
4227 bogus "2>&1" argument.
4228
4229 * testsuite/libgomp.fortran/declare-simd-4.f90: Add cleanup-modules
4230 directive.
4231
4232 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
4233 Martin Jambor <mjambor@suse.cz>
4234
4235 * plugin/hsa.h: Moved to top level include.
4236 * plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.
4237
4238 2017-01-21 Jakub Jelinek <jakub@redhat.com>
4239
4240 PR other/79046
4241 * testsuite/Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead
4242 of cat to get version from BASE-VER file.
4243 * testsuite/Makefile.in: Regenerated.
4244
4245 2017-01-19 Jakub Jelinek <jakub@redhat.com>
4246
4247 * plugin/cuda/cuda.h (CUdeviceptr): Typedef to unsigned long long even
4248 for _WIN64.
4249
4250 2017-01-17 Jakub Jelinek <jakub@redhat.com>
4251
4252 * plugin/hsa.h: Add GCC runtime library exception.
4253 * plugin/hsa_ext_finalize.h: Likewise.
4254
4255 * plugin/configfrag.ac: For --without-cuda-driver don't initialize
4256 CUDA_DRIVER_INCLUDE nor CUDA_DRIVER_LIB. If both
4257 CUDA_DRIVER_INCLUDE and CUDA_DRIVER_LIB are empty and linking small
4258 cuda program fails, define PLUGIN_NVPTX_DYNAMIC to 1 and use
4259 plugin/include/cuda as include dir and -ldl instead of -lcuda as
4260 library to link ptx plugin against.
4261 * plugin/plugin-nvptx.c: Include dlfcn.h if PLUGIN_NVPTX_DYNAMIC.
4262 (CUDA_CALLS): Define.
4263 (cuda_lib, cuda_lib_inited): New variables.
4264 (init_cuda_lib): New function.
4265 (CUDA_CALL_PREFIX): Define.
4266 (CUDA_CALL_ERET, CUDA_CALL_ASSERT): Use CUDA_CALL_PREFIX.
4267 (CUDA_CALL): Use FN instead of (FN).
4268 (CUDA_CALL_NOCHECK): Define.
4269 (cuda_error, fini_streams_for_device, select_stream_for_async,
4270 nvptx_attach_host_thread_to_device, nvptx_open_device, link_ptx,
4271 event_gc, nvptx_exec, nvptx_async_test, nvptx_async_test_all,
4272 nvptx_wait_all, nvptx_set_clocktick, GOMP_OFFLOAD_unload_image,
4273 nvptx_stacks_alloc, nvptx_stacks_free, GOMP_OFFLOAD_run): Use
4274 CUDA_CALL_NOCHECK.
4275 (nvptx_init): Call init_cuda_lib, if it fails, return false. Use
4276 CUDA_CALL_NOCHECK.
4277 (nvptx_get_num_devices): Call init_cuda_lib, if it fails, return 0.
4278 Use CUDA_CALL_NOCHECK.
4279 * plugin/cuda/cuda.h: New file.
4280 * config.h.in: Regenerated.
4281 * configure: Regenerated.
4282
4283 PR other/79046
4284 * configure.ac: Add GCC_BASE_VER.
4285 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
4286 get version from BASE-VER file.
4287 * testsuite/Makefile.in: Regenerated.
4288 * configure: Regenerated.
4289 * Makefile.in: Regenerated.
4290
4291 2017-01-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4292
4293 PR libgomp/60670
4294 * Makefile.am: Make fincludedir multilib-aware.
4295 * Makefile.in: Regenerate.
4296
4297 2017-01-01 Jakub Jelinek <jakub@redhat.com>
4298
4299 Update copyright years.
4300
4301 * libgomp.texi: Bump @copying's copyright year.
4302
4303 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4304
4305 * libgomp/config/rtems/pool.h (gomp_thread_pool_reservoir): Use
4306 pthread_spinlock_t instead of gomp_mutex_t lock.
4307 (gomp_get_thread_pool): Likewise.
4308 (gomp_release_thread_pool): Likewise.
4309 * libgomp/config/rtems/proc.c (allocate_thread_pool_reservoir):
4310 Likewise.
4311
4312 2016-12-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
4313
4314 * config/rtems/pool.h (gomp_get_thread_pool): Return proper
4315 thread pool in case nthreads == 1.
4316
4317 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4318
4319 * config/nvptx/env.c: Delete.
4320 * icv.c: Move definitions of ICV variables back ...
4321 * env.c: ...here. Do not compile environment-related functionality if
4322 LIBGOMP_OFFLOADED_ONLY is set.
4323
4324 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4325
4326 * configure.ac [nvptx*-*-*] (libgomp_offloaded_only): Set and use it...
4327 (LIBGOMP_OFFLOADED_ONLY): ...here; new define.
4328 * configure: Regenerate.
4329 * config.h.in: Likewise.
4330
4331 2016-11-30 Alexander Monakov <amonakov@ispras.ru>
4332
4333 * Makefile.in: Regenerate with automake-1.11.6.
4334 * aclocal.m4: Likewise.
4335 * configure: Likewise.
4336 * testsuite/Makefile.in: Likewise.
4337
4338 2016-11-28 Alexander Monakov <amonakov@ispras.ru>
4339
4340 * config/nvptx/critical.c: Delete to use generic implementation.
4341
4342 2016-11-28 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
4343
4344 * config/linux/affinity.c [!HAVE_PTHREAD_AFFINITY_NP]: Include
4345 ../../affinity.c as fallback.
4346 * config/nvptx/affinity.c: Delete to use fallback implementation.
4347
4348 2016-11-23 Alexander Monakov <amonakov@ispras.ru>
4349 Jakub Jelinek <jakub@redhat.com>
4350 Dmitry Melnik <dm@ispras.ru>
4351
4352 * Makefile.am (libgomp_la_SOURCES): Add atomic.c, icv.c, icv-device.c.
4353 * Makefile.in. Regenerate.
4354 * configure.ac [nvptx*-*-*] (libgomp_use_pthreads): Set and use it...
4355 (LIBGOMP_USE_PTHREADS): ...here; new define.
4356 * configure: Regenerate.
4357 * config.h.in: Likewise.
4358 * config/posix/affinity.c: Move to...
4359 * affinity.c: ...here (new file). Guard use of Pthreads-specific
4360 interface by LIBGOMP_USE_PTHREADS.
4361 * critical.c: Split out GOMP_atomic_{start,end} into...
4362 * atomic.c: ...here (new file).
4363 * env.c: Split out ICV definitions into...
4364 * icv.c: ...here (new file) and...
4365 * icv-device.c: ...here. New file.
4366 * config/linux/lock.c (gomp_init_lock_30): Move to generic lock.c.
4367 (gomp_destroy_lock_30): Ditto.
4368 (gomp_set_lock_30): Ditto.
4369 (gomp_unset_lock_30): Ditto.
4370 (gomp_test_lock_30): Ditto.
4371 (gomp_init_nest_lock_30): Ditto.
4372 (gomp_destroy_nest_lock_30): Ditto.
4373 (gomp_set_nest_lock_30): Ditto.
4374 (gomp_unset_nest_lock_30): Ditto.
4375 (gomp_test_nest_lock_30): Ditto.
4376 * lock.c: New.
4377 * config/nvptx/lock.c: New.
4378 * config/nvptx/bar.c: New.
4379 * config/nvptx/bar.h: New.
4380 * config/nvptx/doacross.h: New.
4381 * config/nvptx/error.c: New.
4382 * config/nvptx/icv-device.c: New.
4383 * config/nvptx/mutex.h: New.
4384 * config/nvptx/pool.h: New.
4385 * config/nvptx/proc.c: New.
4386 * config/nvptx/ptrlock.h: New.
4387 * config/nvptx/sem.h: New.
4388 * config/nvptx/simple-bar.h: New.
4389 * config/nvptx/target.c: New.
4390 * config/nvptx/task.c: New.
4391 * config/nvptx/team.c: New.
4392 * config/nvptx/time.c: New.
4393 * config/posix/simple-bar.h: New.
4394 * libgomp.h: Guard pthread.h inclusion. Include simple-bar.h.
4395 (gomp_num_teams_var): Declare.
4396 (struct gomp_thread_pool): Change threads_dock member to
4397 gomp_simple_barrier_t.
4398 [__nvptx__] (gomp_thread): New implementation.
4399 (gomp_thread_attr): Guard by LIBGOMP_USE_PTHREADS.
4400 (gomp_thread_destructor): Ditto.
4401 (gomp_init_thread_affinity): Ditto.
4402 * team.c: Guard uses of Pthreads-specific interfaces by
4403 LIBGOMP_USE_PTHREADS. Adjust all uses of threads_dock.
4404 (gomp_free_thread) [__nvptx__]: Do not call 'free'.
4405 * config/nvptx/alloc.c: Delete.
4406 * config/nvptx/barrier.c: Ditto.
4407 * config/nvptx/fortran.c: Ditto.
4408 * config/nvptx/iter.c: Ditto.
4409 * config/nvptx/iter_ull.c: Ditto.
4410 * config/nvptx/loop.c: Ditto.
4411 * config/nvptx/loop_ull.c: Ditto.
4412 * config/nvptx/ordered.c: Ditto.
4413 * config/nvptx/parallel.c: Ditto.
4414 * config/nvptx/priority_queue.c: Ditto.
4415 * config/nvptx/sections.c: Ditto.
4416 * config/nvptx/single.c: Ditto.
4417 * config/nvptx/splay-tree.c: Ditto.
4418 * config/nvptx/work.c: Ditto.
4419 * testsuite/libgomp.fortran/fortran.exp (lang_link_flags): Pass
4420 -foffload=-lgfortran in addition to -lgfortran.
4421 * testsuite/libgomp.oacc-fortran/fortran.exp (lang_link_flags): Ditto.
4422 * plugin/plugin-nvptx.c: Include <limits.h>.
4423 (struct targ_fn_descriptor): Add new fields.
4424 (struct ptx_device): Ditto. Set them...
4425 (nvptx_open_device): ...here.
4426 (nvptx_adjust_launch_bounds): New.
4427 (nvptx_host2dev): Allow NULL 'nvthd'.
4428 (nvptx_dev2host): Ditto.
4429 (GOMP_OFFLOAD_get_caps): Add GOMP_OFFLOAD_CAP_OPENMP_400.
4430 (link_ptx): Adjust log sizes.
4431 (nvptx_host2dev): Allow NULL 'nvthd'.
4432 (nvptx_dev2host): Ditto.
4433 (nvptx_set_clocktick): New. Use it...
4434 (GOMP_OFFLOAD_load_image): ...here. Set new targ_fn_descriptor
4435 fields.
4436 (GOMP_OFFLOAD_dev2dev): New.
4437 (nvptx_adjust_launch_bounds): New.
4438 (nvptx_stacks_size): New.
4439 (nvptx_stacks_alloc): New.
4440 (nvptx_stacks_free): New.
4441 (GOMP_OFFLOAD_run): New.
4442 (GOMP_OFFLOAD_async_run): New (stub).
4443
4444 2016-11-23 Martin Jambor <mjambor@suse.cz>
4445
4446 * testsuite/libgomp.hsa.c/bits-insns.c: New test.
4447 * testsuite/libgomp.hsa.c/tiling-1.c: Likewise.
4448 * testsuite/libgomp.hsa.c/tiling-2.c: Likewise.
4449
4450 2016-11-23 Martin Liska <mliska@suse.cz>
4451 Martin Jambor <mjambor@suse.cz>
4452
4453 * plugin/hsa.h: New file.
4454 * plugin/hsa_ext_finalize.h: New file.
4455 * plugin/configfrag.ac: Remove hsa-kmt-lib test. Added checks for
4456 header file unistd.h, and functions secure_getenv, __secure_getenv,
4457 getuid, geteuid, getgid and getegid.
4458 * plugin/Makefrag.am (libgomp_plugin_hsa_la_CPPFLAGS): Added
4459 -D_GNU_SOURCE.
4460 * plugin/plugin-hsa.c: Include config.h, inttypes.h and stdbool.h.
4461 Handle various cases of secure_getenv presence, add an implementation
4462 when we can test effective UID and GID.
4463 (struct hsa_runtime_fn_info): New structure.
4464 (hsa_runtime_fn_info hsa_fns): New variable.
4465 (hsa_runtime_lib): Likewise.
4466 (support_cpu_devices): Likewise.
4467 (init_enviroment_variables): Load newly introduced ENV
4468 variables.
4469 (hsa_warn): Call hsa run-time functions via hsa_fns structure.
4470 (hsa_fatal): Likewise.
4471 (DLSYM_FN): New macro.
4472 (init_hsa_runtime_functions): New function.
4473 (suitable_hsa_agent_p): Call hsa run-time functions via hsa_fns
4474 structure. Depending on environment, also allow CPU devices.
4475 (init_hsa_context): Call hsa run-time functions via hsa_fns structure.
4476 (get_kernarg_memory_region): Likewise.
4477 (GOMP_OFFLOAD_init_device): Likewise.
4478 (destroy_hsa_program): Likewise.
4479 (init_basic_kernel_info): New function.
4480 (GOMP_OFFLOAD_load_image): Use it.
4481 (create_and_finalize_hsa_program): Call hsa run-time functions via
4482 hsa_fns structure.
4483 (create_single_kernel_dispatch): Likewise.
4484 (release_kernel_dispatch): Likewise.
4485 (init_single_kernel): Likewise.
4486 (parse_target_attributes): Allow up multiple HSA grid dimensions.
4487 (get_group_size): New function.
4488 (run_kernel): Likewise.
4489 (GOMP_OFFLOAD_run): Outline most functionality to run_kernel.
4490 (GOMP_OFFLOAD_fini_device): Call hsa run-time functions via hsa_fns
4491 structure.
4492 * testsuite/lib/libgomp.exp: Remove hsa_kmt_lib support.
4493 * testsuite/libgomp-test-support.exp.in: Likewise.
4494 * Makefile.in: Regenerated.
4495 * aclocal.m4: Likewise.
4496 * config.h.in: Likewise.
4497 * configure: Likewise.
4498 * testsuite/Makefile.in: Likewise.
4499
4500 2016-11-15 Martin Jambor <mjambor@suse.cz>
4501 Alexander Monakov <amonakov@ispras.ru>
4502
4503 * testsuite/libgomp.fortran/examples-4/device-1.f90 (e_57_1): Add
4504 mapping clauses to target constructs.
4505 * testsuite/libgomp.fortran/examples-4/device-3.f90 (e_57_3): Ditto.
4506
4507 2016-11-15 Matthias Klose <doko@ubuntu.com>
4508
4509 * configure: Regenerate.
4510
4511 2016-11-10 Jakub Jelinek <jakub@redhat.com>
4512
4513 * omp_lib.f90.in (openmp_version): Change to 201511 from 201307.
4514 * omp_lib.h.in (openmp_version): Likewise.
4515 * testsuite/libgomp.fortran/openmp_version-1.f: Expect 201511 instead
4516 of 201307.
4517 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
4518
4519 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90
4520 (fib_wrapper): Add map(from: x) clause.
4521 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90
4522 (e_53_2): Likewise.
4523 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90
4524 (accum): Add map(tmp) clause.
4525 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90
4526 (accum): Add map(tofrom: tmp) clause.
4527 * testsuite/libgomp.fortran/examples-4/target_data-3.f90
4528 (gramSchmidt): Likewise.
4529 * testsuite/libgomp.fortran/examples-4/teams-2.f90 (dotprod): Add
4530 map(tofrom: sum) clause.
4531 * testsuite/libgomp.fortran/nestedfn5.f90 (foo): Add twice
4532 map (alloc: a, l) clause. Add defaultmap(tofrom: scalar) clause.
4533 * testsuite/libgomp.fortran/pr66199-2.f90: Adjust for linear clause
4534 only allowed on the loop iterator.
4535 * testsuite/libgomp.fortran/target4.f90 (foo): Add map(t) clause.
4536 * testsuite/libgomp.fortran/taskloop2.f90: New test.
4537 * testsuite/libgomp.fortran/taskloop4.f90: New test.
4538 * testsuite/libgomp.fortran/doacross1.f90: New test.
4539 * testsuite/libgomp.fortran/doacross3.f90: New test.
4540 * testsuite/libgomp.fortran/taskloop1.f90: New test.
4541 * testsuite/libgomp.fortran/taskloop3.f90: New test.
4542 * testsuite/libgomp.fortran/doacross2.f90: New test.
4543 * testsuite/libgomp.c/doacross-1.c (main): Add missing
4544 #pragma omp atomic read.
4545 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
4546 * testsuite/libgomp.c/doacross-3.c (main): Likewise.
4547
4548 2016-11-02 Cesar Philippidis <cesar@codesourcery.com>
4549 Nathan Sidwell <nathan@acm.org>
4550
4551 * plugin/plugin-nvptx.c (nvptx_exec): Interrogate board attributes
4552 to determine default geometry.
4553 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Set gang
4554 dimension.
4555
4556 2016-11-01 Jakub Jelinek <jakub@redhat.com>
4557
4558 * hashtab.h: Use standard GPLv3 with runtime exception
4559 boilerplate.
4560
4561 2016-10-27 Aldy Hernandez <aldyh@redhat.com>
4562
4563 * oacc-init.c (goacc_new_thread): Use sizeof of the appropriate
4564 size when allocating new thread.
4565
4566 2016-09-14 Marek Polacek <polacek@redhat.com>
4567
4568 * testsuite/libgomp.c++/atomic-3.C: Use -Wno-deprecated.
4569
4570 2016-08-19 Jakub Jelinek <jakub@redhat.com>
4571
4572 PR fortran/71014
4573 * testsuite/libgomp.fortran/pr71014.f90: New test.
4574
4575 2016-08-18 Chung-Lin Tang <cltang@codesourcery.com>
4576
4577 PR middle-end/70895
4578 * testsuite/libgomp.oacc-fortran/reduction-7.f90: Add explicit
4579 firstprivate clauses.
4580 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Remove explicit
4581 copy clauses.
4582 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
4583 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Likewise.
4584 * testsuite/libgomp.oacc-c-c++-common/reduction-flt.c: Likewise.
4585 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
4586 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
4587 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
4588 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
4589 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
4590 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
4591 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
4592 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
4593 * testsuite/libgomp.oacc-c-c++-common/reduction-dbl.c: Likewise.
4594
4595 2016-08-14 Chung-Lin Tang <cltang@codesourcery.com>
4596
4597 PR fortran/70598
4598 * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test.
4599
4600 2016-08-08 Jakub Jelinek <jakub@redhat.com>
4601
4602 PR c++/58706
4603 * testsuite/libgomp.c++/pr58706.C: New test.
4604
4605 2016-08-04 Thomas Schwinge <thomas@codesourcery.com>
4606
4607 * testsuite/libgomp.oacc-c++/routine-1-auto.C: New file.
4608 * testsuite/libgomp.oacc-c++/routine-1-template-auto.C: Likewise.
4609 * testsuite/libgomp.oacc-c++/routine-1-template-trailing-return-type.C:
4610 Likewise.
4611 * testsuite/libgomp.oacc-c++/routine-1-template.C: Likewise.
4612 * testsuite/libgomp.oacc-c++/routine-1-trailing-return-type.C:
4613 Likewise.
4614 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Adjust.
4615
4616 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: Make it a "link"
4617 test, and don't hardcode -O0.
4618
4619 2016-08-03 Nathan Sidwell <nathan@codesourcery.com>
4620
4621 * testsuite/libgomp.oacc-c-c++-common/crash-1.c: New.
4622
4623 2016-07-15 Cesar Philippidis <cesar@codesourcery.com>
4624
4625 * testsuite/libgomp.oacc-c-c++-common/zero_length_subarrays.c: New
4626 test.
4627
4628 2016-07-03 H.J. Lu <hongjiu.lu@intel.com>
4629
4630 PR middle-end/71734
4631 * testsuite/libgomp.fortran/pr71734-1.f90: New test.
4632 * testsuite/libgomp.fortran/pr71734-2.f90: Likewise.
4633
4634 2016-07-01 Jakub Jelinek <jakub@redhat.com>
4635
4636 PR fortran/71717
4637 * testsuite/libgomp.fortran/associate3.f90: New test.
4638
4639 2016-06-17 Jakub Jelinek <jakub@redhat.com>
4640
4641 * testsuite/libgomp.c++/target-21.C: New test.
4642
4643 2016-06-16 Jakub Jelinek <jakub@redhat.com>
4644
4645 * testsuite/libgomp.c++/target-20.C: New test.
4646
4647 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4648 Cesar Philippidis <cesar@codesourcery.com>
4649
4650 PR middle-end/71373
4651 * libgomp.oacc-c/nested-function-1.c: New file.
4652 * libgomp.oacc-c/nested-function-2.c: Likewise.
4653 * libgomp.oacc-fortran/nested-function-1.f90: Likewise.
4654 * libgomp.oacc-fortran/nested-function-2.f90: Likewise.
4655 * libgomp.oacc-fortran/nested-function-3.f90: Likewise.
4656
4657 2016-06-10 Thomas Schwinge <thomas@codesourcery.com>
4658
4659 PR c/71381
4660 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: #include
4661 "../../../gcc/testsuite/c-c++-common/goacc/cache-1.c".
4662 * testsuite/libgomp.oacc-fortran/cache-1.f95: New file.
4663
4664 2016-06-03 Chung-Lin Tang <cltang@codesourcery.com>
4665
4666 * testsuite/libgomp.oacc-fortran/reduction-8.f90: New testcase.
4667 * testsuite/libgomp.oacc-c-c++-common/reduction-8.c: New testcase.
4668
4669 2016-06-01 Cesar Philippidis <cesar@codesourcery.com>
4670
4671 PR c/70688
4672 * testsuite/libgomp.oacc-c-c++-common/pr70688.c: New file.
4673
4674 2016-05-26 Jakub Jelinek <jakub@redhat.com>
4675
4676 * testsuite/libgomp.c/doacross-1.c (main): Use schedule(static)
4677 instead of invalid schedule(static, 0).
4678 * testsuite/libgomp.c/doacross-2.c (main): Likewise.
4679
4680 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
4681
4682 * oacc-plugin.h (GOMP_PLUGIN_async_unmap_vars): Add int parameter.
4683 * oacc-plugin.c (GOMP_PLUGIN_async_unmap_vars): Add 'int async'
4684 parameter, use to set async stream around call to gomp_unmap_vars,
4685 call gomp_unmap_vars() with 'do_copyfrom' set to true.
4686 * plugin/plugin-nvptx.c (struct ptx_event): Add 'int val' field.
4687 (event_gc): Adjust event handling loop, collect PTX_EVT_ASYNC_CLEANUP
4688 events and call GOMP_PLUGIN_async_unmap_vars() for each of them.
4689 (event_add): Add int parameter, initialize 'val' field when
4690 adding new ptx_event struct.
4691 (nvptx_evec): Adjust event_add() call arguments.
4692 (nvptx_host2dev): Likewise.
4693 (nvptx_dev2host): Likewise.
4694 (nvptx_wait_async): Likewise.
4695 (nvptx_wait_all_async): Likewise.
4696 (GOMP_OFFLOAD_openacc_register_async_cleanup): Add async parameter,
4697 pass to event_add() call.
4698 * oacc-host.c (host_openacc_register_async_cleanup): Add 'int async'
4699 parameter.
4700 * oacc-mem.c (gomp_acc_remove_pointer): Adjust async case to
4701 call openacc.register_async_cleanup_func() hook.
4702 * oacc-parallel.c (GOACC_parallel_keyed): Likewise.
4703 * target.c (gomp_copy_from_async): Delete function.
4704 (gomp_map_vars): Remove async_refcount.
4705 (gomp_unmap_vars): Likewise.
4706 (gomp_load_image_to_device): Likewise.
4707 (omp_target_associate_ptr): Likewise.
4708 * libgomp.h (struct splay_tree_key_s): Remove async_refcount.
4709 (acc_dispatch_t.register_async_cleanup_func): Add int parameter.
4710 (gomp_copy_from_async): Remove.
4711
4712 2016-05-26 Chung-Lin Tang <cltang@codesourcery.com>
4713
4714 * target.c (gomp_device_copy): New function.
4715 (gomp_copy_host2dev): Likewise.
4716 (gomp_copy_dev2host): Likewise.
4717 (gomp_free_device_memory): Likewise.
4718 (gomp_map_vars_existing): Adjust to call gomp_copy_host2dev.
4719 (gomp_map_pointer): Likewise.
4720 (gomp_map_vars): Adjust to call gomp_copy_host2dev, handle
4721 NULL value from alloc_func plugin hook.
4722 (gomp_unmap_tgt): Adjust to call gomp_free_device_memory.
4723 (gomp_copy_from_async): Adjust to call gomp_copy_dev2host.
4724 (gomp_unmap_vars): Likewise.
4725 (gomp_update): Adjust to call gomp_copy_dev2host and
4726 gomp_copy_host2dev functions.
4727 (gomp_unload_image_from_device): Handle false value from
4728 unload_image_func plugin hook.
4729 (gomp_init_device): Handle false value from init_device_func
4730 plugin hook.
4731 (gomp_exit_data): Adjust to call gomp_copy_dev2host.
4732 (omp_target_free): Adjust to call gomp_free_device_memory.
4733 (omp_target_memcpy): Handle return values from host2dev_func,
4734 dev2host_func, and dev2dev_func plugin hooks.
4735 (omp_target_memcpy_rect_worker): Likewise.
4736 (gomp_target_fini): Handle false value from fini_device_func
4737 plugin hook.
4738 * libgomp.h (struct gomp_device_descr): Adjust return type of
4739 init_device_func, fini_device_func, unload_image_func, free_func,
4740 dev2host_func,host2dev_func, and dev2dev_func plugin hooks to 'bool'.
4741 * oacc-init.c (acc_shutdown_1): Handle false value from
4742 fini_device_func plugin hook.
4743 * oacc-host.c (host_init_device): Change return type to bool.
4744 (host_fini_device): Likewise.
4745 (host_unload_image): Likewise.
4746 (host_free): Likewise.
4747 (host_dev2host): Likewise.
4748 (host_host2dev): Likewise.
4749 * oacc-mem.c (acc_free): Handle plugin hook fatal error case.
4750 (acc_memcpy_to_device): Likewise.
4751 (acc_memcpy_from_device): Likewise.
4752 (delete_copyout): Add libfnname parameter, handle free_func
4753 hook fatal error case.
4754 (acc_delete): Adjust delete_copyout call.
4755 (acc_copyout): Likewise.
4756 (update_dev_host): Move gomp_mutex_unlock to after
4757 host2dev/dev2host hook calls.
4758
4759 * plugin/plugin-hsa.c (hsa_warn): Adjust 'hsa_error' local variable
4760 to 'hsa_error_msg', for clarity.
4761 (hsa_fatal): Likewise.
4762 (hsa_error): New function.
4763 (init_hsa_context): Change return type to bool, adjust to return
4764 false on error.
4765 (GOMP_OFFLOAD_get_num_devices): Adjust to handle init_hsa_context
4766 return value.
4767 (GOMP_OFFLOAD_init_device): Change return type to bool, adjust to
4768 return false on error.
4769 (get_agent_info): Adjust to return NULL on error.
4770 (destroy_hsa_program): Change return type to bool, adjust to
4771 return false on error.
4772 (GOMP_OFFLOAD_load_image): Adjust to return -1 on error.
4773 (destroy_module): Change return type to bool, adjust to
4774 return false on error.
4775 (GOMP_OFFLOAD_unload_image): Likewise.
4776 (GOMP_OFFLOAD_fini_device): Likewise.
4777 (GOMP_OFFLOAD_alloc): Change to return NULL when called.
4778 (GOMP_OFFLOAD_free): Change to return false when called.
4779 (GOMP_OFFLOAD_dev2host): Likewise.
4780 (GOMP_OFFLOAD_host2dev): Likewise.
4781 (GOMP_OFFLOAD_dev2dev): Likewise.
4782
4783 * plugin/plugin-nvptx.c (CUDA_CALL_ERET): New convenience macro.
4784 (CUDA_CALL): Likewise.
4785 (CUDA_CALL_ASSERT): Likewise.
4786 (map_init): Change return type to bool, use CUDA_CALL* macros.
4787 (map_fini): Likewise.
4788 (init_streams_for_device): Change return type to bool, adjust
4789 call to map_init.
4790 (fini_streams_for_device): Change return type to bool, adjust
4791 call to map_fini.
4792 (select_stream_for_async): Release stream_lock before calls to
4793 GOMP_PLUGIN_fatal, adjust call to map_init.
4794 (nvptx_init): Use CUDA_CALL* macros.
4795 (nvptx_attach_host_thread_to_device): Change return type to bool,
4796 use CUDA_CALL* macros.
4797 (nvptx_open_device): Use CUDA_CALL* macros.
4798 (nvptx_close_device): Change return type to bool, use CUDA_CALL*
4799 macros.
4800 (nvptx_get_num_devices): Use CUDA_CALL* macros.
4801 (link_ptx): Change return type to bool, use CUDA_CALL* macros.
4802 (nvptx_exec): Use CUDA_CALL* macros.
4803 (nvptx_alloc): Use CUDA_CALL* macros.
4804 (nvptx_free): Change return type to bool, use CUDA_CALL* macros.
4805 (nvptx_host2dev): Likewise.
4806 (nvptx_dev2host): Likewise.
4807 (nvptx_wait): Use CUDA_CALL* macros.
4808 (nvptx_wait_async): Likewise.
4809 (nvptx_wait_all): Likewise.
4810 (nvptx_wait_all_async): Likewise.
4811 (nvptx_set_cuda_stream): Adjust order of stream_lock acquire,
4812 use CUDA_CALL* macros, adjust call to map_fini.
4813 (GOMP_OFFLOAD_init_device): Change return type to bool,
4814 adjust code accordingly.
4815 (GOMP_OFFLOAD_fini_device): Likewise.
4816 (GOMP_OFFLOAD_load_image): Adjust calls to
4817 nvptx_attach_host_thread_to_device/link_ptx to handle errors,
4818 use CUDA_CALL* macros.
4819 (GOMP_OFFLOAD_unload_image): Change return type to bool, adjust
4820 return code.
4821 (GOMP_OFFLOAD_alloc): Adjust calls to code to handle error return.
4822 (GOMP_OFFLOAD_free): Change return type to bool, adjust calls to
4823 handle error return.
4824 (GOMP_OFFLOAD_dev2host): Likewise.
4825 (GOMP_OFFLOAD_host2dev): Likewise.
4826 (GOMP_OFFLOAD_openacc_register_async_cleanup): Use CUDA_CALL* macros.
4827 (GOMP_OFFLOAD_openacc_create_thread_data): Likewise.
4828
4829 2016-05-24 Cesar Philippidis <cesar@codesourcery.com>
4830
4831 * oacc-mem.c (acc_malloc): Update handling of shared-memory targets.
4832 (acc_free): Likewise.
4833 (acc_memcpy_to_device): Likewise.
4834 (acc_memcpy_from_device): Likewise.
4835 (acc_deviceptr): Likewise.
4836 (acc_hostptr): Likewise.
4837 (acc_is_present): Likewise.
4838 (acc_map_data): Likewise.
4839 (acc_unmap_data): Likewise.
4840 (present_create_copy): Likewise.
4841 (delete_copyout): Likewise.
4842 (update_dev_host): Likewise.
4843 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Remove xfail.
4844 * testsuite/libgomp.oacc-c-c++-common/data-2-lib.c: New test.
4845 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Adjust test.
4846 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
4847 * testsuite/libgomp.oacc-c-c++-common/enter_exit-lib.c: New test.
4848 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Adjust test so that
4849 it only runs on nvptx targets.
4850 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
4851 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
4852 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
4853 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
4854 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
4855 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
4856 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
4857 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
4858 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
4859 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
4860 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
4861 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
4862 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
4863 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
4864 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
4865 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
4866 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
4867 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
4868 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
4869 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
4870 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
4871 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
4872 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
4873
4874 2016-05-23 Martin Jambor <mjambor@suse.cz>
4875
4876 * testsuite/libgomp.hsa.c/switch-sbr-2.c: New test.
4877
4878 2016-05-17 Chung-Lin Tang <cltang@codesourcery.com>
4879
4880 * oacc-init.c (acc_init): Remove !cached_base_dev condition on call
4881 to gomp_init_targets_once.
4882 (acc_set_device_type): Remove !cached_base_dev condition on call to
4883 gomp_init_targets_once, move call to before acc_device_lock acquire,
4884 to avoid deadlock.
4885 (acc_get_device_num): Remove !cached_base_dev condition on call to
4886 gomp_init_targets_once.
4887 (acc_set_device_num): Likewise.
4888
4889 2016-05-16 Martin Jambor <mjambor@suse.cz>
4890
4891 * testsuite/libgomp.hsa.c/complex-align-2.c: New test.
4892
4893 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
4894
4895 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Adjust
4896 expected partitioning.
4897
4898 2016-04-29 Cesar Philippidis <cesar@codesourcery.com>
4899
4900 PR middle-end/70626
4901 * testsuite/libgomp.oacc-c++/template-reduction.C: Adjust test.
4902 * testsuite/libgomp.oacc-c-c++-common/combined-reduction.c: New test.
4903 * testsuite/libgomp.oacc-fortran/combined-reduction.f90: New test.
4904
4905 2016-04-21 Alexander Monakov <amonakov@ispras.ru>
4906
4907 * plugin/plugin-nvptx.c (map_fini): Make cuMemFreeHost error
4908 non-fatal.
4909
4910 2016-04-19 Jakub Jelinek <jakub@redhat.com>
4911
4912 PR middle-end/70680
4913 * testsuite/libgomp.c/pr70680-1.c: New test.
4914 * testsuite/libgomp.c/pr70680-2.c: New test.
4915
4916 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
4917
4918 * testsuite/libgomp.oacc-fortran/non-scalar-data.f90: Don't
4919 pass parameter variables to subroutines.
4920
4921 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
4922
4923 PR middle-end/70643
4924 * testsuite/libgomp.oacc-fortran/pr70643.f90: New test.
4925
4926 2016-04-13 Cesar Philippidis <cesar@codesourcery.com>
4927
4928 PR testsuite/68242
4929 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Adjust test.
4930 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
4931
4932 2016-04-12 Thomas Schwinge <thomas@codesourcery.com>
4933
4934 * libgomp_g.h: Rename GOACC_parallel_keyd prototype to
4935 GOACC_parallel_keyed, restore GOACC_parallel prototype, new
4936 GOACC_declare prototype.
4937
4938 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c:
4939 Merge this file, and...
4940 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gv-np-1.c:
4941 ... this file, and...
4942 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c:
4943 ... this file, and...
4944 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c:
4945 ... this file, and...
4946 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c:
4947 ... this file, and...
4948 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c:
4949 ... this file, and...
4950 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c:
4951 ... this file, and...
4952 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c:
4953 ... this file, and...
4954 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c:
4955 ... this file, and...
4956 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c:
4957 ... this file, and...
4958 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c:
4959 ... this file, and...
4960 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c:
4961 ... this file, and...
4962 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c:
4963 ... this file into...
4964 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: ... this
4965 file.
4966
4967 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c:
4968 Make failure observable.
4969
4970 2016-04-12 Jakub Jelinek <jakub@redhat.com>
4971
4972 * libgomp.h (struct gomp_target_task): Remove firstprivate_copies
4973 field.
4974 * target.c (gomp_target_fallback_firstprivate,
4975 gomp_target_unshare_firstprivate): Removed.
4976 (GOMP_target_ext): Copy firstprivate vars into gomp_allocaed memory
4977 before waiting for dependencies.
4978 (gomp_target_task_fn): Don't copy firstprivate vars here.
4979 * task.c (GOMP_PLUGIN_target_task_completion): Don't free
4980 firstprivate_copies here.
4981 (gomp_create_target_task): Don't initialize firstprivate_copies field.
4982 * testsuite/libgomp.c/target-25.c (main): Use map (to:) instead of
4983 explicit/implicit firstprivate.
4984
4985 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
4986
4987 PR lto/70289
4988 PR ipa/70348
4989 PR tree-optimization/70373
4990 PR middle-end/70533
4991 PR middle-end/70534
4992 PR middle-end/70535
4993 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gang-np-1.c: New
4994 test.
4995 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gw-np-1.c: New
4996 test.
4997 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-1.c: New
4998 test.
4999 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-2.c: New
5000 test.
5001 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-3.c: New
5002 test.
5003 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-gwv-np-4.c: New
5004 test.
5005 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-1.c: New
5006 test.
5007 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-vector-p-2.c: New
5008 test.
5009 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-worker-p-1.c: New
5010 test.
5011 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-1.c: New test.
5012 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-2.c: New test.
5013 * testsuite/libgomp.oacc-c-c++-common/loop-reduction-wv-p-3.c: New test.
5014 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-1.c: New
5015 test.
5016 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-2.c: New
5017 test.
5018 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c: New
5019 test.
5020 * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-4.c: New
5021 test.
5022 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Add test
5023 coverage.
5024 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5025 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: Likewise.
5026 * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c: New test.
5027 * testsuite/libgomp.oacc-c-c++-common/pr70289.c: New test.
5028 * testsuite/libgomp.oacc-c-c++-common/pr70373.c: New test.
5029 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Add test
5030 coverage.
5031 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5032 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5033 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5034 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5035 * testsuite/libgomp.oacc-c-c++-common/reduction-6.c: New test.
5036 * testsuite/libgomp.oacc-c-c++-common/reduction.h: New test.
5037 * testsuite/libgomp.oacc-fortran/parallel-reduction.f90: New test.
5038 * testsuite/libgomp.oacc-fortran/pr70289.f90: New test.
5039 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Add test coverage.
5040 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5041 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5042 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5043 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
5044 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5045 * testsuite/libgomp.oacc-fortran/reduction-7.f90: New test.
5046
5047 2016-03-30 Thomas Schwinge <thomas@codesourcery.com>
5048 James Norris <jnorris@codesourcery.com>
5049 Nathan Sidwell <nathan@codesourcery.com>
5050 Julian Brown <julian@codesourcery.com>
5051 Cesar Philippidis <cesar@codesourcery.com>
5052 Chung-Lin Tang <cltang@codesourcery.com>
5053 Tom de Vries <tom@codesourcery.com>
5054
5055 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Update.
5056 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
5057 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
5058 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Likewise.
5059 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
5060 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
5061 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
5062 * testsuite/libgomp.oacc-fortran/declare-1.f90: Likewise.
5063 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
5064 XFAIL.
5065 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Update.
5066 Incorporate...
5067 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: ... this
5068 file.
5069 * testsuite/libgomp.oacc-c++/template-reduction.C: New file.
5070 * testsuite/libgomp.oacc-c-c++-common/gang-static-1.c: Likewise.
5071 * testsuite/libgomp.oacc-c-c++-common/gang-static-2.c: Likewise.
5072 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-clauses.c:
5073 Likewise.
5074 * testsuite/libgomp.oacc-c-c++-common/private-variables.c:
5075 Likewise.
5076 * testsuite/libgomp.oacc-c-c++-common/reduction-7.c: Likewise.
5077 * testsuite/libgomp.oacc-c-c++-common/routine-1.c: Likewise.
5078 * testsuite/libgomp.oacc-c-c++-common/routine-4.c: Likewise.
5079 * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c: Likewise.
5080 * testsuite/libgomp.oacc-fortran/clauses-1.f90: Likewise.
5081 * testsuite/libgomp.oacc-fortran/default-1.f90: Likewise.
5082 * testsuite/libgomp.oacc-fortran/firstprivate-1.f90: Likewise.
5083 * testsuite/libgomp.oacc-fortran/gang-static-1.f90: Likewise.
5084 * testsuite/libgomp.oacc-fortran/if-1.f90: Likewise.
5085 * testsuite/libgomp.oacc-fortran/implicit-firstprivate-ref.f90:
5086 Likewise.
5087 * testsuite/libgomp.oacc-fortran/pr68813.f90: Likewise.
5088 * testsuite/libgomp.oacc-fortran/private-variables.f90: Likewise.
5089 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Merge this
5090 file...
5091 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: ..., and this
5092 file into...
5093 * testsuite/libgomp.oacc-c-c++-common/data-clauses.h: ... this new
5094 file. Update.
5095 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels.c: New
5096 file.
5097 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel.c:
5098 Likewise.
5099 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: Rename to...
5100 * testsuite/libgomp.oacc-c-c++-common/data-clauses-kernels-ipa-pta.c:
5101 ... this new file. Update.
5102 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: Rename to...
5103 * testsuite/libgomp.oacc-c-c++-common/data-clauses-parallel-ipa-pta.c:
5104 ... this new file. Update.
5105 * testsuite/libgomp.oacc-c-c++-common/mode-transitions.c: New
5106 file. Incorporate...
5107 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c: ... this
5108 file, and...
5109 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: ... this
5110 file, and...
5111 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: ... this
5112 file.
5113 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Remove file.
5114
5115 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
5116
5117 * testsuite/libgomp.oacc-c++/c++.exp [!lang_test_file_found]: Call
5118 set-torture-options.
5119
5120 2016-03-24 Thomas Schwinge <thomas@codesourcery.com>
5121
5122 * testsuite/libgomp.oacc-c++/c++.exp: Set up torture testing, use
5123 gcc-dg-runtest.
5124 * testsuite/libgomp.oacc-c/c.exp: Likewise.
5125 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: Specify
5126 -fno-builtin-acc_on_device instead of -O0.
5127 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: Skip for
5128 -O0.
5129 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5130 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c:
5131 Likewise.
5132 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5133 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5134 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5135 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5136 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5137 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5138 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5139 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5140 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5141 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5142 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5143 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5144 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5145 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5146 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5147 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5148 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5149 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-2.c:
5150 Don't specify -O2.
5151 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta-3.c:
5152 Likewise.
5153 * testsuite/libgomp.oacc-c-c++-common/kernels-alias-ipa-pta.c:
5154 Likewise.
5155
5156 2016-03-24 Martin Liska <mliska@suse.cz>
5157
5158 * plugin/plugin-hsa.c (packet_store_release): New function
5159 that is taken from the HSA runtime manual.
5160 (GOMP_OFFLOAD_run): Use the function.
5161
5162 2016-03-23 Jakub Jelinek <jakub@redhat.com>
5163
5164 PR c++/70376
5165 * testsuite/libgomp.c++/pr70376.C: New test.
5166
5167 2016-03-23 Tom de Vries <tom@codesourcery.com>
5168
5169 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing
5170 initialization of lresult and lvresult.
5171 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Same.
5172
5173 2016-03-23 James Norris <jnorris@codesourcery.com>
5174 Daichi Fukuoka <dc-fukuoka@sgi.com>
5175
5176 PR libgomp/69414
5177 * oacc-mem.c (delete_copyout, update_dev_host): Fix device address.
5178 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Additional tests.
5179 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
5180 * testsuite/libgomp.oacc-fortran/update-1.f90: New file.
5181
5182 2016-03-23 Martin Liska <mliska@suse.cz>
5183
5184 PR hsa/70337
5185 * plugin/plugin-hsa.c (GOMP_OFFLOAD_run): Copy shadow
5186 argument just in case a dispatched kernel uses that argument.
5187
5188 2016-03-16 Thomas Schwinge <thomas@codesourcery.com>
5189
5190 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: Adjust to
5191 -ftree-parallelize-loops/-fopenacc changes.
5192 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95:
5193 Likewise.
5194 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5195 Likewise.
5196 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95:
5197 Likewise.
5198 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95:
5199 Likewise.
5200 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Likewise.
5201 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Likewise.
5202
5203 2016-03-13 Thomas Schwinge <thomas@codesourcery.com>
5204
5205 * testsuite/lib/libgomp.exp (libgomp_init): Potentially append to
5206 always_ld_library_path the path to libgcc_s.
5207
5208 2016-03-10 Cesar Philippidis <cesar@codesourcery.com>
5209
5210 PR testsuite/70009
5211 * testsuite/libgomp.oacc-c-c++-common/vprop.c: Make test data signed.
5212
5213 2016-03-09 Tom de Vries <tom@codesourcery.com>
5214
5215 * testsuite/libgomp.oacc-fortran/kernels-loop-2.f95: New test.
5216 * testsuite/libgomp.oacc-fortran/kernels-loop-data-2.f95: Same.
5217 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit-2.f95:
5218 Same.
5219 * testsuite/libgomp.oacc-fortran/kernels-loop-data-enter-exit.f95: Same.
5220 * testsuite/libgomp.oacc-fortran/kernels-loop-data-update.f95: Same.
5221 * testsuite/libgomp.oacc-fortran/kernels-loop-data.f95: Same.
5222 * testsuite/libgomp.oacc-fortran/kernels-loop.f95: Same.
5223
5224 2016-03-07 Martin Jambor <mjambor@suse.cz>
5225
5226 * testsuite/lib/libgomp.exp
5227 (check_effective_target_hsa_offloading_selected_nocache): New.
5228 (check_effective_target_hsa_offloading_selected): Likewise.
5229 * testsuite/libgomp.hsa.c/c.exp: Likewise.
5230 * testsuite/libgomp.hsa.c/alloca-1.c: Likewise.
5231 * testsuite/libgomp.hsa.c/bitfield-1.c: Likewise.
5232 * testsuite/libgomp.hsa.c/builtins-1.c: Likewise.
5233 * testsuite/libgomp.hsa.c/complex-1.c: Likewise.
5234 * testsuite/libgomp.hsa.c/formal-actual-args-1.c: Likewise.
5235 * testsuite/libgomp.hsa.c/function-call-1.c: Likewise.
5236 * testsuite/libgomp.hsa.c/get-level-1.c: Likewise.
5237 * testsuite/libgomp.hsa.c/gridify-1.c: Likewise.
5238 * testsuite/libgomp.hsa.c/gridify-2.c: Likewise.
5239 * testsuite/libgomp.hsa.c/gridify-3.c: Likewise.
5240 * testsuite/libgomp.hsa.c/gridify-4.c: Likewise.
5241 * testsuite/libgomp.hsa.c/memory-operations-1.c: Likewise.
5242 * testsuite/libgomp.hsa.c/pr69568.c: Likewise.
5243 * testsuite/libgomp.hsa.c/rotate-1.c: Likewise.
5244 * testsuite/libgomp.hsa.c/switch-1.c: Likewise.
5245 * testsuite/libgomp.hsa.c/switch-branch-1.c: Likewise.
5246
5247 2016-03-07 Martin Jambor <mjambor@suse.cz>
5248
5249 * testsuite/libgomp.c/examples-4/async_target-2.c: Only run on
5250 non-shared memory accelerators.
5251 * testsuite/libgomp.c/examples-4/device-1.c: Likewise.
5252 * testsuite/libgomp.c/examples-4/target-5.c: Likewise.
5253 * testsuite/libgomp.c/examples-4/target_data-6.c: Likewise.
5254 * testsuite/libgomp.c/examples-4/target_data-7.c: Likewise.
5255 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: Likewise.
5256 * testsuite/libgomp.fortran/examples-4/device-1.f90: Likewise.
5257 * testsuite/libgomp.fortran/examples-4/target-5.f90: Likewise.
5258 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: Likewise.
5259 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: Likewise.
5260
5261 2016-03-07 Martin Jambor <mjambor@suse.cz>
5262
5263 * testsuite/lib/libgomp.exp (libgomp_init): Append -Wno-hsa to
5264 ALWAYS_CFLAGS.
5265
5266 2016-03-02 Jakub Jelinek <jakub@redhat.com>
5267
5268 PR libgomp/69555
5269 * testsuite/libgomp.c++/pr69555-1.C: New test.
5270 * testsuite/libgomp.c++/pr69555-2.C: New test.
5271
5272 2016-02-26 Keith McDaniel <k.allen.mcdaniel@gmail.com>
5273 Martin Jambor <mjambor@suse.cz>
5274
5275 * testsuite/lib/libgomp.exp
5276 (check_effective_target_offload_device_shared_as): New proc.
5277 * testsuite/libgomp.c++/declare_target-1.C: New test.
5278
5279 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
5280
5281 PR driver/68463
5282 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: Remove.
5283
5284 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
5285
5286 * oacc-parallel.c (GOACC_parallel_keyed): Initialize dims.
5287 * plugin/plugin-nvptx.c (nvptx_exec): Provide default values for
5288 dims.
5289 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: Adjust to
5290 -ftree-parallelize-loops/-fopenacc changes.
5291 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Likewise.
5292 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c:
5293 Likewise.
5294 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c:
5295 Likewise.
5296 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c:
5297 Likewise.
5298 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c:
5299 Likewise.
5300 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c:
5301 Likewise.
5302 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c:
5303 Likewise.
5304 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c:
5305 Likewise.
5306 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Likewise.
5307 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c:
5308 Likewise.
5309 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Likewise.
5310 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c:
5311 Likewise.
5312 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Likewise.
5313 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c:
5314 Likewise.
5315
5316 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
5317
5318 * testsuite/libgomp.oacc-c-c++-common/vprop.c: New test.
5319
5320 2016-02-19 Jakub Jelinek <jakub@redhat.com>
5321
5322 PR driver/69805
5323 * testsuite/libgomp.c/pr69805.c: New test.
5324
5325 2016-02-16 Tom de Vries <tom@codesourcery.com>
5326
5327 PR lto/67709
5328 * testsuite/libgomp.fortran/declare-simd-4.f90: New test.
5329
5330 2016-02-09 Tom de Vries <tom@codesourcery.com>
5331
5332 PR tree-optimization/69599
5333 * testsuite/libgomp.c/omp-nested-3.c: New test.
5334 * testsuite/libgomp.c/pr46032-2.c: New test.
5335 * testsuite/libgomp.oacc-c-c++-common/kernels-2.c: New test.
5336 * testsuite/libgomp.oacc-c-c++-common/parallel-2.c: New test.
5337
5338 2016-02-09 Tom de Vries <tom@codesourcery.com>
5339
5340 PR lto/69707
5341 * testsuite/libgomp.oacc-c-c++-common/parallel-dims-2.c: New test.
5342
5343 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5344
5345 * testsuite/libgomp.c/target-31.c: Fix testcase.
5346
5347 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
5348
5349 * testsuite/libgomp.c/examples-4/teams-3.c: Add missing reduction
5350 clause.
5351 * testsuite/libgomp.c/examples-4/teams-4.c: Likewise.
5352 * testsuite/libgomp.fortran/examples-4/teams-3.f90: Add missing
5353 reduction and map clauses.
5354 * testsuite/libgomp.fortran/examples-4/teams-4.f90: Likewise.
5355
5356 2016-02-02 James Norris <jnorris@codesourcery.com>
5357
5358 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Fix clause.
5359
5360 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
5361
5362 * libgomp.map (GOACC_2.0): Remove GOACC_host_data.
5363 * oacc-parallel.c (GOACC_host_data): Remove function definition.
5364
5365 * testsuite/lib/libgomp.exp: Skip hsa offloading for OpenACC test
5366 cases.
5367
5368 * plugin/configfrag.ac (HSA_KMT_LIB, HSA_KMT_LDFLAGS): New
5369 variables.
5370 * testsuite/libgomp-test-support.exp.in (hsa_runtime_lib)
5371 (hsa_kmt_lib): Set variables.
5372 * testsuite/lib/libgomp.exp (libgomp_init): Use them to amend
5373 always_ld_library_path.
5374 * Makefile.in: Regenerate.
5375 * configure: Likewise.
5376 * testsuite/Makefile.in: Likewise.
5377
5378 * plugin/configfrag.ac (offload_additional_options)
5379 (offload_additional_lib_paths): Don't amend for hsa offloading.
5380 * configure: Regenerate.
5381
5382 * plugin/configfrag.ac: Don't configure for offloading target if
5383 we don't build the corresponding plugin.
5384 * configure: Regenerate.
5385
5386 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
5387
5388 * testsuite/libgomp.oacc-c-c++-common/loop-dim-default.c: New.
5389 * testsuite/libgomp.oacc-fortran/routine-7.f90: Serialize loop.
5390
5391 2016-01-26 Tom de Vries <tom@codesourcery.com>
5392
5393 PR tree-optimization/69110
5394 * testsuite/libgomp.c/pr69110.c: New test.
5395
5396 2016-01-25 Richard Biener <rguenther@suse.de>
5397
5398 PR lto/69393
5399 * testsuite/libgomp.c++/pr69393.C: New testcase.
5400
5401 2016-01-22 Ilya Verbin <ilya.verbin@intel.com>
5402
5403 * target.c (gomp_get_target_fn_addr): Allow host fallback if target
5404 function wasn't mapped to the device with non-shared memory.
5405
5406 2016-01-20 Ilya Verbin <ilya.verbin@intel.com>
5407
5408 * task.c (gomp_create_target_task): Set firstprivate_copies to NULL.
5409
5410 2016-01-19 Martin Jambor <mjambor@suse.cz>
5411 Martin Liska <mliska@suse.cz>
5412
5413 * plugin/Makefrag.am: Add HSA plugin requirements.
5414 * plugin/configfrag.ac (HSA_RUNTIME_INCLUDE): New variable.
5415 (HSA_RUNTIME_LIB): Likewise.
5416 (HSA_RUNTIME_CPPFLAGS): Likewise.
5417 (HSA_RUNTIME_INCLUDE): New substitution.
5418 (HSA_RUNTIME_LIB): Likewise.
5419 (HSA_RUNTIME_LDFLAGS): Likewise.
5420 (hsa-runtime): New configure option.
5421 (hsa-runtime-include): Likewise.
5422 (hsa-runtime-lib): Likewise.
5423 (PLUGIN_HSA): New substitution variable.
5424 Fill HSA_RUNTIME_INCLUDE and HSA_RUNTIME_LIB according to the new
5425 configure options.
5426 (PLUGIN_HSA_CPPFLAGS): Likewise.
5427 (PLUGIN_HSA_LDFLAGS): Likewise.
5428 (PLUGIN_HSA_LIBS): Likewise.
5429 Check that we have access to HSA run-time.
5430 * libgomp-plugin.h (offload_target_type): New element
5431 OFFLOAD_TARGET_TYPE_HSA.
5432 * libgomp.h (gomp_target_task): New fields firstprivate_copies and
5433 args.
5434 (bool gomp_create_target_task): Updated.
5435 (gomp_device_descr): Extra parameter of run_func and async_run_func,
5436 new field can_run_func.
5437 * libgomp_g.h (GOMP_target_ext): Update prototype.
5438 * oacc-host.c (host_run): Added a new parameter args.
5439 * target.c (calculate_firstprivate_requirements): New function.
5440 (copy_firstprivate_data): Likewise.
5441 (gomp_target_fallback_firstprivate): Use them.
5442 (gomp_target_unshare_firstprivate): New function.
5443 (gomp_get_target_fn_addr): Allow returning NULL for shared memory
5444 devices.
5445 (GOMP_target): Do host fallback for all shared memory devices. Do not
5446 pass any args to plugins.
5447 (GOMP_target_ext): Introduce device-specific argument parameter args.
5448 Allow host fallback if device shares memory. Do not remap data if
5449 device has shared memory.
5450 (gomp_target_task_fn): Likewise. Also treat shared memory devices
5451 like host fallback for mappings.
5452 (GOMP_target_data): Treat shared memory devices like host fallback.
5453 (GOMP_target_data_ext): Likewise.
5454 (GOMP_target_update): Likewise.
5455 (GOMP_target_update_ext): Likewise. Also pass NULL as args to
5456 gomp_create_target_task.
5457 (GOMP_target_enter_exit_data): Likewise.
5458 (omp_target_alloc): Treat shared memory devices like host fallback.
5459 (omp_target_free): Likewise.
5460 (omp_target_is_present): Likewise.
5461 (omp_target_memcpy): Likewise.
5462 (omp_target_memcpy_rect): Likewise.
5463 (omp_target_associate_ptr): Likewise.
5464 (gomp_load_plugin_for_device): Also load can_run.
5465 * task.c (GOMP_PLUGIN_target_task_completion): Free
5466 firstprivate_copies.
5467 (gomp_create_target_task): Accept new argument args and store it to
5468 ttask.
5469 * plugin/plugin-hsa.c: New file.
5470
5471 2016-01-18 Tom de Vries <tom@codesourcery.com>
5472
5473 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-2.c: New test.
5474 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-3.c: Same.
5475 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-2.c: Same.
5476 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-3.c: Same.
5477 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-4.c: Same.
5478 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-5.c: Same.
5479 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq-6.c: Same.
5480 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-and-seq.c: Same.
5481 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-collapse.c: Same.
5482 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-2.c: Same.
5483 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit-2.c:
5484 Same.
5485 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-enter-exit.c:
5486 Same.
5487 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data-update.c: Same.
5488 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-data.c: Same.
5489 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-g.c: Same.
5490 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-mod-not-zero.c: Same.
5491 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-n.c: Same.
5492 * testsuite/libgomp.oacc-c-c++-common/kernels-loop-nest.c: Same.
5493 * testsuite/libgomp.oacc-c-c++-common/kernels-loop.c: Same.
5494 * testsuite/libgomp.oacc-c-c++-common/kernels-parallel-loop-data-enter-exit.c:
5495 Same.
5496 * testsuite/libgomp.oacc-c-c++-common/kernels-reduction.c: Same.
5497
5498 2016-01-15 Jakub Jelinek <jakub@redhat.com>
5499
5500 * task.c (GOMP_PLUGIN_target_task_completion): Add missing return.
5501
5502 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
5503
5504 * testsuite/libgomp.oacc-fortran/kernels-data.f90: New test.
5505
5506 2016-01-12 James Norris <jnorris@codesourcery.com>
5507
5508 * libgomp.texi: Updates for OpenACC.
5509
5510 2016-01-11 Alexander Monakov <amonakov@ispras.ru>
5511
5512 * plugin/plugin-nvptx.c (link_ptx): Do not set CU_JIT_TARGET.
5513
5514 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
5515
5516 PR fortran/66680
5517 * testsuite/libgomp.fortran/pr66680.f90: New test.
5518
5519 2016-01-07 Jakub Jelinek <jakub@redhat.com>
5520
5521 PR middle-end/68960
5522 * testsuite/libgomp.c/pr68960.c: New test.
5523
5524 2016-01-06 Nathan Sidwell <nathan@acm.org>
5525
5526 * openacc.h (acc_on_device): Add routine pragma for C++ wrapper.
5527 * testsuite/libgomp.oacc-c-c++-common/acc-on-device-2.c: New.
5528
5529 2016-01-04 Jakub Jelinek <jakub@redhat.com>
5530
5531 Update copyright years.
5532
5533 * libgomp.texi: Bump @copying's copyright year.
5534
5535 2015-12-31 Nathan Sidwell <nathan@acm.org>
5536
5537 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Correct
5538 dg-additional-options syntax.
5539 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: Likewise.
5540 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: Likewise.
5541 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: Likewise.
5542 * testsuite/libgomp.oacc-c-c++-common/loop-red-gwv-1.c: Likewise.
5543 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: Likewise.
5544 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: Likewise.
5545 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: Likewise.
5546 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: Likewise.
5547 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: Likewise.
5548 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: Likewise.
5549 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-1.c: Likewise.
5550 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: Likewise.
5551 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: Likewise.
5552 * testsuite/libgomp.oacc-c-c++-common/loop-red-wv-1.c: Likewise.
5553 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: Likewise.
5554 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: Likewise.
5555 * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c: Likewise.
5556 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-1.c: Likewise.
5557
5558 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
5559
5560 * libgomp.h (REFCOUNT_LINK): Define.
5561 (struct splay_tree_key_s): Add link_key.
5562 * target.c (gomp_map_vars): Treat REFCOUNT_LINK objects as not mapped.
5563 Replace target address of the pointer with target address of newly
5564 mapped object in the splay tree. Set link pointer on target to the
5565 device address of the mapped object.
5566 (gomp_unmap_vars): Restore target address of the pointer in the splay
5567 tree for REFCOUNT_LINK objects after unmapping.
5568 (gomp_load_image_to_device): Set refcount to REFCOUNT_LINK for "omp
5569 declare target link" objects.
5570 (gomp_unload_image_from_device): Replace j with i. Force unmap of all
5571 "omp declare target link" objects, which were mapped for the image.
5572 (gomp_exit_data): Restore target address of the pointer in the splay
5573 tree for REFCOUNT_LINK objects after unmapping.
5574 * testsuite/libgomp.c/target-link-1.c: New file.
5575
5576 2015-12-14 Ilya Verbin <ilya.verbin@intel.com>
5577
5578 * libgomp.h (gomp_device_state): New enum.
5579 (struct gomp_device_descr): Replace is_initialized with state.
5580 (gomp_fini_device): Remove declaration.
5581 * oacc-host.c (host_dispatch): Use state instead of is_initialized.
5582 * oacc-init.c (acc_init_1): Use state instead of is_initialized.
5583 (acc_shutdown_1): Likewise. Inline gomp_fini_device.
5584 (acc_set_device_type): Use state instead of is_initialized.
5585 (acc_set_device_num): Likewise.
5586 * target.c (resolve_device): Use state instead of is_initialized.
5587 Do not initialize finalized device.
5588 (gomp_map_vars): Do nothing if device is finalized.
5589 (gomp_unmap_vars): Likewise.
5590 (gomp_update): Likewise.
5591 (GOMP_offload_register_ver): Use state instead of is_initialized.
5592 (GOMP_offload_unregister_ver): Likewise.
5593 (gomp_init_device): Likewise.
5594 (gomp_unload_device): Likewise.
5595 (gomp_fini_device): Remove.
5596 (gomp_get_target_fn_addr): Do nothing if device is finalized.
5597 (GOMP_target): Go to host fallback if device is finalized.
5598 (GOMP_target_ext): Likewise.
5599 (gomp_exit_data): Do nothing if device is finalized.
5600 (gomp_target_task_fn): Go to host fallback if device is finalized.
5601 (gomp_target_fini): New static function.
5602 (gomp_target_init): Use state instead of is_initialized.
5603 Call gomp_target_fini at exit.
5604
5605 2015-12-09 Tom de Vries <tom@codesourcery.com>
5606
5607 PR tree-optimization/68716
5608 * testsuite/libgomp.c/omp-nested-2.c: New test.
5609
5610 2015-12-02 Thomas Schwinge <thomas@codesourcery.com>
5611
5612 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: Restrict to
5613 target openacc_nvidia_accel_selected.
5614 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: Likewise.
5615 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: Likewise.
5616 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: Remove file.
5617 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: Remove file.
5618
5619 2015-12-01 Julian Brown <julian@codesourcery.com>
5620 James Norris <James_Norris@mentor.com>
5621
5622 * oacc-parallel.c (GOACC_host_data): New function.
5623 * libgomp.map (GOACC_host_data): Add to GOACC_2.0.1.
5624 * testsuite/libgomp.oacc-c-c++-common/host_data-1.c: New test.
5625 * testsuite/libgomp.oacc-c-c++-common/host_data-2.c: New test.
5626 * testsuite/libgomp.oacc-c-c++-common/host_data-3.c: New test.
5627 * testsuite/libgomp.oacc-c-c++-common/host_data-4.c: New test.
5628 * testsuite/libgomp.oacc-c-c++-common/host_data-5.c: New test.
5629 * testsuite/libgomp.oacc-c-c++-common/host_data-6.c: New test.
5630
5631 2015-11-30 James Norris <jnorris@codesourcery.com>
5632 Cesar Philippidis <cesar@codesourcery.com>
5633
5634 libgomp/
5635 * libgomp.oacc-fortran/routine-5.f90: New test.
5636 * libgomp.oacc-fortran/routine-7.f90: New test.
5637 * libgomp.oacc-fortran/routine-9.f90: New test.
5638
5639 2015-11-30 Tom de Vries <tom@codesourcery.com>
5640
5641 PR tree-optimization/46032
5642 * testsuite/libgomp.c/pr46032.c: New test.
5643
5644 2015-11-27 Jakub Jelinek <jakub@redhat.com>
5645
5646 PR libgomp/68579
5647 * task.c (gomp_task_run_post_handle_depend_hash): New forward decl.
5648 (gomp_create_target_task): Call it before freeing
5649 GOMP_TARGET_TASK_DATA tasks.
5650
5651 PR c/63326
5652 * testsuite/libgomp.c/cancel-parallel-2.c (foo): Add semicolon
5653 in between case label and OpenMP standalone directives.
5654 * testsuite/libgomp.c++/cancel-parallel-2.C (foo): Likewise.
5655
5656 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
5657
5658 * configure: Regenerate.
5659
5660 2015-11-26 Jakub Jelinek <jakub@redhat.com>
5661
5662 * testsuite/libgomp.c/target-35.c: New test.
5663
5664 2015-11-22 James Norris <jnorris@codesourcery.com>
5665 Cesar Philippidis <cesar@codesourcery.com>
5666
5667 * testsuite/libgomp.oacc-fortran/declare-1.f90: New test.
5668 * testsuite/libgomp.oacc-fortran/declare-2.f90: Likewise.
5669 * testsuite/libgomp.oacc-fortran/declare-3.f90: Likewise.
5670 * testsuite/libgomp.oacc-fortran/declare-4.f90: Likewise.
5671 * testsuite/libgomp.oacc-fortran/declare-5.f90: Likewise.
5672
5673 2015-11-20 Jakub Jelinek <jakub@redhat.com>
5674
5675 PR middle-end/68221
5676 * testsuite/libgomp.c/reduction-11.c: Remove xfail.
5677 * testsuite/libgomp.c/reduction-12.c: Likewise.
5678 * testsuite/libgomp.c++/reduction-11.C: Likewise.
5679 * testsuite/libgomp.c++/reduction-12.C: Likewise.
5680
5681 2015-11-19 Nathan Sidwell <nathan@codesourcery.com>
5682
5683 * libgomp.oacc-c-c++-common/reduction-dbl.c: New.
5684 * libgomp.oacc-c-c++-common/reduction-flt.c: New.
5685 * libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Use typedef.
5686 * libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Use typedef.
5687 * libgomp.oacc-c-c++-common/reduction-2.c: Uncomment broken tests
5688 and fix.
5689 * libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5690 * libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5691
5692 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
5693
5694 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: Add
5695 worker & gang cases.
5696 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: Likewise.
5697
5698 2015-11-17 Cesar Philippidis <cesar@codesourcery.com>
5699
5700 * config/nvptx/priority_queue.c: New file.
5701
5702 2015-11-14 Jakub Jelinek <jakub@redhat.com>
5703
5704 * libgomp.texi: Update references from OpenMP 4.0 to OpenMP 4.5
5705 sections.
5706
5707 2015-11-14 Jakub Jelinek <jakub@redhat.com>
5708 Aldy Hernandez <aldyh@redhat.com>
5709 Ilya Verbin <ilya.verbin@intel.com>
5710
5711 * ordered.c (gomp_doacross_init, GOMP_doacross_post,
5712 GOMP_doacross_wait, gomp_doacross_ull_init, GOMP_doacross_ull_post,
5713 GOMP_doacross_ull_wait): For GFS_GUIDED don't divide number of
5714 iterators or IV by chunk size.
5715 * parallel.c (gomp_resolve_num_threads): Don't assume that
5716 if thr->ts.team is non-NULL, then pool must be non-NULL.
5717 * libgomp-plugin.h (GOMP_PLUGIN_target_task_completion): Declare.
5718 * libgomp.map (GOMP_PLUGIN_1.1): New symbol version, export
5719 GOMP_PLUGIN_target_task_completion.
5720 * Makefile.am (libgomp_la_SOURCES): Add priority_queue.c.
5721 * Makefile.in: Regenerate.
5722 * libgomp.h: Shuffle prototypes and forward definitions around so
5723 priority queues can be defined.
5724 (enum gomp_task_kind): Add GOMP_TASK_ASYNC_RUNNING.
5725 (enum gomp_target_task_state): New enum.
5726 (struct gomp_target_task): Add state, tgt, task and team fields.
5727 (gomp_create_target_task): Change return type to bool, add
5728 state argument.
5729 (gomp_target_task_fn): Change return type to bool.
5730 (struct gomp_device_descr): Add async_run_func.
5731 (struct gomp_task): Remove children, next_child, prev_child,
5732 next_queue, prev_queue, next_taskgroup, prev_taskgroup.
5733 Add pnode field.
5734 (struct gomp_taskgroup): Remove children.
5735 Add taskgroup_queue.
5736 (struct gomp_team): Change task_queue type to a priority queue.
5737 (splay_compare): Define inline.
5738 (priority_queue_offset): New.
5739 (priority_node_to_task): New.
5740 (task_to_priority_node): New.
5741 * oacc-mem.c: Do not include splay-tree.h.
5742 * priority_queue.c: New file.
5743 * priority_queue.h: New file.
5744 * splay-tree.c: Do not include splay-tree.h.
5745 (splay_tree_foreach_internal): New.
5746 (splay_tree_foreach): New.
5747 * splay-tree.h: Become re-entrant if splay_tree_prefix is defined.
5748 (splay_tree_callback): Define typedef.
5749 * target.c (splay_compare): Move to libgomp.h.
5750 (GOMP_target): Don't adjust *thr in any way around running offloaded
5751 task.
5752 (GOMP_target_ext): Likewise. Handle target nowait.
5753 (GOMP_target_update_ext, GOMP_target_enter_exit_data): Check
5754 return value from gomp_create_target_task, if false, fallthrough
5755 as if no dependencies exist.
5756 (gomp_target_task_fn): Change return type to bool, return true
5757 if the task should have another part scheduled later. Handle
5758 target nowait.
5759 (gomp_load_plugin_for_device): Initialize async_run.
5760 * task.c (gomp_init_task): Initialize children_queue.
5761 (gomp_clear_parent_in_list): New.
5762 (gomp_clear_parent_in_tree): New.
5763 (gomp_clear_parent): Handle priorities.
5764 (GOMP_task): Likewise.
5765 (priority_queue_move_task_first,
5766 gomp_target_task_completion, GOMP_PLUGIN_target_task_completion):
5767 New functions.
5768 (gomp_create_target_task): Use priority queues. Change return type
5769 to bool, add state argument, return false if for async
5770 {{enter,exit} data,update} constructs no dependencies need to be
5771 waited for, handle target nowait. Set task->fn to NULL instead of
5772 gomp_target_task_fn.
5773 (verify_children_queue): Remove.
5774 (priority_list_upgrade_task): New.
5775 (priority_queue_upgrade_task): New.
5776 (verify_task_queue): Remove.
5777 (priority_list_downgrade_task): New.
5778 (priority_queue_downgrade_task): New.
5779 (gomp_task_run_pre): Use priority queues.
5780 Abstract code out to priority_queue_downgrade_task.
5781 (gomp_task_run_post_handle_dependers): Use priority queues.
5782 (gomp_task_run_post_remove_parent): Likewise.
5783 (gomp_task_run_post_remove_taskgroup): Likewise.
5784 (gomp_barrier_handle_tasks): Likewise. Handle target nowait target
5785 tasks specially.
5786 (GOMP_taskwait): Likewise.
5787 (gomp_task_maybe_wait_for_dependencies): Likewise. Abstract code to
5788 priority-queue_upgrade_task.
5789 (GOMP_taskgroup_start): Use priority queues.
5790 (GOMP_taskgroup_end): Likewise. Handle target nowait target tasks
5791 specially. If taskgroup is NULL, and thr->ts.level is 0, act as a
5792 barrier.
5793 * taskloop.c (GOMP_taskloop): Handle priorities.
5794 * team.c (gomp_new_team): Call priority_queue_init.
5795 (free_team): Call priority_queue_free.
5796 (gomp_free_thread): Call gomp_team_end if thr->ts.team is artificial
5797 team created for target nowait in implicit parallel region.
5798 (gomp_team_start): For nested check, test thr->ts.level instead of
5799 thr->ts.team != NULL.
5800 * testsuite/libgomp.c/doacross-3.c: New test.
5801 * testsuite/libgomp.c/ordered-5.c: New test.
5802 * testsuite/libgomp.c/priority.c: New test.
5803 * testsuite/libgomp.c/target-31.c: New test.
5804 * testsuite/libgomp.c/target-32.c: New test.
5805 * testsuite/libgomp.c/target-33.c: New test.
5806 * testsuite/libgomp.c/target-34.c: New test.
5807
5808 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5809
5810 * testsuite/libgomp.oacc-c-c++-common/loop-auto-1.c: New.
5811
5812 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Sequential
5813 loop is sequential.
5814
5815 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5816
5817 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-dbl.c: New.
5818 * testsuite/libgomp.oacc-c-c++-common/reduction-cplx-flt.c: New.
5819
5820 2015-11-12 James Norris <jnorris@codesourcery.com>
5821 Joseph Myers <joseph@codesourcery.com>
5822
5823 * libgomp.map (GOACC_2.0.1): Export GOACC_declare.
5824 * oacc-parallel.c (GOACC_declare): New function.
5825 * testsuite/libgomp.oacc-c-c++-common/declare-1.c: New test.
5826 * testsuite/libgomp.oacc-c-c++-common/declare-2.c: Likewise.
5827 * testsuite/libgomp.oacc-c-c++-common/declare-4.c: Likewise.
5828 * testsuite/libgomp.oacc-c-c++-common/declare-5.c: Likewise.
5829 * testsuite/libgomp.oacc-c++/declare-1.C: Likewise.
5830
5831 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
5832
5833 * testsuite/libgomp.oacc-c-c++-common/default-1.c: New.
5834
5835 2015-11-1 Nathan Sidwell <nathan@codesourcery.com>
5836
5837 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: New.
5838 * testsuite/libgomp.oacc-c-c++-common/firstprivate-2.c: New.
5839
5840 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
5841
5842 * testsuite/libgomp.oacc-c-c++-common/firstprivate-1.c: Remove
5843 inadvertent commit.
5844
5845 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
5846
5847 * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c: New.
5848 * testsuite/libgomp.oacc-c-c++-common/routine-gwv-1.c: New.
5849 * testsuite/libgomp.oacc-c-c++-common/routine-v-1.c: New.
5850 * testsuite/libgomp.oacc-c-c++-common/routine-w-1.c: New.
5851 * testsuite/libgomp.oacc-c-c++-common/routine-wv-1.c: New.
5852
5853 2015-11-06 Thomas Schwinge <thomas@codesourcery.com>
5854
5855 * testsuite/libgomp.oacc-c-c++-common/loop-red-v-2.c: XFAIL.
5856 * testsuite/libgomp.oacc-c-c++-common/loop-red-w-2.c: Likewise.
5857
5858 2015-11-05 Jakub Jelinek <jakub@redhat.com>
5859 Ilya Verbin <ilya.verbin@intel.com>
5860
5861 * libgomp_g.h (GOMP_loop_nonmonotonic_dynamic_next,
5862 GOMP_loop_nonmonotonic_dynamic_start,
5863 GOMP_loop_nonmonotonic_guided_next,
5864 GOMP_loop_nonmonotonic_guided_start,
5865 GOMP_loop_ull_nonmonotonic_dynamic_next,
5866 GOMP_loop_ull_nonmonotonic_dynamic_start,
5867 GOMP_loop_ull_nonmonotonic_guided_next,
5868 GOMP_loop_ull_nonmonotonic_guided_start,
5869 GOMP_parallel_loop_nonmonotonic_dynamic,
5870 GOMP_parallel_loop_nonmonotonic_guided): New prototypes.
5871 (GOMP_target_41): Renamed to ...
5872 (GOMP_target_ext): ... this. Add num_teams and thread_limit
5873 arguments.
5874 (GOMP_target_data_41): Renamed to ...
5875 (GOMP_target_data_ext): ... this.
5876 (GOMP_target_update_41): Renamed to ...
5877 (GOMP_target_update_ext): ... this.
5878 * libgomp.map (GOMP_4.5): Export GOMP_target_ext,
5879 GOMP_target_data_ext and GOMP_target_update_ext instead of
5880 GOMP_target_41, GOMP_target_data_41 and GOMP_target_update_41.
5881 Export GOMP_loop_nonmonotonic_dynamic_next,
5882 GOMP_loop_nonmonotonic_dynamic_start,
5883 GOMP_loop_nonmonotonic_guided_next,
5884 GOMP_loop_nonmonotonic_guided_start,
5885 GOMP_loop_ull_nonmonotonic_dynamic_next,
5886 GOMP_loop_ull_nonmonotonic_dynamic_start,
5887 GOMP_loop_ull_nonmonotonic_guided_next,
5888 GOMP_loop_ull_nonmonotonic_guided_start,
5889 GOMP_parallel_loop_nonmonotonic_dynamic and
5890 GOMP_parallel_loop_nonmonotonic_guided.
5891 * loop.c (GOMP_parallel_loop_nonmonotonic_dynamic,
5892 GOMP_parallel_loop_nonmonotonic_guided,
5893 GOMP_loop_nonmonotonic_dynamic_start,
5894 GOMP_loop_nonmonotonic_guided_start,
5895 GOMP_loop_nonmonotonic_dynamic_next,
5896 GOMP_loop_nonmonotonic_guided_next): New aliases or functions.
5897 * loop_ull.c (GOMP_loop_ull_nonmonotonic_dynamic_start,
5898 GOMP_loop_ull_nonmonotonic_guided_start,
5899 GOMP_loop_ull_nonmonotonic_dynamic_next,
5900 GOMP_loop_ull_nonmonotonic_guided_next): Likewise.
5901 * target.c (gomp_map_0len_lookup, gomp_map_val): New inline
5902 functions.
5903 (gomp_map_vars): Handle GOMP_MAP_ALWAYS_POINTER. For
5904 GOMP_MAP_ZERO_LEN_ARRAY_SECTION use gomp_map_0len_lookup.
5905 Use gomp_map_val function.
5906 (gomp_target_fallback_firstprivate): New static function.
5907 (GOMP_target_41): Renamed to ...
5908 (GOMP_target_ext): ... this. Add num_teams and thread_limit
5909 arguments. Move firstprivate fallback handling into a new
5910 function.
5911 (GOMP_target_data_41): Renamed to ...
5912 (GOMP_target_data_ext): ... this.
5913 (GOMP_target_update_41): Renamed to ...
5914 (GOMP_target_update_ext): ... this.
5915 (gomp_exit_data): For GOMP_MAP_*ZERO_LEN* use
5916 gomp_map_0len_lookup instead of gomp_map_lookup.
5917 (omp_target_is_present): Use gomp_map_0len_lookup instead of
5918 gomp_map_lookup.
5919 * testsuite/libgomp.c/target-28.c: Likewise.
5920 * testsuite/libgomp.c/monotonic-1.c: New test.
5921 * testsuite/libgomp.c/monotonic-2.c: New test.
5922 * testsuite/libgomp.c/nonmonotonic-1.c: New test.
5923 * testsuite/libgomp.c/nonmonotonic-2.c: New test.
5924 * testsuite/libgomp.c/pr66199-5.c: New test.
5925 * testsuite/libgomp.c/pr66199-6.c: New test.
5926 * testsuite/libgomp.c/pr66199-7.c: New test.
5927 * testsuite/libgomp.c/pr66199-8.c: New test.
5928 * testsuite/libgomp.c/pr66199-9.c: New test.
5929 * testsuite/libgomp.c/reduction-11.c: New test.
5930 * testsuite/libgomp.c/reduction-12.c: New test.
5931 * testsuite/libgomp.c/reduction-13.c: New test.
5932 * testsuite/libgomp.c/reduction-14.c: New test.
5933 * testsuite/libgomp.c/reduction-15.c: New test.
5934 * testsuite/libgomp.c/target-12.c (main): Adjust for
5935 omp_target_is_present change for one-past-last element.
5936 * testsuite/libgomp.c/target-17.c (foo): Drop tests where
5937 the same var is both mapped and privatized.
5938 * testsuite/libgomp.c/target-19.c (foo): Adjust for different
5939 handling of zero-length array sections.
5940 * testsuite/libgomp.c/target-28.c: New test.
5941 * testsuite/libgomp.c/target-29.c: New test.
5942 * testsuite/libgomp.c/target-30.c: New test.
5943 * testsuite/libgomp.c/target-teams-1.c: New test.
5944 * testsuite/libgomp.c++/member-6.C: New test.
5945 * testsuite/libgomp.c++/member-7.C: New test.
5946 * testsuite/libgomp.c++/monotonic-1.C: New test.
5947 * testsuite/libgomp.c++/monotonic-2.C: New test.
5948 * testsuite/libgomp.c++/nonmonotonic-1.C: New test.
5949 * testsuite/libgomp.c++/nonmonotonic-2.C: New test.
5950 * testsuite/libgomp.c++/pr66199-3.C: New test.
5951 * testsuite/libgomp.c++/pr66199-4.C: New test.
5952 * testsuite/libgomp.c++/pr66199-5.C: New test.
5953 * testsuite/libgomp.c++/pr66199-6.C: New test.
5954 * testsuite/libgomp.c++/pr66199-7.C: New test.
5955 * testsuite/libgomp.c++/pr66199-8.C: New test.
5956 * testsuite/libgomp.c++/pr66199-9.C: New test.
5957 * testsuite/libgomp.c++/reduction-11.C: New test.
5958 * testsuite/libgomp.c++/reduction-12.C: New test.
5959 * testsuite/libgomp.c++/target-13.C: New test.
5960 * testsuite/libgomp.c++/target-14.C: New test.
5961 * testsuite/libgomp.c++/target-15.C: New test.
5962 * testsuite/libgomp.c++/target-16.C: New test.
5963 * testsuite/libgomp.c++/target-17.C: New test.
5964 * testsuite/libgomp.c++/target-18.C: New test.
5965 * testsuite/libgomp.c++/target-19.C: New test.
5966
5967 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5968
5969 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Fix dimensions
5970 and reduction copy.
5971 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
5972 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
5973 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
5974 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
5975 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: Likewise.
5976 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
5977 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
5978 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
5979 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
5980 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c: Likewise.
5981 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
5982 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
5983 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
5984 * testsuite/libgomp.oacc-c-c++-common/parallel-dims.c: New.
5985
5986 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
5987
5988 * libgomp.oacc-c-c++-common/loop-red-g-1.c: New.
5989 * libgomp.oacc-c-c++-common/loop-red-gwv-1.c: New.
5990 * libgomp.oacc-c-c++-common/loop-red-v-1.c: New.
5991 * libgomp.oacc-c-c++-common/loop-red-v-2.c: New.
5992 * libgomp.oacc-c-c++-common/loop-red-w-1.c: New.
5993 * libgomp.oacc-c-c++-common/loop-red-w-2.c: New.
5994 * libgomp.oacc-c-c++-common/loop-red-wv-1.c: New.
5995 * libgomp.oacc-fortran/reduction-5.f90: Avoid reference var.
5996
5997 2015-11-03 Nathan Sidwell <nathan@codesourcery.com>
5998
5999 * libgomp.h (struct acc_dispatch_t): Remove args from exec_func.
6000 * plugin/plugin-nvptx.c (nvptx_exec): Remove sizes & kinds arg.
6001 (GOMP_OFFLOAD_openacc_parallel): Likewise.
6002 * oacc-host.c (host_openacc_exec): Likewise.
6003 * oacc-parallel.c (GOACC_parallel_keyed): Adjust exec_func call.
6004
6005 2015-11-03 Julian Brown <julian@codesourcery.com>
6006 Thomas Schwinge <thomas@codesourcery.com>
6007
6008 * testsuite/libgomp.oacc-c-c++-common/par-reduction-1.c: New file.
6009 * testsuite/libgomp.oacc-c-c++-common/par-reduction-2.c: Likewise.
6010 * testsuite/libgomp.oacc-c-c++-common/worker-single-1a.c:
6011 Likewise.
6012 * testsuite/libgomp.oacc-c-c++-common/worker-single-4.c: Likewise.
6013 * testsuite/libgomp.oacc-c-c++-common/worker-single-6.c: Likewise.
6014
6015 2015-11-03 James Norris <jnorris@codesourcery.com>
6016
6017 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-1.c: New
6018 file.
6019 * testsuite/libgomp.oacc-c-c++-common/atomic_capture-2.c:
6020 Likewise.
6021 * testsuite/libgomp.oacc-c-c++-common/atomic_rw-1.c: Likewise.
6022 * testsuite/libgomp.oacc-c-c++-common/atomic_update-1.c: Likewise.
6023 * testsuite/libgomp.oacc-fortran/atomic_capture-1.f90: Likewise.
6024 * testsuite/libgomp.oacc-fortran/atomic_rw-1.f90: New file.
6025 * testsuite/libgomp.oacc-fortran/atomic_update-1.f90: Likewise.
6026
6027 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
6028
6029 * openacc.h (enum acc_device_t): Reformat. Ensure layout
6030 compatibility.
6031 (enum acc_async_t): Reformat.
6032 (acc_on_device): Declare compatible with builtin and provide C++
6033 wrapper.
6034 * testsuite/libgomp.oacc-c-c++-common/acc-on-device.c: New.
6035
6036 2015-10-29 Thomas Schwinge <thomas@codesourcery.com>
6037 Cesar Philippidis <cesar@codesourcery.com>
6038
6039 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: Rename to...
6040 * testsuite/libgomp.oacc-c-c++-common/combined-directives-1.c:
6041 ... this. Add a description of the test at the top of the file.
6042 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Rename file to...
6043 * testsuite/libgomp.oacc-fortran/combined-directives-1.f90:
6044 ... this. Add a description of the test at the top of the file.
6045
6046 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
6047
6048 * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c: New.
6049 * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c: New.
6050 * testsuite/libgomp.oacc-c-c++-common/loop-gwv-1.c: New.
6051 * testsuite/libgomp.oacc-c-c++-common/loop-v-1.c: New.
6052 * testsuite/libgomp.oacc-c-c++-common/loop-w-1.c: New.
6053 * testsuite/libgomp.oacc-c-c++-common/loop-wv-1.c: New.
6054
6055 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
6056
6057 * plugin/plugin-nvptx.c (nvptx_exec): Remove check on compute
6058 dimensions.
6059
6060 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
6061
6062 PR testsuite/68063
6063 * testsuite/libgomp.c++/member-1.C (A::m1): Add missing private clause.
6064
6065 2015-10-27 James Norris <jnorris@codesourcery.com>
6066
6067 * testsuite/libgomp.oacc-c-c++-common/combdir-1.c: New file.
6068 * testsuite/libgomp.oacc-fortran/combdir-1.f90: Likewise.
6069
6070 2015-10-26 Thomas Schwinge <thomas@codesourcery.com>
6071
6072 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Print to stderr.
6073 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6074
6075 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Remove explicit
6076 acc_device_nvidia usage.
6077 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
6078 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6079 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
6080
6081 * oacc-init.c (acc_shutdown): Call gomp_init_targets_once.
6082 * testsuite/libgomp.oacc-c-c++-common/lib-8.c: New file.
6083
6084 PR libgomp/66518
6085 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Resolve XFAIL.
6086
6087 PR libgomp/65437
6088 PR libgomp/66518
6089 * oacc-mem.c (update_dev_host): Call goacc_lazy_initialize.
6090 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Remove XFAIL.
6091
6092 2015-10-23 Tom de Vries <tom@codesourcery.com>
6093
6094 PR testsuite/68063
6095 * testsuite/libgomp.c++/member-2.C (A::m1): Add missing private clause.
6096
6097 2015-10-20 Nathan Sidwell <nathan@codesourcery.com>
6098
6099 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Set sane
6100 vector_length.
6101 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
6102
6103 2015-10-14 Ilya Verbin <ilya.verbin@intel.com>
6104 Aleksander Ivanushenko <aleksander.ivanushenko@intel.com>
6105
6106 * target.c (gomp_map_vars): Initialize tgt->tgt_start and tgt->tgt_end
6107 to 0 when mapnum is 0.
6108
6109 2015-10-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
6110
6111 * fortran.c (omp_get_place_proc_ids_, omp_get_partition_place_nums_):
6112 Cast to int from int32_t.
6113
6114 2015-10-13 Jakub Jelinek <jakub@redhat.com>
6115 Aldy Hernandez <aldyh@redhat.com>
6116 Ilya Verbin <ilya.verbin@intel.com>
6117
6118 * config/linux/affinity.c (omp_get_place_num_procs,
6119 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6120 * config/linux/doacross.h: New file.
6121 * config/posix/affinity.c (omp_get_place_num_procs,
6122 omp_get_place_proc_ids, gomp_get_place_proc_ids_8): New functions.
6123 * config/posix/doacross.h: New file.
6124 * env.c: Include gomp-constants.h.
6125 (struct gomp_task_icv): Rename run_sched_modifier to
6126 run_sched_chunk_size.
6127 (gomp_max_task_priority_var): New variable.
6128 (parse_schedule): Rename run_sched_modifier to run_sched_chunk_size.
6129 (handle_omp_display_env): Change _OPENMP value from 201307 to
6130 201511. Print OMP_MAX_TASK_PRIORITY.
6131 (initialize_env): Parse OMP_MAX_TASK_PRIORITY.
6132 (omp_set_schedule, omp_get_schedule): Rename modifier argument to
6133 chunk_size and run_sched_modifier to run_sched_chunk_size.
6134 (omp_get_max_task_priority, omp_get_initial_device,
6135 omp_get_num_places, omp_get_place_num, omp_get_partition_num_places,
6136 omp_get_partition_place_nums): New functions.
6137 * fortran.c (omp_set_schedule_, omp_set_schedule_8_,
6138 omp_get_schedule_, omp_get_schedule_8_): Rename modifier argument
6139 to chunk_size.
6140 (omp_get_num_places_, omp_get_place_num_procs_,
6141 omp_get_place_num_procs_8_, omp_get_place_proc_ids_,
6142 omp_get_place_proc_ids_8_, omp_get_place_num_,
6143 omp_get_partition_num_places_, omp_get_partition_place_nums_,
6144 omp_get_partition_place_nums_8_, omp_get_initial_device_,
6145 omp_get_max_task_priority_): New functions.
6146 * libgomp_g.h (GOMP_loop_doacross_static_start,
6147 GOMP_loop_doacross_dynamic_start, GOMP_loop_doacross_guided_start,
6148 GOMP_loop_doacross_runtime_start, GOMP_loop_ull_doacross_static_start,
6149 GOMP_loop_ull_doacross_dynamic_start,
6150 GOMP_loop_ull_doacross_guided_start,
6151 GOMP_loop_ull_doacross_runtime_start, GOMP_doacross_post,
6152 GOMP_doacross_wait, GOMP_doacross_ull_post, GOMP_doacross_wait,
6153 GOMP_taskloop, GOMP_taskloop_ull, GOMP_target_41,
6154 GOMP_target_data_41, GOMP_target_update_41,
6155 GOMP_target_enter_exit_data): New prototypes.
6156 (GOMP_task): Add prototype argument.
6157 * libgomp.h (_LIBGOMP_CHECKING_): Define to 0 if not yet defined.
6158 (struct gomp_doacross_work_share): New type.
6159 (struct gomp_work_share): Add doacross field.
6160 (struct gomp_task_icv): Rename run_sched_modifier to
6161 run_sched_chunk_size.
6162 (enum gomp_task_kind): Rename GOMP_TASK_IFFALSE to
6163 GOMP_TASK_UNDEFERRED. Add comments.
6164 (struct gomp_task_depend_entry): Add comments.
6165 (struct gomp_task): Likewise.
6166 (struct gomp_taskgroup): Likewise.
6167 (struct gomp_target_task): New type.
6168 (struct gomp_team): Add comment.
6169 (gomp_get_place_proc_ids_8, gomp_doacross_init,
6170 gomp_doacross_ull_init, gomp_task_maybe_wait_for_dependencies,
6171 gomp_create_target_task, gomp_target_task_fn): New prototypes.
6172 (struct target_var_desc): New type.
6173 (struct target_mem_desc): Adjust comment. Use struct
6174 target_var_desc instead of splay_tree_key for list.
6175 (REFCOUNT_INFINITY): Define.
6176 (struct splay_tree_key_s): Remove copy_from field.
6177 (struct gomp_device_descr): Add dev2dev_func field.
6178 (enum gomp_map_vars_kind): New enum.
6179 (gomp_map_vars): Add one argument.
6180 * libgomp.map (OMP_4.5): Export omp_get_max_task_priority,
6181 omp_get_max_task_priority_, omp_get_num_places, omp_get_num_places_,
6182 omp_get_place_num_procs, omp_get_place_num_procs_,
6183 omp_get_place_num_procs_8_, omp_get_place_proc_ids,
6184 omp_get_place_proc_ids_, omp_get_place_proc_ids_8_, omp_get_place_num,
6185 omp_get_place_num_, omp_get_partition_num_places,
6186 omp_get_partition_num_places_, omp_get_partition_place_nums,
6187 omp_get_partition_place_nums_, omp_get_partition_place_nums_8_,
6188 omp_get_initial_device, omp_get_initial_device_, omp_target_alloc,
6189 omp_target_free, omp_target_is_present, omp_target_memcpy,
6190 omp_target_memcpy_rect, omp_target_associate_ptr and
6191 omp_target_disassociate_ptr.
6192 (GOMP_4.0.2): Renamed to ...
6193 (GOMP_4.5): ... this. Export GOMP_target_41, GOMP_target_data_41,
6194 GOMP_target_update_41, GOMP_target_enter_exit_data, GOMP_taskloop,
6195 GOMP_taskloop_ull, GOMP_loop_doacross_dynamic_start,
6196 GOMP_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6197 GOMP_loop_doacross_static_start, GOMP_doacross_post,
6198 GOMP_doacross_wait, GOMP_loop_ull_doacross_dynamic_start,
6199 GOMP_loop_ull_doacross_guided_start,
6200 GOMP_loop_ull_doacross_runtime_start,
6201 GOMP_loop_ull_doacross_static_start, GOMP_doacross_ull_post and
6202 GOMP_doacross_ull_wait.
6203 * libgomp.texi: Document omp_get_max_task_priority.
6204 Rename modifier argument to chunk_size for omp_set_schedule and
6205 omp_get_schedule. Document OMP_MAX_TASK_PRIORITY env var.
6206 * loop.c (GOMP_loop_runtime_start): Adjust for run_sched_modifier
6207 to run_sched_chunk_size renaming.
6208 (GOMP_loop_ordered_runtime_start): Likewise.
6209 (gomp_loop_doacross_static_start, gomp_loop_doacross_dynamic_start,
6210 gomp_loop_doacross_guided_start, GOMP_loop_doacross_runtime_start,
6211 GOMP_parallel_loop_runtime_start): New functions.
6212 (GOMP_parallel_loop_runtime): Adjust for run_sched_modifier
6213 to run_sched_chunk_size renaming.
6214 (GOMP_loop_doacross_static_start, GOMP_loop_doacross_dynamic_start,
6215 GOMP_loop_doacross_guided_start): New functions or aliases.
6216 * loop_ull.c (GOMP_loop_ull_runtime_start): Adjust for
6217 run_sched_modifier to run_sched_chunk_size renaming.
6218 (GOMP_loop_ull_ordered_runtime_start): Likewise.
6219 (gomp_loop_ull_doacross_static_start,
6220 gomp_loop_ull_doacross_dynamic_start,
6221 gomp_loop_ull_doacross_guided_start,
6222 GOMP_loop_ull_doacross_runtime_start): New functions.
6223 (GOMP_loop_ull_doacross_static_start,
6224 GOMP_loop_ull_doacross_dynamic_start,
6225 GOMP_loop_ull_doacross_guided_start): New functions or aliases.
6226 * oacc-mem.c (acc_map_data, present_create_copy,
6227 gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false
6228 to gomp_map_vars.
6229 (gomp_acc_remove_pointer): Use copy_from from target_var_desc.
6230 * oacc-parallel.c (GOACC_data_start): Pass GOMP_MAP_VARS_OPENACC
6231 instead of false to gomp_map_vars.
6232 (GOACC_parallel_keyed): Likewise. Use copy_from from target_var_desc.
6233 * omp.h.in (omp_lock_hint_t): New type.
6234 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6235 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6236 omp_get_place_num, omp_get_partition_num_places,
6237 omp_get_partition_place_nums, omp_get_initial_device,
6238 omp_get_max_task_priority, omp_target_alloc, omp_target_free,
6239 omp_target_is_present, omp_target_memcpy, omp_target_memcpy_rect,
6240 omp_target_associate_ptr, omp_target_disassociate_ptr): New
6241 prototypes.
6242 * omp_lib.f90.in (omp_lock_hint_kind): New parameter.
6243 (omp_lock_hint_none, omp_lock_hint_uncontended,
6244 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6245 omp_lock_hint_speculative): New parameters.
6246 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6247 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6248 omp_get_place_num, omp_get_partition_num_places,
6249 omp_get_partition_place_nums, omp_get_initial_device,
6250 omp_get_max_task_priority): New interfaces.
6251 (omp_set_schedule, omp_get_schedule): Rename modifier argument
6252 to chunk_size.
6253 * omp_lib.h.in (omp_lock_hint_kind): New parameter.
6254 (omp_lock_hint_none, omp_lock_hint_uncontended,
6255 omp_lock_hint_contended, omp_lock_hint_nonspeculative,
6256 omp_lock_hint_speculative): New parameters.
6257 (omp_init_lock_with_hint, omp_init_nest_lock_with_hint,
6258 omp_get_num_places, omp_get_place_num_procs, omp_get_place_proc_ids,
6259 omp_get_place_num, omp_get_partition_num_places,
6260 omp_get_partition_place_nums, omp_get_initial_device,
6261 omp_get_max_task_priority): New functions and subroutines.
6262 * ordered.c: Include stdarg.h and string.h.
6263 (MAX_COLLAPSED_BITS): Define.
6264 (gomp_doacross_init, GOMP_doacross_post, GOMP_doacross_wait,
6265 gomp_doacross_ull_init, GOMP_doacross_ull_post,
6266 GOMP_doacross_ull_wait): New functions.
6267 * target.c: Include errno.h.
6268 (resolve_device): If device is not initialized, call
6269 gomp_init_device on it.
6270 (gomp_map_lookup): New function.
6271 (gomp_map_vars_existing): Add tgt_var argument, fill it in.
6272 Don't bump refcount if REFCOUNT_INFINITY. Handle
6273 GOMP_MAP_ALWAYS_TO_P.
6274 (get_kind): Rename is_openacc argument to short_mapkind.
6275 (gomp_map_pointer): Use gomp_map_lookup.
6276 (gomp_map_fields_existing): New function.
6277 (gomp_map_vars): Rename is_openacc argument to short_mapkind
6278 and is_target to pragma_kind. Handle GOMP_MAP_VARS_ENTER_DATA,
6279 handle GOMP_MAP_FIRSTPRIVATE_INT, GOMP_MAP_STRUCT,
6280 GOMP_MAP_USE_DEVICE_PTR, GOMP_MAP_ZERO_LEN_ARRAY_SECTION.
6281 Adjust for tgt->list changed type and copy_from living in there.
6282 (gomp_copy_from_async): Adjust for tgt->list changed type and
6283 copy_from living in there.
6284 (gomp_unmap_vars): Likewise.
6285 (gomp_update): Likewise. Rename is_openacc argument to
6286 short_mapkind. Don't fail if object is not mapped.
6287 (gomp_load_image_to_device): Initialize refcount to
6288 REFCOUNT_INFINITY.
6289 (gomp_target_fallback): New function.
6290 (gomp_get_target_fn_addr): Likewise.
6291 (GOMP_target): Adjust gomp_map_vars caller, use
6292 gomp_get_target_fn_addr and gomp_target_fallback.
6293 (GOMP_target_41): New function.
6294 (gomp_target_data_fallback): New function.
6295 (GOMP_target_data): Use it, adjust gomp_map_vars caller.
6296 (GOMP_target_data_41): New function.
6297 (GOMP_target_update): Adjust gomp_update caller.
6298 (GOMP_target_update_41): New function.
6299 (gomp_exit_data, GOMP_target_enter_exit_data,
6300 gomp_target_task_fn, omp_target_alloc, omp_target_free,
6301 omp_target_is_present, omp_target_memcpy,
6302 omp_target_memcpy_rect_worker, omp_target_memcpy_rect,
6303 omp_target_associate_ptr, omp_target_disassociate_ptr,
6304 gomp_load_plugin_for_device): New functions.
6305 * task.c: Include gomp-constants.h. Include taskloop.c
6306 twice to get GOMP_taskloop and GOMP_taskloop_ull definitions.
6307 (gomp_task_handle_depend): New function.
6308 (GOMP_task): Use it. Add priority argument. Use
6309 gomp-constant.h constants instead of hardcoded numbers.
6310 Rename GOMP_TASK_IFFALSE to GOMP_TASK_UNDEFERRED.
6311 (gomp_create_target_task): New function.
6312 (verify_children_queue, verify_taskgroup_queue,
6313 verify_task_queue): New functions.
6314 (gomp_task_run_pre): Call verify_*_queue functions.
6315 If an upcoming tied task is about to leave the sibling or
6316 taskgroup queues in an invalid state, adjust appropriately.
6317 Remove taskgroup argument. Add comments.
6318 (gomp_task_run_post_handle_dependers): Add comments.
6319 (gomp_task_run_post_remove_parent): Likewise.
6320 (gomp_barrier_handle_tasks): Adjust gomp_task_run_pre caller.
6321 (GOMP_taskwait): Likewise. Add comments.
6322 (gomp_task_maybe_wait_for_dependencies): Fix scheduling
6323 problem such that the first non parent_depends_on task does not
6324 end up at the end of the children queue.
6325 (GOMP_taskgroup_start): Rename GOMP_TASK_IFFALSE to
6326 GOMP_TASK_UNDEFERRED.
6327 (GOMP_taskgroup_end): Adjust gomp_task_run_pre caller.
6328 * taskloop.c: New file.
6329 * testsuite/lib/libgomp.exp
6330 (check_effective_target_offload_device_nonshared_as): New proc.
6331 * testsuite/libgomp.c/affinity-2.c: New test.
6332 * testsuite/libgomp.c/doacross-1.c: New test.
6333 * testsuite/libgomp.c/doacross-2.c: New test.
6334 * testsuite/libgomp.c/examples-4/declare_target-1.c (fib_wrapper):
6335 Add map clause to target.
6336 * testsuite/libgomp.c/examples-4/declare_target-4.c (accum): Likewise.
6337 * testsuite/libgomp.c/examples-4/declare_target-5.c (accum): Likewise.
6338 * testsuite/libgomp.c/examples-4/device-1.c (main): Likewise.
6339 * testsuite/libgomp.c/examples-4/device-3.c (main): Likewise.
6340 * testsuite/libgomp.c/examples-4/target_data-3.c (gramSchmidt):
6341 Likewise.
6342 * testsuite/libgomp.c/examples-4/teams-2.c (dotprod): Likewise.
6343 * testsuite/libgomp.c/examples-4/teams-3.c (dotprod): Likewise.
6344 * testsuite/libgomp.c/examples-4/teams-4.c (dotprod): Likewise.
6345 * testsuite/libgomp.c/for-2.h (OMPTGT, OMPTO, OMPFROM): Define if
6346 not defined. Use those where needed.
6347 * testsuite/libgomp.c/for-4.c: New test.
6348 * testsuite/libgomp.c/for-5.c: New test.
6349 * testsuite/libgomp.c/for-6.c: New test.
6350 * testsuite/libgomp.c/linear-1.c: New test.
6351 * testsuite/libgomp.c/ordered-4.c: New test.
6352 * testsuite/libgomp.c/pr66199-2.c (f2): Adjust for linear clause
6353 only allowed on the loop iterator.
6354 * testsuite/libgomp.c/pr66199-3.c: New test.
6355 * testsuite/libgomp.c/pr66199-4.c: New test.
6356 * testsuite/libgomp.c/reduction-7.c: New test.
6357 * testsuite/libgomp.c/reduction-8.c: New test.
6358 * testsuite/libgomp.c/reduction-9.c: New test.
6359 * testsuite/libgomp.c/reduction-10.c: New test.
6360 * testsuite/libgomp.c/target-1.c (fn2, fn3, fn4): Add
6361 map(tofrom:s).
6362 * testsuite/libgomp.c/target-2.c (fn2, fn3, fn4): Likewise.
6363 * testsuite/libgomp.c/target-7.c (foo): Add map(h) where needed.
6364 * testsuite/libgomp.c/target-11.c: New test.
6365 * testsuite/libgomp.c/target-12.c: New test.
6366 * testsuite/libgomp.c/target-13.c: New test.
6367 * testsuite/libgomp.c/target-14.c: New test.
6368 * testsuite/libgomp.c/target-15.c: New test.
6369 * testsuite/libgomp.c/target-16.c: New test.
6370 * testsuite/libgomp.c/target-17.c: New test.
6371 * testsuite/libgomp.c/target-18.c: New test.
6372 * testsuite/libgomp.c/target-19.c: New test.
6373 * testsuite/libgomp.c/target-20.c: New test.
6374 * testsuite/libgomp.c/target-21.c: New test.
6375 * testsuite/libgomp.c/target-22.c: New test.
6376 * testsuite/libgomp.c/target-23.c: New test.
6377 * testsuite/libgomp.c/target-24.c: New test.
6378 * testsuite/libgomp.c/target-25.c: New test.
6379 * testsuite/libgomp.c/target-26.c: New test.
6380 * testsuite/libgomp.c/target-27.c: New test.
6381 * testsuite/libgomp.c/taskloop-1.c: New test.
6382 * testsuite/libgomp.c/taskloop-2.c: New test.
6383 * testsuite/libgomp.c/taskloop-3.c: New test.
6384 * testsuite/libgomp.c/taskloop-4.c: New test.
6385 * testsuite/libgomp.c++/ctor-13.C: New test.
6386 * testsuite/libgomp.c++/doacross-1.C: New test.
6387 * testsuite/libgomp.c++/examples-4/declare_target-2.C:
6388 Replace offload_device with offload_device_nonshared_as.
6389 * testsuite/libgomp.c++/for-12.C: New test.
6390 * testsuite/libgomp.c++/for-13.C: New test.
6391 * testsuite/libgomp.c++/for-14.C: New test.
6392 * testsuite/libgomp.c++/linear-1.C: New test.
6393 * testsuite/libgomp.c++/member-1.C: New test.
6394 * testsuite/libgomp.c++/member-2.C: New test.
6395 * testsuite/libgomp.c++/member-3.C: New test.
6396 * testsuite/libgomp.c++/member-4.C: New test.
6397 * testsuite/libgomp.c++/member-5.C: New test.
6398 * testsuite/libgomp.c++/ordered-1.C: New test.
6399 * testsuite/libgomp.c++/reduction-5.C: New test.
6400 * testsuite/libgomp.c++/reduction-6.C: New test.
6401 * testsuite/libgomp.c++/reduction-7.C: New test.
6402 * testsuite/libgomp.c++/reduction-8.C: New test.
6403 * testsuite/libgomp.c++/reduction-9.C: New test.
6404 * testsuite/libgomp.c++/reduction-10.C: New test.
6405 * testsuite/libgomp.c++/reference-1.C: New test.
6406 * testsuite/libgomp.c++/simd14.C: New test.
6407 * testsuite/libgomp.c++/target-2.C (fn2): Add map(tofrom: s) clause.
6408 * testsuite/libgomp.c++/target-5.C: New test.
6409 * testsuite/libgomp.c++/target-6.C: New test.
6410 * testsuite/libgomp.c++/target-7.C: New test.
6411 * testsuite/libgomp.c++/target-8.C: New test.
6412 * testsuite/libgomp.c++/target-9.C: New test.
6413 * testsuite/libgomp.c++/target-10.C: New test.
6414 * testsuite/libgomp.c++/target-11.C: New test.
6415 * testsuite/libgomp.c++/target-12.C: New test.
6416 * testsuite/libgomp.c++/taskloop-1.C: New test.
6417 * testsuite/libgomp.c++/taskloop-2.C: New test.
6418 * testsuite/libgomp.c++/taskloop-3.C: New test.
6419 * testsuite/libgomp.c++/taskloop-4.C: New test.
6420 * testsuite/libgomp.c++/taskloop-5.C: New test.
6421 * testsuite/libgomp.c++/taskloop-6.C: New test.
6422 * testsuite/libgomp.c++/taskloop-7.C: New test.
6423 * testsuite/libgomp.c++/taskloop-8.C: New test.
6424 * testsuite/libgomp.c++/taskloop-9.C: New test.
6425 * testsuite/libgomp.fortran/affinity1.f90: New test.
6426 * testsuite/libgomp.fortran/affinity2.f90: New test.
6427
6428 2015-10-13 Tom de Vries <tom@codesourcery.com>
6429
6430 PR tree-optimization/67476
6431 * testsuite/libgomp.c/autopar-3.c: New test.
6432 * testsuite/libgomp.c/autopar-4.c: New test.
6433 * testsuite/libgomp.c/autopar-5.c: New test.
6434 * testsuite/libgomp.c/autopar-6.c: New test.
6435 * testsuite/libgomp.c/autopar-7.c: New test.
6436 * testsuite/libgomp.c/autopar-8.c: New test.
6437
6438 2015-10-12 James Norris <jnorris@codesourcery.com>
6439
6440 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: Fix loop
6441 initializer.
6442
6443 2015-10-09 David Malcolm <dmalcolm@redhat.com>
6444
6445 * testsuite/lib/libgomp.exp: Load multiline.exp before prune.exp,
6446 using load_gcc_lib.
6447
6448 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
6449
6450 * oacc-ptx.h: Remove file, moving its content into...
6451 * config/nvptx/fortran.c: ... here...
6452 * config/nvptx/oacc-init.c: ..., here...
6453 * config/nvptx/oacc-parallel.c: ..., and here.
6454 * config/nvptx/openacc.f90: New file.
6455 * plugin/plugin-nvptx.c: Don't include "oacc-ptx.h".
6456 (link_ptx): Don't link in predefined bits of PTX code.
6457
6458 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
6459 Bernd Schmidt <bernds@codesourcery.com>
6460
6461 * plugin/plugin-nvptx.c (targ_fn_launch): Use GOMP_DIM_MAX.
6462 (struct targ_ptx_obj): New.
6463 (nvptx_tdata): Move earlier, change data format.
6464 (link_ptx): Take targ_ptx_obj ptr and count. Allow multiple
6465 objects.
6466 (GOMP_OFFLOAD_load_image): Adjust.
6467
6468 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
6469
6470 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Add checkpoint.
6471 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
6472 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
6473 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
6474 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
6475 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
6476 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
6477 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
6478 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
6479 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
6480 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
6481 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
6482 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
6483 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
6484 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
6485 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
6486 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
6487 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
6488 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
6489 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
6490 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
6491 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
6492 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
6493 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
6494 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
6495 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
6496 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
6497 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
6498 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
6499 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
6500 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
6501 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
6502 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
6503 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
6504 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
6505 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
6506 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
6507 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
6508 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
6509 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
6510 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
6511 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
6512 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
6513 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
6514 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
6515 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
6516 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
6517 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
6518 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
6519 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
6520 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
6521 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
6522 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
6523 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
6524 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
6525 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
6526 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
6527 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
6528 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
6529 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
6530 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
6531 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
6532 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
6533
6534 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6535
6536 * oacc-init.c (acc_on_device): Force optimization level.
6537
6538 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
6539
6540 * plugin/plugin-nvptx.c (ARRAYSIZE): Delete.
6541 (cuda_errlist): Delete.
6542 (cuda_error): Reimplement.
6543
6544 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
6545
6546 * libgomp.h (acc_dispatch_t): Replace separate geometry args with
6547 array.
6548 * libgomp.map (GOACC_parallel_keyed): New.
6549 * oacc-parallel.c (goacc_wait): Take pointer to va_list. Adjust
6550 all callers.
6551 (GOACC_parallel_keyed): New interface. Lose geometry arguments
6552 and take keyed varargs list. Adjust call to exec_func.
6553 (GOACC_parallel): Force host fallback.
6554 * libgomp_g.h (GOACC_parallel): Remove.
6555 (GOACC_parallel_keyed): Declare.
6556 * plugin/plugin-nvptx.c (struct targ_fn_launch): New struct.
6557 (struct targ_gn_descriptor): Replace name field with launch field.
6558 (nvptx_exec): Lose separate geometry args, take array. Process
6559 dynamic dimensions and adjust.
6560 (struct nvptx_tdata): Replace fn_names field with fn_descs.
6561 (GOMP_OFFLOAD_load_image): Adjust for change in function table
6562 data.
6563 (GOMP_OFFLOAD_openacc_parallel): Adjust for change in dimension
6564 passing.
6565 * oacc-host.c (host_openacc_exec): Adjust for change in dimension
6566 passing.
6567
6568 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
6569
6570 PR libgomp/67141
6571 * oacc-int.h (goacc_host_init): Add declaration.
6572 * oacc-host.c (goacc_host_init): Remove static and constructor attribute.
6573 * oacc-init.c (goacc_runtime_initialize): Call goacc_host_init() at end.
6574
6575 2015-09-08 Aditya Kumar <hiraditya@msn.com>
6576 Sebastian Pop <s.pop@samsung.com>
6577
6578 * testsuite/libgomp.graphite/bounds.c (int foo): Modified test case to
6579 match o/p.
6580 * testsuite/libgomp.graphite/force-parallel-1.c (void parloop): Same.
6581 * testsuite/libgomp.graphite/force-parallel-4.c: Same.
6582 * testsuite/libgomp.graphite/force-parallel-5.c: Same.
6583 * testsuite/libgomp.graphite/force-parallel-7.c: Same.
6584 * testsuite/libgomp.graphite/force-parallel-8.c: Same.
6585
6586 2015-09-03 Jakub Jelinek <jakub@redhat.com>
6587
6588 * configure.tgt: Add missing ;; in between nvptx and rtems
6589 snippets.
6590
6591 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6592
6593 * config/posix/pool.h (gomp_adjust_thread_attr): New.
6594 * config/rtems/pool.h (gomp_adjust_thread_attr): Likewise.
6595 (gomp_thread_pool_reservoir): Add priority member.
6596 * confi/rtems/proc.c (allocate_thread_pool_reservoir): Add
6597 priority.
6598 (parse_thread_pools): Likewise.
6599 * team.c (gomp_team_start): Call configuration provided
6600 gomp_adjust_thread_attr(). Destroy thread attributes if
6601 necessary.
6602 * libgomp.texi: Document GOMP_RTEMS_THREAD_POOLS.
6603
6604 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6605
6606 * config/posix/pool.h: New.
6607 * config/rtems/pool.h: Likewise.
6608 * config/rtems/proc.c: Likewise.
6609 * libgomp.h (gomp_thread_destructor): Declare.
6610 * team.c: Include configuration provided "pool.h".
6611 (gomp_get_thread_pool): Define in configuration.
6612 (gomp_team_end): Call configuration defined
6613 gomp_release_thread_pool().
6614
6615 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6616
6617 * config/rtems/bar.c: New.
6618 * config/rtems/bar.h: Likewise.
6619 * config/rtems/mutex.c: Likewise.
6620 * config/rtems/mutex.h: Likewise.
6621 * config/rtems/sem.c: Likewise.
6622 * config/rtems/sem.h: Likewise.
6623 * configure.ac (*-*-rtems*): Check that Newlib provides a proper
6624 <sys/lock.h> header file.
6625 * configure.tgt (*-*-rtems*): Enable RTEMS configuration if
6626 supported by Newlib.
6627 * configure: Regenerate.
6628
6629 2015-09-03 Sebastian Huber <sebastian.huber@embedded-brains.de>
6630
6631 * team.c (gomp_new_thread_pool): Delete and move content to ...
6632 (gomp_get_thread_pool): ... new function. Allocate and
6633 initialize thread pool on demand.
6634 (get_last_team): Use gomp_get_thread_pool().
6635 (gomp_team_start): Delete thread pool initialization.
6636
6637 2015-09-03 Tom de Vries <tom@codesourcery.com>
6638
6639 PR tree-optimization/65637
6640 * testsuite/libgomp.c/autopar-2.c: New test.
6641
6642 2015-08-29 Tom de Vries <tom@codesourcery.com>
6643
6644 PR tree-optimization/46193
6645 * testsuite/libgomp.c/pr46193.c: New test.
6646
6647 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
6648
6649 libgomp/
6650 * libgomp.map: Add 4.0.2 version.
6651 * target.c (offload_image_descr): Add version field.
6652 (gomp_load_image_to_device): Add version argument. Adjust plugin
6653 call. Improve load mismatch diagnostic.
6654 (gomp_unload_image_from_device): Add version argument. Adjust plugin
6655 call.
6656 (GOMP_offload_regster): Make stub function, move bulk to ...
6657 (GOMP_offload_register_ver): ... here. Process version argument.
6658 (GOMP_offload_unregister): Make stub function, move bulk to ...
6659 (GOMP_offload_unregister_ver): ... here. Process version argument.
6660 (gomp_init_device): Process version field.
6661 (gomp_unload_device): Process version field.
6662 (gomp_load_plugin_for_device): Reimplement DLSYM & DLSYM_OPT
6663 macros. Check plugin version.
6664 * libgomp.h (gomp_device_descr): Add version function field. Adjust
6665 loader and unloader types.
6666 * oacc-host.c: Include gomp-constants.h.
6667 (host_version): New.
6668 (host_load_image, host_unload_image): Adjust.
6669 (host_dispatch): Add host_version.
6670 * plugin/plugin-nvptx.c: Include gomp-constants.h.
6671 (GOMP_OFFLOAD_version): New.
6672 (GOMP_OFFLOAD_load_image): Add version arg and check it.
6673 (GOMP_OFFLOAD_unload_image): Likewise.
6674 * plugin/plugin-host.c: Include gomp-constants.h.
6675 (GOMP_OFFLOAD_version): New.
6676 (GOMP_OFFLOAD_load_image): Add version arg.
6677 (GOMP_OFFLOAD_unload_image): Likewise.
6678
6679 2015-08-24 Tom de Vries <tom@codesourcery.com>
6680
6681 PR tree-optimization/65468
6682 * testsuite/libgomp.oacc-c-c++-common/vector-loop.c: New test.
6683
6684 2015-08-24 Tom de Vries <tom@codesourcery.com>
6685
6686 PR tree-optimization/65468
6687 * testsuite/libgomp.c/static-chunk-size-one.c: New test.
6688
6689 2015-08-24 Joost VandeVondele <vondele@gnu.gcc.org>
6690
6691 PR libgomp/66761
6692 PR libgomp/67303
6693 * iter.c (gomp_iter_dynamic_next): Employ an atomic load.
6694 (gomp_iter_guided_next): Idem.
6695 * iter_ull.c (gomp_iter_ull_dynamic_next): Idem.
6696 (gomp_iter_ull_guided_next): Idem.
6697 * config/linux/wait.h (do_spin): Idem.
6698
6699 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6700
6701 * libgomp-plugin.h (enum offload_target_type): Remove
6702 OFFLOAD_TARGET_TYPE_HOST_NONSHM.
6703 * openacc.f90 (openacc_kinds): Remove acc_device_host_nonshm.
6704 * openacc.h (enum acc_device_t): Likewise.
6705 * openacc_lib.h: Likewise.
6706 * oacc-init.c (name_of_acc_device_t): Don't handle it.
6707 (acc_on_device): Just use __builtin_acc_on_device.
6708 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Don't forbid usage
6709 of acc_on_device builtin.
6710 * plugin/plugin-host.h: Remove file.
6711 * plugin/plugin-host.c: Likewise, but salvage some content into...
6712 * oacc-host.c: ... this file.
6713 * plugin/Makefrag.am: Don't build libgomp-plugin-host_nonshm.la.
6714 * plugin/configfrag.ac (offload_targets): Don't add host_nonshm.
6715 * Makefile.in: Regenerate.
6716 * configure: Likewise.
6717 * testsuite/lib/libgomp.exp
6718 (check_effective_target_openacc_host_nonshm_selected): Remove.
6719 * testsuite/libgomp.oacc-c++/c++.exp: Don't handle
6720 ACC_DEVICE_TYPE=host_nonshm.
6721 * testsuite/libgomp.oacc-c/c.exp: Likewise.
6722 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
6723 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
6724 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
6725 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
6726 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
6727
6728 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6729 Jakub Jelinek <jakub@redhat.com>
6730
6731 * config/nvptx/affinity.c: New file.
6732 * config/nvptx/alloc.c: Likewise.
6733 * config/nvptx/bar.c: Likewise.
6734 * config/nvptx/barrier.c: Likewise.
6735 * config/nvptx/critical.c: Likewise.
6736 * config/nvptx/env.c: Likewise.
6737 * config/nvptx/error.c: Likewise.
6738 * config/nvptx/fortran.c: Likewise.
6739 * config/nvptx/iter.c: Likewise.
6740 * config/nvptx/iter_ull.c: Likewise.
6741 * config/nvptx/libgomp-plugin.c: Likewise.
6742 * config/nvptx/lock.c: Likewise.
6743 * config/nvptx/loop.c: Likewise.
6744 * config/nvptx/loop_ull.c: Likewise.
6745 * config/nvptx/mutex.c: Likewise.
6746 * config/nvptx/oacc-async.c: Likewise.
6747 * config/nvptx/oacc-cuda.c: Likewise.
6748 * config/nvptx/oacc-host.c: Likewise.
6749 * config/nvptx/oacc-init.c: Likewise.
6750 * config/nvptx/oacc-mem.c: Likewise.
6751 * config/nvptx/oacc-parallel.c: Likewise.
6752 * config/nvptx/oacc-plugin.c: Likewise.
6753 * config/nvptx/omp-lock.h: Likewise.
6754 * config/nvptx/ordered.c: Likewise.
6755 * config/nvptx/parallel.c: Likewise.
6756 * config/nvptx/proc.c: Likewise.
6757 * config/nvptx/ptrlock.c: Likewise.
6758 * config/nvptx/sections.c: Likewise.
6759 * config/nvptx/sem.c: Likewise.
6760 * config/nvptx/single.c: Likewise.
6761 * config/nvptx/splay-tree.c: Likewise.
6762 * config/nvptx/target.c: Likewise.
6763 * config/nvptx/task.c: Likewise.
6764 * config/nvptx/team.c: Likewise.
6765 * config/nvptx/time.c: Likewise.
6766 * config/nvptx/work.c: Likewise.
6767 * configure.ac: Don't probe pthreads support for host nvptx*-*-*.
6768 * configure: Regenerate.
6769 * configure.tgt (config_path): Set to "nvptx" for target
6770 nvptx*-*-*.
6771
6772 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
6773
6774 * testsuite/libgomp.oacc-c-c++-common/vector-type-1.c: New file.
6775
6776 2015-08-03 Nathan Sidwell <nathan@codesourcery.com>
6777
6778 * plugin/plugin-nvptx.c: Don't include dlfcn.h.
6779 (cuda_errlist): Constify.
6780 (errmsg): Move into ...
6781 (cuda_error): ... here. Make smaller.
6782 (_XSTR, _STR): Delete.
6783 (cuda_synames): Delete.
6784 (verify_device_library): Delete.
6785 (nvptx_init): Don't call it.
6786
6787 2015-07-28 Tom de Vries <tom@codesourcery.com>
6788
6789 * testsuite/libgomp.c/uns-outer-4.c: New test.
6790
6791 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
6792
6793 * testsuite/libgomp.c/pr66714.c: New test.
6794
6795 2015-07-22 Maxim Blumenthal <maxim.blumenthal@intel.com>
6796
6797 PR libgomp/66950
6798 * testsuite/libgomp.c/examples-4/simd-7.c (N): Change to 30 from 45.
6799 (fib_ref): New function.
6800 (fib): Correct corner cases in the recursion.
6801 (main): Replace the non-simd loop with fib_ref call.
6802 * testsuite/libgomp.fortran/examples-4/simd-7.f90: (fib_ref): New
6803 subroutine.
6804 (fibonacci): Lower the parameter N to 30. Correct accordingly check
6805 for the last array element value. Replace the non-simd loop with
6806 fib_ref call. Remove redundant b_ref array. Remove the comparison
6807 of the last array element with according Fibonacci sequence element.
6808 (fib): Correct corner cases in the recursion.
6809
6810 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
6811
6812 * target.c (gomp_offload_image_to_device): Rename to ...
6813 (gomp_load_image_to_device): ... here.
6814 (GOMP_offload_register): Adjust call.
6815 (gomp_init_device): Likewise.
6816 (gomp_unload_image_from_device): New. Broken out of ...
6817 (GOMP_offload_unregister): ... here. Call it.
6818 (gomp_unload_device): New.
6819 * libgomp.h (gomp_unload_device): Declare.
6820 * oacc-init.c (acc_shutdown_1): Unload from device before deleting
6821 mem maps.
6822
6823 2015-07-20 Nathan Sidwell <nathan@codesourcery.com>
6824
6825 * oacc-parallel.c (GOACC_parallel): Move variadic handling into
6826 wait=-specific if.
6827 (GOACC_enter_exit_data, GOACC_update): Use consistent num_waits
6828 !=0 condition.
6829 (goacc_waits): Move !num_waits handling to ...
6830 (GOACC_wait): ... here, the only caller that might have zero waits.
6831
6832 * plugin/plugin-nvptx.c (struct targ_fn_descriptor): Move later.
6833 (struct ptx_image_data): Move earlier, add fns field.
6834 (struct ptx_device): Add images and image_lock fields.
6835 (ptx_images, ptx_image_lock): Delete.
6836 (nvptx_open_device): Initialize images and image_lock fields.
6837 (nvptx_close_device): Destroy image_lock.
6838 (GOMP_OFFLOAD_load_image): Register image to device-specific fields.
6839 (GOMP_OFFLOAD_unload_image): Unregister image from device-specific
6840 fields.
6841
6842 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
6843
6844 * target.c (GOMP_offload_register): Use int for device type arg.
6845 (GOMP_offload_unregister): Likewise.
6846
6847 * target.c (struct_offload_image_descr): Constify host_table.
6848 (gomp_offload_image_to_device): Likewise.
6849 (GOMP_offload_register, GOMP_offload_unregister): Likewise.
6850
6851 * libgomp.h (gomp_device_descr): Constify target data arguments.
6852 * target.c (struct offload_image_descr): Constify target_data.
6853 (gomp_offload_image_to_device): Likewise.
6854 (GOMP_offload_register): Likewise.
6855 (GOMP_offload_unregister): Likewise.
6856 * plugin/plugin-host.c (GOMP_OFFLOAD_load_image,
6857 GOMP_OFFLOAD_unload_image): Constify target data.
6858 * plugin/plugin-nvptx.c (struct ptx_image_data): Constify target data.
6859 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): Likewise.
6860
6861 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
6862
6863 * plugin/plugin-nvptx.c (link_ptx): Constify string argument.
6864 Workaround driver library const error.
6865 (struct nvptx_tdata, nvptx_tdata_t): New.
6866 (GOMP_OFFLOAD_load_image): Use struct for target_data's real
6867 type.
6868
6869 2015-07-15 Maxim Blumenthal <maxim.blumenthal@intel.com>
6870
6871 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Change type
6872 of EPS parameter from integer to real.
6873 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: (check): Change
6874 type of EPS parameter from integer to real.
6875
6876 2015-07-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
6877
6878 * team.c (get_last_team): New.
6879 (gomp_new_team): Recycle last non-nested team if possible.
6880 (gomp_team_end): Move team work share list free lock destruction
6881 to ...
6882 (free_team): ... here.
6883
6884 2015-07-14 Maxim Blumenthal <maxim.blumenthal@intel.com>
6885
6886 * testsuite/libgomp.c/examples-4/simd-3.c: (main): Change type of res
6887 and ref from int to double. Replaced their comparison with
6888 an inequality of their difference and EPS.
6889 * testsuite/libgomp.c/examples-4/simd-8.c: (main): Replace the
6890 comparison of pri and a reference number with an inequality of their
6891 difference and EPS.
6892 * testsuite/libgomp.fortran/examples-4/simd-3.f90: (main): Replaced
6893 the comparison of sum and sum_ref with an inequality of their
6894 difference and EPS.
6895 * testsuite/libgomp.fortran/examples-4/simd-8.f90: (main): Replace
6896 the comparison of pri and a reference number with an inequality of
6897 their difference and EPS.
6898
6899 2015-07-13 Maxim Blumenthal <maxim.blumenthal@intel.com>
6900
6901 * testsuite/libgomp.c++/examples-4/e.53.2.C: Renamed to...
6902 * testsuite/libgomp.c++/examples-4/declare_target-2.C: ...this.
6903 * testsuite/libgomp.c++/examples-4/e.51.5.C: Renamed to...
6904 * testsuite/libgomp.c++/examples-4/target_data-5.C: ...this.
6905 * testsuite/libgomp.c/examples-4/e.56.3.c: Renamed to...
6906 * testsuite/libgomp.c/examples-4/array_sections-3.c: ...this.
6907 * testsuite/libgomp.c/examples-4/e.56.4.c: Renamed to...
6908 * testsuite/libgomp.c/examples-4/array_sections-4.c: ...this.
6909 * testsuite/libgomp.c/examples-4/e.55.1.c: Renamed to...
6910 * testsuite/libgomp.c/examples-4/async_target-1.c: ...this.
6911 * testsuite/libgomp.c/examples-4/e.55.2.c: Renamed to...
6912 * testsuite/libgomp.c/examples-4/async_target-2.c: ...this.
6913 (vec_mult_ref): Remove v1 and v2 arguments, turn them into local
6914 variables.
6915 (vec_mult): Likewise. Add #pragma omp taskwait.
6916 (main): Adjust caller.
6917 * testsuite/libgomp.c/examples-4/e.53.1.c: Renamed to...
6918 * testsuite/libgomp.c/examples-4/declare_target-1.c: ...this.
6919 * testsuite/libgomp.c/examples-4/e.53.3.c: Renamed to...
6920 * testsuite/libgomp.c/examples-4/declare_target-3.c: ...this.
6921 * testsuite/libgomp.c/examples-4/e.53.4.c: Renamed to...
6922 * testsuite/libgomp.c/examples-4/declare_target-4.c: ...this.
6923 * testsuite/libgomp.c/examples-4/e.53.5.c: Renamed to...
6924 * testsuite/libgomp.c/examples-4/declare_target-5.c: ...this.
6925 * testsuite/libgomp.c/examples-4/e.57.1.c: Renamed to...
6926 * testsuite/libgomp.c/examples-4/device-1.c: ...this.
6927 * testsuite/libgomp.c/examples-4/e.57.2.c: Renamed to...
6928 * testsuite/libgomp.c/examples-4/device-2.c: ...this.
6929 * testsuite/libgomp.c/examples-4/e.57.3.c: Renamed to...
6930 * testsuite/libgomp.c/examples-4/device-3.c: ...this.
6931 * testsuite/libgomp.c/examples-4/simd-1.c: New file.
6932 * testsuite/libgomp.c/examples-4/simd-2.c: New file.
6933 * testsuite/libgomp.c/examples-4/simd-3.c: New file.
6934 * testsuite/libgomp.c/examples-4/simd-4.c: New file.
6935 * testsuite/libgomp.c/examples-4/simd-5.c: New file.
6936 * testsuite/libgomp.c/examples-4/simd-6.c: New file.
6937 * testsuite/libgomp.c/examples-4/simd-7.c: New file.
6938 * testsuite/libgomp.c/examples-4/simd-8.c: New file.
6939 * testsuite/libgomp.c/examples-4/e.50.1.c: Renamed to...
6940 * testsuite/libgomp.c/examples-4/target-1.c: ...this.
6941 * testsuite/libgomp.c/examples-4/e.50.2.c: Renamed to...
6942 * testsuite/libgomp.c/examples-4/target-2.c: ...this.
6943 * testsuite/libgomp.c/examples-4/e.50.3.c: Renamed to...
6944 * testsuite/libgomp.c/examples-4/target-3.c: ...this.
6945 * testsuite/libgomp.c/examples-4/e.50.4.c: Renamed to...
6946 * testsuite/libgomp.c/examples-4/target-4.c: ...this.
6947 * testsuite/libgomp.c/examples-4/e.50.5.c: Renamed to...
6948 * testsuite/libgomp.c/examples-4/target-5.c: ...this.
6949 * testsuite/libgomp.c/examples-4/e.51.1.c: Renamed to...
6950 * testsuite/libgomp.c/examples-4/target_data-1.c: ...this.
6951 * testsuite/libgomp.c/examples-4/e.51.2.c: Renamed to...
6952 * testsuite/libgomp.c/examples-4/target_data-2.c: ...this.
6953 * testsuite/libgomp.c/examples-4/e.51.3.c: Renamed to...
6954 * testsuite/libgomp.c/examples-4/target_data-3.c: ...this.
6955 * testsuite/libgomp.c/examples-4/e.51.4.c: Renamed to...
6956 * testsuite/libgomp.c/examples-4/target_data-4.c: ...this.
6957 * testsuite/libgomp.c/examples-4/e.51.6.c: Renamed to...
6958 * testsuite/libgomp.c/examples-4/target_data-6.c: ...this.
6959 * testsuite/libgomp.c/examples-4/e.51.7.c: Renamed to...
6960 * testsuite/libgomp.c/examples-4/target_data-7.c: ...this.
6961 * testsuite/libgomp.c/examples-4/e.52.1.c: Renamed to...
6962 * testsuite/libgomp.c/examples-4/target_update-1.c: ...this.
6963 * testsuite/libgomp.c/examples-4/e.52.2.c: Renamed to...
6964 * testsuite/libgomp.c/examples-4/target_update-2.c: ...this.
6965 * testsuite/libgomp.c/examples-4/task_dep-1.c: New file.
6966 * testsuite/libgomp.c/examples-4/task_dep-2.c: New file.
6967 * testsuite/libgomp.c/examples-4/task_dep-3.c: New file.
6968 * testsuite/libgomp.c/examples-4/task_dep-4.c: New file.
6969 * testsuite/libgomp.c/examples-4/task_dep-5.c: New file.
6970 * testsuite/libgomp.c/examples-4/e.54.2.c: Renamed to...
6971 * testsuite/libgomp.c/examples-4/teams-2.c: ...this.
6972 * testsuite/libgomp.c/examples-4/e.54.3.c: Renamed to...
6973 * testsuite/libgomp.c/examples-4/teams-3.c: ...this.
6974 * testsuite/libgomp.c/examples-4/e.54.4.c: Renamed to...
6975 * testsuite/libgomp.c/examples-4/teams-4.c: ...this.
6976 * testsuite/libgomp.c/examples-4/e.54.5.c: Renamed to...
6977 * testsuite/libgomp.c/examples-4/teams-5.c: ...this.
6978 * testsuite/libgomp.c/examples-4/e.54.6.c: Renamed to...
6979 * testsuite/libgomp.c/examples-4/teams-6.c: ...this.
6980 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Renamed to...
6981 * testsuite/libgomp.fortran/examples-4/array_sections-3.f90: ...this.
6982 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Renamed to...
6983 * testsuite/libgomp.fortran/examples-4/array_sections-4.f90: ...this.
6984 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Renamed to...
6985 * testsuite/libgomp.fortran/examples-4/async_target-1.f90: ...this.
6986 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Renamed to...
6987 * testsuite/libgomp.fortran/examples-4/async_target-2.f90: ...this.
6988 (vec_mult): Add !$omp taskwait.
6989 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Renamed to...
6990 * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: ...this.
6991 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Renamed to...
6992 * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: ...this.
6993 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Renamed to...
6994 * testsuite/libgomp.fortran/examples-4/declare_target-3.f90: ...this.
6995 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Renamed to...
6996 * testsuite/libgomp.fortran/examples-4/declare_target-4.f90: ...this.
6997 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Renamed to...
6998 * testsuite/libgomp.fortran/examples-4/declare_target-5.f90: ...this.
6999 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Renamed to...
7000 * testsuite/libgomp.fortran/examples-4/device-1.f90: ...this.
7001 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Renamed to...
7002 * testsuite/libgomp.fortran/examples-4/device-2.f90: ...this.
7003 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Renamed to...
7004 * testsuite/libgomp.fortran/examples-4/device-3.f90: ...this.
7005 * testsuite/libgomp.fortran/examples-4/simd-1.f90: New file.
7006 * testsuite/libgomp.fortran/examples-4/simd-2.f90: New file.
7007 * testsuite/libgomp.fortran/examples-4/simd-3.f90: New file.
7008 * testsuite/libgomp.fortran/examples-4/simd-4.f90: New file.
7009 * testsuite/libgomp.fortran/examples-4/simd-5.f90: New file.
7010 * testsuite/libgomp.fortran/examples-4/simd-6.f90: New file.
7011 * testsuite/libgomp.fortran/examples-4/simd-7.f90: New file.
7012 * testsuite/libgomp.fortran/examples-4/simd-8.f90: New file.
7013 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: Renamed to...
7014 * testsuite/libgomp.fortran/examples-4/target-1.f90: ...this.
7015 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Renamed to...
7016 * testsuite/libgomp.fortran/examples-4/target-2.f90: ...this.
7017 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Renamed to...
7018 * testsuite/libgomp.fortran/examples-4/target-3.f90: ...this.
7019 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Renamed to...
7020 * testsuite/libgomp.fortran/examples-4/target-4.f90: ...this.
7021 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Renamed to...
7022 * testsuite/libgomp.fortran/examples-4/target-5.f90: ...this.
7023 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Renamed to...
7024 * testsuite/libgomp.fortran/examples-4/target_data-1.f90: ...this.
7025 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Renamed to...
7026 * testsuite/libgomp.fortran/examples-4/target_data-2.f90: ...this.
7027 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Renamed to...
7028 * testsuite/libgomp.fortran/examples-4/target_data-3.f90: ...this.
7029 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Renamed to...
7030 * testsuite/libgomp.fortran/examples-4/target_data-4.f90: ...this.
7031 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Renamed to...
7032 * testsuite/libgomp.fortran/examples-4/target_data-5.f90: ...this.
7033 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Renamed to...
7034 * testsuite/libgomp.fortran/examples-4/target_data-6.f90: ...this.
7035 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Renamed to...
7036 * testsuite/libgomp.fortran/examples-4/target_data-7.f90: ...this.
7037 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Renamed to...
7038 * testsuite/libgomp.fortran/examples-4/target_update-1.f90: ...this.
7039 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Renamed to...
7040 * testsuite/libgomp.fortran/examples-4/target_update-2.f90: ...this.
7041 * testsuite/libgomp.fortran/examples-4/task_dep-1.f90: New file.
7042 * testsuite/libgomp.fortran/examples-4/task_dep-2.f90: New file.
7043 * testsuite/libgomp.fortran/examples-4/task_dep-3.f90: New file.
7044 * testsuite/libgomp.fortran/examples-4/task_dep-4.f90: New file.
7045 * testsuite/libgomp.fortran/examples-4/task_dep-5.f90: New file.
7046 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Renamed to...
7047 * testsuite/libgomp.fortran/examples-4/teams-2.f90: ...this.
7048 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Renamed to...
7049 * testsuite/libgomp.fortran/examples-4/teams-3.f90: ...this.
7050 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Renamed to...
7051 * testsuite/libgomp.fortran/examples-4/teams-4.f90: ...this.
7052 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Renamed to...
7053 * testsuite/libgomp.fortran/examples-4/teams-5.f90: ...this.
7054 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Renamed to...
7055 * testsuite/libgomp.fortran/examples-4/teams-6.f90: ...this.
7056
7057 2015-07-10 Tom de Vries <tom@codesourcery.com>
7058
7059 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt-2.f95: New test.
7060 * testsuite/libgomp.fortran/parloops-exit-first-loop-alt.f95: New test.
7061
7062 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
7063
7064 PR libgomp/65099
7065 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return 0 if not
7066 in a 64-bit configuration.
7067 * testsuite/libgomp.oacc-c++/c++.exp: Don't attempt nvidia
7068 offloading testing if no such device is available.
7069 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7070 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7071
7072 2015-07-08 Tom de Vries <tom@codesourcery.com>
7073
7074 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Fix
7075 second call to f.
7076 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7077
7078 2015-07-07 Tom de Vries <tom@codesourcery.com>
7079
7080 PR tree-optimization/66642
7081 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Test low
7082 iteration count case.
7083 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c (init): New
7084 function, factor out of ...
7085 (main): ... here. Test low iteration count case.
7086
7087 2015-07-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
7088
7089 * libgomp.h (gomp_thread_pool): Comment last_team field.
7090
7091 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
7092
7093 * testsuite/libgomp.c++/pr66702-1.C: Require
7094 vect_simd_clones effective target.
7095 * testsuite/libgomp.c++/pr66702-2.C: Ditto.
7096
7097 2015-06-30 Tom de Vries <tom@codesourcery.com>
7098
7099 * testsuite/libgomp.oacc-c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7100 already set. Use DEFAULT_CFLAGS in dg-runtest.
7101 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Remove dg-options
7102 "-O2".
7103
7104 2015-06-30 Tom de Vries <tom@codesourcery.com>
7105
7106 * testsuite/libgomp.c++/c++.exp: Set DEFAULT_CFLAGS to -O2 if not
7107 already set. Use DEFAULT_CFLAGS in dg-runtest.
7108 * testsuite/libgomp.c++/atomic-16.C: Remove dg-options "-O2 -fopenmp".
7109 * testsuite/libgomp.c++/pr64824.C: Same.
7110 * testsuite/libgomp.c++/pr64868.C: Same.
7111 * testsuite/libgomp.c++/pr66199-1.C: Same.
7112 * testsuite/libgomp.c++/pr66199-2.C: Same.
7113 * testsuite/libgomp.c++/target-2.C: Same.
7114 * testsuite/libgomp.c++/for-7.C: Use dg-additional-options for
7115 -std=<standard> option.
7116 * testsuite/libgomp.c++/udr-11.C: Same.
7117 * testsuite/libgomp.c++/udr-12.C: Same.
7118 * testsuite/libgomp.c++/udr-13.C: Same.
7119 * testsuite/libgomp.c++/udr-14.C: Same.
7120 * testsuite/libgomp.c++/udr-15.C: Same.
7121 * testsuite/libgomp.c++/udr-16.C: Same.
7122 * testsuite/libgomp.c++/udr-17.C: Same.
7123 * testsuite/libgomp.c++/udr-18.C: Same.
7124 * testsuite/libgomp.c++/udr-19.C: Same.
7125 * testsuite/libgomp.c++/atomic-1.C: Remove dg-options "-O2".
7126 * testsuite/libgomp.c++/simd-1.C: Same.
7127 * testsuite/libgomp.c++/simd-2.C: Same.
7128 * testsuite/libgomp.c++/simd-3.C: Same.
7129 * testsuite/libgomp.c++/simd-4.C: Same.
7130 * testsuite/libgomp.c++/simd-5.C: Same.
7131 * testsuite/libgomp.c++/simd-6.C: Same.
7132 * testsuite/libgomp.c++/simd-7.C: Same.
7133 * testsuite/libgomp.c++/simd-8.C: Same.
7134 * testsuite/libgomp.c++/simd-9.C: Same.
7135 * testsuite/libgomp.c++/simd10.C: Same.
7136 * testsuite/libgomp.c++/simd11.C: Same.
7137 * testsuite/libgomp.c++/simd12.C: Same.
7138 * testsuite/libgomp.c++/simd13.C: Same.
7139
7140 2015-06-30 Jakub Jelinek <jakub@redhat.com>
7141
7142 PR middle-end/66702
7143 * testsuite/libgomp.c++/pr66702-1.C: New test.
7144 * testsuite/libgomp.c++/pr66702-2.C: New test.
7145
7146 2015-06-30 Tom de Vries <tom@codesourcery.com>
7147
7148 * testsuite/libgomp.c/parloops-exit-first-loop-alt-5.c: New test.
7149 * testsuite/libgomp.c/parloops-exit-first-loop-alt-6.c: New test.
7150 * testsuite/libgomp.c/parloops-exit-first-loop-alt-7.c: New test.
7151 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Update comment.
7152
7153 2015-06-30 Tom de Vries <tom@codesourcery.com>
7154
7155 PR tree-optimization/66652
7156 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (f): Rewrite
7157 using restrict pointers.
7158 (main): Add arguments to calls to f.
7159 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7160
7161 2015-06-23 Andreas Tobler <andreast@gcc.gnu.org>
7162
7163 * configure.ac: Fix check for header <sys/sysctl.h>.
7164 * configure: Regenerate.
7165 * config.h.in: Likewise.
7166
7167 2015-06-23 Tom de Vries <tom@codesourcery.com>
7168
7169 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c (main): Use
7170 abort.
7171 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c (main): Same.
7172
7173 2015-06-19 Thomas Schwinge <thomas@codesourcery.com>
7174
7175 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Only consider for
7176 acc_device_nvidia.
7177
7178 PR libgomp/66518
7179 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: XFAIL.
7180 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7181
7182 2015-06-15 Tom de Vries <tom@codesourcery.com>
7183
7184 * testsuite/libgomp.c/atomic-1.c: Remove dg-options "-O2". Use
7185 dg-additional-options for any remaining options.
7186 * testsuite/libgomp.c/atomic-2.c: Same.
7187 * testsuite/libgomp.c/atomic-4.c: Same.
7188 * testsuite/libgomp.c/atomic-5.c: Same.
7189 * testsuite/libgomp.c/atomic-6.c: Same.
7190 * testsuite/libgomp.c/autopar-1.c: Same.
7191 * testsuite/libgomp.c/copyin-1.c: Same.
7192 * testsuite/libgomp.c/copyin-2.c: Same.
7193 * testsuite/libgomp.c/copyin-3.c: Same.
7194 * testsuite/libgomp.c/examples-4/e.53.5.c: Same.
7195 * testsuite/libgomp.c/nestedfn-5.c: Same.
7196 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Same.
7197 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Same.
7198 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: Same.
7199 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7200 * testsuite/libgomp.c/pr32362-1.c: Same.
7201 * testsuite/libgomp.c/pr32362-2.c: Same.
7202 * testsuite/libgomp.c/pr32362-3.c: Same.
7203 * testsuite/libgomp.c/pr39591-1.c: Same.
7204 * testsuite/libgomp.c/pr39591-2.c: Same.
7205 * testsuite/libgomp.c/pr39591-3.c: Same.
7206 * testsuite/libgomp.c/pr58392.c: Same.
7207 * testsuite/libgomp.c/pr58756.c: Same.
7208 * testsuite/libgomp.c/simd-1.c: Same.
7209 * testsuite/libgomp.c/simd-10.c: Same.
7210 * testsuite/libgomp.c/simd-11.c: Same.
7211 * testsuite/libgomp.c/simd-12.c: Same.
7212 * testsuite/libgomp.c/simd-13.c: Same.
7213 * testsuite/libgomp.c/simd-14.c: Same.
7214 * testsuite/libgomp.c/simd-15.c: Same.
7215 * testsuite/libgomp.c/simd-2.c: Same.
7216 * testsuite/libgomp.c/simd-3.c: Same.
7217 * testsuite/libgomp.c/simd-4.c: Same.
7218 * testsuite/libgomp.c/simd-5.c: Same.
7219 * testsuite/libgomp.c/simd-6.c: Same.
7220 * testsuite/libgomp.c/simd-7.c: Same.
7221 * testsuite/libgomp.c/simd-8.c: Same.
7222 * testsuite/libgomp.c/simd-9.c: Same.
7223
7224 2015-06-15 Tom de Vries <tom@codesourcery.com>
7225
7226 * testsuite/libgomp.c/pr35625.c: Fix typo.
7227
7228 2015-06-15 Tom de Vries <tom@codesourcery.com>
7229
7230 * testsuite/libgomp.c/atomic-18.c: Remove superfluous -fopenmp setting
7231 in dg-options.
7232 * testsuite/libgomp.c/atomic-3.c: Same.
7233 * testsuite/libgomp.c/debug-1.c: Same.
7234 * testsuite/libgomp.c/nqueens-1.c: Same.
7235 * testsuite/libgomp.c/pr26171.c: Same.
7236 * testsuite/libgomp.c/pr48591.c: Same.
7237 * testsuite/libgomp.c/pr64824.c: Same.
7238 * testsuite/libgomp.c/pr64868.c: Same.
7239 * testsuite/libgomp.c/pr66133.c: Same.
7240 * testsuite/libgomp.c/pr66199-1.c: Same.
7241 * testsuite/libgomp.c/pr66199-2.c: Same.
7242 * testsuite/libgomp.c/target-8.c: Same.
7243
7244 2015-06-15 Tom de Vries <tom@codesourcery.com>
7245
7246 * testsuite/libgomp.c/collapse-3.c: Use dg-additional-options for
7247 -std={gnu99,c99}.
7248 * testsuite/libgomp.c/for-1.c: Same.
7249 * testsuite/libgomp.c/for-2.c: Same.
7250 * testsuite/libgomp.c/for-3.c: Same.
7251 * testsuite/libgomp.c/pr35625.c: Same.
7252 * testsuite/libgomp.c/pr39154.c: Same.
7253 * testsuite/libgomp.c/simd-16.c: Same.
7254 * testsuite/libgomp.c/simd-17.c: Same.
7255
7256 2015-06-13 Tom de Vries <tom@codesourcery.com>
7257
7258 * testsuite/libgomp.c/parloops-exit-first-loop-alt-4.c: New test.
7259
7260 2015-06-13 Tom de Vries <tom@codesourcery.com>
7261
7262 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: Add comment.
7263 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: Same.
7264 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: Add comment.
7265 (N): Define.
7266 (main): Use N instead of hardcoded constants.
7267
7268 2015-06-05 Tom de Vries <tom@codesourcery.com>
7269
7270 merge from gomp4 branch:
7271 2015-05-28 Tom de Vries <tom@codesourcery.com>
7272
7273 PR tree-optimization/65443
7274 * testsuite/libgomp.c/parloops-exit-first-loop-alt-2.c: New test.
7275 * testsuite/libgomp.c/parloops-exit-first-loop-alt-3.c: New test.
7276 * testsuite/libgomp.c/parloops-exit-first-loop-alt.c: New test.
7277
7278 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
7279
7280 * testsuite/libgomp.graphite/bounds.c: Adjust for
7281 cleanup-tree-dump removal.
7282 * testsuite/libgomp.graphite/force-parallel-1.c: Likewise.
7283 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
7284 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
7285 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
7286 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
7287 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
7288 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
7289 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
7290 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
7291 * testsuite/libgomp.graphite/pr41118.c: Likewise.
7292
7293 2015-05-28 Uros Bizjak <ubizjak@gmail.com>
7294
7295 * config/linux/x86/futex.h (sys_futex0) [!__x86_64__]: Remove function.
7296 (futex_wait) [!__x86_64__]: Use __asm operand instead of sys_futex0.
7297 (futex_wake) [!__x86_64__]: Ditto.
7298
7299 2015-05-28 Julian Brown <julian@codesourcery.com>
7300
7301 * oacc-init.c (resolve_device): Add FAIL_IS_ERROR argument. Update
7302 function comment. Only call gomp_fatal if new argument is true.
7303 (acc_dev_num_out_of_range): New function.
7304 (acc_init_1, acc_shutdown_1): Update call to resolve_device. Call
7305 acc_dev_num_out_of_range as appropriate.
7306 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7307 (acc_get_device_num, acc_set_device_num): Update calls to
7308 resolve_device.
7309 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Update expected test
7310 output.
7311
7312 2015-05-28 Julian Brown <julian@codesourcery.com>
7313
7314 PR libgomp/65742
7315 * oacc-init.c (plugin/plugin-host.h): Include.
7316 (acc_on_device): Check whether we're in an offloaded region for
7317 host_nonshm
7318 plugin. Don't use __builtin_acc_on_device.
7319 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_parallel): Set
7320 nonshm_exec flag in thread-local data.
7321 (GOMP_OFFLOAD_openacc_create_thread_data): Allocate thread-local
7322 data for host_nonshm plugin.
7323 (GOMP_OFFLOAD_openacc_destroy_thread_data): Free thread-local data
7324 for host_nonshm plugin.
7325 * plugin/plugin-host.h: New.
7326
7327 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7328
7329 * config/linux/ia64/futex.h (sys_futex0) Change operand "op" to int.
7330
7331 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7332
7333 * config/linux/wait.h (gomp_futex_wait, gomp_futex_wake):
7334 Declare as int.
7335 (FUTEX_PRIVATE_FLAG): Remove L suffix.
7336 * config/linux/mutex.c (gomp_futex_wait, gomp_futex_wake):
7337 Declare as int.
7338
7339 2015-05-27 Uros Bizjak <ubizjak@gmail.com>
7340
7341 * config/linux/x86/futex.h (sys_futex0) [__PIC__]: Remove function.
7342
7343 2015-05-27 Chung-Lin Tang <cltang@codesourcery.com>
7344
7345 * target.c (gomp_map_pointer): New function abstracting out
7346 GOMP_MAP_POINTER handling.
7347 (gomp_map_vars): Remove GOMP_MAP_POINTER handling code and use
7348 gomp_map_pointer().
7349
7350 2015-05-19 Jakub Jelinek <jakub@redhat.com>
7351
7352 PR middle-end/66199
7353 * testsuite/libgomp.c/pr66199-1.c: New test.
7354 * testsuite/libgomp.c/pr66199-2.c: New test.
7355 * testsuite/libgomp.c++/pr66199-1.C: New test.
7356 * testsuite/libgomp.c++/pr66199-2.C: New test.
7357 * testsuite/libgomp.fortran/pr66199-1.f90: New test.
7358 * testsuite/libgomp.fortran/pr66199-2.f90: New test.
7359
7360 2015-05-19 Julian Brown <julian@codesourcery.com>
7361
7362 * plugin/plugin-nvptx.c (nvptx_get_num_devices): Return zero
7363 on cuInit failure.
7364
7365 2015-05-13 Jakub Jelinek <jakub@redhat.com>
7366
7367 PR middle-end/66133
7368 * testsuite/libgomp.c/pr66133.c: New test.
7369
7370 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
7371
7372 * Makefile.in: Regenerated with automake-1.11.6.
7373 * aclocal.m4: Likewise.
7374 * config.h.in: Likewise.
7375 * configure: Likewise.
7376 * testsuite/Makefile.in: Likewise.
7377
7378 2015-05-08 Jason Merrill <jason@redhat.com>
7379
7380 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c (main): Use
7381 _Complex.
7382
7383 * openacc.h (__GOACC_NOTHROW): Fix noexcept syntax.
7384
7385 2015-05-06 Julian Brown <julian@codesourcery.com>
7386
7387 * oacc-init.c (acc_device_lock): Add explanatory comment.
7388 (resolve_device): Add comment about locking requirement.
7389 (acc_init_1, acc_shutdown_1): Likewise. Add locking around
7390 gomp_init_device and gomp_fini_device calls.
7391 (acc_get_num_devices, acc_set_device_type, acc_get_device_type)
7392 (acc_get_device_num, acc_set_device_num): Add locking around
7393 resolve_device and gomp_init_device calls.
7394
7395 2015-05-06 Julian Brown <julian@codesourcery.com>
7396
7397 * oacc-init.c (acc_shutdown_1): Call gomp_mutex_unlock for
7398 goacc_thread_lock on error paths.
7399 * oacc-mem.c (lookup_host): Remove locking from function. Note
7400 locking requirement for caller in function comment.
7401 (lookup_dev): Likewise.
7402 (acc_free, acc_deviceptr, acc_hostptr, acc_is_present)
7403 (acc_map_data, acc_unmap_data, present_create_copy, delete_copyout)
7404 (update_dev_host, gomp_acc_insert_pointer, gomp_acc_remove_pointer):
7405 Add locking.
7406
7407 2015-05-05 Thomas Schwinge <thomas@codesourcery.com>
7408
7409 PR testsuite/65205
7410 PR libgomp/65993
7411 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: In dg-output,
7412 don't expect "0x" prefix for "%p" format specifier, don't expect
7413 "(nil)" for NULL pointer.
7414 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7415 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7416 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7417 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7418 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7419 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7420 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7421 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7422 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7423 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7424 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7425 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7426 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7427 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7428 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7429 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7430 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7431 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7432 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7433 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7434 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7435 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7436 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7437 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7438 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7439 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7440 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7441 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7442 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: More
7443 accurately specify what we're looking for.
7444 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7445 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7446 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
7447 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
7448 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
7449
7450 2015-04-30 James Norris <jnorris@codesourcery.com>
7451
7452 PR testsuite/65205
7453 * testsuite/lib/libgomp.exp
7454 (check_effective_target_openacc_host_selected)
7455 (check_effective_target_openacc_host_nonshm_selected): New
7456 procedures.
7457 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Fix misuse of
7458 dg-shouldfail.
7459 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7460 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7461 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7462 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7463 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7464 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7465 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7466 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
7467 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
7468 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
7469 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
7470 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
7471 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
7472 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
7473 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
7474 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
7475 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
7476 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
7477 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
7478 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
7479 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
7480 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
7481 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
7482 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
7483 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
7484 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
7485 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
7486 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
7487 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
7488 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
7489 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
7490 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
7491 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
7492 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
7493 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
7494 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
7495 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
7496 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
7497 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
7498 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
7499 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
7500 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
7501 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
7502
7503 2015-04-08 Julian Brown <julian@codesourcery.com>
7504
7505 * libgomp.h (target_mem_desc: Remove mem_map field.
7506 (acc_dispatch_t): Remove open_device_func, close_device_func,
7507 get_device_num_func, set_device_num_func, target_data members.
7508 Change create_thread_data_func argument to device number instead of
7509 generic pointer.
7510 * oacc-async.c (assert.h): Include.
7511 (acc_async_test, acc_async_test_all, acc_wait, acc_wait_async)
7512 (acc_wait_all, acc_wait_all_async): Use current host thread's
7513 active device, not base_dev.
7514 * oacc-cuda.c (acc_get_current_cuda_device)
7515 (acc_get_current_cuda_context, acc_get_cuda_stream)
7516 (acc_set_cuda_stream): Likewise.
7517 * oacc-host.c (host_dispatch): Don't set open_device_func,
7518 close_device_func, get_device_num_func or set_device_num_func.
7519 * oacc-init.c (base_dev, init_key): Remove.
7520 (cached_base_dev): New.
7521 (name_of_acc_device_t): New.
7522 (acc_init_1): Initialise default-numbered device, not zeroth.
7523 (acc_shutdown_1): Close all devices of a given type.
7524 (goacc_destroy_thread): Don't use base_dev.
7525 (lazy_open, lazy_init, lazy_init_and_open): Remove.
7526 (goacc_attach_host_thread_to_device): New.
7527 (acc_init): Reimplement with goacc_attach_host_thread_to_device.
7528 (acc_get_num_devices): Don't use base_dev.
7529 (acc_set_device_type): Reimplement.
7530 (acc_get_device_type): Don't use base_dev.
7531 (acc_get_device_num): Tweak logic.
7532 (acc_set_device_num): Likewise.
7533 (acc_on_device): Use acc_get_device_type.
7534 (goacc_runtime_initialize): Initialize cached_base_dev not base_dev.
7535 (goacc_lazy_initialize): Reimplement with acc_init and
7536 goacc_attach_host_thread_to_device.
7537 * oacc-int.h (goacc_thread): Add base_dev field.
7538 (base_dev): Remove extern declaration.
7539 (goacc_attach_host_thread_to_device): Add prototype.
7540 * oacc-mem.c (acc_malloc): Use current thread's device instead of
7541 base_dev.
7542 (acc_free): Likewise.
7543 (acc_memcpy_to_device): Likewise.
7544 (acc_memcpy_from_device): Likewise.
7545 * oacc-parallel.c (select_acc_device): Remove. Replace calls with
7546 goacc_lazy_initialize (throughout).
7547 (GOACC_parallel): Use tgt_offset to locate target functions.
7548 * target.c (gomp_map_vars): Don't set tgt->mem_map.
7549 (gomp_unmap_vars): Use devicep->mem_map pointer not tgt->mem_map.
7550 (gomp_load_plugin_for_device): Remove open_device, close_device,
7551 get_device_num, set_device_num openacc hook initialisation. Don't set
7552 openacc.target_data.
7553 * plugin/plugin-host.c (GOMP_OFFLOAD_openacc_open_device)
7554 (GOMP_OFFLOAD_openacc_close_device)
7555 (GOMP_OFFLOAD_openacc_get_device_num)
7556 (GOMP_OFFLOAD_openacc_set_device_num): Remove.
7557 (GOMP_OFFLOAD_openacc_create_thread_data): Change (unused) argument
7558 to int.
7559 * plugin/plugin-nvptx.c (ptx_inited): Remove.
7560 (instantiated_devices, ptx_dev_lock): New.
7561 (struct ptx_image_data): New.
7562 (ptx_devices, ptx_images, ptx_image_lock): New.
7563 (fini_streams_for_device): Reorder cuStreamDestroy call.
7564 (nvptx_get_num_devices): Remove forward declaration.
7565 (nvptx_init): Change return type to bool.
7566 (nvptx_fini): Remove.
7567 (nvptx_attach_host_thread_to_device): New.
7568 (nvptx_open_device): Return struct ptx_device* instead of void*.
7569 (nvptx_close_device): Change argument type to struct ptx_device*,
7570 return type to void.
7571 (nvptx_get_num_devices): Use instantiated_devices not ptx_inited.
7572 (kernel_target_data, kernel_host_table): Remove static globals.
7573 (GOMP_OFFLOAD_register_image, GOMP_OFFLOAD_get_table): Remove.
7574 (GOMP_OFFLOAD_init_device): Reimplement.
7575 (GOMP_OFFLOAD_fini_device): Likewise.
7576 (GOMP_OFFLOAD_load_image, GOMP_OFFLOAD_unload_image): New.
7577 (GOMP_OFFLOAD_alloc, GOMP_OFFLOAD_free, GOMP_OFFLOAD_dev2host)
7578 (GOMP_OFFLOAD_host2dev): Use ORD argument.
7579 (GOMP_OFFLOAD_openacc_open_device)
7580 (GOMP_OFFLOAD_openacc_close_device)
7581 (GOMP_OFFLOAD_openacc_set_device_num)
7582 (GOMP_OFFLOAD_openacc_get_device_num): Remove.
7583 (GOMP_OFFLOAD_openacc_create_thread_data): Change argument to int
7584 (device number).
7585
7586 testsuite/
7587 * libgomp.oacc-c-c++-common/lib-9.c: Fix devnum check in test.
7588
7589 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
7590
7591 * libgomp-plugin.h (struct mapping_table): Replace with addr_pair.
7592 * libgomp.h (struct gomp_memory_mapping): Remove.
7593 (struct target_mem_desc): Change type of mem_map from
7594 gomp_memory_mapping * to splay_tree_s *.
7595 (struct gomp_device_descr): Remove register_image_func, get_table_func.
7596 Add load_image_func, unload_image_func.
7597 Change type of mem_map from gomp_memory_mapping to splay_tree_s.
7598 Remove offload_regions_registered.
7599 (gomp_init_tables): Remove.
7600 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
7601 to splay_tree_s *.
7602 * libgomp.map (GOMP_4.0.1): Add GOMP_offload_unregister.
7603 * oacc-host.c (host_dispatch): Do not initialize register_image_func,
7604 get_table_func, mem_map.is_initialized, mem_map.splay_tree.root,
7605 offload_regions_registered.
7606 Initialize load_image_func, unload_image_func, mem_map.root.
7607 (goacc_host_init): Do not initialize host_dispatch.mem_map.lock.
7608 * oacc-init.c (lazy_open): Don't call gomp_init_tables.
7609 (acc_shutdown_1): Use dev's lock and splay_tree instead of mem_map's.
7610 * oacc-mem.c (lookup_host): Get gomp_device_descr *dev instead of
7611 gomp_memory_mapping *. Use dev's lock and splay_tree.
7612 (lookup_dev): Use dev's lock.
7613 (acc_deviceptr): Pass dev to lookup_host instead of mem_map.
7614 (acc_is_present): Likewise.
7615 (acc_map_data): Likewise.
7616 (acc_unmap_data): Likewise. Use dev's lock.
7617 (present_create_copy): Likewise.
7618 (delete_copyout): Pass dev to lookup_host instead of mem_map.
7619 (update_dev_host): Likewise.
7620 (gomp_acc_remove_pointer): Likewise. Use dev's lock.
7621 * oacc-parallel.c (GOACC_parallel): Use dev's lock and splay_tree.
7622 * plugin/plugin-host.c (GOMP_OFFLOAD_register_image): Remove.
7623 (GOMP_OFFLOAD_get_table): Remove
7624 (GOMP_OFFLOAD_load_image): New function.
7625 (GOMP_OFFLOAD_unload_image): New function.
7626 * target.c (register_lock): New mutex for offload image registration.
7627 (num_devices): Do not guard with PLUGIN_SUPPORT.
7628 (gomp_realloc_unlock): New static function.
7629 (gomp_map_vars_existing): Add device descriptor argument. Unlock mutex
7630 before gomp_fatal.
7631 (gomp_map_vars): Use dev's lock and splay_tree instead of mem_map's.
7632 Pass devicep to gomp_map_vars_existing. Unlock mutex before gomp_fatal.
7633 (gomp_copy_from_async): Use dev's lock and splay_tree instead of
7634 mem_map's.
7635 (gomp_unmap_vars): Likewise.
7636 (gomp_update): Remove gomp_memory_mapping argument. Use dev's lock and
7637 splay_tree instead of mm's. Unlock mutex before gomp_fatal.
7638 (gomp_offload_image_to_device): New static function.
7639 (GOMP_offload_register): Add mutex lock.
7640 Call gomp_offload_image_to_device for all initialized devices.
7641 Replace gomp_realloc with gomp_realloc_unlock.
7642 (GOMP_offload_unregister): New function.
7643 (gomp_init_tables): Replace with gomp_init_device. Replace a call to
7644 get_table_func from the plugin with calls to init_device_func and
7645 gomp_offload_image_to_device.
7646 (gomp_free_memmap): Change type of argument from gomp_memory_mapping *
7647 to splay_tree_s *.
7648 (GOMP_target): Do not call gomp_init_tables. Use dev's lock and
7649 splay_tree instead of mem_map's. Unlock mutex before gomp_fatal.
7650 (GOMP_target_data): Do not call gomp_init_tables.
7651 (GOMP_target_update): Likewise. Remove argument from gomp_update.
7652 (gomp_load_plugin_for_device): Replace register_image and get_table
7653 with load_image and unload_image in DLSYM ().
7654 (gomp_register_images_for_device): Remove function.
7655 (gomp_target_init): Do not initialize current_device.mem_map.*,
7656 current_device.offload_regions_registered.
7657 Remove call to gomp_register_images_for_device.
7658 Do not free offload_images and num_offload_images.
7659
7660 2015-03-30 Jakub Jelinek <jakub@redhat.com>
7661
7662 PR fortran/65597
7663 * testsuite/libgomp.fortran/pr65597.f90: New test.
7664
7665 2015-03-27 Tom de Vries <tom@codesourcery.com>
7666
7667 PR testsuite/65594
7668 * testsuite/libgomp.graphite/force-parallel-6.c (abort): Declare.
7669 (init, check): New function.
7670 (foo): Change return type to void.
7671 (main): Call init and check.
7672
7673 2015-03-27 Tom de Vries <tom@codesourcery.com>
7674
7675 PR testsuite/65594
7676 * testsuite/libgomp.graphite/force-parallel-6.c (M): Define.
7677 (foo): Use M for non-inner loops to scale down test-case.
7678
7679 2015-03-25 Kai Tietz <ktietz@redhat.com>
7680
7681 PR libgomp/64972
7682 * oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
7683 (GOACC_data_start): Likewise.
7684 * target.c (gomp_map_vars): Likewise.
7685
7686 2015-03-21 John David Anglin <danglin@gcc.gnu.org>
7687
7688 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
7689 hppa*-*-hpux*.
7690
7691 2015-03-19 Jakub Jelinek <jakub@redhat.com>
7692
7693 * testsuite/libgomp.c/target-10.c: New test.
7694 * testsuite/libgomp.c++/target-4.C: New test.
7695
7696 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
7697
7698 * testsuite/libgomp.fortran/declare-target-1.f90: New test.
7699 * testsuite/libgomp.fortran/declare-target-2.f90: New file.
7700
7701 2015-03-13 Sebastian Huber <sebastian.huber@embedded-brains.de>
7702
7703 * configure.tgt (*-*-rtems*): Use local-exec TLS model.
7704 * configure.ac (*-*-rtems*): Assume Pthread is supported.
7705 (pthread.h): Check for this header file.
7706 * configure: Regenerate.
7707
7708 2015-02-25 Tom de Vries <tom@codesourcery.com>
7709
7710 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c (DO_PRAGMA)
7711 (check_reduction_op, check_reduction_macro, max, min):
7712 Declare.
7713 (test_reductions_int, test_reductions_minmax, test_reductions_bool): New
7714 function.
7715 (main): Use new functions.
7716
7717 2015-02-18 Ilya Tocar <ilya.tocar@intel.com>
7718
7719 * target.c (gomp_load_plugin_for_device): Use const char * instead of
7720 char * for variables holding dlerror return values.
7721 (DLSYM_OPT): Ditto.
7722
7723 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
7724
7725 * libgomp-plugin.c (GOMP_PLUGIN_debug): Fix typo.
7726
7727 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
7728 Cesar Philippidis <cesar@codesourcery.com>
7729
7730 * oacc-ptx.h (GOACC_INTERNAL_PTX): Add GOACC_tid, GOACC_ntid,
7731 GOACC_ctaid, and GOACC_nctaid routines.
7732
7733 2015-02-11 Jakub Jelinek <jakub@redhat.com>
7734
7735 PR c/64824
7736 * testsuite/libgomp.c/atomic-18.c: New test.
7737 * testsuite/libgomp.c++/atomic-16.C: New test.
7738
7739 2015-02-04 Jakub Jelinek <jakub@redhat.com>
7740
7741 PR c/64824
7742 PR c/64868
7743 * testsuite/libgomp.c/pr64824.c: New test.
7744 * testsuite/libgomp.c/pr64868.c: New test.
7745 * testsuite/libgomp.c++/pr64824.C: New test.
7746 * testsuite/libgomp.c++/pr64868.C: New test.
7747
7748 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
7749
7750 PR libgomp/64635
7751 * configure.tgt (*-*-aix*): Use standard posix plugin-suffix.h.
7752 Link with -lpthread.
7753 * config/aix/plugin-suffix.h: Delete.
7754
7755 2015-01-28 Jack Howarth <howarth.at.gcc@gmail.com>
7756
7757 PR libgomp/64635
7758 * configure.tgt (*-*-aix*): Use config_path "aix posix".
7759 (*-*-darwin*): Use config_path "bsd darwin posix".
7760 (*-*-hpux*): Use config_path "hpux posix".
7761 * target.c: Add include of plugin-suffix.h and use
7762 SONAME_SUFFIX macro.
7763 * config/aix/plugin-suffix.h: New file.
7764 * config/darwin/plugin-suffix.h: New file.
7765 * config/hpux/plugin-suffix.h: New file.
7766 * config/posix/plugin-suffix.h: New file.
7767
7768 2015-01-23 Jakub Jelinek <jakub@redhat.com>
7769
7770 PR middle-end/64734
7771 * libgomp.c/pr64734.c: New test.
7772
7773 2015-01-23 Tom de Vries <tom@codesourcery.com>
7774
7775 PR libgomp/64672
7776 * testsuite/libgomp.oacc-c-c++-common/abort-5.c: New test.
7777
7778 2015-01-23 Tom de Vries <tom@codesourcery.com>
7779
7780 PR libgomp/64707
7781 * testsuite/libgomp.c/target-9.c: Add -ftree-parallelize-loops=0 to
7782 dg-options.
7783
7784 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
7785
7786 PR libgomp/64625
7787 * libgomp_g.h (GOACC_data_start, GOACC_enter_exit_data)
7788 (GOACC_parallel, GOACC_update): Remove const_void *offload_table
7789 formal parameter. Update all users.
7790 * target.c (GOMP_target, GOMP_target_data, GOMP_target_update):
7791 Document unused formal parameter.
7792
7793 2015-01-16 Thomas Schwinge <thomas@codesourcery.com>
7794
7795 * oacc-parallel.c: Don't include <alloca.h>.
7796 (GOACC_parallel): Use gomp_alloca instead of alloca.
7797
7798 2015-01-16 Gerald Pfeifer <gerald@pfeifer.com>
7799
7800 * target.c (num_devices): Guard with PLUGIN_SUPPORT.
7801
7802 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
7803 James Norris <jnorris@codesourcery.com>
7804 Tom de Vries <tom@codesourcery.com>
7805 Julian Brown <julian@codesourcery.com>
7806 Cesar Philippidis <cesar@codesourcery.com>
7807 Nathan Sidwell <nathan@codesourcery.com>
7808 Tobias Burnus <burnus@net-b.de>
7809
7810 * Makefile.am (search_path): Add $(top_srcdir)/../include.
7811 (libgomp_la_SOURCES): Add splay-tree.c, libgomp-plugin.c,
7812 oacc-parallel.c, oacc-host.c, oacc-init.c, oacc-mem.c,
7813 oacc-async.c, oacc-plugin.c, oacc-cuda.c.
7814 [USE_FORTRAN] (libgomp_la_SOURCES): Add openacc.f90.
7815 Include $(top_srcdir)/plugin/Makefrag.am.
7816 (nodist_libsubinclude_HEADERS): Add openacc.h.
7817 [USE_FORTRAN] (nodist_finclude_HEADERS): Add openacc_lib.h,
7818 openacc.f90, openacc.mod, openacc_kinds.mod.
7819 (omp_lib.mod): Generalize into...
7820 (%.mod): ... this new rule.
7821 (openacc_kinds.mod, openacc.mod): New rules.
7822 * plugin/configfrag.ac: New file.
7823 * configure.ac: Move plugin/offloading support into it. Include
7824 it. Instantiate testsuite/libgomp-test-support.pt.exp.
7825 * plugin/Makefrag.am: New file.
7826 * testsuite/Makefile.am (OFFLOAD_TARGETS)
7827 (OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS): Don't
7828 export.
7829 (libgomp-test-support.exp): New rule.
7830 (all-local): Depend on it.
7831 * Makefile.in: Regenerate.
7832 * testsuite/Makefile.in: Regenerate.
7833 * config.h.in: Likewise.
7834 * configure: Likewise.
7835 * configure.tgt: Harden shell syntax.
7836 * env.c: Include "oacc-int.h".
7837 (parse_acc_device_type): New function.
7838 (gomp_debug_var, goacc_device_type, goacc_device_num): New
7839 variables.
7840 (initialize_env): Initialize those. Call
7841 goacc_runtime_initialize.
7842 * error.c (gomp_vdebug, gomp_debug, gomp_vfatal): New functions.
7843 (gomp_fatal): Call gomp_vfatal.
7844 * libgomp.h: Include "libgomp-plugin.h" and <stdarg.h>.
7845 (gomp_debug_var, goacc_device_type, goacc_device_num, gomp_vdebug)
7846 (gomp_debug, gomp_verror, gomp_vfatal, gomp_init_targets_once)
7847 (splay_tree_node, splay_tree, splay_tree_key)
7848 (struct target_mem_desc, struct splay_tree_key_s)
7849 (struct gomp_memory_mapping, struct acc_dispatch_t)
7850 (struct gomp_device_descr, gomp_acc_insert_pointer)
7851 (gomp_acc_remove_pointer, target_mem_desc, gomp_copy_from_async)
7852 (gomp_unmap_vars, gomp_init_device, gomp_init_tables)
7853 (gomp_free_memmap, gomp_fini_device): New declarations.
7854 (gomp_vdebug, gomp_debug): New macros.
7855 Include "splay-tree.h".
7856 * libgomp.map (OACC_2.0): New symbol version. Use for
7857 acc_get_num_devices, acc_get_num_devices_h_, acc_set_device_type,
7858 acc_set_device_type_h_, acc_get_device_type,
7859 acc_get_device_type_h_, acc_set_device_num, acc_set_device_num_h_,
7860 acc_get_device_num, acc_get_device_num_h_, acc_async_test,
7861 acc_async_test_h_, acc_async_test_all, acc_async_test_all_h_,
7862 acc_wait, acc_wait_h_, acc_wait_async, acc_wait_async_h_,
7863 acc_wait_all, acc_wait_all_h_, acc_wait_all_async,
7864 acc_wait_all_async_h_, acc_init, acc_init_h_, acc_shutdown,
7865 acc_shutdown_h_, acc_on_device, acc_on_device_h_, acc_malloc,
7866 acc_free, acc_copyin, acc_copyin_32_h_, acc_copyin_64_h_,
7867 acc_copyin_array_h_, acc_present_or_copyin,
7868 acc_present_or_copyin_32_h_, acc_present_or_copyin_64_h_,
7869 acc_present_or_copyin_array_h_, acc_create, acc_create_32_h_,
7870 acc_create_64_h_, acc_create_array_h_, acc_present_or_create,
7871 acc_present_or_create_32_h_, acc_present_or_create_64_h_,
7872 acc_present_or_create_array_h_, acc_copyout, acc_copyout_32_h_,
7873 acc_copyout_64_h_, acc_copyout_array_h_, acc_delete,
7874 acc_delete_32_h_, acc_delete_64_h_, acc_delete_array_h_,
7875 acc_update_device, acc_update_device_32_h_,
7876 acc_update_device_64_h_, acc_update_device_array_h_,
7877 acc_update_self, acc_update_self_32_h_, acc_update_self_64_h_,
7878 acc_update_self_array_h_, acc_map_data, acc_unmap_data,
7879 acc_deviceptr, acc_hostptr, acc_is_present, acc_is_present_32_h_,
7880 acc_is_present_64_h_, acc_is_present_array_h_,
7881 acc_memcpy_to_device, acc_memcpy_from_device,
7882 acc_get_current_cuda_device, acc_get_current_cuda_context,
7883 acc_get_cuda_stream, acc_set_cuda_stream.
7884 (GOACC_2.0): New symbol version. Use for GOACC_data_end,
7885 GOACC_data_start, GOACC_enter_exit_data, GOACC_parallel,
7886 GOACC_update, GOACC_wait, GOACC_get_thread_num,
7887 GOACC_get_num_threads.
7888 (GOMP_PLUGIN_1.0): New symbol version. Use for
7889 GOMP_PLUGIN_malloc, GOMP_PLUGIN_malloc_cleared,
7890 GOMP_PLUGIN_realloc, GOMP_PLUGIN_debug, GOMP_PLUGIN_error,
7891 GOMP_PLUGIN_fatal, GOMP_PLUGIN_async_unmap_vars,
7892 GOMP_PLUGIN_acc_thread.
7893 * libgomp.texi: Update for OpenACC changes, and GOMP_DEBUG
7894 environment variable.
7895 * libgomp_g.h (GOACC_data_start, GOACC_data_end)
7896 (GOACC_enter_exit_data, GOACC_parallel, GOACC_update, GOACC_wait)
7897 (GOACC_get_num_threads, GOACC_get_thread_num): New declarations.
7898 * splay-tree.h (splay_tree_lookup, splay_tree_insert)
7899 (splay_tree_remove): New declarations.
7900 (rotate_left, rotate_right, splay_tree_splay, splay_tree_insert)
7901 (splay_tree_remove, splay_tree_lookup): Move into...
7902 * splay-tree.c: ... this new file.
7903 * target.c: Include "oacc-plugin.h", "oacc-int.h", <assert.h>.
7904 (splay_tree_node, splay_tree, splay_tree_key)
7905 (struct target_mem_desc, struct splay_tree_key_s)
7906 (struct gomp_device_descr): Don't declare.
7907 (num_devices_openmp): New variable.
7908 (gomp_get_num_devices ): Use it.
7909 (gomp_init_targets_once): New function.
7910 (gomp_get_num_devices ): Use it.
7911 (get_kind, gomp_copy_from_async, gomp_free_memmap)
7912 (gomp_fini_device, gomp_register_image_for_device): New functions.
7913 (gomp_map_vars): Add devaddrs parameter.
7914 (gomp_update): Add mm parameter.
7915 (gomp_init_device): Move most of it into...
7916 (gomp_init_tables): ... this new function.
7917 (gomp_register_images_for_device): Remove function.
7918 (splay_compare, gomp_map_vars, gomp_unmap_vars, gomp_init_device):
7919 Make them hidden instead of static.
7920 (gomp_map_vars_existing, gomp_map_vars, gomp_unmap_vars)
7921 (gomp_update, gomp_init_device, GOMP_target, GOMP_target_data)
7922 (GOMP_target_end_data, GOMP_target_update)
7923 (gomp_load_plugin_for_device, gomp_target_init): Update for
7924 OpenACC changes.
7925 * oacc-async.c: New file.
7926 * oacc-cuda.c: Likewise.
7927 * oacc-host.c: Likewise.
7928 * oacc-init.c: Likewise.
7929 * oacc-int.h: Likewise.
7930 * oacc-mem.c: Likewise.
7931 * oacc-parallel.c: Likewise.
7932 * oacc-plugin.c: Likewise.
7933 * oacc-plugin.h: Likewise.
7934 * oacc-ptx.h: Likewise.
7935 * openacc.f90: Likewise.
7936 * openacc.h: Likewise.
7937 * openacc_lib.h: Likewise.
7938 * plugin/plugin-host.c: Likewise.
7939 * plugin/plugin-nvptx.c: Likewise.
7940 * libgomp-plugin.c: Likewise.
7941 * libgomp-plugin.h: Likewise.
7942 * libgomp_target.h: Remove file after merging content into the
7943 former file. Update all users.
7944 * testsuite/lib/libgomp.exp: Load libgomp-test-support.exp.
7945 (offload_targets_s, offload_targets_s_openacc): New variables.
7946 (check_effective_target_openacc_nvidia_accel_present)
7947 (check_effective_target_openacc_nvidia_accel_selected): New
7948 procedures.
7949 (libgomp_init): Update for OpenACC changes.
7950 * testsuite/libgomp-test-support.exp.in: New file.
7951 * testsuite/libgomp.oacc-c++/c++.exp: Likewise.
7952 * testsuite/libgomp.oacc-c/c.exp: Likewise.
7953 * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.
7954 * testsuite/libgomp.oacc-c-c++-common/abort-1.c: Likewise.
7955 * testsuite/libgomp.oacc-c-c++-common/abort-2.c: Likewise.
7956 * testsuite/libgomp.oacc-c-c++-common/abort-3.c: Likewise.
7957 * testsuite/libgomp.oacc-c-c++-common/abort-4.c: Likewise.
7958 * testsuite/libgomp.oacc-c-c++-common/acc_on_device-1.c: Likewise.
7959 * testsuite/libgomp.oacc-c-c++-common/asyncwait-1.c: Likewise.
7960 * testsuite/libgomp.oacc-c-c++-common/cache-1.c: Likewise.
7961 * testsuite/libgomp.oacc-c-c++-common/clauses-1.c: Likewise.
7962 * testsuite/libgomp.oacc-c-c++-common/clauses-2.c: Likewise.
7963 * testsuite/libgomp.oacc-c-c++-common/collapse-1.c: Likewise.
7964 * testsuite/libgomp.oacc-c-c++-common/collapse-2.c: Likewise.
7965 * testsuite/libgomp.oacc-c-c++-common/collapse-3.c: Likewise.
7966 * testsuite/libgomp.oacc-c-c++-common/collapse-4.c: Likewise.
7967 * testsuite/libgomp.oacc-c-c++-common/context-1.c: Likewise.
7968 * testsuite/libgomp.oacc-c-c++-common/context-2.c: Likewise.
7969 * testsuite/libgomp.oacc-c-c++-common/context-3.c: Likewise.
7970 * testsuite/libgomp.oacc-c-c++-common/context-4.c: Likewise.
7971 * testsuite/libgomp.oacc-c-c++-common/data-1.c: Likewise.
7972 * testsuite/libgomp.oacc-c-c++-common/data-2.c: Likewise.
7973 * testsuite/libgomp.oacc-c-c++-common/data-3.c: Likewise.
7974 * testsuite/libgomp.oacc-c-c++-common/data-already-1.c: Likewise.
7975 * testsuite/libgomp.oacc-c-c++-common/data-already-2.c: Likewise.
7976 * testsuite/libgomp.oacc-c-c++-common/data-already-3.c: Likewise.
7977 * testsuite/libgomp.oacc-c-c++-common/data-already-4.c: Likewise.
7978 * testsuite/libgomp.oacc-c-c++-common/data-already-5.c: Likewise.
7979 * testsuite/libgomp.oacc-c-c++-common/data-already-6.c: Likewise.
7980 * testsuite/libgomp.oacc-c-c++-common/data-already-7.c: Likewise.
7981 * testsuite/libgomp.oacc-c-c++-common/data-already-8.c: Likewise.
7982 * testsuite/libgomp.oacc-c-c++-common/deviceptr-1.c: Likewise.
7983 * testsuite/libgomp.oacc-c-c++-common/if-1.c: Likewise.
7984 * testsuite/libgomp.oacc-c-c++-common/kernels-1.c: Likewise.
7985 * testsuite/libgomp.oacc-c-c++-common/kernels-empty.c: Likewise.
7986 * testsuite/libgomp.oacc-c-c++-common/lib-1.c: Likewise.
7987 * testsuite/libgomp.oacc-c-c++-common/lib-10.c: Likewise.
7988 * testsuite/libgomp.oacc-c-c++-common/lib-11.c: Likewise.
7989 * testsuite/libgomp.oacc-c-c++-common/lib-12.c: Likewise.
7990 * testsuite/libgomp.oacc-c-c++-common/lib-13.c: Likewise.
7991 * testsuite/libgomp.oacc-c-c++-common/lib-14.c: Likewise.
7992 * testsuite/libgomp.oacc-c-c++-common/lib-15.c: Likewise.
7993 * testsuite/libgomp.oacc-c-c++-common/lib-16.c: Likewise.
7994 * testsuite/libgomp.oacc-c-c++-common/lib-17.c: Likewise.
7995 * testsuite/libgomp.oacc-c-c++-common/lib-18.c: Likewise.
7996 * testsuite/libgomp.oacc-c-c++-common/lib-19.c: Likewise.
7997 * testsuite/libgomp.oacc-c-c++-common/lib-2.c: Likewise.
7998 * testsuite/libgomp.oacc-c-c++-common/lib-20.c: Likewise.
7999 * testsuite/libgomp.oacc-c-c++-common/lib-21.c: Likewise.
8000 * testsuite/libgomp.oacc-c-c++-common/lib-22.c: Likewise.
8001 * testsuite/libgomp.oacc-c-c++-common/lib-23.c: Likewise.
8002 * testsuite/libgomp.oacc-c-c++-common/lib-24.c: Likewise.
8003 * testsuite/libgomp.oacc-c-c++-common/lib-25.c: Likewise.
8004 * testsuite/libgomp.oacc-c-c++-common/lib-26.c: Likewise.
8005 * testsuite/libgomp.oacc-c-c++-common/lib-27.c: Likewise.
8006 * testsuite/libgomp.oacc-c-c++-common/lib-28.c: Likewise.
8007 * testsuite/libgomp.oacc-c-c++-common/lib-29.c: Likewise.
8008 * testsuite/libgomp.oacc-c-c++-common/lib-3.c: Likewise.
8009 * testsuite/libgomp.oacc-c-c++-common/lib-30.c: Likewise.
8010 * testsuite/libgomp.oacc-c-c++-common/lib-31.c: Likewise.
8011 * testsuite/libgomp.oacc-c-c++-common/lib-32.c: Likewise.
8012 * testsuite/libgomp.oacc-c-c++-common/lib-33.c: Likewise.
8013 * testsuite/libgomp.oacc-c-c++-common/lib-34.c: Likewise.
8014 * testsuite/libgomp.oacc-c-c++-common/lib-35.c: Likewise.
8015 * testsuite/libgomp.oacc-c-c++-common/lib-36.c: Likewise.
8016 * testsuite/libgomp.oacc-c-c++-common/lib-37.c: Likewise.
8017 * testsuite/libgomp.oacc-c-c++-common/lib-38.c: Likewise.
8018 * testsuite/libgomp.oacc-c-c++-common/lib-39.c: Likewise.
8019 * testsuite/libgomp.oacc-c-c++-common/lib-4.c: Likewise.
8020 * testsuite/libgomp.oacc-c-c++-common/lib-40.c: Likewise.
8021 * testsuite/libgomp.oacc-c-c++-common/lib-41.c: Likewise.
8022 * testsuite/libgomp.oacc-c-c++-common/lib-42.c: Likewise.
8023 * testsuite/libgomp.oacc-c-c++-common/lib-43.c: Likewise.
8024 * testsuite/libgomp.oacc-c-c++-common/lib-44.c: Likewise.
8025 * testsuite/libgomp.oacc-c-c++-common/lib-45.c: Likewise.
8026 * testsuite/libgomp.oacc-c-c++-common/lib-46.c: Likewise.
8027 * testsuite/libgomp.oacc-c-c++-common/lib-47.c: Likewise.
8028 * testsuite/libgomp.oacc-c-c++-common/lib-48.c: Likewise.
8029 * testsuite/libgomp.oacc-c-c++-common/lib-49.c: Likewise.
8030 * testsuite/libgomp.oacc-c-c++-common/lib-5.c: Likewise.
8031 * testsuite/libgomp.oacc-c-c++-common/lib-50.c: Likewise.
8032 * testsuite/libgomp.oacc-c-c++-common/lib-51.c: Likewise.
8033 * testsuite/libgomp.oacc-c-c++-common/lib-52.c: Likewise.
8034 * testsuite/libgomp.oacc-c-c++-common/lib-53.c: Likewise.
8035 * testsuite/libgomp.oacc-c-c++-common/lib-54.c: Likewise.
8036 * testsuite/libgomp.oacc-c-c++-common/lib-55.c: Likewise.
8037 * testsuite/libgomp.oacc-c-c++-common/lib-56.c: Likewise.
8038 * testsuite/libgomp.oacc-c-c++-common/lib-57.c: Likewise.
8039 * testsuite/libgomp.oacc-c-c++-common/lib-58.c: Likewise.
8040 * testsuite/libgomp.oacc-c-c++-common/lib-59.c: Likewise.
8041 * testsuite/libgomp.oacc-c-c++-common/lib-6.c: Likewise.
8042 * testsuite/libgomp.oacc-c-c++-common/lib-60.c: Likewise.
8043 * testsuite/libgomp.oacc-c-c++-common/lib-61.c: Likewise.
8044 * testsuite/libgomp.oacc-c-c++-common/lib-62.c: Likewise.
8045 * testsuite/libgomp.oacc-c-c++-common/lib-63.c: Likewise.
8046 * testsuite/libgomp.oacc-c-c++-common/lib-64.c: Likewise.
8047 * testsuite/libgomp.oacc-c-c++-common/lib-65.c: Likewise.
8048 * testsuite/libgomp.oacc-c-c++-common/lib-66.c: Likewise.
8049 * testsuite/libgomp.oacc-c-c++-common/lib-67.c: Likewise.
8050 * testsuite/libgomp.oacc-c-c++-common/lib-68.c: Likewise.
8051 * testsuite/libgomp.oacc-c-c++-common/lib-69.c: Likewise.
8052 * testsuite/libgomp.oacc-c-c++-common/lib-7.c: Likewise.
8053 * testsuite/libgomp.oacc-c-c++-common/lib-70.c: Likewise.
8054 * testsuite/libgomp.oacc-c-c++-common/lib-71.c: Likewise.
8055 * testsuite/libgomp.oacc-c-c++-common/lib-72.c: Likewise.
8056 * testsuite/libgomp.oacc-c-c++-common/lib-73.c: Likewise.
8057 * testsuite/libgomp.oacc-c-c++-common/lib-74.c: Likewise.
8058 * testsuite/libgomp.oacc-c-c++-common/lib-75.c: Likewise.
8059 * testsuite/libgomp.oacc-c-c++-common/lib-76.c: Likewise.
8060 * testsuite/libgomp.oacc-c-c++-common/lib-77.c: Likewise.
8061 * testsuite/libgomp.oacc-c-c++-common/lib-78.c: Likewise.
8062 * testsuite/libgomp.oacc-c-c++-common/lib-79.c: Likewise.
8063 * testsuite/libgomp.oacc-c-c++-common/lib-80.c: Likewise.
8064 * testsuite/libgomp.oacc-c-c++-common/lib-81.c: Likewise.
8065 * testsuite/libgomp.oacc-c-c++-common/lib-82.c: Likewise.
8066 * testsuite/libgomp.oacc-c-c++-common/lib-83.c: Likewise.
8067 * testsuite/libgomp.oacc-c-c++-common/lib-84.c: Likewise.
8068 * testsuite/libgomp.oacc-c-c++-common/lib-85.c: Likewise.
8069 * testsuite/libgomp.oacc-c-c++-common/lib-86.c: Likewise.
8070 * testsuite/libgomp.oacc-c-c++-common/lib-87.c: Likewise.
8071 * testsuite/libgomp.oacc-c-c++-common/lib-88.c: Likewise.
8072 * testsuite/libgomp.oacc-c-c++-common/lib-89.c: Likewise.
8073 * testsuite/libgomp.oacc-c-c++-common/lib-9.c: Likewise.
8074 * testsuite/libgomp.oacc-c-c++-common/lib-90.c: Likewise.
8075 * testsuite/libgomp.oacc-c-c++-common/lib-91.c: Likewise.
8076 * testsuite/libgomp.oacc-c-c++-common/lib-92.c: Likewise.
8077 * testsuite/libgomp.oacc-c-c++-common/nested-1.c: Likewise.
8078 * testsuite/libgomp.oacc-c-c++-common/nested-2.c: Likewise.
8079 * testsuite/libgomp.oacc-c-c++-common/offset-1.c: Likewise.
8080 * testsuite/libgomp.oacc-c-c++-common/parallel-1.c: Likewise.
8081 * testsuite/libgomp.oacc-c-c++-common/parallel-empty.c: Likewise.
8082 * testsuite/libgomp.oacc-c-c++-common/pointer-align-1.c: Likewise.
8083 * testsuite/libgomp.oacc-c-c++-common/present-1.c: Likewise.
8084 * testsuite/libgomp.oacc-c-c++-common/present-2.c: Likewise.
8085 * testsuite/libgomp.oacc-c-c++-common/reduction-1.c: Likewise.
8086 * testsuite/libgomp.oacc-c-c++-common/reduction-2.c: Likewise.
8087 * testsuite/libgomp.oacc-c-c++-common/reduction-3.c: Likewise.
8088 * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Likewise.
8089 * testsuite/libgomp.oacc-c-c++-common/reduction-5.c: Likewise.
8090 * testsuite/libgomp.oacc-c-c++-common/reduction-initial-1.c:
8091 Likewise.
8092 * testsuite/libgomp.oacc-c-c++-common/subr.h: Likewise.
8093 * testsuite/libgomp.oacc-c-c++-common/subr.ptx: Likewise.
8094 * testsuite/libgomp.oacc-c-c++-common/timer.h: Likewise.
8095 * testsuite/libgomp.oacc-c-c++-common/update-1-2.c: Likewise.
8096 * testsuite/libgomp.oacc-c-c++-common/update-1.c: Likewise.
8097 * testsuite/libgomp.oacc-fortran/abort-1.f90: Likewise.
8098 * testsuite/libgomp.oacc-fortran/abort-2.f90: Likewise.
8099 * testsuite/libgomp.oacc-fortran/acc_on_device-1-1.f90: Likewise.
8100 * testsuite/libgomp.oacc-fortran/acc_on_device-1-2.f: Likewise.
8101 * testsuite/libgomp.oacc-fortran/acc_on_device-1-3.f: Likewise.
8102 * testsuite/libgomp.oacc-fortran/asyncwait-1.f90: Likewise.
8103 * testsuite/libgomp.oacc-fortran/asyncwait-2.f90: Likewise.
8104 * testsuite/libgomp.oacc-fortran/asyncwait-3.f90: Likewise.
8105 * testsuite/libgomp.oacc-fortran/collapse-1.f90: Likewise.
8106 * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
8107 * testsuite/libgomp.oacc-fortran/collapse-3.f90: Likewise.
8108 * testsuite/libgomp.oacc-fortran/collapse-4.f90: Likewise.
8109 * testsuite/libgomp.oacc-fortran/collapse-5.f90: Likewise.
8110 * testsuite/libgomp.oacc-fortran/collapse-6.f90: Likewise.
8111 * testsuite/libgomp.oacc-fortran/collapse-7.f90: Likewise.
8112 * testsuite/libgomp.oacc-fortran/collapse-8.f90: Likewise.
8113 * testsuite/libgomp.oacc-fortran/data-1.f90: Likewise.
8114 * testsuite/libgomp.oacc-fortran/data-2.f90: Likewise.
8115 * testsuite/libgomp.oacc-fortran/data-3.f90: Likewise.
8116 * testsuite/libgomp.oacc-fortran/data-4-2.f90: Likewise.
8117 * testsuite/libgomp.oacc-fortran/data-4.f90: Likewise.
8118 * testsuite/libgomp.oacc-fortran/data-already-1.f: Likewise.
8119 * testsuite/libgomp.oacc-fortran/data-already-2.f: Likewise.
8120 * testsuite/libgomp.oacc-fortran/data-already-3.f: Likewise.
8121 * testsuite/libgomp.oacc-fortran/data-already-4.f: Likewise.
8122 * testsuite/libgomp.oacc-fortran/data-already-5.f: Likewise.
8123 * testsuite/libgomp.oacc-fortran/data-already-6.f: Likewise.
8124 * testsuite/libgomp.oacc-fortran/data-already-7.f: Likewise.
8125 * testsuite/libgomp.oacc-fortran/data-already-8.f: Likewise.
8126 * testsuite/libgomp.oacc-fortran/lib-1.f90: Likewise.
8127 * testsuite/libgomp.oacc-fortran/lib-10.f90: Likewise.
8128 * testsuite/libgomp.oacc-fortran/lib-2.f: Likewise.
8129 * testsuite/libgomp.oacc-fortran/lib-3.f: Likewise.
8130 * testsuite/libgomp.oacc-fortran/lib-4.f90: Likewise.
8131 * testsuite/libgomp.oacc-fortran/lib-5.f90: Likewise.
8132 * testsuite/libgomp.oacc-fortran/lib-6.f90: Likewise.
8133 * testsuite/libgomp.oacc-fortran/lib-7.f90: Likewise.
8134 * testsuite/libgomp.oacc-fortran/lib-8.f90: Likewise.
8135 * testsuite/libgomp.oacc-fortran/map-1.f90: Likewise.
8136 * testsuite/libgomp.oacc-fortran/openacc_version-1.f: Likewise.
8137 * testsuite/libgomp.oacc-fortran/openacc_version-2.f90: Likewise.
8138 * testsuite/libgomp.oacc-fortran/pointer-align-1.f90: Likewise.
8139 * testsuite/libgomp.oacc-fortran/pset-1.f90: Likewise.
8140 * testsuite/libgomp.oacc-fortran/reduction-1.f90: Likewise.
8141 * testsuite/libgomp.oacc-fortran/reduction-2.f90: Likewise.
8142 * testsuite/libgomp.oacc-fortran/reduction-3.f90: Likewise.
8143 * testsuite/libgomp.oacc-fortran/reduction-4.f90: Likewise.
8144 * testsuite/libgomp.oacc-fortran/reduction-5.f90: Likewise.
8145 * testsuite/libgomp.oacc-fortran/reduction-6.f90: Likewise.
8146 * testsuite/libgomp.oacc-fortran/routine-1.f90: Likewise.
8147 * testsuite/libgomp.oacc-fortran/routine-2.f90: Likewise.
8148 * testsuite/libgomp.oacc-fortran/routine-3.f90: Likewise.
8149 * testsuite/libgomp.oacc-fortran/routine-4.f90: Likewise.
8150 * testsuite/libgomp.oacc-fortran/subarrays-1.f90: Likewise.
8151 * testsuite/libgomp.oacc-fortran/subarrays-2.f90: Likewise.
8152
8153 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
8154 Julian Brown <julian@codesourcery.com>
8155 David Malcolm <dmalcolm@redhat.com>
8156
8157 * configure.ac: Rename libgomp from "GNU OpenMP Runtime Library"
8158 to "GNU Offloading and Multi Processing Runtime Library". Change
8159 all users.
8160 * configure: Regenerate.
8161 * libgomp.texi: Update.
8162
8163 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
8164
8165 * configure.ac [tgt_dir] (offload_additional_lib_paths): Also add
8166 "$tgt_dir/lib32".
8167 * configure: Regenerate.
8168
8169 * testsuite/lib/libgomp.exp (libgomp_init): Correctly match
8170 "intelmic" in $offload_targets.
8171
8172 2015-01-05 Jakub Jelinek <jakub@redhat.com>
8173
8174 Update copyright years.
8175
8176 * libgomp.texi: Bump @copying's copyright year.
8177
8178 2014-12-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8179
8180 * testsuite/lib/libgomp.exp: Load target-utils.exp.
8181 Move load of target-supports.exp earlier.
8182
8183 2014-12-10 Ilya Verbin <ilya.verbin@intel.com>
8184
8185 * testsuite/libgomp.c/target-9.c: New test.
8186
8187 2014-12-09 Varvara Rainchik <varvara.rainchik@intel.com>
8188
8189 * config.h.in: Regenerate.
8190 * configure: Regenerate.
8191 * configure.ac: Add GCC_CHECK_EMUTLS.
8192 * libgomp.h: Add check for USE_EMUTLS: this case
8193 is equal to HAVE_TLS.
8194 * team.c: Likewise.
8195
8196 2014-12-03 Uros Bizjak <ubizjak@gmail.com>
8197
8198 * configure.tgt (x86_64-*-linux*): Tune -m32 multilib to generic.
8199
8200 2014-11-28 Andrey Turetskiy <andrey.turetskiy@intel.com>
8201 Ilya Verbin <ilya.verbin@intel.com>
8202
8203 * testsuite/libgomp.c/target-critical-1.c: New test.
8204
8205 2014-11-26 Jakub Jelinek <jakub@redhat.com>
8206
8207 * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
8208 to dg-options unless expensive testing is on.
8209 (TESTITERS): Define to N if not defined.
8210 (main): Use TESTITERS instead of N.
8211 * testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
8212 dg-additional-options depending on whether expensive testing is on.
8213 * testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
8214 Decrease N to 100000 and CHUNKSZ to 10000.
8215
8216 2014-11-24 Jakub Jelinek <jakub@redhat.com>
8217
8218 PR fortran/63938
8219 * testsuite/libgomp.fortran/pr63938-1.f90: New test.
8220 * testsuite/libgomp.fortran/pr63938-2.f90: New test.
8221
8222 2014-11-21 Steve Ellcey <sellcey@imgtec.com>
8223
8224 * config/linux/mips/futex.h (SYS_futex): Define if not already done.
8225
8226 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
8227
8228 PR bootstrap/63784
8229 * configure: Regenerated.
8230
8231 2014-11-19 Uros Bizjak <ubizjak@gmail.com>
8232
8233 * testsuite/libgomp.c/examples-4/e.53.5.c: Require
8234 vect_simd_clones effective target.
8235 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8236
8237 2014-11-14 Jakub Jelinek <jakub@redhat.com>
8238
8239 * libgomp.c/examples-4/e.54.2.c (main): Use N / 8 instead
8240 of 32 as block_size.
8241 * libgomp.fortran/examples-4/e.54.2.f90 (e_54_1): Use n / 8
8242 instead of 32 as block_size.
8243
8244 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8245 Ilya Verbin <ilya.verbin@intel.com>
8246
8247 * Makefile.in: Regenerate.
8248 * configure: Regenerate.
8249 * configure.ac: Set up offload_additional_options,
8250 offload_additional_lib_paths and offload_targets.
8251 * testsuite/Makefile.am: Export environment variables: OFFLOAD_TARGETS,
8252 OFFLOAD_ADDITIONAL_OPTIONS, OFFLOAD_ADDITIONAL_LIB_PATHS.
8253 * testsuite/Makefile.in: Regenerate.
8254 * testsuite/lib/libgomp.exp (libgomp_init): Append
8255 offload_additional_lib_paths to LD_LIBRARY_PATH. Append
8256 offload_additional_options to ALWAYS_CFLAGS. Append liboffloadmic
8257 build directory to LD_LIBRARY_PATH for intelmic offload targets.
8258
8259 2014-11-13 Andrey Turetskiy <andrey.turetskiy@intel.com>
8260 Ilya Verbin <ilya.verbin@intel.com>
8261 Kirill Yukhin <kirill.yukhin@intel.com>
8262 Ilya Tocar <ilya.tocar@intel.com>
8263
8264 * testsuite/lib/libgomp.exp
8265 (check_effective_target_offload_device): New.
8266 * testsuite/libgomp.c++/c++.exp: Include tests from subdirectories.
8267 * testsuite/libgomp.c++/examples-4/e.51.5.C: New test.
8268 * testsuite/libgomp.c++/examples-4/e.53.2.C: Ditto.
8269 * testsuite/libgomp.c/examples-4/e.50.1.c: Ditto.
8270 * testsuite/libgomp.c/examples-4/e.50.2.c: Ditto.
8271 * testsuite/libgomp.c/examples-4/e.50.3.c: Ditto.
8272 * testsuite/libgomp.c/examples-4/e.50.4.c: Ditto.
8273 * testsuite/libgomp.c/examples-4/e.50.5.c: Ditto.
8274 * testsuite/libgomp.c/examples-4/e.51.1.c: Ditto.
8275 * testsuite/libgomp.c/examples-4/e.51.2.c: Ditto.
8276 * testsuite/libgomp.c/examples-4/e.51.3.c: Ditto.
8277 * testsuite/libgomp.c/examples-4/e.51.4.c: Ditto.
8278 * testsuite/libgomp.c/examples-4/e.51.6.c: Ditto.
8279 * testsuite/libgomp.c/examples-4/e.51.7.c: Ditto.
8280 * testsuite/libgomp.c/examples-4/e.52.1.c: Ditto.
8281 * testsuite/libgomp.c/examples-4/e.52.2.c: Ditto.
8282 * testsuite/libgomp.c/examples-4/e.53.1.c: Ditto.
8283 * testsuite/libgomp.c/examples-4/e.53.3.c: Ditto.
8284 * testsuite/libgomp.c/examples-4/e.53.4.c: Ditto.
8285 * testsuite/libgomp.c/examples-4/e.53.5.c: Ditto.
8286 * testsuite/libgomp.c/examples-4/e.54.2.c: Ditto.
8287 * testsuite/libgomp.c/examples-4/e.54.3.c: Ditto.
8288 * testsuite/libgomp.c/examples-4/e.54.4.c: Ditto.
8289 * testsuite/libgomp.c/examples-4/e.54.5.c: Ditto.
8290 * testsuite/libgomp.c/examples-4/e.54.6.c: Ditto.
8291 * testsuite/libgomp.c/examples-4/e.55.1.c: Ditto.
8292 * testsuite/libgomp.c/examples-4/e.55.2.c: Ditto.
8293 * testsuite/libgomp.c/examples-4/e.56.3.c: Ditto.
8294 * testsuite/libgomp.c/examples-4/e.56.4.c: Ditto.
8295 * testsuite/libgomp.c/examples-4/e.57.1.c: Ditto.
8296 * testsuite/libgomp.c/examples-4/e.57.2.c: Ditto.
8297 * testsuite/libgomp.c/examples-4/e.57.3.c: Ditto.
8298 * testsuite/libgomp.c/target-7.c: Fix test.
8299 * testsuite/libgomp.fortran/examples-4/e.50.1.f90: New test.
8300 * testsuite/libgomp.fortran/examples-4/e.50.2.f90: Ditto.
8301 * testsuite/libgomp.fortran/examples-4/e.50.3.f90: Ditto.
8302 * testsuite/libgomp.fortran/examples-4/e.50.4.f90: Ditto.
8303 * testsuite/libgomp.fortran/examples-4/e.50.5.f90: Ditto.
8304 * testsuite/libgomp.fortran/examples-4/e.51.1.f90: Ditto.
8305 * testsuite/libgomp.fortran/examples-4/e.51.2.f90: Ditto.
8306 * testsuite/libgomp.fortran/examples-4/e.51.3.f90: Ditto.
8307 * testsuite/libgomp.fortran/examples-4/e.51.4.f90: Ditto.
8308 * testsuite/libgomp.fortran/examples-4/e.51.5.f90: Ditto.
8309 * testsuite/libgomp.fortran/examples-4/e.51.6.f90: Ditto.
8310 * testsuite/libgomp.fortran/examples-4/e.51.7.f90: Ditto.
8311 * testsuite/libgomp.fortran/examples-4/e.52.1.f90: Ditto.
8312 * testsuite/libgomp.fortran/examples-4/e.52.2.f90: Ditto.
8313 * testsuite/libgomp.fortran/examples-4/e.53.1.f90: Ditto.
8314 * testsuite/libgomp.fortran/examples-4/e.53.2.f90: Ditto.
8315 * testsuite/libgomp.fortran/examples-4/e.53.3.f90: Ditto.
8316 * testsuite/libgomp.fortran/examples-4/e.53.4.f90: Ditto.
8317 * testsuite/libgomp.fortran/examples-4/e.53.5.f90: Ditto.
8318 * testsuite/libgomp.fortran/examples-4/e.54.2.f90: Ditto.
8319 * testsuite/libgomp.fortran/examples-4/e.54.3.f90: Ditto.
8320 * testsuite/libgomp.fortran/examples-4/e.54.4.f90: Ditto.
8321 * testsuite/libgomp.fortran/examples-4/e.54.5.f90: Ditto.
8322 * testsuite/libgomp.fortran/examples-4/e.54.6.f90: Ditto.
8323 * testsuite/libgomp.fortran/examples-4/e.55.1.f90: Ditto.
8324 * testsuite/libgomp.fortran/examples-4/e.55.2.f90: Ditto.
8325 * testsuite/libgomp.fortran/examples-4/e.56.3.f90: Ditto.
8326 * testsuite/libgomp.fortran/examples-4/e.56.4.f90: Ditto.
8327 * testsuite/libgomp.fortran/examples-4/e.57.1.f90: Ditto.
8328 * testsuite/libgomp.fortran/examples-4/e.57.2.f90: Ditto.
8329 * testsuite/libgomp.fortran/examples-4/e.57.3.f90: Ditto.
8330
8331 2014-11-13 Jakub Jelinek <jakub@redhat.com>
8332 Ilya Verbin <ilya.verbin@intel.com>
8333 Thomas Schwinge <thomas@codesourcery.com>
8334 Andrey Turetskiy <andrey.turetskiy@intel.com>
8335
8336 * libgomp.map (GOMP_4.0.1): New symbol version.
8337 Add GOMP_offload_register.
8338 * libgomp_target.h: New file.
8339 * splay-tree.h: New file.
8340 * target.c: Include config.h, libgomp_target.h, dlfcn.h, splay-tree.h.
8341 (gomp_target_init): New forward declaration.
8342 (gomp_is_initialized): New static variable.
8343 (splay_tree_node, splay_tree, splay_tree_key): New typedefs.
8344 (struct target_mem_desc, struct splay_tree_key_s, offload_image_descr):
8345 New structures.
8346 (offload_images, num_offload_images, devices, num_devices): New static
8347 variables.
8348 (splay_compare): New static function.
8349 (struct gomp_device_descr): New structure.
8350 (gomp_get_num_devices): Call gomp_target_init.
8351 (resolve_device, gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt)
8352 (gomp_unmap_vars, gomp_update, gomp_init_device): New static functions.
8353 (GOMP_offload_register): New function.
8354 (GOMP_target): Arrange for host callback to be performed in a separate
8355 initial thread and contention group, inheriting ICVs from
8356 gomp_global_icv etc. Call gomp_map_vars and gomp_unmap_vars.
8357 Add device initialization and lookup for target function in splay tree.
8358 (GOMP_target_data): Add device initialization and call gomp_map_vars.
8359 (GOMP_target_end_data): Call gomp_unmap_vars.
8360 (GOMP_target_update): Add device initialization and call gomp_update.
8361 (gomp_load_plugin_for_device, gomp_register_images_for_device)
8362 (gomp_target_init): New static functions.
8363
8364 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
8365 Thomas Schwinge <thomas@codesourcery.com>
8366 Ilya Verbin <ilya.verbin@intel.com>
8367 Andrey Turetskiy <andrey.turetskiy@intel.com>
8368
8369 * config.h.in: Regenerate.
8370 * configure: Regenerate.
8371 * configure.ac: Check for libdl, required for plugin support.
8372 (PLUGIN_SUPPORT): Define if plugins are supported.
8373 (enable_offload_targets): Support Intel MIC targets.
8374 (OFFLOAD_TARGETS): List of target names suitable for offloading.
8375
8376 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8377
8378 PR target/63610
8379 * configure: Regenerate.
8380
8381 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8382
8383 * config/posix/lock.c (_XOPEN_SOURCE) Define as 600.
8384
8385 2014-10-06 Marek Polacek <polacek@redhat.com>
8386
8387 * testsuite/libgomp.c/affinity-1.c: Include <sys/wait.h>.
8388 * testsuite/libgomp.c/nqueens-1.c: Include <stdlib.h>.
8389 * testsuite/libgomp.c/thread-limit-1.c: Include <omp.h>
8390 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8391
8392 2014-10-06 Marek Polacek <polacek@redhat.com>
8393
8394 * testsuite/libgomp.c/affinity-1.c: Fix implicit declarations.
8395 * testsuite/libgomp.c/nqueens-1.c: Likewise.
8396 * testsuite/libgomp.c/pr26943-3.c: Likewise.
8397 * testsuite/libgomp.c/pr26943-4.c: Likewise.
8398 * testsuite/libgomp.c/pr36802-2.c: Likewise.
8399 * testsuite/libgomp.c/pr36802-3.c: Likewise.
8400 * testsuite/libgomp.c/thread-limit-1.c: Likewise.
8401 * testsuite/libgomp.c/thread-limit-2.c: Likewise.
8402 * testsuite/libgomp.c/appendix-a/a.15.1.c: Include <omp.h>.
8403 * testsuite/libgomp.c/omp-loop02.c: Fix defaulting to int.
8404 * testsuite/libgomp.c/omp-parallel-for.c: Likewise.
8405 * testsuite/libgomp.c/omp-parallel-if.c: Likewise.
8406 * testsuite/libgomp.c/omp-single-1.c: Likewise.
8407 * testsuite/libgomp.c/omp-single-2.c: Likewise.
8408 * testsuite/libgomp.c/omp_matvec.c: Likewise.
8409 * testsuite/libgomp.c/omp_workshare3.c: Likewise.
8410 * testsuite/libgomp.c/omp_workshare4.c: Likewise.
8411 * testsuite/libgomp.c/shared-1.c: Fix defaulting to int. Fix implicit
8412 declarations.
8413
8414 2014-10-03 Jakub Jelinek <jakub@redhat.com>
8415
8416 PR libgomp/61200
8417 * testsuite/libgomp.c/pr61200.c: New test.
8418
8419 2014-09-18 Jakub Jelinek <jakub@redhat.com>
8420
8421 PR c++/63248
8422 * testsuite/libgomp.c++/pr63248.C: New test.
8423
8424 2014-08-04 Jakub Jelinek <jakub@redhat.com>
8425
8426 * task.c (GOMP_taskgroup_end): If taskgroup->num_children
8427 is not zero, but taskgroup->children is NULL and there are
8428 any task->children, schedule those instead of waiting.
8429 * testsuite/libgomp.c/depend-6.c: New test.
8430 * testsuite/libgomp.c/depend-7.c: New test.
8431 * testsuite/libgomp.c/depend-8.c: New test.
8432 * testsuite/libgomp.c/depend-9.c: New test.
8433 * testsuite/libgomp.c/depend-10.c: New test.
8434
8435 2014-08-01 Jakub Jelinek <jakub@redhat.com>
8436
8437 * libgomp.h (struct gomp_task_depend_entry): Add redundant_out field.
8438 (struct gomp_taskwait): New type.
8439 (struct gomp_task): Add taskwait and parent_depends_on, remove
8440 in_taskwait and taskwait_sem fields.
8441 (gomp_finish_task): Don't destroy taskwait_sem.
8442 * task.c (gomp_init_task): Don't init in_taskwait, instead init
8443 taskwait and parent_depends_on.
8444 (GOMP_task): For if (0) tasks with depend clause that depend on
8445 earlier tasks don't defer them, instead call
8446 gomp_task_maybe_wait_for_dependencies to wait for the dependencies.
8447 Initialize redundant_out field, for redundant out entries just
8448 move them at the end of linked list instead of removing them
8449 completely, and set redundant_out flag instead of redundant.
8450 (gomp_task_run_pre): Update last_parent_depends_on if scheduling
8451 that task.
8452 (gomp_task_run_post_handle_dependers): If parent is in
8453 gomp_task_maybe_wait_for_dependencies and newly runnable task
8454 is not parent_depends_on, queue it in parent->children linked
8455 list after all runnable tasks with parent_depends_on set.
8456 Adjust for addition of taskwait indirection.
8457 (gomp_task_run_post_remove_parent): If parent is in
8458 gomp_task_maybe_wait_for_dependencies and task to be removed
8459 is parent_depends_on, decrement n_depend and if needed awake
8460 parent. Adjust for addition of taskwait indirection.
8461 (GOMP_taskwait): Adjust for addition of taskwait indirection.
8462 (gomp_task_maybe_wait_for_dependencies): New function.
8463 * testsuite/libgomp.c/depend-5.c: New test.
8464
8465 2014-07-13 Tobias Burnus <burnus@net-b.de>
8466
8467 * testsuite/libgomp.fortran/pr34020.f90: Make compile
8468 with TS 18508/Fortran 2015.
8469
8470 2014-07-06 Marek Polacek <polacek@redhat.com>
8471
8472 PR c/6940
8473 * testsuite/libgomp.c/appendix-a/a.29.1.c (f): Add dg-warnings.
8474
8475 2014-07-03 Jakub Jelinek <jakub@redhat.com>
8476
8477 * testsuite/lib/libgomp.exp (libgomp_target_compile): If $source
8478 matches regex $lang_source_re, add $lang_include_flags to options.
8479 * testsuite/libgomp.c/c.exp: Unset lang_include_flags.
8480 * testsuite/libgomp.c++/c++.exp: Likewise.
8481 * testsuite/libgomp.fortran/fortran.exp: Likewise. Set lang_source_re
8482 and lang_include_flags instead of adding -fintrinsic-modules-path= to
8483 ALWAYS_CFLAGS.
8484 * testsuite/libgomp.graphite/graphite.exp: Unset lang_include_flags.
8485
8486 2014-07-03 Thomas Schwinge <thomas@codesourcery.com>
8487
8488 * testsuite/libgomp.fortran/fortran.exp: Explain
8489 gfortran-dg-runtest usage.
8490
8491 2014-06-25 Jakub Jelinek <jakub@redhat.com>
8492
8493 * testsuite/libgomp.fortran/simd5.f90: New test.
8494 * testsuite/libgomp.fortran/simd6.f90: New test.
8495 * testsuite/libgomp.fortran/simd7.f90: New test.
8496
8497 2014-06-24 Jakub Jelinek <jakub@redhat.com>
8498
8499 * testsuite/libgomp.c/for-2.c: Define SC to static for
8500 #pragma omp for simd testing.
8501 * testsuite/libgomp.c/for-2.h (SC): Define if not defined.
8502 (N(f5), N(f6), N(f7), N(f8), N(f10), N(f12), N(f14)): Use
8503 SC macro.
8504 * testsuite/libgomp.c/simd-14.c: New test.
8505 * testsuite/libgomp.c/simd-15.c: New test.
8506 * testsuite/libgomp.c/simd-16.c: New test.
8507 * testsuite/libgomp.c/simd-17.c: New test.
8508 * testsuite/libgomp.c++/for-10.C: Define SC to static for
8509 #pragma omp for simd testing.
8510 * testsuite/libgomp.c++/simd10.C: New test.
8511 * testsuite/libgomp.c++/simd11.C: New test.
8512 * testsuite/libgomp.c++/simd12.C: New test.
8513 * testsuite/libgomp.c++/simd13.C: New test.
8514
8515 * testsuite/libgomp.fortran/aligned1.f03: New test.
8516 * testsuite/libgomp.fortran/nestedfn5.f90: New test.
8517 * testsuite/libgomp.fortran/target7.f90: Surround loop spawning
8518 tasks with !$omp parallel !$omp single.
8519 * testsuite/libgomp.fortran/target8.f90: New test.
8520 * testsuite/libgomp.fortran/udr4.f90 (foo UDR, bar UDR): Adjust
8521 not to use trim in the combiner, instead call elemental function.
8522 (fn): New elemental function.
8523 * testsuite/libgomp.fortran/udr6.f90 (do_add, dp_add, dp_init):
8524 Make elemental.
8525 * testsuite/libgomp.fortran/udr7.f90 (omp_priv, omp_orig, omp_out,
8526 omp_in): Likewise.
8527 * testsuite/libgomp.fortran/udr12.f90: New test.
8528 * testsuite/libgomp.fortran/udr13.f90: New test.
8529 * testsuite/libgomp.fortran/udr14.f90: New test.
8530 * testsuite/libgomp.fortran/udr15.f90: New test.
8531
8532 2014-06-18 Jakub Jelinek <jakub@redhat.com>
8533
8534 * omp_lib.f90.in (openmp_version): Set to 201307.
8535 * omp_lib.h.in (openmp_version): Likewise.
8536 * testsuite/libgomp.c/target-8.c: New test.
8537 * testsuite/libgomp.fortran/declare-simd-1.f90: Add notinbranch
8538 and inbranch clauses.
8539 * testsuite/libgomp.fortran/depend-3.f90: New test.
8540 * testsuite/libgomp.fortran/openmp_version-1.f: Adjust for new
8541 openmp_version.
8542 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8543 * testsuite/libgomp.fortran/target1.f90: New test.
8544 * testsuite/libgomp.fortran/target2.f90: New test.
8545 * testsuite/libgomp.fortran/target3.f90: New test.
8546 * testsuite/libgomp.fortran/target4.f90: New test.
8547 * testsuite/libgomp.fortran/target5.f90: New test.
8548 * testsuite/libgomp.fortran/target6.f90: New test.
8549 * testsuite/libgomp.fortran/target7.f90: New test.
8550
8551 2014-06-10 Jakub Jelinek <jakub@redhat.com>
8552
8553 PR fortran/60928
8554 * testsuite/libgomp.fortran/allocatable9.f90: New test.
8555 * testsuite/libgomp.fortran/allocatable10.f90: New test.
8556 * testsuite/libgomp.fortran/allocatable11.f90: New test.
8557 * testsuite/libgomp.fortran/allocatable12.f90: New test.
8558 * testsuite/libgomp.fortran/alloc-comp-1.f90: New test.
8559 * testsuite/libgomp.fortran/alloc-comp-2.f90: New test.
8560 * testsuite/libgomp.fortran/alloc-comp-3.f90: New test.
8561 * testsuite/libgomp.fortran/associate1.f90: New test.
8562 * testsuite/libgomp.fortran/associate2.f90: New test.
8563 * testsuite/libgomp.fortran/procptr1.f90: New test.
8564
8565 2014-06-06 Jakub Jelinek <jakub@redhat.com>
8566
8567 * testsuite/libgomp.fortran/simd1.f90: New test.
8568 * testsuite/libgomp.fortran/udr1.f90: New test.
8569 * testsuite/libgomp.fortran/udr2.f90: New test.
8570 * testsuite/libgomp.fortran/udr3.f90: New test.
8571 * testsuite/libgomp.fortran/udr4.f90: New test.
8572 * testsuite/libgomp.fortran/udr5.f90: New test.
8573 * testsuite/libgomp.fortran/udr6.f90: New test.
8574 * testsuite/libgomp.fortran/udr7.f90: New test.
8575 * testsuite/libgomp.fortran/udr8.f90: New test.
8576 * testsuite/libgomp.fortran/udr9.f90: New test.
8577 * testsuite/libgomp.fortran/udr10.f90: New test.
8578 * testsuite/libgomp.fortran/udr11.f90: New test.
8579
8580 2014-05-27 Uros Bizjak <ubizjak@gmail.com>
8581
8582 * testsuite/libgomp.fortran/declare-simd-1.f90: Require
8583 vect_simd_clones effective target.
8584 * testsuite/libgomp.fortran/declare-simd-2.f90: Ditto.
8585
8586 2014-05-21 Jakub Jelinek <jakub@redhat.com>
8587
8588 PR middle-end/61252
8589 * testsuite/libgomp.c++/simd-9.C: New test.
8590
8591 2014-05-18 Uros Bizjak <ubizjak@gmail.com>
8592
8593 * libgomp.texi (Runitme Library Routines): Remove multiple @menu.
8594 (Environment Variables) Move OMP_PROC_BIND and OMP_STACKSIZE node
8595 texts according to their @menu entry positions.
8596
8597 2014-05-11 Jakub Jelinek <jakub@redhat.com>
8598
8599 * testsuite/libgomp.fortran/cancel-do-1.f90: New test.
8600 * testsuite/libgomp.fortran/cancel-do-2.f90: New test.
8601 * testsuite/libgomp.fortran/cancel-parallel-1.f90: New test.
8602 * testsuite/libgomp.fortran/cancel-parallel-3.f90: New test.
8603 * testsuite/libgomp.fortran/cancel-sections-1.f90: New test.
8604 * testsuite/libgomp.fortran/cancel-taskgroup-2.f90: New test.
8605 * testsuite/libgomp.fortran/declare-simd-1.f90: New test.
8606 * testsuite/libgomp.fortran/declare-simd-2.f90: New test.
8607 * testsuite/libgomp.fortran/declare-simd-3.f90: New test.
8608 * testsuite/libgomp.fortran/depend-1.f90: New test.
8609 * testsuite/libgomp.fortran/depend-2.f90: New test.
8610 * testsuite/libgomp.fortran/omp_atomic5.f90: New test.
8611 * testsuite/libgomp.fortran/simd1.f90: New test.
8612 * testsuite/libgomp.fortran/simd2.f90: New test.
8613 * testsuite/libgomp.fortran/simd3.f90: New test.
8614 * testsuite/libgomp.fortran/simd4.f90: New test.
8615 * testsuite/libgomp.fortran/taskgroup1.f90: New test.
8616
8617 2014-05-02 Jakub Jelinek <jakub@redhat.com>
8618
8619 * testsuite/libgomp.c/simd-10.c: New test.
8620 * testsuite/libgomp.c/simd-11.c: New test.
8621 * testsuite/libgomp.c/simd-12.c: New test.
8622 * testsuite/libgomp.c/simd-13.c: New test.
8623
8624 2014-04-24 Jakub Jelinek <jakub@redhat.com>
8625
8626 * testsuite/libgomp.c++/atomic-14.C: Allow seq_cst and
8627 atomic type clauses in any order and optional comma in between.
8628 * testsuite/libgomp.c++/atomic-15.C: Likewise.
8629 * testsuite/libgomp.c/atomic-17.c: Likewise.
8630
8631 * testsuite/libgomp.c/simd-7.c: New test.
8632 * testsuite/libgomp.c/simd-8.c: New test.
8633 * testsuite/libgomp.c/simd-9.c: New test.
8634 * testsuite/libgomp.c/loop-16.c: New test.
8635
8636 2014-04-02 Richard Henderson <rth@redhat.com>
8637
8638 * config/linux/futex.h (futex_wait): Get error value from errno.
8639 (futex_wake): Likewise.
8640
8641 2014-03-25 Jakub Jelinek <jakub@redhat.com>
8642
8643 PR c++/60331
8644 * testsuite/libgomp.c++/udr-11.C: New test.
8645 * testsuite/libgomp.c++/udr-12.C: New test.
8646 * testsuite/libgomp.c++/udr-13.C: New test.
8647 * testsuite/libgomp.c++/udr-14.C: New test.
8648 * testsuite/libgomp.c++/udr-15.C: New test.
8649 * testsuite/libgomp.c++/udr-16.C: New test.
8650 * testsuite/libgomp.c++/udr-17.C: New test.
8651 * testsuite/libgomp.c++/udr-18.C: New test.
8652 * testsuite/libgomp.c++/udr-19.C: New test.
8653
8654 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8655
8656 Update copyright years
8657
8658 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
8659
8660 * hashtab.h: Use the standard form for the copyright notice.
8661
8662 2014-01-02 Tobias Burnus <burnus@net-b.de>
8663
8664 * libgomp.texi: Bump @copying's copyright year.
8665
8666 2013-12-17 Andreas Tobler <andreast@gcc.gnu.org>
8667
8668 * testsuite/libgomp.c/affinity-1.c: Remove alloca.h include. Replace
8669 alloca () with __builtin_alloca ().
8670 * testsuite/libgomp.c/icv-2.c: Add FreeBSD coverage.
8671 * testsuite/libgomp.c/lock-3.c: Likewise.
8672 * testsuite/libgomp.c/pr48591.c: Likewise.
8673
8674 2013-12-17 Jakub Jelinek <jakub@redhat.com>
8675
8676 PR testsuite/59534
8677 * testsuite/libgomp.fortran/retval1.f90 (e5): Avoid non-shortcircuited
8678 comparisons.
8679
8680 2013-12-16 Jakub Jelinek <jakub@redhat.com>
8681
8682 PR libgomp/58756
8683 * testsuite/libgomp.c/pr58756.c: New test.
8684
8685 2013-12-12 Jakub Jelinek <jakub@redhat.com>
8686
8687 PR libgomp/59467
8688 * testsuite/libgomp.fortran/crayptr2.f90: Add private (d) clause to
8689 !$omp parallel.
8690
8691 2013-11-07 Thomas Schwinge <thomas@codesourcery.com>
8692
8693 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -fopenmp to
8694 ALWAYS_CFLAGS.
8695 * testsuite/libgomp.c++/c++.exp (ALWAYS_CFLAGS): Add -fopenmp.
8696 * testsuite/libgomp.c/c.exp (ALWAYS_CFLAGS): Likewise.
8697 * testsuite/libgomp.fortran/fortran.exp (ALWAYS_CFLAGS): Likewise.
8698 * testsuite/libgomp.graphite/graphite.exp (ALWAYS_CFLAGS):
8699 Likewise.
8700
8701 * libgomp_g.h: Include <stddef.h> for size_t.
8702
8703 * libgomp.spec.in: Update comment about libgomp's dependencies.
8704 * configure.ac: Likewise.
8705 * configure: Regenerate.
8706
8707 2013-10-16 Tobias Burnus <burnus@net-b.de>
8708
8709 * libgomp.texi: (Runtime Library Routines): Update references for
8710 OpenMP 4.0. Add omp_get_cancellation, omp_get_default_device,
8711 omp_get_num_devices, omp_get_num_teams, omp_get_proc_bind,
8712 omp_get_team_num, omp_is_initial_device, omp_set_default_device.
8713 (Environment Variables): Update references for OpenMP 4.0. Add
8714 OMP_CANCELLATION, OMP_DEFAULT_DEVICE, OMP_PLACES.
8715 Move OMP_DISPLAY_ENV and OMP_PROC_BIND up to be in alphabetical
8716 order.
8717
8718 2013-10-14 Jakub Jelinek <jakub@redhat.com>
8719
8720 * env.c (parse_bind_var): Initialize value to avoid
8721 (false positive) warning.
8722
8723 2013-10-12 Jakub Jelinek <jakub@redhat.com>
8724
8725 PR libgomp/58691
8726 * config/linux/proc.c (gomp_cpuset_popcount): Add unused attribute
8727 to check variable.
8728 (gomp_init_num_threads): Move i variable declaration into
8729 #ifdef CPU_ALLOC_SIZE block.
8730 * config/linux/affinity.c (gomp_affinity_init_level): Test
8731 gomp_places_list_len == 0 rather than gomp_places_list == 0
8732 when checking for topology reading error.
8733 * team.c (gomp_team_start): Don't handle bind == omp_proc_bind_false.
8734 * env.c (parse_affinity): Add ignore argument, if true, don't populate
8735 gomp_places_list, only parse env var and always return false.
8736 (parse_places_var): Likewise. Don't check gomp_global_icv.bind_var.
8737 (initialize_env): Always parse OMP_PLACES and GOMP_CPU_AFFINITY env
8738 vars, default to OMP_PROC_BIND=true if OMP_PROC_BIND wasn't specified
8739 and either of these variables were parsed correctly into a places
8740 list.
8741
8742 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
8743 Jakub Jelinek <jakub@redhat.com>
8744
8745 * testsuite/libgomp.graphite/force-parallel-1.c: Expect 4 instead
8746 of 5 loopfn matches.
8747 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
8748 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
8749 * testsuite/libgomp.graphite/force-parallel-4.c: Likewise.
8750 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
8751 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
8752 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
8753 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
8754 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
8755
8756 2013-10-11 Thomas Schwinge <thomas@codesourcery.com>
8757
8758 * Makefile.am (omp_lib.mod): Streamline rule.
8759 * Makefile.in: Regenerate.
8760
8761 * libgomp.texi (Runtime Library Routines): C linkage, don't throw
8762 exceptions.
8763
8764 * testsuite/libgomp.c/lib-1.c (main): Add missing error check.
8765 * testsuite/libgomp.fortran/lib1.f90: Likewise.
8766 * testsuite/libgomp.fortran/lib2.f: Likewise.
8767 * testsuite/libgomp.fortran/lib3.f: Likewise.
8768
8769 * configure.ac: Typo fix.
8770 * configure: Regenerate.
8771
8772 * testsuite/libgomp.fortran/openmp_version-1.f: New file.
8773 * testsuite/libgomp.fortran/openmp_version-2.f90: Likewise.
8774
8775 * omp.h.in: Don't touch the user's namespace.
8776
8777 2013-10-11 Jakub Jelinek <jakub@redhat.com>
8778 Tobias Burnus <burnus@net-b.de>
8779 Richard Henderson <rth@redhat.com>
8780
8781 * target.c: New file.
8782 * Makefile.am (libgomp_la_SOURCES): Add target.c.
8783 * Makefile.in: Regenerated.
8784 * libgomp_g.h (GOMP_task): Add depend argument.
8785 (GOMP_barrier_cancel, GOMP_loop_end_cancel,
8786 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
8787 GOMP_target_end_data, GOMP_target_update, GOMP_teams,
8788 GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
8789 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
8790 GOMP_parallel, GOMP_cancel, GOMP_cancellation_point,
8791 GOMP_taskgroup_start, GOMP_taskgroup_end,
8792 GOMP_parallel_sections): New prototypes.
8793 * fortran.c (omp_is_initial_device): Add ialias_redirect.
8794 (omp_is_initial_device_): New function.
8795 (ULP, STR1, STR2, ialias_redirect): Removed.
8796 (omp_get_cancellation_, omp_get_proc_bind_, omp_set_default_device_,
8797 omp_set_default_device_8_, omp_get_default_device_,
8798 omp_get_num_devices_, omp_get_num_teams_, omp_get_team_num_): New
8799 functions.
8800 * libgomp.map (GOMP_barrier_cancel, GOMP_loop_end_cancel,
8801 GOMP_sections_end_cancel, GOMP_target, GOMP_target_data,
8802 GOMP_target_end_data, GOMP_target_update, GOMP_teams): Export
8803 @@GOMP_4.0.
8804 (omp_is_initial_device, omp_is_initial_device_, omp_get_cancellation,
8805 omp_get_cancellation_, omp_get_proc_bind, omp_get_proc_bind_,
8806 omp_set_default_device, omp_set_default_device_,
8807 omp_set_default_device_8_, omp_get_default_device,
8808 omp_get_default_device_, omp_get_num_devices, omp_get_num_devices_,
8809 omp_get_num_teams, omp_get_num_teams_, omp_get_team_num,
8810 omp_get_team_num_): Export @@OMP_4.0.
8811 * team.c (struct gomp_thread_start_data): Add place field.
8812 (gomp_thread_start): Clear thr->thread_pool and
8813 thr->task before returning. Use gomp_team_barrier_wait_final
8814 instead of gomp_team_barrier_wait. Initialize thr->place.
8815 (gomp_new_team): Initialize work_shares_to_free, work_share_cancelled,
8816 team_cancelled and task_queued_count fields.
8817 (gomp_free_pool_helper): Clear thr->thread_pool and thr->task
8818 before calling pthread_exit.
8819 (gomp_free_thread): No longer static. Use
8820 gomp_managed_threads_lock instead of gomp_remaining_threads_lock.
8821 (gomp_team_start): Add flags argument. Set
8822 thr->thread_pool->threads_busy to nthreads immediately after creating
8823 new pool. Use gomp_managed_threads_lock instead of
8824 gomp_remaining_threads_lock. Handle OpenMP 4.0 affinity.
8825 (gomp_team_end): Use gomp_managed_threads_lock instead of
8826 gomp_remaining_threads_lock. Use gomp_team_barrier_wait_final instead
8827 of gomp_team_barrier_wait. If team->team_cancelled, call
8828 gomp_fini_workshare on ws chain starting at team->work_shares_to_free
8829 rather than thr->ts.work_share.
8830 (initialize_team): Don't call gomp_sem_init here.
8831 * sections.c (GOMP_parallel_sections_start): Adjust gomp_team_start
8832 caller.
8833 (GOMP_parallel_sections, GOMP_sections_end_cancel): New functions.
8834 * env.c (gomp_global_icv): Add default_device_var, target_data and
8835 bind_var initializers.
8836 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
8837 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
8838 gomp_places_list_len): New variables.
8839 (parse_bind_var, parse_one_place, parse_places_var): New functions.
8840 (parse_affinity): Rewritten to construct OMP_PLACES list with unit
8841 sized places.
8842 (gomp_cancel_var): New global variable.
8843 (parse_int): New function.
8844 (handle_omp_display_env): New function.
8845 (initialize_env): Use it. Initialize default_device_var.
8846 Parse OMP_CANCELLATION env var. Use parse_bind_var to parse
8847 OMP_PROC_BIND instead of parse_boolean. Use parse_places_var for
8848 OMP_PLACES parsing. Don't call parse_affinity if OMP_PLACES has
8849 been successfully parsed (and call gomp_init_affinity in that case).
8850 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
8851 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
8852 omp_get_team_num, omp_is_initial_device): New functions.
8853 * libgomp.h: Include stdlib.h.
8854 (ialias_ulp, ialias_str1, ialias_str2, ialias_redirect, ialias_call):
8855 Define.
8856 (struct target_mem_desc): Forward declare.
8857 (struct gomp_task_icv): Add default_device_var, target_data, bind_var
8858 and thread_limit_var fields.
8859 (gomp_get_num_devices): New prototype.
8860 (gomp_cancel_var): New extern decl.
8861 (struct gomp_team): Add work_shares_to_free, work_share_cancelled,
8862 team_cancelled and task_queued_count fields. Add comments about
8863 task_{,queued_,running_}count.
8864 (gomp_cancel_kind): New enum.
8865 (gomp_work_share_end_cancel): New prototype.
8866 (struct gomp_task): Add next_taskgroup, prev_taskgroup, taskgroup,
8867 copy_ctors_done, dependers, depend_hash, depend_count, num_dependees
8868 and depend fields.
8869 (struct gomp_taskgroup): New type.
8870 (struct gomp_task_depend_entry,
8871 struct gomp_dependers_vec): New types.
8872 (gomp_finish_task): Free depend_hash if non-NULL.
8873 (struct gomp_team_state): Add place_partition_off
8874 and place_partition_len fields.
8875 (gomp_bind_var_list, gomp_bind_var_list_len, gomp_places_list,
8876 gomp_places_list_len): New extern decls.
8877 (struct gomp_thread): Add place field.
8878 (gomp_cpu_affinity, gomp_cpu_affinity_len): Remove.
8879 (gomp_init_thread_affinity): Add place argument.
8880 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
8881 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
8882 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
8883 gomp_affinity_init_level, gomp_affinity_print_place): New
8884 prototypes.
8885 (gomp_team_start): Add flags argument.
8886 (gomp_thread_limit_var, gomp_remaining_threads_count,
8887 gomp_remaining_threads_lock): Remove.
8888 (gomp_managed_threads_lock): New variable.
8889 (struct gomp_thread_pool): Add threads_busy field.
8890 (gomp_free_thread): New prototype.
8891 * task.c: Include hashtab.h.
8892 (hash_entry_type): New typedef.
8893 (htab_alloc, htab_free, htab_hash, htab_eq): New inlines.
8894 (gomp_init_task): Clear dependers, depend_hash, depend_count,
8895 copy_ctors_done and taskgroup fields.
8896 (GOMP_task): Add depend argument, handle depend clauses. If
8897 gomp_team_barrier_cancelled or if it's taskgroup has been
8898 cancelled, don't queue or start new tasks. Set copy_ctors_done
8899 field if needed. Initialize taskgroup field. If copy_ctors_done
8900 and already cancelled, don't discard the task. If taskgroup is
8901 non-NULL, enqueue the task into taskgroup queue. Increment
8902 num_children field in taskgroup. Increment task_queued_count.
8903 (gomp_task_run_pre, gomp_task_run_post_remove_parent,
8904 gomp_task_run_post_remove_taskgroup): New inline functions.
8905 (gomp_task_run_post_handle_depend_hash,
8906 gomp_task_run_post_handle_dependers,
8907 gomp_task_run_post_handle_depend): New functions.
8908 (GOMP_taskwait): Use them. If more than one new tasks
8909 have been queued, wake other threads if needed.
8910 (gomp_barrier_handle_tasks): Likewise. If
8911 gomp_team_barrier_cancelled, don't start any new tasks, just free
8912 all tasks.
8913 (GOMP_taskgroup_start, GOMP_taskgroup_end): New functions.
8914 * omp_lib.f90.in
8915 (omp_proc_bind_kind, omp_proc_bind_false,
8916 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
8917 omp_proc_bind_spread): New params.
8918 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
8919 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
8920 omp_get_team_num, omp_is_initial_device): New interfaces.
8921 (omp_get_dynamic, omp_get_nested, omp_in_parallel,
8922 omp_get_max_threads, omp_get_num_procs, omp_get_num_threads,
8923 omp_get_thread_num, omp_get_thread_limit, omp_set_max_active_levels,
8924 omp_get_max_active_levels, omp_get_level, omp_get_ancestor_thread_num,
8925 omp_get_team_size, omp_get_active_level, omp_in_final): Remove
8926 useless use omp_lib_kinds.
8927 * omp.h.in (omp_proc_bind_t): New typedef.
8928 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
8929 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
8930 omp_get_team_num, omp_is_initial_device): New prototypes.
8931 * loop.c (gomp_parallel_loop_start): Add flags argument, pass it
8932 through to gomp_team_start.
8933 (GOMP_parallel_loop_static_start, GOMP_parallel_loop_dynamic_start,
8934 GOMP_parallel_loop_guided_start, GOMP_parallel_loop_runtime_start):
8935 Adjust gomp_parallel_loop_start callers.
8936 (GOMP_parallel_loop_static, GOMP_parallel_loop_dynamic,
8937 GOMP_parallel_loop_guided, GOMP_parallel_loop_runtime,
8938 GOMP_loop_end_cancel): New functions.
8939 (GOMP_parallel_end): Add ialias_redirect.
8940 * hashtab.h: New file.
8941 * libgomp.texi (Environment Variables): Minor cleanup,
8942 update section refs to OpenMP 4.0rc2.
8943 (OMP_DISPLAY_ENV, GOMP_SPINCOUNT): Document these
8944 environment variables.
8945 * work.c (gomp_work_share_end, gomp_work_share_end_nowait): Set
8946 team->work_shares_to_free to thr->ts.work_share before calling
8947 free_work_share.
8948 (gomp_work_share_end_cancel): New function.
8949 * config/linux/proc.c: Include errno.h.
8950 (gomp_get_cpuset_size, gomp_cpuset_size, gomp_cpusetp): New variables.
8951 (gomp_cpuset_popcount): Add cpusetsize argument, use it instead of
8952 sizeof (cpu_set_t) to determine number of iterations. Fix up check
8953 extern decl. Use CPU_COUNT_S if available, or CPU_COUNT if
8954 gomp_cpuset_size is sizeof (cpu_set_t).
8955 (gomp_init_num_threads): Initialize gomp_cpuset_size,
8956 gomp_get_cpuset_size and gomp_cpusetp here, use gomp_cpusetp instead
8957 of &cpuset and pass gomp_cpuset_size instead of sizeof (cpu_set_t)
8958 to pthread_getaffinity_np. Free and clear gomp_cpusetp if it didn't
8959 contain any logical CPUs.
8960 (get_num_procs): Don't call pthread_getaffinity_np if gomp_cpusetp
8961 is NULL. Use gomp_cpusetp instead of &cpuset and pass
8962 gomp_get_cpuset_size instead of sizeof (cpu_set_t) to
8963 pthread_getaffinity_np. Check gomp_places_list instead of
8964 gomp_cpu_affinity. Adjust gomp_cpuset_popcount caller.
8965 * config/linux/bar.c (gomp_barrier_wait_end,
8966 gomp_barrier_wait_last): Use BAR_* defines.
8967 (gomp_team_barrier_wait_end): Likewise. Clear BAR_CANCELLED
8968 from state where needed. Set work_share_cancelled to 0 on last
8969 thread.
8970 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel_end,
8971 gomp_team_barrier_wait_cancel, gomp_team_barrier_cancel): New
8972 functions.
8973 * config/linux/proc.h (gomp_cpuset_popcount): Add attribute_hidden.
8974 Add cpusetsize argument.
8975 (gomp_cpuset_size, gomp_cpusetp): Declare.
8976 * config/linux/affinity.c: Include errno.h, stdio.h and string.h.
8977 (affinity_counter): Remove.
8978 (CPU_ISSET_S, CPU_ZERO_S, CPU_SET_S, CPU_CLR_S): Define
8979 if CPU_ALLOC_SIZE isn't defined.
8980 (gomp_init_affinity): Rewritten, if gomp_places_list is NULL, try
8981 silently create OMP_PLACES=threads, if it is non-NULL afterwards,
8982 bind current thread to the first place.
8983 (gomp_init_thread_affinity): Rewritten. Add place argument, just
8984 pthread_setaffinity_np to gomp_places_list[place].
8985 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
8986 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
8987 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
8988 gomp_affinity_init_level, gomp_affinity_print_place): New functions.
8989 * config/linux/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
8990 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
8991 (gomp_barrier_t): Add awaited_final field.
8992 (gomp_barrier_init): Initialize awaited_final field.
8993 (gomp_team_barrier_wait_final, gomp_team_barrier_wait_cancel,
8994 gomp_team_barrier_wait_cancel_end, gomp_team_barrier_cancel): New
8995 prototypes.
8996 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit. Use BAR_*
8997 defines.
8998 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final_start,
8999 gomp_team_barrier_cancelled): New inline functions.
9000 (gomp_barrier_last_thread,
9001 gomp_team_barrier_set_task_pending,
9002 gomp_team_barrier_clear_task_pending,
9003 gomp_team_barrier_set_waiting_for_tasks,
9004 gomp_team_barrier_waiting_for_tasks,
9005 gomp_team_barrier_done): Use BAR_* defines.
9006 * config/posix/bar.c (gomp_barrier_init): Clear cancellable field.
9007 (gomp_barrier_wait_end): Use BAR_* defines.
9008 (gomp_team_barrier_wait_end): Clear BAR_CANCELLED from state.
9009 Set work_share_cancelled to 0 on last thread, use __atomic_load_n.
9010 Use BAR_* defines.
9011 (gomp_team_barrier_wait_cancel_end, gomp_team_barrier_wait_cancel,
9012 gomp_team_barrier_cancel): New functions.
9013 * config/posix/affinity.c (gomp_init_thread_affinity): Add place
9014 argument.
9015 (gomp_affinity_alloc, gomp_affinity_init_place, gomp_affinity_add_cpus,
9016 gomp_affinity_remove_cpu, gomp_affinity_copy_place,
9017 gomp_affinity_same_place, gomp_affinity_finalize_place_list,
9018 gomp_affinity_init_level, gomp_affinity_print_place): New stubs.
9019 * config/posix/bar.h (BAR_TASK_PENDING, BAR_WAS_LAST,
9020 BAR_WAITING_FOR_TASK, BAR_INCR, BAR_CANCELLED): Define.
9021 (gomp_barrier_t): Add cancellable field.
9022 (gomp_team_barrier_wait_cancel, gomp_team_barrier_wait_cancel_end,
9023 gomp_team_barrier_cancel): New prototypes.
9024 (gomp_barrier_wait_start): Preserve BAR_CANCELLED bit.
9025 (gomp_barrier_wait_cancel_start, gomp_team_barrier_wait_final,
9026 gomp_team_barrier_cancelled): New inline functions.
9027 (gomp_barrier_wait_start, gomp_barrier_last_thread,
9028 gomp_team_barrier_set_task_pending,
9029 gomp_team_barrier_clear_task_pending,
9030 gomp_team_barrier_set_waiting_for_tasks,
9031 gomp_team_barrier_waiting_for_tasks,
9032 gomp_team_barrier_done): Use BAR_* defines.
9033 * barrier.c (GOMP_barrier_cancel): New function.
9034 * omp_lib.h.in (omp_proc_bind_kind, omp_proc_bind_false,
9035 omp_proc_bind_true, omp_proc_bind_master, omp_proc_bind_close,
9036 omp_proc_bind_spread): New params.
9037 (omp_get_cancellation, omp_get_proc_bind, omp_set_default_device,
9038 omp_get_default_device, omp_get_num_devices, omp_get_num_teams,
9039 omp_get_team_num, omp_is_initial_device): New externals.
9040 * parallel.c (GOMP_parallel, GOMP_cancel, GOMP_cancellation_point):
9041 New functions.
9042 (gomp_resolve_num_threads): Adjust for thread_limit now being in
9043 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9044 infinity. If not nested, just return minimum of max_num_threads
9045 and icv->thread_limit_var and if thr->thread_pool, set threads_busy
9046 to the returned value. Otherwise, don't update atomically
9047 gomp_remaining_threads_count, but instead thr->thread_pool->threads_busy.
9048 (GOMP_parallel_end): Adjust for thread_limit now being in
9049 icv->thread_limit_var. Use UINT_MAX instead of ULONG_MAX as
9050 infinity. Adjust threads_busy in the pool rather than
9051 gomp_remaining_threads_count. Remember team->nthreads and call
9052 gomp_team_end before adjusting threads_busy, if not nested
9053 afterwards, just set it to 1 non-atomically. Add ialias.
9054 (GOMP_parallel_start): Adjust gomp_team_start caller.
9055 * testsuite/libgomp.c/atomic-14.c: Add parens to make it valid.
9056 * testsuite/libgomp.c/affinity-1.c: New test.
9057 * testsuite/libgomp.c/atomic-15.c: New test.
9058 * testsuite/libgomp.c/atomic-16.c: New test.
9059 * testsuite/libgomp.c/atomic-17.c: New test.
9060 * testsuite/libgomp.c/cancel-for-1.c: New test.
9061 * testsuite/libgomp.c/cancel-for-2.c: New test.
9062 * testsuite/libgomp.c/cancel-parallel-1.c: New test.
9063 * testsuite/libgomp.c/cancel-parallel-2.c: New test.
9064 * testsuite/libgomp.c/cancel-parallel-3.c: New test.
9065 * testsuite/libgomp.c/cancel-sections-1.c: New test.
9066 * testsuite/libgomp.c/cancel-taskgroup-1.c: New test.
9067 * testsuite/libgomp.c/cancel-taskgroup-2.c: New test.
9068 * testsuite/libgomp.c/depend-1.c: New test.
9069 * testsuite/libgomp.c/depend-2.c: New test.
9070 * testsuite/libgomp.c/depend-3.c: New test.
9071 * testsuite/libgomp.c/depend-4.c: New test.
9072 * testsuite/libgomp.c/for-1.c: New test.
9073 * testsuite/libgomp.c/for-1.h: New file.
9074 * testsuite/libgomp.c/for-2.c: New test.
9075 * testsuite/libgomp.c/for-2.h: New file.
9076 * testsuite/libgomp.c/for-3.c: New test.
9077 * testsuite/libgomp.c/pr58392.c: New test.
9078 * testsuite/libgomp.c/simd-1.c: New test.
9079 * testsuite/libgomp.c/simd-2.c: New test.
9080 * testsuite/libgomp.c/simd-3.c: New test.
9081 * testsuite/libgomp.c/simd-4.c: New test.
9082 * testsuite/libgomp.c/simd-5.c: New test.
9083 * testsuite/libgomp.c/simd-6.c: New test.
9084 * testsuite/libgomp.c/target-1.c: New test.
9085 * testsuite/libgomp.c/target-2.c: New test.
9086 * testsuite/libgomp.c/target-3.c: New test.
9087 * testsuite/libgomp.c/target-4.c: New test.
9088 * testsuite/libgomp.c/target-5.c: New test.
9089 * testsuite/libgomp.c/target-6.c: New test.
9090 * testsuite/libgomp.c/target-7.c: New test.
9091 * testsuite/libgomp.c/taskgroup-1.c: New test.
9092 * testsuite/libgomp.c/thread-limit-1.c: New test.
9093 * testsuite/libgomp.c/thread-limit-2.c: New test.
9094 * testsuite/libgomp.c/thread-limit-3.c: New test.
9095 * testsuite/libgomp.c/udr-1.c: New test.
9096 * testsuite/libgomp.c/udr-2.c: New test.
9097 * testsuite/libgomp.c/udr-3.c: New test.
9098 * testsuite/libgomp.c++/affinity-1.C: New test.
9099 * testsuite/libgomp.c++/atomic-10.C: New test.
9100 * testsuite/libgomp.c++/atomic-11.C: New test.
9101 * testsuite/libgomp.c++/atomic-12.C: New test.
9102 * testsuite/libgomp.c++/atomic-13.C: New test.
9103 * testsuite/libgomp.c++/atomic-14.C: New test.
9104 * testsuite/libgomp.c++/atomic-15.C: New test.
9105 * testsuite/libgomp.c++/cancel-for-1.C: New test.
9106 * testsuite/libgomp.c++/cancel-for-2.C: New test.
9107 * testsuite/libgomp.c++/cancel-parallel-1.C: New test.
9108 * testsuite/libgomp.c++/cancel-parallel-2.C: New test.
9109 * testsuite/libgomp.c++/cancel-parallel-3.C: New test.
9110 * testsuite/libgomp.c++/cancel-sections-1.C: New test.
9111 * testsuite/libgomp.c++/cancel-taskgroup-1.C: New test.
9112 * testsuite/libgomp.c++/cancel-taskgroup-2.C: New test.
9113 * testsuite/libgomp.c++/cancel-taskgroup-3.C: New test.
9114 * testsuite/libgomp.c++/cancel-test.h: New file.
9115 * testsuite/libgomp.c++/for-9.C: New test.
9116 * testsuite/libgomp.c++/for-10.C: New test.
9117 * testsuite/libgomp.c++/for-11.C: New test.
9118 * testsuite/libgomp.c++/simd-1.C: New test.
9119 * testsuite/libgomp.c++/simd-2.C: New test.
9120 * testsuite/libgomp.c++/simd-3.C: New test.
9121 * testsuite/libgomp.c++/simd-4.C: New test.
9122 * testsuite/libgomp.c++/simd-5.C: New test.
9123 * testsuite/libgomp.c++/simd-6.C: New test.
9124 * testsuite/libgomp.c++/simd-7.C: New test.
9125 * testsuite/libgomp.c++/simd-8.C: New test.
9126 * testsuite/libgomp.c++/target-1.C: New test.
9127 * testsuite/libgomp.c++/target-2.C: New test.
9128 * testsuite/libgomp.c++/target-2-aux.cc: New file.
9129 * testsuite/libgomp.c++/target-3.C: New test.
9130 * testsuite/libgomp.c++/taskgroup-1.C: New test.
9131 * testsuite/libgomp.c++/udr-1.C: New test.
9132 * testsuite/libgomp.c++/udr-2.C: New test.
9133 * testsuite/libgomp.c++/udr-3.C: New test.
9134 * testsuite/libgomp.c++/udr-4.C: New test.
9135 * testsuite/libgomp.c++/udr-5.C: New test.
9136 * testsuite/libgomp.c++/udr-6.C: New test.
9137 * testsuite/libgomp.c++/udr-7.C: New test.
9138 * testsuite/libgomp.c++/udr-8.C: New test.
9139 * testsuite/libgomp.c++/udr-9.C: New test.
9140
9141 2013-09-20 Jakub Jelinek <jakub@redhat.com>
9142
9143 PR testsuite/57605
9144 * testsuite/lib/libgomp.exp: Add -fdiagnostics-color=never to
9145 ALWAYS_CFLAGS.
9146
9147 2013-09-20 Alan Modra <amodra@gmail.com>
9148
9149 * configure: Regenerate.
9150
9151 2013-09-19 Jakub Jelinek <jakub@redhat.com>
9152
9153 * testsuite/libgomp.c/sections-2.c: New test.
9154
9155 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
9156
9157 * testsuite/libgomp.fortran/strassen.f90:
9158 Add dg-skip-if aarch64_tiny.
9159
9160 2013-06-20 Iain Sandoe <iain@codesourcery.com>
9161 Cesar Philippidis <cesar@codesourcery.com>
9162
9163 * testsuite/lib/libgomp.exp: Reorder lib loads into dependency order.
9164 Do not load_gcc_lib gcc-dg.exp and add a comment as to why.
9165 * testsuite/libgomp.c/c.exp: load_gcc_lib gcc-dg.exp.
9166 * testsuite/libgomp.fortran/fortran.exp: Likewise.
9167 * testsuite/libgomp.graphite/graphite.exp: Likewise.
9168 * testsuite/libgomp.c++/c++.exp: load_gcc_lib gcc-dg.exp.
9169 Use dg-runtest rather than gfortran-dg-runtest.
9170
9171 2013-06-10 Thomas Schwinge <thomas@codesourcery.com>
9172
9173 * testsuite/libgomp.c/icv-2.c: Extend current handling of
9174 Linux-based x86 systems to cover all GNU systems.
9175 * testsuite/libgomp.c/lock-3.c: Likewise.
9176 * testsuite/libgomp.c/pr48591.c: Likewise.
9177
9178 2013-06-06 Thomas Schwinge <thomas@codesourcery.com>
9179
9180 * configure.tgt (XCFLAGS): Add -ftls-model=initial-exec for
9181 GNU/Hurd, as done for Linux-based systems.
9182
9183 * config/posix/ptrlock.h: Fix comment.
9184
9185 2013-05-27 Tobias Burnus <burnus@net-b.de>
9186
9187 PR fortran/57423
9188 * libgomp.texi (omp_set_dynamic, omp_set_nested, omp_set_nested,
9189 omp_set_num_threads, omp_init_lock, omp_set_lock, omp_test_lock,
9190 omp_unset_lock, omp_destroy_lock, omp_init_nest_lock,
9191 omp_set_nest_lock, omp_test_nest_lock, omp_unset_nest_lock,
9192 omp_destroy_nest_lock): Correct arguments to match the one in
9193 the OpenMP spec.
9194 * omp_lib.f90.in (omp_init_lock, omp_init_nest_lock, omp_destroy_lock
9195 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock, omp_unset_lock,
9196 omp_unset_nest_lock, omp_set_dynamic, omp_set_nested,
9197 omp_set_num_threads, omp_test_lock, omp_test_nest_lock): Ditto.
9198
9199 2013-05-16 Jakub Jelinek <jakub@redhat.com>
9200
9201 * testsuite/libgomp.c/loop-13.c: New test.
9202 * testsuite/libgomp.c/loop-14.c: New test.
9203 * testsuite/libgomp.c/loop-15.c: New test.
9204 * testsuite/libgomp.c++/loop-13.C: New test.
9205 * testsuite/libgomp.c++/loop-14.C: New test.
9206 * testsuite/libgomp.c++/loop-15.C: New test.
9207
9208 2013-02-06 Jakub Jelinek <jakub@redhat.com>
9209
9210 PR middle-end/56217
9211 * testsuite/libgomp.c++/pr56217.C: New test.
9212
9213 2013-02-01 Alan Modra <amodra@gmail.com>
9214
9215 * task.c (GOMP_task, GOMP_taskwait): Comment.
9216
9217 2013-01-31 Dmitry Vyukov <dvyukov@gcc.gnu.org>
9218 Joost VandeVondele <Joost.VandeVondele@mat.ethz.ch>
9219
9220 PR libgomp/55561
9221 * config/linux/wait.h (do_spin): Use atomic load for addr.
9222 * config/linux/ptrlock.c (gomp_ptrlock_get_slow): Use atomic
9223 for intptr and ptrlock.
9224 * config/linux/ptrlock.h (gomp_ptrlock_get): Use atomic load
9225 for ptrlock.
9226
9227 2013-01-22 Alan Modra <amodra@gmail.com>
9228
9229 PR libgomp/51376
9230 PR libgomp/56073
9231 * task.c (GOMP_task): Revert 2011-12-09 change.
9232 (GOMP_taskwait): Likewise. Instead use atomic load with acquire
9233 barrier to read task->children..
9234 (gomp_barrier_handle_tasks): ..and matching atomic store with
9235 release barrier here when setting parent->children to NULL.
9236
9237 2013-01-16 Jakub Jelinek <jakub@redhat.com>
9238 Tobias Burnus <burnus@net-b.de>
9239
9240 PR driver/55884
9241 * testsuite/libgomp.fortran/fortran.exp: Use
9242 -fintrinsic-modules-path= instead of
9243 -fintrinsic-modules-path.
9244
9245 2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
9246
9247 Update copyright years.
9248
9249 2012-12-19 Tobias Burnus <burnus@net-b.de>
9250
9251 * testsuite/libgomp.fortran/fortran.exp: Set
9252 -fintrinsic-modules-path.
9253
9254 2012-12-19 Tobias Burnus <burnus@net-b.de>
9255
9256 * testsuite/libgomp.fortran/use_intrinsic_1.f90: New; moved
9257 from gcc/testsuite/gfortran.dg/gomp/use_intrinsic_1.f90.
9258
9259 2012-11-21 Jakub Jelinek <jakub@redhat.com>
9260
9261 PR libgomp/55411
9262 * team.c (gomp_free_thread): Decrease gomp_managed_threads
9263 if pool had any threads_used.
9264
9265 2012-11-07 Jack Howarth <howarth@bromo.med.uc.edu>
9266
9267 * testsuite/libgomp.c++/pr24455.C: Use
9268 -Wl,-undefined,dynamic_lookup on darwin.
9269
9270 2012-11-07 David Edelsohn <dje.gcc@gmail.com>
9271
9272 * testsuite/libgomp.c++/pr24455.C: Use -Wl,-G on AIX.
9273
9274 2012-10-24 Dominique d'Humieres <dominiq@lps.ens.fr>
9275
9276 * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
9277
9278 2012-10-23 Ian Bolton <ian.bolton@arm.com>
9279 Jim MacArthur <jim.macarthur@arm.com>
9280 Marcus Shawcroft <marcus.shawcroft@arm.com>
9281 Nigel Stephens <nigel.stephens@arm.com>
9282 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9283 Richard Earnshaw <rearnsha@arm.com>
9284 Sofiane Naci <sofiane.naci@arm.com>
9285 Stephen Thomas <stephen.thomas@arm.com>
9286 Tejas Belagod <tejas.belagod@arm.com>
9287 Yufeng Zhang <yufeng.zhang@arm.com>
9288
9289 * configure.tgt: Add AArch64.
9290
9291 2012-10-04 Jason Merrill <jason@redhat.com>
9292
9293 * testsuite/libgomp.c++/tls-init1.C: New.
9294
9295 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
9296
9297 * configure: Regenerated.
9298
9299 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
9300
9301 * config/linux/mips/futex.h (sys_futex0): Change to static
9302 function with noinline, nomips16 attributes under MIPS16. Adjust
9303 asm statement to place 'li v0,SYS_futex' immediately before
9304 syscall insn.
9305
9306 2012-07-04 Sandra Loosemore <sandra@codesourcery.com>
9307
9308 * libgomp.texi (Library Index): Renamed from "Index" to prevent
9309 conflict with index.html on case-insensitive file systems.
9310
9311 2012-07-03 Uros Bizjak <ubizjak@gmail.com>
9312
9313 * config/linux/x86/futex.h (cpu_relax): Use __builtin_ia32_pause.
9314 * testsuite/libgomp.c/sort-1.c (busy_wait): Ditto.
9315
9316 2012-07-02 Richard Guenther <rguenther@suse.de>
9317 Michael Matz <matz@suse.de>
9318 Tobias Grosser <tobias@grosser.es>
9319 Sebastian Pop <sebpop@gmail.com>
9320
9321 * testsuite/libgomp.graphite/force-parallel-4.c: Adjust.
9322 * testsuite/libgomp.graphite/force-parallel-5.c: Likewise.
9323 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9324 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9325
9326 2012-06-28 Andreas Schwab <schwab@linux-m68k.org>
9327
9328 * libgomp.texi: Include gpl_v3.texi instead of gpl.texi.
9329
9330 2012-06-22 Richard Guenther <rguenther@suse.de>
9331
9332 Merge from graphite branch
9333 2012-01-13 Tobias Grosser <tobias@grosser.es>
9334
9335 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9336 * testsuite/libgomp.graphite/force-parallel-2.c: Likewise.
9337
9338 2012-06-07 Jakub Jelinek <jakub@redhat.com>
9339
9340 PR middle-end/53580
9341 * testsuite/libgomp.c/pr26943-2.c: Remove #pragma omp barrier,
9342 use GOMP_barrier () call instead.
9343 * testsuite/libgomp.c/pr26943-3.c: Likewise.
9344 * testsuite/libgomp.c/pr26943-4.c: Likewise.
9345 * testsuite/libgomp.fortran/vla4.f90: Remove !$omp barrier,
9346 call GOMP_barrier instead.
9347 * testsuite/libgomp.fortran/vla5.f90: Likewise.
9348
9349 2012-06-06 Jakub Jelinek <jakub@redhat.com>
9350
9351 PR libgomp/52993
9352 * config/linux/lock.c (gomp_init_nest_lock_25): Fix up last
9353 argument to memset call.
9354
9355 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
9356
9357 * configure: Regenerated.
9358
9359 2012-04-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
9360
9361 * testsuite/lib/libgomp.exp: Add -fno-diagnostics-show-caret.
9362
9363 2012-03-31 H.J. Lu <hongjiu.lu@intel.com>
9364
9365 PR bootstrap/52812
9366 * configure.tgt (i[456]86-*-linux*): Handle -mx32 like -m64.
9367
9368 2012-03-22 Jakub Jelinek <jakub@redhat.com>
9369
9370 PR middle-end/52547
9371 * testsuite/libgomp.c/pr52547.c: New test.
9372
9373 2012-03-16 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
9374
9375 * testsuite/lib/libgomp.exp: load fortran-modules.exp
9376
9377 2012-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9378
9379 * configure.tgt (mips-sgi-irix6*): Remove.
9380
9381 2012-03-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9382
9383 * configure.tgt (alpha*-dec-osf*): Remove.
9384
9385 * config/osf/sem.h: Remove.
9386 * config/posix/lock.c (_XOPEN_SOURCE): Define unconditionally.
9387
9388 2012-02-29 Eric Botcazou <ebotcazou@adacore.com>
9389
9390 * config/linux/sparc/futex.h (cpu_relax): Read from CC register.
9391
9392 2012-02-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9393
9394 PR libstdc++/52188
9395 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Remove symvers_renaming.
9396 Remove ENABLE_SYMVERS_SOL2.
9397 * configure: Regenerate.
9398 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB] (comma): New variable.
9399 (PREPROCESS): New variable.
9400 (libgomp.ver): New target.
9401 [LIBGOMP_BUILD_VERSIONED_SHLIB &&
9402 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU]: Remove
9403 LIBGOMP_BUILD_VERSIONED_SHLIB_SOL2 handling.
9404 Use libgomp.ver.
9405 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Use libgomp.ver, libgomp.ver-sun.
9406 * Makefile.in: Regenerate.
9407
9408 2012-02-14 Walter Lee <walt@tilera.com>
9409
9410 * configure.tgt: Handle tilegx and tilepro.
9411 * config/linux/tile/futex.h: New file.
9412
9413 2012-02-08 Richard Guenther <rguenther@suse.de>
9414
9415 PR tree-optimization/46886
9416 * testsuite/libgomp.c/pr46886.c: New testcase.
9417
9418 2012-01-25 Matthias Klose <doko@ubuntu.com>
9419
9420 * config/linux/arm: Remove empty directory.
9421 * configure.tgt (config_path): Remove linux-arm for arm*-*-linux*.
9422
9423 2011-12-09 Alan Modra <amodra@gmail.com>
9424
9425 PR libgomp/51376
9426 * task.c (GOMP_taskwait): Don't access task->children outside of
9427 task_lock mutex region.
9428 (GOMP_task): Likewise.
9429
9430 2011-12-06 Jakub Jelinek <jakub@redhat.com>
9431
9432 PR libgomp/51132
9433 * testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays
9434 to file scope.
9435 * testsuite/libgomp.graphite/force-parallel-3.c: Likewise.
9436 * testsuite/libgomp.graphite/force-parallel-6.c: Likewise.
9437 * testsuite/libgomp.graphite/force-parallel-7.c: Likewise.
9438 * testsuite/libgomp.graphite/force-parallel-8.c: Likewise.
9439 * testsuite/libgomp.graphite/force-parallel-9.c: Likewise.
9440
9441 2011-12-02 Alan Modra <amodra@gmail.com>
9442
9443 * config/linux/affinity.c: Use atomic rather than sync builtin.
9444 * config/linux/lock.c: Likewise.
9445 * config/linux/ptrlock.h: Likewise.
9446 * config/linux/ptrlock.c: Likewise.
9447 * config/linux/ptrlock.h (gomp_ptrlock_set): Always write here..
9448 * config/linux/ptrlock.c (gomp_ptrlock_set_slow): ..not here.
9449 * config/linux/futex.h (atomic_write_barrier): Delete unused function.
9450 * config/linux/alpha/futex.h (atomic_write_barrier): Likewise.
9451 * config/linux/ia64/futex.h (atomic_write_barrier): Likewise.
9452 * config/linux/mips/futex.h (atomic_write_barrier): Likewise.
9453 * config/linux/powerpc/futex.h (atomic_write_barrier): Likewise.
9454 * config/linux/s390/futex.h (atomic_write_barrier): Likewise.
9455 * config/linux/sparc/futex.h (atomic_write_barrier): Likewise.
9456 * config/linux/x86/futex.h (atomic_write_barrier): Likewise.
9457
9458 2011-11-30 Alan Modra <amodra@gmail.com>
9459
9460 PR libgomp/51298
9461 * config/linux/bar.h: Use atomic rather than sync builtins.
9462 * config/linux/bar.c: Likewise. Add missing acquire
9463 synchronisation on generation field.
9464 * task.c (gomp_barrier_handle_tasks): Regain lock so as to not
9465 double unlock.
9466
9467 2011-11-30 Alan Modra <amodra@gmail.com>
9468
9469 * ordered.c (gomp_ordered_sync): Add MEMMODEL_ACQ_REL fence.
9470 * critical.c (GOMP_critical_start): Add MEMMODEL_RELEASE fence.
9471 * config/linux/mutex.h: Use atomic rather than sync builtins.
9472 * config/linux/mutex.c: Likewise. Comment. Use -1 for waiting state.
9473 * config/linux/omp-lock.h: Comment fix.
9474 * config/linux/arm/mutex.h: Delete.
9475 * config/linux/powerpc/mutex.h: Delete.
9476 * config/linux/ia64/mutex.h: Delete.
9477 * config/linux/mips/mutex.h: Delete.
9478
9479 2011-11-30 Alan Modra <amodra@gmail.com>
9480
9481 PR libgomp/51249
9482 * config/linux/sem.h: Rewrite.
9483 * config/linux/sem.c: Rewrite.
9484
9485 2011-11-28 Richard Henderson <rth@redhat.com>
9486
9487 * libgomp.h (enum memmodel): New.
9488
9489 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
9490
9491 * configure: Regenerate.
9492
9493 2011-10-10 Matthias Klose <doko@ubuntu.com>
9494
9495 * config/posix95: Remove empty directory.
9496
9497 2011-08-26 Jakub Jelinek <jakub@redhat.com>
9498
9499 * testsuite/libgomp.fortran/threadprivate4.f90: New test.
9500
9501 2011-08-19 Jakub Jelinek <jakub@redhat.com>
9502
9503 PR fortran/49792
9504 * testsuite/libgomp.fortran/pr49792-1.f90: New test.
9505 * testsuite/libgomp.fortran/pr49792-2.f90: New test.
9506
9507 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9508
9509 * config/posix95/lock.c, posix95/omp-lock.h: Remove.
9510
9511 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9512
9513 PR libgomp/49965
9514 * testsuite/libgomp.c++/task-8.C: Replaced err by errval.
9515
9516 2011-08-03 Uros Bizjak <ubizjak@gmail.com>
9517
9518 * config/linux/proc.h: New.
9519 * config/linux/proc.c: Include "proc.h". Do not include <sched.h>.
9520 (gomp_cpuset_popcount): Rename from cpuset_popcount. No more static.
9521 (gomp_init_num_threads): Update call to cpuset_popcount.
9522 (get_num_procs): Ditto.
9523 * config/linux/affinity.c (gomp_init_affinity): Call
9524 gomp_cpuset_popcount.
9525
9526 2011-08-02 Jakub Jelinek <jakub@redhat.com>
9527
9528 PR fortran/42041
9529 PR fortran/46752
9530 * omp.h.in (omp_in_final): New prototype.
9531 * omp_lib.f90.in (omp_in_final): New interface.
9532 (omp_integer_kind, omp_logical_kind): Remove
9533 and replace all its uses in the module with 4.
9534 (openmp_version): Change to 201107.
9535 * omp_lib.h.in (omp_sched_static, omp_sched_dynamic,
9536 omp_sched_guided, omp_sched_auto): Use omp_sched_kind
9537 kind for the parameters.
9538 (omp_in_final): New external.
9539 (openmp_version): Change to 201107.
9540 * task.c (omp_in_final): New function.
9541 (gomp_init_task): Initialize final_task.
9542 (GOMP_task): Remove unused attribute from flags. Handle final
9543 tasks.
9544 (GOMP_taskyield): New function.
9545 (omp_in_final): Return true if if (false) or final (true) task
9546 or descendant of final (true).
9547 * fortran.c (omp_in_final_): New function.
9548 * libgomp.map (OMP_3.1): Export omp_in_final and omp_in_final_.
9549 (GOMP_3.0): Export GOMP_taskyield.
9550 * env.c (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New
9551 variables.
9552 (parse_unsigned_long_list): New function.
9553 (initialize_env): Use it for OMP_NUM_THREADS. Call parse_boolean
9554 with "OMP_PROC_BIND". If OMP_PROC_BIND=true, call gomp_init_affinity
9555 even if parse_affinity returned false.
9556 * config/linux/affinity.c (gomp_init_affinity): Handle
9557 gomp_cpu_affinity_len == 0.
9558 * libgomp_g.h (GOMP_taskyield): New prototype.
9559 * libgomp.h (struct gomp_task): Add final_task field.
9560 (gomp_nthreads_var_list, gomp_nthreads_var_list_len): New externs.
9561 * team.c (gomp_team_start): Override new task's nthreads_var icv
9562 if list form OMP_NUM_THREADS has been used and it has value for
9563 the new nesting level.
9564
9565 * testsuite/libgomp.c/atomic-11.c: New test.
9566 * testsuite/libgomp.c/atomic-12.c: New test.
9567 * testsuite/libgomp.c/atomic-13.c: New test.
9568 * testsuite/libgomp.c/atomic-14.c: New test.
9569 * testsuite/libgomp.c/reduction-6.c: New test.
9570 * testsuite/libgomp.c/task-5.c: New test.
9571 * testsuite/libgomp.c++/atomic-2.C: New test.
9572 * testsuite/libgomp.c++/atomic-3.C: New test.
9573 * testsuite/libgomp.c++/atomic-4.C: New test.
9574 * testsuite/libgomp.c++/atomic-5.C: New test.
9575 * testsuite/libgomp.c++/atomic-6.C: New test.
9576 * testsuite/libgomp.c++/atomic-7.C: New test.
9577 * testsuite/libgomp.c++/atomic-8.C: New test.
9578 * testsuite/libgomp.c++/atomic-9.C: New test.
9579 * testsuite/libgomp.c++/task-8.C: New test.
9580 * testsuite/libgomp.c++/reduction-4.C: New test.
9581 * testsuite/libgomp.fortran/allocatable7.f90: New test.
9582 * testsuite/libgomp.fortran/allocatable8.f90: New test.
9583 * testsuite/libgomp.fortran/crayptr3.f90: New test.
9584 * testsuite/libgomp.fortran/omp_atomic3.f90: New test.
9585 * testsuite/libgomp.fortran/omp_atomic4.f90: New test.
9586 * testsuite/libgomp.fortran/pointer1.f90: New test.
9587 * testsuite/libgomp.fortran/pointer2.f90: New test.
9588 * testsuite/libgomp.fortran/task4.f90: New test.
9589
9590 2011-08-02 Tobias Burnus <burnus@net-b.de>
9591
9592 * libgomp.texi: Update OpenMP spec references to 3.1.
9593 (omp_in_final,OMP_PROC_BIND): New sections.
9594 (OMP_NUM_THREADS): Document that the value can be now a list.
9595 (GOMP_STACKSIZE,GOMP_CPU_AFFINITY): Update @ref.
9596
9597 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
9598
9599 * config/linux/x86/futex.h: Check __x86_64__ instead of
9600 __LP64__.
9601
9602 2011-07-29 Jakub Jelinek <jakub@redhat.com>
9603
9604 PR middle-end/49897
9605 PR middle-end/49898
9606 * testsuite/libgomp.c/pr49897-1.c: New test.
9607 * testsuite/libgomp.c/pr49897-2.c: New test.
9608 * testsuite/libgomp.c/pr49898-1.c: New test.
9609 * testsuite/libgomp.c/pr49898-2.c: New test.
9610
9611 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
9612
9613 * testsuite/lib/libgomp.exp (libgomp_init): Add -march=i486
9614 for ia32 instead of ilp32.
9615
9616 * testsuite/libgomp.c/atomic-1.c: Require ia32 instead of ilp32.
9617 * testsuite/libgomp.c/atomic-6.c: Likewise.
9618
9619 2011-07-23 Sebastian Pop <sebastian.pop@amd.com>
9620
9621 * testsuite/libgomp.graphite/force-parallel-1.c: Un-xfail.
9622 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust pattern.
9623
9624 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9625
9626 PR libgomp/45351
9627 * config/osf/sem.h: New file.
9628 * configure.tgt (alpha*-dec-osf*): Prepend osf to config_path.
9629
9630 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9631
9632 PR target/49541
9633 * testsuite/lib/libgomp.exp (libgomp_init): Don't add -lgomp to
9634 ldflags.
9635
9636 2011-07-15 Jakub Jelinek <jakub@redhat.com>
9637
9638 * config/linux/wait.h (do_spin): New inline, largely copied
9639 from do_wait, just don't do futex_wait here, instead return true if
9640 it should be done.
9641 (do_wait): Implement using do_spin.
9642 * config/linux/mutex.h (gomp_mutex_lock_slow): Add an int argument
9643 to prototype.
9644 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
9645 __sync_bool_compare_and_swap, pass the oldval to
9646 gomp_mutex_lock_slow.
9647 * config/linux/mutex.c (gomp_mutex_lock_slow): Add oldval argument.
9648 If all mutex contenders are just spinning and not sleeping, don't
9649 change state to 2 unnecessarily. Optimize the loop when state has
9650 already become 2 to use just one atomic operation per loop instead
9651 of two.
9652 * config/linux/ia64/mutex.h (gomp_mutex_lock_slow): Add an int argument
9653 to prototype.
9654 (gomp_mutex_lock): Use __sync_val_compare_and_swap instead of
9655 __sync_bool_compare_and_swap, pass the oldval to
9656 gomp_mutex_lock_slow.
9657
9658 2011-06-22 Jakub Jelinek <jakub@redhat.com>
9659
9660 PR libgomp/49490
9661 * iter.c (gomp_iter_static_next): For chunk size 0
9662 only use n ceil/ nthreads size for the first
9663 n % nthreads threads in the team instead of
9664 all threads except for the last few ones which
9665 get less work or none at all.
9666 * iter_ull.c (gomp_iter_ull_static_next): Likewise.
9667 * env.c (parse_schedule): If OMP_SCHEDULE doesn't have
9668 chunk argument, set run_sched_modifier to 0 for static
9669 resp. 1 for other kinds. If chunk argument is 0
9670 and not static, set value to 1.
9671
9672 2011-05-19 Jakub Jelinek <jakub@redhat.com>
9673
9674 PR c++/49043
9675 * testsuite/libgomp.c++/pr49043.C: New test.
9676
9677 PR c++/48869
9678 * testsuite/libgomp.c++/pr48869.C: New test.
9679
9680 2011-05-06 Jakub Jelinek <jakub@redhat.com>
9681
9682 PR fortran/48894
9683 * fortran.c: Include limits.h.
9684 (TO_INT): Define.
9685 (omp_set_dynamic_8_, omp_set_num_threads_8_): Use !!*set instead of
9686 *set.
9687 (omp_set_num_threads_8_, omp_set_schedule_8_,
9688 omp_set_max_active_levels_8_, omp_get_ancestor_thread_num_8_,
9689 omp_get_team_size_8_): Use TO_INT macro.
9690 * testsuite/libgomp.fortran/pr48894.f90: New test.
9691
9692 2011-04-13 Jakub Jelinek <jakub@redhat.com>
9693
9694 PR middle-end/48591
9695 * testsuite/libgomp.c/pr48591.c: New test.
9696
9697 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9698
9699 PR bootstrap/48135
9700 * acinclude.m4 (enable_symvers): Handle --disable-symvers.
9701 * configure: Regenerate.
9702
9703 2011-02-27 Jakub Jelinek <jakub@redhat.com>
9704
9705 PR fortran/47886
9706 * testsuite/libgomp.fortran/task3.f90: New test.
9707
9708 2011-02-24 Tobias Burnus <burnus@net-b.de>
9709
9710 * libgomp.texi (GOMP_STACKSIZE): Fix @ref to OMP_STACKSIZE.
9711
9712 2011-02-23 Jakub Jelinek <jakub@redhat.com>
9713
9714 PR libgomp/47854
9715 * libgomp.texi (omp_get_wtime): Don't say time in the past
9716 must be Unix Epoch.
9717
9718 2011-02-18 Jakub Jelinek <jakub@redhat.com>
9719
9720 PR libgomp/47804
9721 * testsuite/libgomp.fortran/fortran.exp: Check for both
9722 libquadmath.a and libquadmath.${shlib_ext}. If neither exists,
9723 but $blddir != "", still append ${blddir}/${lang_library_path}
9724 to ld_library_path.
9725
9726 2011-02-16 Tobias Burnus <burnus@net-b.de>
9727
9728 PR libgomp/47758
9729 * testsuite/libgomp.fortran/fortran.exp: Check for the existence
9730 of libquadmath.a before adding its libpath to ldflags.
9731
9732 2011-02-14 Jakub Jelinek <jakub@redhat.com>
9733
9734 PR libgomp/47731
9735 * config/linux/futex.h (futex_wait): Pass NULL as timeout argument
9736 to FUTEX_WAIT futex syscall.
9737 * config/linux/wait.h: Include <futex.h> instead of "futex.h".
9738
9739 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9740
9741 * configure: Regenerate.
9742
9743 2011-01-20 Benjamin Kosnik <bkoz@redhat.com>
9744
9745 PR libstdc++/36104
9746 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Accept gnu variants.
9747
9748 2011-01-16 Gerald Pfeifer
9749
9750 * configure.tgt (*-*-freebsd*): Add -lpthread to XLDFLAGS.
9751
9752 2010-12-14 Jakub Jelinek <jakub@redhat.com>
9753
9754 PR fortran/46874
9755 * libgomp.fortran/allocatable6.f90: New test.
9756
9757 2010-12-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9758
9759 * acinclude.m4 (symvers_renaming): Also set if enable_symvers = no.
9760 * configure: Regenerate.
9761
9762 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
9763
9764 PR target/40125
9765 PR lto/46695
9766 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
9767 * Makefile.am (libgomp_la_LDFLAGS): Use lt_host_flags.
9768 * aclocal.m4: Regenerate.
9769 * configure: Regenerate.
9770 * Makefile.in: Regenerate.
9771 * testsuite/Makefile.in: Regenerate.
9772
9773 2010-12-02 Jakub Jelinek <jakub@redhat.com>
9774
9775 PR fortran/46753
9776 * libgomp.fortran/pr46753.f90: New test.
9777
9778 PR libgomp/43706
9779 * env.c (initialize_env): Default to spin count 300000
9780 instead of 20000000 if neither OMP_WAIT_POLICY nor GOMP_SPINCOUNT
9781 is specified.
9782
9783 PR libgomp/45240
9784 * parallel.c (GOMP_parallel_end): Unlock gomp_remaining_threads_lock
9785 at the end if sync builtins aren't supported.
9786
9787 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9788
9789 * configure.tgt (mips-sgi-irix6*): Add -lpthread to XLDFLAGS.
9790
9791 2010-12-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9792
9793 * testsuite/libgomp.fortran/vla8.f90: Use dg-timeout-factor 2.0.
9794
9795 2010-11-24 Iain Sandoe <iains@gcc.gnu.org>
9796
9797 * testsuite/libgomp.fortran/fortran.exp: Add paths for libquadmath.
9798
9799 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9800 Tobias Burnus <burnus@net-b.de>
9801
9802 PR fortran/32049
9803 * configure.ac:
9804 * configure: Regenerate.
9805
9806 2010-10-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
9807
9808 * config/linux/futex.h: New.
9809 * config/linux/arm/mutex.h: New.
9810 * configure.tgt (arm*-*-linux*): Add config path.
9811
9812 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
9813
9814 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9815
9816 2010-09-23 Tobias Burnus <burnus@net-b.de>
9817
9818 * libgomp.texi (omp_get_nested, omp_set_nested, omp_set_dynamic):
9819 Change Fortran datatype to LOGICAL.
9820 (omp_set_lock, omp_test_lock, omp_unset_lock, omp_set_nested_lock,
9821 omp_unset_nested_lock): Use intent(inout) instead of intent(out).
9822
9823 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9824
9825 * configure: Regenerate.
9826
9827 2010-07-26 Jakub Jelinek <jakub@redhat.com>
9828
9829 * libgomp.texi: Add function keyword to a couple of Fortran
9830 interfaces, use integer instead of int for Fortran.
9831
9832 2010-07-26 Aldy Hernandez <aldyh@redhat.com>
9833
9834 * libgomp.texi: Fix spelling and pasto problems throughout.
9835 Adjust prototypes to match code.
9836
9837 2010-07-24 Tobias Burnus <burnus@net-b.de>
9838
9839 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: Add -w to
9840 silence -fwhole-file warning.
9841
9842 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9843
9844 * configure.tgt (*-*-solaris2.[56]*): Removed.
9845
9846 2010-07-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9847
9848 * acinclude.m4 (LIBGOMP_ENABLE_SYMVERS): Handle sun style.
9849 Define LIBGOMP_BUILD_VERSIONED_SHLIB_GNU,
9850 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN automake conditionals.
9851 (HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT): Define unless
9852 targetting solaris2*.
9853 * configure: Regenerate.
9854 * config.h.in: Regenerate.
9855
9856 * Makefile.am [LIBGOMP_BUILD_VERSIONED_SHLIB]: Protect
9857 libgomp_version_script with LIBGOMP_BUILD_VERSIONED_SHLIB_GNU.
9858 Add libgomp_version_dep.
9859 [LIBGOMP_BUILD_VERSIONED_SHLIB_SUN]: Handle Sun symbol
9860 versioning.
9861 [!LIBGOMP_BUILD_VERSIONED_SHLIB]: Add libgomp_version_dep.
9862 (libgomp_la_DEPENDENCIES): Set to $(libgomp_version_dep).
9863 * Makefile.in: Regenerate.
9864
9865 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef unless
9866 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
9867 * libgomp.map (OMP_1.0): Move symbols both in OMP_1.0 and OMP_3.0
9868 to common block, protected by
9869 HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT.
9870
9871 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
9872
9873 * libgomp.texi: Move to GFDL version 1.3. Update copyright years.
9874
9875 2010-06-09 Iain Sandoe <iains@gcc.gnu.org>
9876
9877 PR bootstrap/43170
9878 * configure: Regenerate.
9879
9880 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9881
9882 PR other/43620
9883 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
9884 * configure: Regenerate.
9885 * Makefile.in: Regenerate.
9886 * testsuite/Makefile.in: Regenerate.
9887
9888 2010-04-26 Jakub Jelinek <jakub@redhat.com>
9889
9890 PR c/43893
9891 * testsuite/libgomp.c/pr43893.c: New test.
9892 * testsuite/libgomp.c++/pr43893.C: New test.
9893
9894 2010-04-21 Jakub Jelinek <jakub@redhat.com>
9895
9896 PR middle-end/43570
9897 * testsuite/libgomp.fortran/vla8.f90: New test.
9898
9899 2010-04-20 Jakub Jelinek <jakub@redhat.com>
9900
9901 PR libgomp/43706
9902 * config/linux/affinity.c (gomp_init_affinity): Decrease
9903 gomp_available_cpus if affinity mask confines the process to fewer
9904 CPUs.
9905 * config/linux/proc.c (get_num_procs): If gomp_cpu_affinity is
9906 non-NULL, just return gomp_available_cpus.
9907
9908 PR libgomp/43569
9909 * sections.c (gomp_sections_init): Initialize ws->mode.
9910
9911 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
9912
9913 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Remove set but
9914 not unused bar variable.
9915 * configure: Regenerate.
9916
9917 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9918
9919 * Makefile.in: Regenerate.
9920 * aclocal.m4: Regenerate.
9921 * testsuite/Makefile.in: Regenerate.
9922
9923 2010-03-22 Jakub Jelinek <jakub@redhat.com>
9924
9925 PR libgomp/42942
9926 * env.c (parse_unsigned_long): Add ALLOW_ZERO argument.
9927 (initialize_env): Adjust callers.
9928 (omp_set_max_active_levels): Set gomp_max_active_levels_var even
9929 when the argument is 0.
9930
9931 * testsuite/libgomp.c/pr42942.c: New test.
9932
9933 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
9934
9935 PR middle-end/42644
9936 PR middle-end/42130
9937 * testsuite/libgomp.graphite/force-parallel-1.c: Adjust.
9938 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust.
9939
9940 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9941
9942 * testsuite/libgomp.c++/task-1.C: Renamed err to e.
9943 * testsuite/libgomp.c++/task-6.C: Likewise.
9944
9945 2010-01-28 Steve Ellcey <sje@cup.hp.com>
9946
9947 * configure.tgt (*-*-hpux*): Add -frandom-seed flag.
9948
9949 2010-01-26 Paolo Bonzini <bonzini@gnu.org>
9950
9951 * configure.ac: Test for executability of _the first word_ of GFORTRAN.
9952 * configure: Regenerate.
9953
9954 2010-01-26 Jakub Jelinek <jakub@redhat.com>
9955
9956 PR fortran/42866
9957 * testsuite/libgomp.fortran/allocatable5.f90: New test.
9958
9959 2010-01-20 Paolo Bonzini <bonzini@gnu.org>
9960
9961 * configure.ac: Test for executability of GFORTRAN.
9962 * configure: Regenerate.
9963
9964 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9965
9966 * configure: Regenerate.
9967
9968 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
9969
9970 PR libgomp/42602
9971 * libgomp.fortran/recursion1.f90 (sub): Make 's' atomic.
9972
9973 2010-01-03 Richard Guenther <rguenther@suse.de>
9974
9975 * testsuite/libgomp.fortran/recursion1.f90: New testcase.
9976
9977 2009-12-23 Sebastian Pop <sebpop@gmail.com>
9978
9979 * testsuite/libgomp.graphite/pr4118.c: New.
9980
9981 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9982
9983 * testsuite/libgomp.fortran/crayptr2.f90: Remove forced static linkage
9984 for darwin, protect the test with require-effective-target tls_runtime.
9985 * testsuite/libgomp.fortran/pr32550.f90: Ditto.
9986
9987 2009-12-22 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
9988
9989 PR target/41605
9990 * testsuite/lib/libgomp.exp: Provide -B options to allow for
9991 link spec %s substitutions for static libraries.
9992
9993 2009-12-18 Jack Howarth <howarth@bromo.med.uc.edu>
9994
9995 PR testsuite/42135
9996 * libgomp.graphite/force-parallel-2.c: Reduce array size.
9997
9998 2009-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9999
10000 * Makefile.in: Regenerate.
10001 * configure: Regenerate.
10002 * testsuite/Makefile.in: Regenerate.
10003
10004 2009-11-30 Dave Korn <dave.korn.cygwin@gmail.com>
10005
10006 * testsuite/lib/libgomp.exp (libgomp_init): Add host-dependent
10007 settings for LC_ALL and LANG.
10008
10009 2009-11-25 Jakub Jelinek <jakub@redhat.com>
10010
10011 PR fortran/42162
10012 * testsuite/libgomp.fortran/pr42162.f90: New test.
10013
10014 2009-11-13 Jakub Jelinek <jakub@redhat.com>
10015
10016 PR middle-end/42029
10017 * testsuite/libgomp.c/pr42029.c: New test.
10018
10019 2009-10-26 Jakub Jelinek <jakub@redhat.com>
10020
10021 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid using too many
10022 *s. Accept ld version without text in ()s.
10023 * configure: Regenerated.
10024
10025 2009-10-22 Razya Ladelsky <razya@il.ibm.com>
10026
10027 * testsuite/libgomp.graphite/force-parallel-2.c: Adjust scan.
10028
10029 2009-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10030
10031 PR libgomp/41418
10032 * configure.ac: Set FC to "no" if $GFORTRAN starts with "no"
10033 or a hyphen (happens with fortran language disabled).
10034 * configure: Regenerate.
10035
10036 2009-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10037
10038 * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head',
10039 use sed script portable to Solaris /bin/sed for extracting ld
10040 version.
10041 * configure: Regenerate.
10042
10043 2009-09-17 Alexander Monakov <amonakov@ispras.ru>
10044
10045 * testsuite/libgomp.graphite/bounds.c: New test.
10046
10047 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10048
10049 * Makefile.am (libgomp_la_LINK): New.
10050 * Makefile.in: Regenerate.
10051
10052 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10053
10054 * configure.ac (AC_PREREQ): Bump to 2.64.
10055
10056 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10057
10058 * Makefile.am (install-html, install-pdf): Remove.
10059 * Makefile.in: Regenerate.
10060
10061 * Makefile.in: Regenerate.
10062 * aclocal.m4: Regenerate.
10063 * config.h.in: Regenerate.
10064 * configure: Regenerate.
10065 * testsuite/Makefile.in: Regenerate.
10066
10067 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10068
10069 * Makefile.am (LINK): Add $(AM_LIBTOOLFLAGS) and $(LIBTOOLFLAGS).
10070 * Makefile.in: Regenerate.
10071
10072 2009-08-20 Dave Korn <dave.korn.cygwin@gmail.com>
10073
10074 * Makefile.am (libgomp_la_LDFLAGS): Add -bindir flag.
10075 * Makefile.in: Regenerate.
10076
10077 2009-08-19 Tobias Burnus <burnus@net-b.de>
10078
10079 PR fortran/41102
10080 omp_lib.h.in: Fix -std=f95 errors.
10081
10082 2009-08-14 David Edelsohn <edelsohn@gnu.org>
10083
10084 * testsuite/libgomp.graphite: Move from gcc.dg/graphite.
10085 * testsuite/libgomp.graphite/graphite_autopar.exp: Delete.
10086 * testsuite/libgomp.graphite/graphite.exp: New.
10087
10088 2009-08-05 Andreas Tobler <a.tobler@schweiz.org>
10089
10090 * testsuite/libgomp.fortran/fortran.exp: Add flags in case of shared
10091 only build.
10092
10093 2009-08-04 David Daney <ddaney@caviumnetworks.com>
10094
10095 * config/linux/mutex.h (gomp_mutex_unlock): Add comment about
10096 needed memory barrier semantics.
10097 * config/linux/mips/mutex.h: New file.
10098
10099 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10100
10101 * configure.ac (_AC_ARG_VAR_PRECIOUS): Use m4_rename_force.
10102
10103 2009-07-16 Joseph Myers <joseph@codesourcery.com>
10104
10105 * configure: Regenerate.
10106
10107 2009-07-11 Richard Sandiford <rdsandiford@googlemail.com>
10108
10109 PR testsuite/40699
10110 PR testsuite/40707
10111 PR testsuite/40709
10112 * testsuite/lib/libgomp.exp: Revert 2009-07-02 and 2009-06-30 commits.
10113 * testsuite/libgomp.c/c.exp, testsuite/libgomp.c++/c++.exp,
10114 testsuite/libgomp.fortran/fortran.exp: Revert 2009-06-30 commits.
10115
10116 2009-07-02 Richard Sandiford <r.sandiford@uk.ibm.com>
10117
10118 * testsuite/lib/libgomp.exp (libgomp_init): Use the ALWAYS_CFLAGS
10119 options when choosing a multilib.
10120
10121 2009-06-30 Richard Sandiford <r.sandiford@uk.ibm.com>
10122
10123 * testsuite/lib/libgomp.exp (libgomp_init): Don't add "." to
10124 ld_library_path. Use add_path. Add just find_libgcc_s to
10125 ld_library_path, not every libgcc multilib directory.
10126 * testsuite/libgomp.c/c.exp (ld_library_path): Don't call
10127 gcc-set-multilib-library-path; rely on $always_ld_library_path instead.
10128 * testsuite/libgomp.c++/c++.exp (ld_library_path): Likewise.
10129 Use add_path.
10130 * testsuite/libgomp.fortran/fortran.exp (ld_library_path): Likewise.
10131
10132 2009-06-09 Nathan Froyd <froydnj@codesourcery.com>
10133
10134 * Makefile.am (LTLDFLAGS): Define.
10135 (LINK): Define.
10136 * Makefile.in: Regenerate.
10137
10138 2009-05-27 Janne Blomqvist <jb@gcc.gnu.org>
10139
10140 PR fortran/39718
10141 * testsuite/libgomp.fortran/fortran.exp: Don't link with
10142 libgfortranbegin, check existence of libgfortran.a instead of
10143 libgfortranbegin.a.
10144
10145 2009-05-20 Jakub Jelinek <jakub@redhat.com>
10146
10147 PR libgomp/40174
10148 * team.c (gomp_thread_start): Destroy thr->release semaphore.
10149 (gomp_free_pool_helper): Likewise.
10150
10151 2009-04-20 Vasilis Liaskovitis <vliaskov@gmail.com>
10152 Jakub Jelinek <jakub@redhat.com>
10153
10154 PR fortran/35423
10155 * testsuite/libgomp.fortran/workshare2.f90: New test.
10156
10157 2009-04-09 Nick Clifton <nickc@redhat.com>
10158
10159 * iter.c: Change copyright header to refer to version 3 of the
10160 GNU General Public License with version 3.1 of the GCC Runtime
10161 Library Exception and to point readers at the COPYING3 and
10162 COPYING3.RUNTIME files and the FSF's license web page.
10163 * alloc.c: Likewise.
10164 * barrier.c: Likewise.
10165 * config/bsd/proc.c: Likewise.
10166 * config/linux/affinity.c: Likewise.
10167 * config/linux/alpha/futex.h: Likewise.
10168 * config/linux/bar.c: Likewise.
10169 * config/linux/bar.h: Likewise.
10170 * config/linux/ia64/futex.h: Likewise.
10171 * config/linux/ia64/mutex.h: Likewise.
10172 * config/linux/lock.c: Likewise.
10173 * config/linux/mips/futex.h: Likewise.
10174 * config/linux/mutex.c: Likewise.
10175 * config/linux/mutex.h: Likewise.
10176 * config/linux/powerpc/futex.h: Likewise.
10177 * config/linux/proc.c: Likewise.
10178 * config/linux/ptrlock.c: Likewise.
10179 * config/linux/ptrlock.h: Likewise.
10180 * config/linux/s390/futex.h: Likewise.
10181 * config/linux/sem.c: Likewise.
10182 * config/linux/sem.h: Likewise.
10183 * config/linux/sparc/futex.h: Likewise.
10184 * config/linux/wait.h: Likewise.
10185 * config/linux/x86/futex.h: Likewise.
10186 * config/mingw32/proc.c: Likewise.
10187 * config/mingw32/time.c: Likewise.
10188 * config/posix/affinity.c: Likewise.
10189 * config/posix/bar.c: Likewise.
10190 * config/posix/bar.h: Likewise.
10191 * config/posix/lock.c: Likewise.
10192 * config/posix/mutex.h: Likewise.
10193 * config/posix/proc.c: Likewise.
10194 * config/posix/ptrlock.h: Likewise.
10195 * config/posix/sem.c: Likewise.
10196 * config/posix/sem.h: Likewise.
10197 * config/posix/time.c: Likewise.
10198 * config/posix95/lock.c: Likewise.
10199 * critical.c: Likewise.
10200 * env.c: Likewise.
10201 * error.c: Likewise.
10202 * fortran.c: Likewise.
10203 * iter_ull.c: Likewise.
10204 * libgomp.h: Likewise.
10205 * libgomp_f.h.in: Likewise.
10206 * libgomp_g.h: Likewise.
10207 * loop.c: Likewise.
10208 * loop_ull.c: Likewise.
10209 * omp.h.in: Likewise.
10210 * omp_lib.f90.in: Likewise.
10211 * omp_lib.h.in: Likewise.
10212 * ordered.c: Likewise.
10213 * parallel.c: Likewise.
10214 * sections.c: Likewise.
10215 * single.c: Likewise.
10216 * task.c: Likewise.
10217 * team.c: Likewise.
10218 * work.c: Likewise.
10219
10220 2009-04-09 Jakub Jelinek <jakub@redhat.com>
10221
10222 * testsuite/config/default.exp: Change copyright header to refer to
10223 version 3 of the GNU General Public License and to point readers
10224 at the COPYING3 file and the FSF's license web page.
10225
10226 2009-04-08 Jakub Jelinek <jakub@redhat.com>
10227
10228 PR middle-end/39573
10229 * libgomp.c++/pr39573.C: New test.
10230
10231 2009-04-01 Jakub Jelinek <jakub@redhat.com>
10232
10233 PR other/39591
10234 * testsuite/libgomp.c/pr39591-1.c: New test.
10235 * testsuite/libgomp.c/pr39591-2.c: New test.
10236 * testsuite/libgomp.c/pr39591-3.c: New test.
10237
10238 2009-03-25 Uros Bizjak <ubizjak@gmail.com>
10239
10240 * testsuite/libgomp.c/atomic-5.c: Cleanup cpuid usage.
10241 * testsuite/libgomp.c/atomic-6.c: Ditto.
10242
10243 2009-03-23 Jakub Jelinek <jakub@redhat.com>
10244
10245 PR c/39495
10246 * testsuite/libgomp.c/loop-12.c: New test.
10247 * testsuite/libgomp.c/loop-11.c: New test.
10248 * testsuite/libgomp.c++/loop-11.C: New test.
10249 * testsuite/libgomp.c++/loop-12.C: New test.
10250 * testsuite/libgomp.c++/for-8.C: New test.
10251
10252 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10253
10254 * configure: Regenerate.
10255
10256 2009-02-11 Jakub Jelinek <jakub@redhat.com>
10257
10258 PR middle-end/39154
10259 * testsuite/libgomp.c/pr39154.c: New test.
10260
10261 2009-01-30 Ian Lance Taylor <iant@google.com>
10262
10263 * acinclude.m4 (LIBCOMP_CHECK_LINKER_FEATURES): Set
10264 libgomp_ld_is_gold. Get gold version number.
10265 (LIBGOMP_ENABLE_SYMVERS): Gold always support symbol versioning.
10266 * configure: Rebuild.
10267
10268 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10269
10270 * testsuite/lib/libgomp.exp: Add -B option for targets that
10271 use libgfortran.a%s in their specs.
10272
10273 2009-01-07 Jakub Jelinek <jakub@redhat.com>
10274
10275 PR libgomp/38086
10276 * acinclude.m4 (HAVE_AS_SYMVER_DIRECTIVE): New check.
10277 * libgomp.h (LIBGOMP_GNU_SYMBOL_VERSIONING): Undefine if
10278 HAVE_AS_SYMVER_DIRECTIVE is not defined.
10279 * configure: Regenerated.
10280 * config.h.in: Likewise.
10281
10282 2008-12-28 Jakub Jelinek <jakub@redhat.com>
10283
10284 PR c++/38650
10285 * testsuite/libgomp.c/pr38650.c: New test.
10286 * testsuite/libgomp.c++/pr38650.C: New test.
10287
10288 2008-12-27 Jakub Jelinek <jakub@redhat.com>
10289
10290 * testsuite/libgomp.c/collapse-1.c (main): Add private(k) clause.
10291
10292 2008-12-26 Uros Bizjak <ubizjak@gmail.com>
10293
10294 * testsuite/libgomp.c/atomic-6.c: Add -mieee for alpha*-*-* targets.
10295
10296 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10297
10298 * configure: Regenerate.
10299
10300 2008-12-08 Jakub Jelinek <jakub@redhat.com>
10301
10302 PR middle-end/36802
10303 * testsuite/libgomp.c/pr36802-1.c: New test.
10304 * testsuite/libgomp.c/pr36802-2.c: New test.
10305 * testsuite/libgomp.c/pr36802-3.c: New test.
10306
10307 2008-12-01 Janis Johnson <janis187@us.ibm.com>
10308
10309 PR libgomp/38270
10310 * config/linux/powerpc/mutex.h: New.
10311
10312 2008-12-01 Jakub Jelinek <jakub@redhat.com>
10313
10314 PR c++/38257
10315 * testsuite/libgomp.c++/for-7.C: New test.
10316
10317 PR c++/38348
10318 * testsuite/libgomp.c++/for-6.C: New test.
10319
10320 2008-11-26 Janis Johnson <janis187@us.ibm.com>
10321
10322 PR testsuite/28870
10323 * testsuite/lib/libgomp.exp: Include new timeout library files.
10324 (libgomp_target_compile): Set timeout value from new proc.
10325
10326 2008-11-13 Steve Ellcey <sje@cup.hp.com>
10327
10328 PR libgomp/37938
10329 * config/linux/ia64/mutex.h: New.
10330
10331 2008-11-04 Tobias Burnus <burnus@net-b.de>
10332
10333 PR libgomp/37935
10334 * libgomp.texi (Runtime library routines, environment variables):
10335 Update for OpenMP version 3.0.
10336
10337 2008-09-26 Peter O'Gorman <pogma@thewrittenword.com>
10338 Steve Ellcey <sje@cup.hp.com>
10339
10340 * configure: Regenerate for new libtool.
10341 * Makefile.in: Ditto.
10342 * testsuite/Makefile.in: Ditto.
10343
10344 2008-09-19 Jakub Jelinek <jakub@redhat.com>
10345 Andreas Tobler <a.tobler@schweiz.org>
10346
10347 * config/bsd/proc.c: New file.
10348 * configure.tgt (*-*-darwin*): Use config_path "bsd posix".
10349 * configure.ac: Check for header <sys/sysctl.h>
10350 * configure: Regenerate.
10351 * config.h.in: Likewise.
10352
10353 2008-09-05 Janis Johnson <janis187@us.ibm.com>
10354
10355 * testsuite/ligbomp.c/c.exp: Unset lang_test_file only if it exists.
10356
10357 2008-08-31 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
10358
10359 * Makefile.am (libgomp_la_LDFLAGS): Add -no-undefined.
10360 * Makefile.in: Regenerated.
10361 * testsuite/Makefile.in: Regenerated.
10362
10363 2008-08-21 Nathan Froyd <froydnj@codesourcery.com>
10364
10365 * testsuite/lib/libgomp.exp (libgomp_init): Only set things that
10366 depend on blddir if blddir exists.
10367 (libgomp_target_compile): Likewise.
10368 * testsuite/libgomp.c++/c++.exp: Likewise.
10369 * testsuite/libgomp.fortran/fortran.exp: Likewise.
10370
10371 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10372
10373 * libgomp.texi: Update to GFDL 1.2. Update copyright years.
10374 Do not list GPL as Invariant Section.
10375
10376 2008-07-28 Ilie Garbacea <ilie@mips.com>
10377 Chao-ying Fu <fu@mips.com>
10378
10379 * configure.tgt: Enable futex for MIPS.
10380 * config/linux/mips/futex.h: New file.
10381
10382 2008-07-16 Jakub Jelinek <jakub@redhat.com>
10383
10384 * team.c (gomp_team_end): Free team immediately if it has
10385 just one thread.
10386
10387 2008-07-08 David Edelsohn <edelsohn@gnu.org>
10388
10389 * testsuite/libgomp.c++/c++.exp: Append multilib library path.
10390 * testsuite/libgomp.fortran/fortran.exp: Same.
10391 * testsuite/libgomp.c/c.exp: Same.
10392 * testsuite/lib/libgomp.exp: Append AIX libgcc pthread multilib
10393 directory to library path first.
10394
10395 2008-06-29 Krister Walfridsson <krister.walfridsson@gmail.com>
10396
10397 * env.c (parse_stacksize): Add cast to avoid warning.
10398 (parse_spincount): Likewise.
10399
10400 2008-06-27 Jakub Jelinek <jakub@redhat.com>
10401
10402 * testsuite/libgomp.c/loop-10.c: New test.
10403 * libgomp.c/loop-3.c (main): Add lastprivate clause.
10404 * libgomp.c++/loop-6.C (main): Likewise.
10405
10406 PR debug/36617
10407 * testsuite/libgomp.c/debug-1.c: New test.
10408
10409 2008-06-19 Jakub Jelinek <jakub@redhat.com>
10410
10411 * testsuite/libgomp.c/nqueens-1.c: New test.
10412
10413 PR c++/36523
10414 * testsuite/libgomp.c++/task-7.C: New function.
10415
10416 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10417
10418 * configure: Regenerate.
10419
10420 2008-06-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10421
10422 * env.c (initialize_env): Always initialize gomp_remaining_threads_lock
10423 mutex when HAVE_SYNC_BUILTINS isn't defined.
10424
10425 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10426
10427 * libgomp.texi (omp_test_lock): Fix typo.
10428
10429 2008-06-12 Tobias Burnus <burnus@net-b.de>
10430
10431 * omp_lib.f90.in: Add "implicit none".
10432
10433 2008-06-12 Jakub Jelinek <jakub@redhat.com>
10434
10435 PR middle-end/36506
10436 * testsuite/libgomp.c/reduction-5.c: New test.
10437
10438 2008-06-11 Jakub Jelinek <jakub@redhat.com>
10439
10440 * libgomp.h (struct gomp_task): Add in_tied_task field.
10441 * task.c (gomp_init_task): Initialize it.
10442 (GOMP_task): Likewise. Call gomp_team_barrier_set_task_pending
10443 unconditionally. Don't call gomp_team_barrier_wake if
10444 current task is implicit or if(0) from implicit and number of
10445 running tasks is equal to nthreads - 1.
10446
10447 PR libgomp/36471
10448 * omp_lib.f90.in (omp_get_ancestor_thread_num_8,
10449 omp_get_team_size_8): Fix pastos.
10450
10451 PR libgomp/36469
10452 * configure.ac: Add AC_CHECK_FUNCS (strtoull).
10453 * configure: Regenerated.
10454 * config.h.in: Regenerated.
10455 * env.c (strtoull): Define to strtoul if HAVE_STRTOULL is not
10456 defined.
10457
10458 2008-06-06 Andreas Tobler <a.tobler@schweiz.org>
10459
10460 PR bootstrap/36452
10461 * loop_ull.c (GOMP_loop_ull_static_start): Adjust API.
10462 (GOMP_loop_ull_dynamic_start): Likewise.
10463 (GOMP_loop_ull_guided_start): Likewise.
10464 (GOMP_loop_ull_ordered_static_start): Likewise.
10465 (GOMP_loop_ull_ordered_dynamic_start): Likewise.
10466 (GOMP_loop_ull_ordered_guided_start): Likewise.
10467
10468 2008-06-06 Jakub Jelinek <jakub@redhat.com>
10469 Richard Henderson <rth@redhat.com>
10470 Ulrich Drepper <drepper@redhat.com>
10471 Jakob Blomer <jakob.blomer@ira.uka.de>
10472
10473 * configure.ac (LIBGOMP_GNU_SYMBOL_VERSIONING): New AC_DEFINE.
10474 Substitute also OMP_*LOCK_25*.
10475 * configure: Regenerated.
10476 * config.h.in: Regenerated.
10477 * Makefile.am (libgomp_la_SOURCES): Add loop_ull.c, iter_ull.c,
10478 ptrlock.c and task.c.
10479 * Makefile.in: Regenerated.
10480 * testsuite/Makefile.in: Regenerated.
10481 * task.c: New file.
10482 * loop_ull.c: New file.
10483 * iter_ull.c: New file.
10484 * libgomp.h: Include ptrlock.h.
10485 (enum gomp_task_kind): New type.
10486 (struct gomp_team): Add task_lock, task_queue, task_count,
10487 task_running_count, single_count fields. Add
10488 work_share_list_free_lock ifndef HAVE_SYNC_BUILTINS.
10489 Remove work_share_lock, generation_mask,
10490 oldest_live_gen, num_live_gen and init_work_shares fields, add
10491 work work_share_list_alloc, work_share_list_free and work_share_chunk
10492 fields. Change work_shares from pointer to pointers into an array.
10493 Change ordered_release field into gomp_sem_t ** from flexible array
10494 member. Add implicit_task and initial_work_shares fields.
10495 Move close to the end of the struct.
10496 (struct gomp_team_state): Add single_count, last_work_share,
10497 active_level and level fields, remove work_share_generation.
10498 (gomp_barrier_handle_tasks): New prototype.
10499 (gomp_finish_task): New inline function.
10500 (struct gomp_work_share): Move chunk_size, end, incr into
10501 transparent union/struct, add chunk_size_ull, end_ll, incr_ll and
10502 next_ll fields. Reshuffle fields. Add next_alloc,
10503 next_ws, next_free and inline_ordered_team_ids fields, change
10504 ordered_team_ids into pointer from flexible array member.
10505 Add mode field. Put lock and next into a different cache line
10506 from most of the write-once fields.
10507 (gomp_iter_ull_static_next, gomp_iter_ull_dynamic_next_locked,
10508 gomp_iter_ull_guided_next_locked, gomp_iter_ull_dynamic_next,
10509 gomp_iter_ull_guided_next): New prototypes.
10510 (gomp_new_icv): New prototype.
10511 (struct gomp_thread): Add thread_pool and task fields.
10512 (struct gomp_thread_pool): New type.
10513 (gomp_new_team): New prototype.
10514 (gomp_team_start): Change type of last argument.
10515 (gomp_new_work_share): Removed.
10516 (gomp_init_work_share, gomp_fini_work_share): New prototypes.
10517 (gomp_work_share_init_done): New static inline.
10518 (gomp_throttled_spin_count_var, gomp_available_cpus,
10519 gomp_managed_threads): New extern decls.
10520 (gomp_init_task): New prototype.
10521 (gomp_spin_count_var): New extern var decl.
10522 (LIBGOMP_GNU_SYMBOL_VERSIONING): Undef if no visibility
10523 or no alias support, or if not PIC.
10524 (gomp_init_lock_30, gomp_destroy_lock_30, gomp_set_lock_30,
10525 gomp_unset_lock_30, gomp_test_lock_30, gomp_init_nest_lock_30,
10526 gomp_destroy_nest_lock_30, gomp_set_nest_lock_30,
10527 gomp_unset_nest_lock_30, gomp_test_nest_lock_30, gomp_init_lock_25,
10528 gomp_destroy_lock_25, gomp_set_lock_25, gomp_unset_lock_25,
10529 gomp_test_lock_25, gomp_init_nest_lock_25, gomp_destroy_nest_lock_25,
10530 gomp_set_nest_lock_25, gomp_unset_nest_lock_25,
10531 gomp_test_nest_lock_25): New prototypes.
10532 (omp_lock_symver, strong_alias): Define.
10533 (gomp_remaining_threads_count, gomp_remaining_threads_lock): New
10534 decls.
10535 (gomp_end_task): New.
10536 (struct gomp_task_icv, gomp_global_icv): New.
10537 (gomp_thread_limit_var, gomp_max_active_levels_var): New.
10538 (struct gomp_task): New.
10539 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
10540 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
10541 (gomp_icv): New.
10542 (gomp_schedule_type): Reorder enum to match
10543 omp_sched_t.
10544 * team.c (struct gomp_thread_start_data): Add thread_pool and task
10545 fields.
10546 (gomp_thread_start): Add gomp_team_barrier_wait call.
10547 For non-nested case remove clearing of docked thread thr fields.
10548 Use pool fields instead of global gomp_* variables. Use
10549 gomp_barrier_wait_last when needed. Initialize ts.active_level.
10550 Create tasks for each member thread.
10551 (free_team): Only destroy team barrier, task_lock here and free it.
10552 (gomp_free_thread): Free last_team if non-NULL.
10553 (gomp_team_end): Call gomp_team_barrier_wait instead of
10554 gomp_barrier_wait. For nested case call one extra
10555 gomp_barrier_wait. Move here some destruction from free_team.
10556 Call free_team on pool->last_team if any, rather than freeing
10557 current team. Destroy work_share_list_free_lock ifndef
10558 HAVE_SYNC_BUILTINS.
10559 (gomp_new_icv): New function.
10560 (gomp_threads, gomp_threads_size, gomp_threads_used,
10561 gomp_threads_dock): Removed.
10562 (gomp_thread_destructor): New variable.
10563 (gomp_new_thread_pool, gomp_free_pool_helper, gomp_free_thread): New
10564 functions.
10565 (gomp_team_start): Create new pool if current thread doesn't have
10566 one. Use pool fields instead of global gomp_* variables.
10567 Initialize thread_pool field for new threads. Clear single_count.
10568 Change last argument from ws to team, don't create
10569 new team, set ts.work_share to &team->work_shares[0] and clear
10570 ts.last_work_share. Don't clear ts.work_share_generation.
10571 If number of threads changed, adjust atomically gomp_managed_threads.
10572 Use gomp_init_task instead of gomp_new_task,
10573 set thr->task to the corresponding implicit_task array entry.
10574 Create tasks for each member thread. Initialize ts.level.
10575 (initialize_team): Call pthread_key_create on
10576 gomp_thread_destructor.
10577 (team_destructor): New function.
10578 (new_team): Removed.
10579 (gomp_new_team): New function.
10580 (free_team): Free gomp_work_share blocks chained through next_alloc,
10581 instead of freeing work_shares and destroying work_share_lock.
10582 (gomp_team_end): Call gomp_fini_work_share. If number of threads
10583 changed, adjust atomically gomp_managed_threads. Use gomp_end_task.
10584 * barrier.c (GOMP_barrier): Call gomp_team_barrier_wait instead
10585 of gomp_barrier_wait.
10586 * single.c (GOMP_single_copy_start): Call gomp_team_barrier_wait
10587 instead of gomp_barrier_wait. Call gomp_work_share_init_done
10588 if gomp_work_share_start returned true. Don't unlock ws->lock.
10589 (GOMP_single_copy_end): Call gomp_team_barrier_wait instead
10590 of gomp_barrier_wait.
10591 (GOMP_single_start): Rewritten if HAVE_SYNC_BUILTINS. Call
10592 gomp_work_share_init_done if gomp_work_share_start returned true.
10593 Don't unlock ws->lock.
10594 * work.c: Include stddef.h.
10595 (free_work_share): Use work_share_list_free_lock instead
10596 of atomic chaining ifndef HAVE_SYNC_BUILTINS. Add team argument.
10597 Call gomp_fini_work_share and then either free ws if orphaned, or
10598 put it into work_share_list_free list of the current team.
10599 (alloc_work_share, gomp_init_work_share, gomp_fini_work_share): New
10600 functions.
10601 (gomp_work_share_start, gomp_work_share_end,
10602 gomp_work_share_end_nowait): Rewritten.
10603 * omp_lib.f90.in Change some tabs to spaces to prevent warnings.
10604 (openmp_version): Set to 200805.
10605 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
10606 omp_sched_guided, omp_sched_auto): New parameters.
10607 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10608 omp_set_max_active_levels, omp_get_max_active_levels,
10609 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10610 omp_get_active_level): New interfaces.
10611 * omp_lib.h.in (openmp_version): Set to 200805.
10612 (omp_sched_kind, omp_sched_static, omp_sched_dynamic,
10613 omp_sched_guided, omp_sched_auto): New parameters.
10614 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10615 omp_set_max_active_levels, omp_get_max_active_levels,
10616 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10617 omp_get_active_level): New externals.
10618 * loop.c: Include limits.h.
10619 (GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Handle
10620 GFS_AUTO.
10621 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start):
10622 Likewise. Use gomp_icv.
10623 (gomp_loop_static_start, gomp_loop_dynamic_start): Clear
10624 ts.static_trip here.
10625 (gomp_loop_static_start, gomp_loop_ordered_static_start): Call
10626 gomp_work_share_init_done after gomp_loop_init. Don't unlock ws->lock.
10627 (gomp_loop_dynamic_start, gomp_loop_guided_start): Call
10628 gomp_work_share_init_done after gomp_loop_init. If HAVE_SYNC_BUILTINS,
10629 don't unlock ws->lock, otherwise lock it.
10630 (gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start): Call
10631 gomp_work_share_init_done after gomp_loop_init. Lock ws->lock.
10632 (gomp_parallel_loop_start): Call gomp_new_team instead of
10633 gomp_new_work_share. Call gomp_loop_init on &team->work_shares[0].
10634 Adjust gomp_team_start caller. Pass 0 as second argument to
10635 gomp_resolve_num_threads.
10636 (gomp_loop_init): For GFS_DYNAMIC, multiply ws->chunk_size by incr.
10637 If adding ws->chunk_size nthreads + 1 times after end won't
10638 overflow, set ws->mode to 1.
10639 * libgomp_g.h (GOMP_loop_ull_static_start, GOMP_loop_ull_dynamic_start,
10640 GOMP_loop_ull_guided_start, GOMP_loop_ull_runtime_start,
10641 GOMP_loop_ull_ordered_static_start,
10642 GOMP_loop_ull_ordered_dynamic_start,
10643 GOMP_loop_ull_ordered_guided_start,
10644 GOMP_loop_ull_ordered_runtime_start, GOMP_loop_ull_static_next,
10645 GOMP_loop_ull_dynamic_next, GOMP_loop_ull_guided_next,
10646 GOMP_loop_ull_runtime_next, GOMP_loop_ull_ordered_static_next,
10647 GOMP_loop_ull_ordered_dynamic_next, GOMP_loop_ull_ordered_guided_next,
10648 GOMP_loop_ull_ordered_runtime_next, GOMP_task, GOMP_taskwait): New
10649 prototypes.
10650 * libgomp.map: Export lock routines also @@OMP_2.0.
10651 (GOMP_loop_ordered_dynamic_first,
10652 GOMP_loop_ordered_guided_first, GOMP_loop_ordered_runtime_first,
10653 GOMP_loop_ordered_static_first): Remove.
10654 (GOMP_loop_ull_dynamic_next, GOMP_loop_ull_dynamic_start,
10655 GOMP_loop_ull_guided_next, GOMP_loop_ull_guided_start,
10656 GOMP_loop_ull_ordered_dynamic_next,
10657 GOMP_loop_ull_ordered_dynamic_start,
10658 GOMP_loop_ull_ordered_guided_next,
10659 GOMP_loop_ull_ordered_guided_start,
10660 GOMP_loop_ull_ordered_runtime_next,
10661 GOMP_loop_ull_ordered_runtime_start,
10662 GOMP_loop_ull_ordered_static_next,
10663 GOMP_loop_ull_ordered_static_start,
10664 GOMP_loop_ull_runtime_next, GOMP_loop_ull_runtime_start,
10665 GOMP_loop_ull_static_next, GOMP_loop_ull_static_start,
10666 GOMP_task, GOMP_taskwait): Export @@GOMP_2.0.
10667 (omp_set_schedule, omp_get_schedule,
10668 omp_get_thread_limit, omp_set_max_active_levels,
10669 omp_get_max_active_levels, omp_get_level,
10670 omp_get_ancestor_thread_num, omp_get_team_size, omp_get_active_level,
10671 omp_set_schedule_, omp_set_schedule_8_,
10672 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
10673 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
10674 omp_get_max_active_levels_, omp_get_level_,
10675 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
10676 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
10677 New exports @@OMP_3.0.
10678 * omp.h.in (omp_sched_t): New type.
10679 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10680 omp_set_max_active_levels, omp_get_max_active_levels,
10681 omp_get_level, omp_get_ancestor_thread_num, omp_get_team_size,
10682 omp_get_active_level): New prototypes.
10683 * env.c (gomp_spin_count_var, gomp_throttled_spin_count_var,
10684 gomp_available_cpus, gomp_managed_threads, gomp_max_active_levels_var,
10685 gomp_thread_limit_var, gomp_remaining_threads_count,
10686 gomp_remaining_threads_lock): New variables.
10687 (parse_spincount): New function.
10688 (initialize_env): Call gomp_init_num_threads unconditionally.
10689 Initialize gomp_available_cpus. Call parse_spincount,
10690 initialize gomp_{,throttled_}spin_count_var
10691 depending on presence and value of OMP_WAIT_POLICY and
10692 GOMP_SPINCOUNT env vars. Handle GOMP_BLOCKTIME env var.
10693 Handle OMP_WAIT_POLICY, OMP_MAX_ACTIVE_LEVELS,
10694 OMP_THREAD_LIMIT, OMP_STACKSIZE env vars. Handle unit specification
10695 for GOMP_STACKSIZE. Initialize gomp_remaining_threads_count and
10696 gomp_remaining_threads_lock if needed. Use gomp_global_icv.
10697 (gomp_nthreads_var, gomp_dyn_var, gomp_nest_var,
10698 gomp_run_sched_var, gomp_run_sched_chunk): Remove.
10699 (gomp_global_icv): New.
10700 (parse_schedule): Use it. Parse "auto".
10701 (omp_set_num_threads): Use gomp_icv.
10702 (omp_set_dynamic, omp_get_dynamic, omp_set_nested, omp_get_nested):
10703 Likewise.
10704 (omp_get_max_threads): Move from parallel.c.
10705 (omp_set_schedule, omp_get_schedule, omp_get_thread_limit,
10706 omp_set_max_active_levels, omp_get_max_active_levels): New functions,
10707 add ialias.
10708 (parse_stacksize, parse_wait_policy): New functions.
10709 * fortran.c: Rewrite lock wrappers, if symbol versioning provide
10710 both wrappers for compatibility and new locks.
10711 (omp_set_schedule, omp_get_schedule,
10712 omp_get_thread_limit, omp_set_max_active_levels,
10713 omp_get_max_active_levels, omp_get_level,
10714 omp_get_ancestor_thread_num, omp_get_team_size,
10715 omp_get_active_level): New ialias_redirect.
10716 (omp_set_schedule_, omp_set_schedule_8_,
10717 omp_get_schedule_, omp_get_schedule_8_, omp_get_thread_limit_,
10718 omp_set_max_active_levels_, omp_set_max_active_levels_8_,
10719 omp_get_max_active_levels_, omp_get_level_,
10720 omp_get_ancestor_thread_num_, omp_get_ancestor_thread_num_8_,
10721 omp_get_team_size_, omp_get_team_size_8_, omp_get_active_level_):
10722 New functions.
10723 * parallel.c: Include limits.h.
10724 (gomp_resolve_num_threads): Add count argument. Rewritten.
10725 (GOMP_parallel_start): Call gomp_new_team and pass that as last
10726 argument to gomp_team_start. Pass 0 as second argument to
10727 gomp_resolve_num_threads.
10728 (GOMP_parallel_end): Decrease gomp_remaining_threads_count
10729 if gomp_thread_limit_var != ULONG_MAX.
10730 (omp_in_parallel): Implement using ts.active_level.
10731 (omp_get_max_threads): Move to env.c.
10732 (omp_get_level, omp_get_ancestor_thread_num,
10733 omp_get_team_size, omp_get_active_level): New functions,
10734 add ialias.
10735 * sections.c (GOMP_sections_start): Call gomp_work_share_init_done
10736 after gomp_sections_init. If HAVE_SYNC_BUILTINS, call
10737 gomp_iter_dynamic_next instead of the _locked variant and don't take
10738 lock around it, otherwise acquire it before calling
10739 gomp_iter_dynamic_next_locked.
10740 (GOMP_sections_next): If HAVE_SYNC_BUILTINS, call
10741 gomp_iter_dynamic_next instead of the _locked variant and don't take
10742 lock around it.
10743 (GOMP_parallel_sections_start): Call gomp_new_team instead of
10744 gomp_new_work_share. Call gomp_sections_init on &team->work_shares[0].
10745 Adjust gomp_team_start caller. Pass count as second argument to
10746 gomp_resolve_num_threads, don't adjust num_threads after the call.
10747 Use gomp_icv.
10748 * iter.c (gomp_iter_dynamic_next_locked): Don't multiply
10749 ws->chunk_size by incr.
10750 (gomp_iter_dynamic_next): Likewise. If ws->mode, use more efficient
10751 code.
10752 * libgomp_f.h.in (omp_lock_25_arg_t, omp_nest_lock_25_arg_t): New
10753 types.
10754 (omp_lock_25_arg, omp_nest_lock_25_arg): New macros.
10755 (omp_check_defines): Check even the compat defines.
10756 * config/linux/ptrlock.c: New file.
10757 * config/linux/ptrlock.h: New file.
10758 * config/linux/wait.h: New file.
10759 * config/posix/ptrlock.c: New file.
10760 * config/posix/ptrlock.h: New file.
10761 * config/linux/bar.h (gomp_team_barrier_wait,
10762 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
10763 (gomp_team_barrier_set_task_pending,
10764 gomp_team_barrier_clear_task_pending,
10765 gomp_team_barrier_set_waiting_for_tasks,
10766 gomp_team_barrier_waiting_for_tasks,
10767 gomp_team_barrier_done): New inlines.
10768 (gomp_barrier_t): Rewritten.
10769 (gomp_barrier_state_t): New typedef.
10770 (gomp_barrier_init, gomp_barrier_reinit, gomp_barrier_destroy,
10771 gomp_barrier_wait_start): Rewritten.
10772 (gomp_barrier_wait_end): Change second argument to
10773 gomp_barrier_state_t.
10774 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
10775 inlines.
10776 * config/linux/bar.c: Include wait.h instead of libgomp.h and
10777 futex.h.
10778 (gomp_barrier_wait_end): Rewritten.
10779 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
10780 gomp_team_barrier_wake, gomp_barrier_wait_last): New functions.
10781 * config/posix/bar.h (gomp_barrier_t): Add generation field.
10782 (gomp_barrier_state_t): New typedef.
10783 (gomp_team_barrier_wait,
10784 gomp_team_barrier_wait_end, gomp_team_barrier_wake): New prototypes.
10785 (gomp_barrier_wait_start): Or all but low 2 bits from generation
10786 into the return value. Return gomp_barrier_state_t.
10787 (gomp_team_barrier_set_task_pending,
10788 gomp_team_barrier_clear_task_pending,
10789 gomp_team_barrier_set_waiting_for_tasks,
10790 gomp_team_barrier_waiting_for_tasks,
10791 gomp_team_barrier_done): New inlines.
10792 (gomp_barrier_wait_end): Change second argument to
10793 gomp_barrier_state_t.
10794 (gomp_barrier_last_thread, gomp_barrier_wait_last): New static
10795 inlines.
10796 * config/posix/bar.c (gomp_barrier_init): Clear generation field.
10797 (gomp_barrier_wait_end): Change second argument to
10798 gomp_barrier_state_t.
10799 (gomp_team_barrier_wait, gomp_team_barrier_wait_end,
10800 gomp_team_barrier_wake): New functions.
10801 * config/linux/mutex.c: Include wait.h instead of libgomp.h and
10802 futex.h.
10803 (gomp_futex_wake, gomp_futex_wait): New variables.
10804 (gomp_mutex_lock_slow): Call do_wait instead of futex_wait.
10805 * config/linux/lock.c: Rewrite to make locks task owned,
10806 for backwards compatibility provide the old entrypoints
10807 if symbol versioning. Include wait.h instead of libgomp.h and
10808 futex.h.
10809 (gomp_set_nest_lock_25): Call do_wait instead of futex_wait.
10810 * config/posix95/lock.c: Rewrite to make locks task owned,
10811 for backwards compatibility provide the old entrypoints
10812 if symbol versioning.
10813 * config/posix/lock.c: Rewrite to make locks task owned,
10814 for backwards compatibility provide the old entrypoints
10815 if symbol versioning.
10816 * config/linux/proc.c (gomp_init_num_threads): Use gomp_global_icv.
10817 (get_num_procs, gomp_dynamic_max_threads): Use gomp_icv.
10818 * config/posix/proc.c, config/mingw32/proc.c: Similarly.
10819 * config/linux/powerpc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10820 (sys_futex0): Return error code.
10821 (futex_wake, futex_wait): If ENOSYS was returned, clear
10822 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10823 (cpu_relax, atomic_write_barrier): New static inlines.
10824 * config/linux/alpha/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10825 (futex_wake, futex_wait): If ENOSYS was returned, clear
10826 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10827 (cpu_relax, atomic_write_barrier): New static inlines.
10828 * config/linux/x86/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10829 (sys_futex0): Return error code.
10830 (futex_wake, futex_wait): If ENOSYS was returned, clear
10831 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10832 (cpu_relax, atomic_write_barrier): New static inlines.
10833 * config/linux/s390/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10834 (sys_futex0): Return error code.
10835 (futex_wake, futex_wait): If ENOSYS was returned, clear
10836 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10837 (cpu_relax, atomic_write_barrier): New static inlines.
10838 * config/linux/ia64/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10839 (sys_futex0): Return error code.
10840 (futex_wake, futex_wait): If ENOSYS was returned, clear
10841 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10842 (cpu_relax, atomic_write_barrier): New static inlines.
10843 * config/linux/sparc/futex.h (FUTEX_WAIT, FUTEX_WAKE): Remove.
10844 (sys_futex0): Return error code.
10845 (futex_wake, futex_wait): If ENOSYS was returned, clear
10846 FUTEX_PRIVATE_FLAG in gomp_futex_wa{ke,it} and retry.
10847 (cpu_relax, atomic_write_barrier): New static inlines.
10848 * config/linux/sem.c: Include wait.h instead of libgomp.h and
10849 futex.h.
10850 (gomp_sem_wait_slow): Call do_wait instead of futex_wait.
10851 * config/linux/affinity.c: Assume HAVE_SYNC_BUILTINS.
10852 * config/linux/omp-lock.h (omp_lock_25_t, omp_nest_lock_25_t): New
10853 types.
10854 (omp_nest_lock_t): Change owner into void *, add lock field.
10855 * config/posix95/omp-lock.h: Include semaphore.h.
10856 (omp_lock_25_t, omp_nest_lock_25_t): New types.
10857 (omp_lock_t): Use sem_t instead of mutex if semaphores
10858 aren't broken.
10859 (omp_nest_lock_t): Likewise. Change owner to void *.
10860 * config/posix/omp-lock.h: Include semaphore.h.
10861 (omp_lock_25_t, omp_nest_lock_25_t): New types.
10862 (omp_lock_t): Use sem_t instead of mutex if semaphores
10863 aren't broken.
10864 (omp_nest_lock_t): Likewise. Add owner field.
10865
10866 2008-06-06 Jakub Jelinek <jakub@redhat.com>
10867
10868 * testsuite/libgomp.c/collapse-1.c: New test.
10869 * testsuite/libgomp.c/collapse-2.c: New test.
10870 * testsuite/libgomp.c/collapse-3.c: New test.
10871 * testsuite/libgomp.c/icv-1.c: New test.
10872 * testsuite/libgomp.c/icv-2.c: New test.
10873 * testsuite/libgomp.c/lib-2.c: New test.
10874 * testsuite/libgomp.c/lock-1.c: New test.
10875 * testsuite/libgomp.c/lock-2.c: New test.
10876 * testsuite/libgomp.c/lock-3.c: New test.
10877 * testsuite/libgomp.c/loop-4.c: New test.
10878 * testsuite/libgomp.c/loop-5.c: New test.
10879 * testsuite/libgomp.c/loop-6.c: New test.
10880 * testsuite/libgomp.c/loop-7.c: New test.
10881 * testsuite/libgomp.c/loop-8.c: New test.
10882 * testsuite/libgomp.c/loop-9.c: New test.
10883 * testsuite/libgomp.c/nested-3.c: New test.
10884 * testsuite/libgomp.c/nestedfn-6.c: New test.
10885 * testsuite/libgomp.c/sort-1.c: New test.
10886 * testsuite/libgomp.c/task-1.c: New test.
10887 * testsuite/libgomp.c/task-2.c: New test.
10888 * testsuite/libgomp.c/task-3.c: New test.
10889 * testsuite/libgomp.c/task-4.c: New test.
10890 * testsuite/libgomp.c++/c++.exp: Add libstdc++-v3 build includes
10891 to C++ testsuite default compiler options.
10892 * testsuite/libgomp.c++/collapse-1.C: New test.
10893 * testsuite/libgomp.c++/collapse-2.C: New test.
10894 * testsuite/libgomp.c++/ctor-10.C: New test.
10895 * testsuite/libgomp.c++/for-1.C: New test.
10896 * testsuite/libgomp.c++/for-2.C: New test.
10897 * testsuite/libgomp.c++/for-3.C: New test.
10898 * testsuite/libgomp.c++/for-4.C: New test.
10899 * testsuite/libgomp.c++/for-5.C: New test.
10900 * testsuite/libgomp.c++/loop-8.C: New test.
10901 * testsuite/libgomp.c++/loop-9.C: New test.
10902 * testsuite/libgomp.c++/loop-10.C: New test.
10903 * testsuite/libgomp.c++/task-1.C: New test.
10904 * testsuite/libgomp.c++/task-2.C: New test.
10905 * testsuite/libgomp.c++/task-3.C: New test.
10906 * testsuite/libgomp.c++/task-4.C: New test.
10907 * testsuite/libgomp.c++/task-5.C: New test.
10908 * testsuite/libgomp.c++/task-6.C: New test.
10909 * testsuite/libgomp.fortran/allocatable1.f90: New test.
10910 * testsuite/libgomp.fortran/allocatable2.f90: New test.
10911 * testsuite/libgomp.fortran/allocatable3.f90: New test.
10912 * testsuite/libgomp.fortran/allocatable4.f90: New test.
10913 * testsuite/libgomp.fortran/collapse1.f90: New test.
10914 * testsuite/libgomp.fortran/collapse2.f90: New test.
10915 * testsuite/libgomp.fortran/collapse3.f90: New test.
10916 * testsuite/libgomp.fortran/collapse4.f90: New test.
10917 * testsuite/libgomp.fortran/lastprivate1.f90: New test.
10918 * testsuite/libgomp.fortran/lastprivate2.f90: New test.
10919 * testsuite/libgomp.fortran/lib4.f90: New test.
10920 * testsuite/libgomp.fortran/lock-1.f90: New test.
10921 * testsuite/libgomp.fortran/lock-2.f90: New test.
10922 * testsuite/libgomp.fortran/nested1.f90: New test.
10923 * testsuite/libgomp.fortran/nestedfn4.f90: New test.
10924 * testsuite/libgomp.fortran/strassen.f90: New test.
10925 * testsuite/libgomp.fortran/tabs1.f90: New test.
10926 * testsuite/libgomp.fortran/tabs2.f: New test.
10927 * testsuite/libgomp.fortran/task1.f90: New test.
10928 * testsuite/libgomp.fortran/task2.f90: New test.
10929 * testsuite/libgomp.fortran/vla4.f90: Add dg-warning.
10930 * testsuite/libgomp.fortran/vla5.f90: Likewise.
10931 * testsuite/libgomp.c/pr26943-2.c: Likewise.
10932 * testsuite/libgomp.c/pr26943-3.c: Likewise.
10933 * testsuite/libgomp.c/pr26943-4.c: Likewise.
10934
10935 2008-05-23 Jakub Jelinek <jakub@redhat.com>
10936
10937 PR c++/36308
10938 * testsuite/libgomp.c++/ctor-11.C: New test.
10939 * testsuite/libgomp.c++/ctor-12.C: New test.
10940
10941 2008-05-15 Janis Johnson <janis187@us.ibm.com>
10942
10943 * testsuite/lib/libgomp.exp: Load torture-options.exp from gcc lib.
10944
10945 2008-05-07 Jakub Jelinek <jakub@redhat.com>
10946
10947 PR middle-end/36106
10948 * testsuite/libgomp.c/atomic-5.c: New test.
10949 * testsuite/libgomp.c/atomic-6.c: New test.
10950 * testsuite/libgomp.c/autopar-1.c: New test.
10951
10952 2008-04-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10953
10954 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS)
10955 (LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY)
10956 (LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT)
10957 (LIBGOMP_CHECK_ATTRIBUTE_ALIAS): Fix cache variable names.
10958 * configure: Regenerate.
10959 * Makefile.in, testsuite/Makefile.in: Likewise.
10960
10961 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
10962
10963 PR bootstrap/35457
10964 * aclocal.m4: Regenerate.
10965 * configure: Regenerate.
10966
10967 2008-03-18 Jakub Jelinek <jakub@redhat.com>
10968
10969 PR middle-end/35611
10970 * testsuite/libgomp.c/atomic-4.c: New test.
10971
10972 PR libgomp/35625
10973 * iter.c (gomp_iter_guided_next_locked): If q > n, set end to ws->end.
10974 (gomp_iter_guided_next): Likewise.
10975 * testsuite/libgomp.c/pr35625.c: New test.
10976
10977 2008-03-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10978
10979 * aclocal.m4: Regenerate.
10980 * configure: Likewise.
10981 * Makefile.in: Likewise.
10982 * testsuite/Makefile.in: Likewise.
10983
10984 2008-03-13 Jakub Jelinek <jakub@redhat.com>
10985
10986 PR middle-end/35185
10987 * testsuite/libgomp.c++/pr35185.C: New test.
10988
10989 2008-03-12 Jakub Jelinek <jakub@redhat.com>
10990
10991 PR middle-end/35549
10992 * testsuite/libgomp.c/pr35549.c: New test.
10993
10994 2008-03-06 Jakub Jelinek <jakub@redhat.com>
10995
10996 * testsuite/libgomp.c/atomic-3.c: New test.
10997
10998 2008-03-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10999
11000 PR fortran/33197
11001 * testsuite/libgomp.fortran/fortran.exp: Add .f08 and
11002 .F08 file suffixes.
11003
11004 2008-03-03 Peter O'Gorman <pogma@thewrittenword.com>
11005
11006 PR libgomp/33131
11007 * configure.ac: Add ACX_HEADER_STRING.
11008 * env.c: Include strings.h.
11009 * aclocal.m4: Regenerate.
11010 * config.h.in: Regenerate.
11011 * configure: Regenerate.
11012 * Makefile.in: Regenerate.
11013 * testsuite/Makefile.in: Regenerate.
11014
11015 2008-02-15 Jakub Jelinek <jakub@redhat.com>
11016
11017 PR middle-end/35196
11018 * testsuite/libgomp.c/pr35196.c: New test.
11019
11020 PR middle-end/35130
11021 * testsuite/libgomp.fortran/pr35130.f90: New test.
11022 * testsuite/libgomp.c/pr35130.c: New test.
11023
11024 2008-01-25 Jakub Jelinek <jakub@redhat.com>
11025
11026 PR middle-end/33880
11027 * testsuite/libgomp.c/pr33880.c: New test.
11028 * testsuite/libgomp.fortran/pr33880.f90: New test.
11029
11030 2008-01-24 David Edelsohn <edelsohn@gnu.org>
11031
11032 * configure: Regenerate.
11033
11034 2008-01-08 Jakub Jelinek <jakub@redhat.com>
11035
11036 * configure.ac: Move futex checking into ../config/futex.m4.
11037 * configure: Rebuilt.
11038 * aclocal.m4: Rebuilt.
11039 * Makefile.in: Rebuilt.
11040
11041 * configure.tgt: Rename have_tls to gcc_cv_have_tls to match
11042 2007-10-15 ../config/tls.m4 change.
11043
11044 2007-12-19 Jakub Jelinek <jakub@redhat.com>
11045
11046 PR c++/34513
11047 * testsuite/libgomp.c/pr34513.c: New test.
11048 * testsuite/libgomp.c++/pr34513.C: New test.
11049
11050 2007-12-17 Jack Howarth <howarth@bromo.med.uc.edu>
11051
11052 PR target/32765
11053 * testsuite/libgomp.fortran/crayptr2.f90: Move dg-options for darwin.
11054
11055 2007-12-04 Jakub Jelinek <jakub@redhat.com>
11056
11057 * omp.h.in (__GOMP_NOTHROW): Define. Use it on omp_* prototypes.
11058
11059 2007-12-03 Jakub Jelinek <jakub@redhat.com>
11060
11061 * testsuite/libgomp.c/private-1.c: New test.
11062
11063 2007-11-29 Andris Pavenis <andris.pavenis@iki.fi>
11064 Paolo Bonzini <bonzini@gnu.org>
11065
11066 * Makefile.am: Use space as vpath separator. Use 'vpath %'
11067 instead of 'VPATH ='.
11068 * Makefile.in: Regenerate.
11069
11070 2007-11-23 Matthias Klose <doko@ubuntu.com>
11071
11072 * configure.ac: Adjust makeinfo version check.
11073 * configure: Regenerate.
11074
11075 2007-11-10 Jakub Jelinek <jakub@redhat.com>
11076
11077 PR fortran/34020
11078 * testsuite/libgomp.fortran/pr34020.f90: New test.
11079
11080 2007-11-06 Jakub Jelinek <jakub@redhat.com>
11081
11082 PR c++/33894
11083 * testsuite/libgomp.c++/atomic-1.C: New test.
11084
11085 2007-10-25 Jakub Jelinek <jakub@redhat.com>
11086
11087 PR libgomp/33275
11088 * testsuite/libgomp.fortran/omp_parse3.f90 (test_threadprivate):
11089 Make x and y integers rather than (implicit) reals. Add private (j)
11090 clause to the last omp parallel.
11091
11092 2007-10-15 Maciej W. Rozycki <macro@linux-mips.org>
11093
11094 * configure: Regenerate following changes to ../config/tls.m4.
11095
11096 2007-09-28 Jakub Jelinek <jakub@redhat.com>
11097
11098 * testsuite/libgomp.fortran/stack.f90: New test.
11099
11100 2007-09-10 Danny Smith <dannysmith@users.sourceforge.net>
11101
11102 * config/mingw32/proc.c: New file.
11103
11104 2007-09-05 Uros Bizjak <ubizjak@gmail.com>
11105
11106 * testsuite/libgomp.c/atomic-1.c: Include cpuid.h for i386 targets.
11107 (main): Use __get_cpuid to get i386 target fetaures.
11108 * testsuite/libgomp.c/atomic-2.c: Include cpuid.h for x86_64 targets.
11109 (main): Use __get_cpuid to get x86_64 target fetaures.
11110
11111 2007-08-15 Jack Howarth <howarth@bromo.med.uc.edu>
11112
11113 PR target/32765
11114 * testsuite/libgomp.fortran/pr32550.f90: Use -static-libgcc on Darwin.
11115 * testsuite/libgomp.fortran/crayptr2.f90: Likwise.
11116
11117 2007-07-12 Jakub Jelinek <jakub@redhat.com>
11118
11119 PR fortran/32550
11120 * testsuite/libgomp.fortran/pr32550.f90: New test.
11121 * testsuite/libgomp.fortran/crayptr2.f90: New test.
11122
11123 2007-07-05 H.J. Lu <hongjiu.lu@intel.com>
11124
11125 * aclocal.m4: Regenerated.
11126
11127 2007-07-05 Tobias Burnus <burnus@net-b.de>
11128
11129 PR fortran/32359
11130 * testsuite/libgomp.fortran/pr32359.f90: New.
11131
11132 2007-07-02 Jakub Jelinek <jakub@redhat.com>
11133
11134 PR libgomp/32468
11135 * sections.c (GOMP_parallel_sections_start): Only decrease
11136 number of threads to COUNT if dyn_var is true.
11137 * testsuite/libgomp.c/pr32468.c: New test.
11138
11139 2007-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11140
11141 PR libgomp/26308
11142 * config/posix/lock.c (_XOPEN_SOURCE): Don't define on Tru64 UNIX.
11143
11144 2007-06-21 Jakub Jelinek <jakub@redhat.com>
11145
11146 PR middle-end/32362
11147 * testsuite/libgomp.c/pr32362-1.c: New test.
11148 * testsuite/libgomp.c/pr32362-2.c: New test.
11149 * testsuite/libgomp.c/pr32362-3.c: New test.
11150
11151 2007-06-07 Jakub Jelinek <jakub@redhat.com>
11152
11153 * team.c (gomp_team_start): Fix setting up thread_attr
11154 stack size.
11155
11156 2007-06-02 Paolo Bonzini <bonzini@gnu.org>
11157
11158 * configure: Regenerate.
11159
11160 2007-05-23 Steve Ellcey <sje@cup.hp.com>
11161
11162 * Makefile.in: Regenerate.
11163 * configure: Regenerate.
11164 * aclocal.m4: Regenerate.
11165 * testsuite/Makefile.in: Regenerate.
11166
11167 2007-05-04 Jakub Jelinek <jakub@redhat.com>
11168
11169 * config/linux/proc.c: New file.
11170
11171 PR libgomp/28482
11172 * configure.tgt: Don't link with -Wl,-z,nodlopen even on Linux.
11173
11174 2007-04-19 Daniel Franke <franke.daniel@gmail.com>
11175
11176 * libgomp.texi (GOMP_CPU_AFFINITY): Updated.
11177
11178 2007-04-16 Matthias Klose <doko@debian.org>
11179
11180 * configure.tgt (i[456]86-*-linux*): Only add ia32 specific
11181 flags if not building with -m64.
11182 * testsuite/lib/libgomp-dg.exp (libgomp_init): Don't add -march
11183 flag for i?86-*-* targets, if current target matches -m64.
11184
11185 2007-04-14 Steve Ellcey <sje@cup.hp.com>
11186
11187 * Makefile.am: Add -I .. to ACLOCAL_AMFLAGS.
11188 * Makefile.in: Regenerate.
11189
11190 2007-04-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11191
11192 PR testsuite/31369
11193 * testsuite/libgomp.c++/c++.exp: Don't use concat when setting
11194 ld_library_path.
11195 * testsuite/libgomp.fortran/fortran.exp: Likewise.
11196
11197 2007-04-04 Jakub Jelinek <jakub@redhat.com>
11198
11199 * libgomp.h (gomp_cpu_affinity, gomp_cpu_affinity_len): New extern
11200 decls.
11201 (gomp_init_affinity, gomp_init_thread_affinity): New prototypes.
11202 * env.c (gomp_cpu_affinity, gomp_cpu_affinity_len): New variables.
11203 (parse_affinity): New function.
11204 (initialize_env): Call it and gomp_init_affinity.
11205 * team.c (gomp_team_start): If gomp_cpu_affinity != NULL,
11206 create new pthread_attr_t and call gomp_init_thread_affinity
11207 on it for each thread before passing the attribute to pthread_create.
11208 * config/linux/affinity.c: New file.
11209 * config/posix/affinity.c: New file.
11210 * configure.ac (HAVE_PTHREAD_AFFINITY_NP): New test.
11211 * configure: Rebuilt.
11212 * config.h.in: Rebuilt.
11213 * Makefile.am (libgomp_la_SOURCES): Add affinity.c.
11214 * Makefile.in: Rebuilt.
11215
11216 2007-03-23 Andreas Tobler <a.tobler@schweiz.org>
11217
11218 * testsuite/lib/libgomp.exp (libgomp_init): Add -shared-libgcc for
11219 *-*-darwin*.
11220 * testsuite/libgomp.c++/c++.exp: Look for shared libstdc++ library
11221 and use it if found.
11222
11223 2007-03-18 Uros Bizjak <ubizjak@gmail.com>
11224
11225 * testsuite/config/default.exp: New file.
11226 * testsuite/lib/libgomp.exp: New file.
11227 * testsuite/lib/libgomp.dg (load_gcc_lib, libgomp_init,
11228 libgomp_target_compile, libgomp_option_help, libgomp_option_proc,
11229 load_lib *, load_gcc_lib *): Move to libgomp.exp.
11230 (libgomp_load): Remove.
11231 * testsuite/lib/libgomp.exp (libgomp_init): Compute
11232 always_ld_library_path, not ld_library_path. Set additional_flags
11233 to -march=i486 for ilp32 x86_64-*-* and i386-*-* targets.
11234 (target_compile): Do not call libgomp_init. Append lang_library_path
11235 and lang_link_flags to options.
11236 * testsuite/libgomp.c/c.exp: Set DEFAULT_FLAGS to -O2. Set
11237 ld_library_path from always_ld_library_path. Set LD_LIBRARY_PATH
11238 here.
11239 * testsuite/libgomp.c++/c++.exp: Set ld_library_path from
11240 always_ld_library_path. Set LD_LIBRARY_PATH here.
11241 * testsuite/libgomp.fortran/fortran.exp: Ditto.
11242 * testsuite/libgomp.c/atomic-1.c: Set dg-options to
11243 "-O2 -march=pentium" for ilp32 x86 targets. Simplify check for
11244 CX8 flag.
11245 * testsuite/libgomp.c/atomic-2.c: Set dg-options to "-O2 -mcx16" for
11246 lp64 x86 targets. Do not check for SSE3 bit. Do not define bit_SSE3.
11247 * testsuite/libgomp.c/pr29947-1.c: Remove default dg-options.
11248 * testsuite/libgomp.c/pr29947-1.c: Ditto.
11249 * testsuite/libgomp.c/atomic-10.c: Ditto.
11250
11251 2007-03-21 Jakub Jelinek <jakub@redhat.com>
11252
11253 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: Add
11254 dg-final cleanup-modules line.
11255 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Likewise.
11256 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: Likewise.
11257 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: Likewise.
11258 * testsuite/libgomp.fortran/threadprivate2.f90: Likewise.
11259 * testsuite/libgomp.fortran/reduction5.f90: Likewise.
11260 * testsuite/libgomp.fortran/threadprivate3.f90: Likewise.
11261 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise.
11262
11263 2007-03-18 Andreas Schwab <schwab@suse.de>
11264
11265 * acinclude.m4: Adjust regular expression for ld version
11266 extraction.
11267 * configure: Regenerate.
11268
11269 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
11270
11271 * Makefile.am: Add install-pdf target as copied from
11272 automake v1.10 rules.
11273 * Makefile.in: Regenerate
11274
11275 2007-02-07 Jakub Jelinek <jakub@redhat.com>
11276
11277 PR libgomp/28486
11278 * configure: Regenerate.
11279
11280 PR c++/30703
11281 * testsuite/libgomp.c++/pr30703.C: New test.
11282
11283 2007-02-02 Jakub Jelinek <jakub@redhat.com>
11284
11285 Revert:
11286 2006-07-05 Eric Christopher <echristo@apple.com>
11287 * configure.ac: Depend addition of -pthread on host OS.
11288 * configure: Regenerate.
11289
11290 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11291
11292 * libgomp.texi: Fix spacing after abbreviations.
11293
11294 2007-01-31 Daniel Franke <franke.daniel@gmail.com>
11295
11296 PR libgomp/30546
11297 * configure.ac: Add check for makeinfo
11298 * Makefile.am: Redefined target libgomp.info, build libgomp.info only
11299 if an appropriate version of makeinfo is found.
11300 * aclocal.m4: Regenerated.
11301 * configure: Regenerated.
11302 * Makefile.in: Regenerated.
11303 * testsuite/Makefile.in: Regenerated.
11304
11305 2007-01-29 Daniel Franke <franke.daniel@gmail.com>
11306
11307 PR libgomp/30540
11308 * libgomp.texi: More about implementation-dependent settings.
11309
11310 2007-01-26 Tobias Burnus <burnus@net-b.de>
11311
11312 * testsuite/libgomp.fortran/fortran.exp: Support .f03 extension.
11313
11314 2007-01-24 Jakub Jelinek <jakub@redhat.com>
11315
11316 PR middle-end/30494
11317 * testsuite/libgomp.c/pr30494.c: New test.
11318
11319 2007-01-15 Tom Tromey <tromey@redhat.com>
11320
11321 * configure: Rebuilt.
11322 * configure.ac: Fixed comment.
11323
11324 2007-01-14 Daniel Franke <franke.daniel@gmail.com>
11325
11326 * libgomp.texi: Document implementation specific default values of
11327 environment variables.
11328
11329 2006-12-21 Daniel Franke <franke.daniel@gmail.com>
11330
11331 PR libgomp/28209
11332 * libgomp.texi: New file.
11333 * configure.ac: Add --enable-generated-files-in-srcdir option.
11334 * Makefile.am: Add info, dvi, pdf, html targets. On request, copy
11335 files to srcdir.
11336 * Makefile.in: Regenerated.
11337 * config.h.in: Regenerated.
11338 * testsuite/Makefile.in: Regenerated.
11339 * NOTES: Removed.
11340
11341 2006-12-04 Daniel Franke <franke.daniel@gmail.com>
11342
11343 PR libgomp/29949
11344 * env.c (omp_set_num_threads): Set illegal thread count to 1.
11345
11346 2006-12-04 Eric Botcazou <ebotcazou@libertysurf.fr>
11347
11348 * configure: Regenerate.
11349
11350 2006-12-04 Jakub Jelinek <jakub@redhat.com>
11351
11352 PR libgomp/29947
11353 * loop.c (gomp_loop_init): Make parameters signed. Set ws->end to
11354 start if there shouldn't be any loop iterations.
11355 (gomp_loop_ordered_static_start): Remove start == end test.
11356 * testsuite/libgomp.c/pr29947-1.c: New test.
11357 * testsuite/libgomp.c/pr29947-2.c: New test.
11358
11359 2006-12-02 Eric Botcazou <ebotcazou@libertysurf.fr>
11360
11361 * configure.tgt: Force initial-exec TLS model on Linux only.
11362
11363 2006-11-13 Daniel Jacobowitz <dan@codesourcery.com>
11364
11365 * configure: Regenerated.
11366
11367 2006-11-09 Uros Bizjak <ubizjak@gmail.com>
11368
11369 * env.c (parse_schedule): Reject out of range values.
11370 (parse_unsigned_long): Reject out of range, negative or zero values.
11371
11372 2006-10-29 Jakub Jelinek <jakub@redhat.com>
11373
11374 PR fortran/29629
11375 * testsuite/libgomp.fortran/pr29629.f90: New test.
11376
11377 2006-10-24 Eric Botcazou <ebotcazou@libertysurf.fr>
11378
11379 PR libgomp/29494
11380 * configure.tgt: Use posix95 configuration for Solaris 2.5.1 and 2.6.
11381 * config/posix95: New directory.
11382 * config/posix95/omp-lock.h: New file.
11383 * config/posix95/lock.c: Likewise.
11384
11385 2006-10-14 Geoffrey Keating <geoffk@apple.com>
11386
11387 * aclocal.m4: Regenerate.
11388 * configure: Regenerate.
11389
11390 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11391
11392 * testsuite/libgomp.c/barrier-1.c: Change timestamp tests from
11393 '<' to '<='.
11394
11395 2006-10-05 Danny Smith <dannysmith@users.sourceforge.net>
11396
11397 * acinclude.m4 (HAVE_ATTRIBUTE_ALIAS): Remove __USER_LABEL_PREFIX__ from
11398 test.
11399 * configure: Regenerate.
11400 * fortran.c (ialias_redirect): Add __USER_LABEL_PREFIX__ to alias.
11401
11402 2006-09-26 Jakub Jelinek <jakub@redhat.com>
11403
11404 PR middle-end/25261
11405 PR middle-end/28790
11406 * testsuite/libgomp.c/nestedfn-4.c: New test.
11407 * testsuite/libgomp.c/nestedfn-5.c: New test.
11408 * testsuite/libgomp.fortran/nestedfn3.f90: New test.
11409
11410 PR fortran/29097
11411 * testsuite/libgomp.fortran/condinc1.f: New test.
11412 * testsuite/libgomp.fortran/condinc2.f: New test.
11413 * testsuite/libgomp.fortran/condinc3.f90: New test.
11414 * testsuite/libgomp.fortran/condinc4.f90: New test.
11415 * testsuite/libgomp.fortran/condinc1.inc: New file.
11416
11417 2006-09-18 Tom Tromey <tromey@redhat.com>
11418
11419 * configure: Rebuilt.
11420
11421 2006-09-13 Joseph S. Myers <joseph@codesourcery.com>
11422
11423 PR c/28768
11424 PR preprocessor/14634
11425 * configure.ac (HAVE_CLOCK_GETTIME): Add missing second argument
11426 to AC_DEFINE.
11427 * configure: Regenerate.
11428
11429 2006-09-08 Steven G. Kargl <kargl@gcc.gnu.org>
11430
11431 * testsuite/libgomp.fortran/reduction3.f90: Change
11432 -2147483648 to -huge(i)-1 to avoid overflow.
11433 * testsuite/libgomp.fortran/reduction4.f90: Change
11434 Z'ffffffff' to not(0) to avoid overflow.
11435
11436 2006-08-26 Joseph S. Myers <joseph@codesourcery.com>
11437
11438 PR libgomp/25938
11439 * Makefile.am (libsubincludedir): New.
11440 (nodist_include_HEADERS): Rename to nodist_libsubinclude_HEADERS.
11441 * Makefile.in: Regenerate.
11442
11443 2006-08-17 Jakub Jelinek <jakub@redhat.com>
11444
11445 PR libgomp/28725
11446 * env.c: Include ctype.h.
11447 (parse_schedule, parse_unsigned_long, parse_boolean): Allow
11448 leading and/or trailing whitespace and compare strings case
11449 insensitively.
11450
11451 2006-07-16 Jakub Jelinek <jakub@redhat.com>
11452
11453 PR fortran/28390
11454 * testsuite/libgomp.fortran/pr28390.f: New test.
11455
11456 2006-07-05 Eric Christopher <echristo@apple.com>
11457
11458 * configure.ac: Depend addition of -pthread on host OS.
11459 * configure: Regenerate.
11460
11461 2006-06-21 Jakub Jelinek <jakub@redhat.com>
11462
11463 * critical.c (GOMP_critical_name_start): Fix *pptr initialization
11464 when gomp_mutex_t is larger than pointer and HAVE_SYNC_BUILTINS is
11465 defined.
11466
11467 2006-06-20 Jakub Jelinek <jakub@redhat.com>
11468
11469 PR libgomp/26175
11470 PR libgomp/26477
11471 * configure.ac: If neither --enable-linux-futex nor
11472 --disable-linux-futex is passed, determine the default by checking
11473 for compiling and/or running against NPTL. With --enable-linux-futex,
11474 check if SYS_gettid and SYS_futex are defined.
11475 * configure: Rebuilt.
11476
11477 2006-06-14 Richard Henderson <rth@redhat.com>
11478
11479 PR libgomp/28008
11480 * env.c (initialize_env): Avoid using PTHREAD_STACK_MIN when
11481 undefined. Use GOMP_STACKSIZE not OMP_STACKSIZE for environment.
11482
11483 2006-06-09 Richard Henderson <rth@redhat.com>
11484
11485 * env.c (gomp_nthreads_var): Change to unsigned long.
11486 (gomp_run_sched_chunk): Likewise.
11487 (parse_unsigned_long): Rename from parse_num_threads and generalize.
11488 (initialize_env): Initialize gomp_thread_attr.
11489 * libgomp.h (gomp_nthreads_var): Update decl.
11490 (gomp_run_sched_chunk): Likewise.
11491 (gomp_thread_attr): Declare.
11492 * team.c (gomp_thread_attr): Export.
11493 (initialize_team): Don't initialize it.
11494
11495 2006-06-09 Jakub Jelinek <jakub@redhat.com>
11496
11497 PR fortran/27916
11498 * testsuite/libgomp.fortran/pr27916-1.f90: New test.
11499 * testsuite/libgomp.fortran/pr27916-2.f90: New test.
11500
11501 2006-06-06 Francois-Xavier Coudert <coudert@clipper.ens.fr>
11502
11503 * config/mingw32/time.c: New file.
11504 * configure.tgt: Use it.
11505
11506 2006-05-23 Carlos O'Donell <carlos@codesourcery.com>
11507
11508 * Makefile.am: Add install-html target. Add install-html to .PHONY
11509 * Makefile.in: Regenerate.
11510
11511 2006-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11512
11513 PR libgomp/27612
11514 * testsuite/libgomp.c/sections-1.c: Require sync_int_long.
11515 * testsuite/libgomp.c/critical-1.c: Likewise.
11516 * testsuite/libgomp.c/loop-1.c: Likewise.
11517 * testsuite/libgomp.c/loop-2.c: Likewise.
11518 * testsuite/libgomp.c/single-1.c: Likewise.
11519 * testsuite/libgomp.c/ordered-1.c: Likewise.
11520 * testsuite/libgomp.c/ordered-2.c: Likewise.
11521
11522 2006-05-15 Jakub Jelinek <jakub@redhat.com>
11523
11524 PR middle-end/27416
11525 * libgomp.fortran/pr27416-1.f90: New test.
11526
11527 2006-05-03 Jakub Jelinek <jakub@redhat.com>
11528
11529 PR fortran/27395
11530 * testsuite/libgomp.fortran/pr27395-1.f90: New test.
11531 * testsuite/libgomp.fortran/pr27395-2.f90: New test.
11532
11533 2006-05-02 Jakub Jelinek <jakub@redhat.com>
11534
11535 PR c++/26943
11536 * testsuite/libgomp.c/pr26943-1.c: New test.
11537 * testsuite/libgomp.c/pr26943-2.c: New test.
11538 * testsuite/libgomp.c/pr26943-3.c: New test.
11539 * testsuite/libgomp.c/pr26943-4.c: New test.
11540 * testsuite/libgomp.c++/pr27337.C: Remove barrier.
11541 * testsuite/libgomp.c++/pr26943.C: New test.
11542
11543 2006-05-02 Jakub Jelinek <jakub@redhat.com>
11544
11545 PR middle-end/27337
11546 * testsuite/libgomp.c++/pr27337.C: New test.
11547
11548 2006-04-26 Jakub Jelinek <jakub@redhat.com>
11549
11550 PR c/26171
11551 * testsuite/libgomp.c/pr26171.c: New test.
11552
11553 2006-04-25 Richard Henderson <rth@redhat.com>
11554
11555 PR libgomp/25865
11556 * configure.ac: Use GCC_CHECK_TLS.
11557 * acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
11558 * Makefile.in, aclocal.m4, configure: Regenerate.
11559
11560 2006-04-10 Matthias Klose <doko@debian.org>
11561
11562 * testsuite/lib/libgomp.exp (libgomp_init): Recognize multilib
11563 directory names containing underscores.
11564
11565 2006-03-21 Jakub Jelinek <jakub@redhat.com>
11566
11567 PR c++/26691
11568 * testsuite/libgomp.c++/pr26691.C: New test.
11569
11570 2006-03-13 Jakub Jelinek <jakub@redhat.com>
11571
11572 * testsuite/libgomp.fortran/retval2.f90: New test.
11573
11574 2006-03-09 Diego Novillo <dnovillo@redhat.com>
11575
11576 * testsuite/libgomp.c++: New directory.
11577
11578 2006-02-25 Shantonu Sen <ssen@opendarwin.org>
11579
11580 * config/posix/sem.h: Define BROKEN_POSIX_SEMAPHORES functions.
11581 * config/posix/sem.c: Implement the above.
11582
11583 2006-02-25 Andreas Tobler <a.tobler@schweiz.ch>
11584
11585 * configure.ac (HAVE_BROKEN_POSIX_SEMAPHORES): Check for darwin and
11586 define HAVE_BROKEN_POSIX_SEMAPHORES.
11587 * configure: Rebuilt.
11588 * config.h.in: Rebuilt.
11589
11590 2006-02-17 Francois-Xavier Coudert <coudert@clipper.ens.fr>
11591
11592 PR bootstrap/26161
11593 * configure.ac: Remove AC_CHECK_HEADER for pthread.h. Add comment
11594 for the other pthread check.
11595 * configure: Regenerate.
11596 * config.h.in: Regenerate.
11597
11598 2006-02-15 Jakub Jelinek <jakub@redhat.com>
11599
11600 PR libgomp/25938
11601 PR libgomp/25984
11602 * Makefile.am (fincludedir): New variable.
11603 (nodist_include_HEADERS): Remove Fortran files.
11604 (nodist_finclude_HEADERS): New variable.
11605 * Makefile.in: Regenerated.
11606
11607 2006-02-13 Jakub Jelinek <jakub@redhat.com>
11608
11609 * testsuite/libgomp.fortran/vla7.f90: Add -w to options.
11610 Remove tests for returning assumed character length arrays.
11611
11612 2006-02-12 Roger Sayle <roger@eyesopen.com>
11613 John David Anglin <dave@hiauly1.hia.nrc.ca>
11614
11615 PR libgomp/25936
11616 * configure.tgt: Link against -lrt for sem_init on HPUX v11 systems.
11617
11618 2006-02-08 Ulrich Weigand <uweigand@de.ibm.com>
11619
11620 * testsuite/lib/libgomp-dg.exp: Load scanrtl.exp library.
11621
11622 2006-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
11623
11624 * testsuite/lib/libgomp-dg.exp (libgomp_init): Compute multilib related
11625 part of LD_LIBRARY_PATH manually.
11626
11627 2006-02-03 H.J. Lu <hongjiu.lu@intel.com>
11628
11629 PR libgomp/25852
11630 * testsuite/lib/libgomp-dg.exp (blddir): Set it in
11631 libgomp_init.
11632
11633 2005-01-25 Paolo Bonzini <bonzini@gnu.org>
11634
11635 PR libgomp/25884
11636 * Makefile.am (omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Remove.
11637 * configure.ac (PERL): Don't set.
11638 (gstdint.h, omp.h, omp_lib.h, omp_lib.f90, libgomp_f.h): Create here.
11639 (OMP_LOCK_SIZE, OMP_LOCK_ALIGN, OMP_LOCK_KIND, OMP_NEST_LOCK_SIZE,
11640 OMP_NEST_LOCK_ALIGN, OMP_NEST_LOCK_KIND): New substitutions.
11641 * omp.h.in: Wrap the new configure substitutions with @ characters.
11642 * omp_lib.h.in, omp_lib.f90.in, libgomp_f.h.in: Likewise.
11643 * aclocal.m4, configure, Makefile.in: Regenerate.
11644 * mkomp_h.pl: Delete.
11645
11646 2005-01-24 Paolo Bonzini <bonzini@gnu.org>
11647
11648 PR libgomp/25259
11649 * configure.ac: Use GCC_HEADER_STDINT.
11650 * libgomp.h: Include gstdint.h.
11651 * libgomp_f.h.in: Don't include stdint.h or inttypes.h.
11652 * configure, Makefile.in, testsuite/Makefile.in, aclocal.m4: Rebuild.
11653
11654 2006-01-24 Richard Henderson <rth@redhat.com>
11655
11656 PR libgomp/25942
11657 * configure.ac: Add AM_MAINTAINER_MODE.
11658 * Makefile.in, aclocal.m4, configure, testsuite/Makefile.in: Rebuild.
11659
11660 2006-01-24 Diego Novillo <dnovillo@redhat.com>
11661
11662 * Makefile.in: Regenerate.
11663 * testsuite/Makefile.in: Regenerate.
11664 * aclocal.m4: Regenerate.
11665
11666 2006-01-23 Andreas Tobler <a.tobler@schweiz.ch>
11667
11668 * config/posix/proc.c: Conditional include of sys/loadavg.h for
11669 Solaris.
11670 * configure.ac: Add check for loadavg.h.
11671 (link_gomp): Adjust comment.
11672 * configure: Regenerate.
11673 * config.h.in: Regenerate.
11674
11675 2006-01-21 Steve Ellcey <sje@cup.hp.com>
11676
11677 PR libgomp/25877
11678 * configure.ac: Remove check for alloca.h.
11679 * configure: Regenerate.
11680 * config.h.in: Regenerate.
11681 * libgomp.h: define gomp_alloca to be __builtin_alloca.
11682 * team.c: Remove use of alloca.h.
11683 Call gomp_alloca instead of alloca.
11684
11685 2006-01-20 Steve Ellcey <sje@cup.hp.com>
11686
11687 PR libgomp/25877
11688 * team.c: Add include of alloca.h.
11689 * configure.ac: Add check for alloca.h.
11690 * configure: Regenerate.
11691 * config.h.in: Regenerate.
11692
11693 2006-01-17 Jakub Jelinek <jakub@redhat.com>
11694
11695 PR fortran/25219
11696 * testsuite/libgomp.fortran/pr25219.f90: New test.
11697
11698 2005-12-05 Uros Bizjak <uros@kss-loka.si>
11699
11700 * testsuite/libgomp.c/pr24455.c, testsuite/libgomp.c/copyin-1.c,
11701 testsuite/libgomp.c/copyin-2.c, testsuite/libgomp.c/copyin-3.c,
11702 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
11703 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
11704 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455.C,
11705 testsuite/libgomp.fortran/threadprivate1.f90,
11706 testsuite/libgomp.fortran/threadprivate2.f90,
11707 testsuite/libgomp.fortran/threadprivate3.f90,
11708 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
11709 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
11710 testsuite/libgomp.fortran/omp_parse3.f90: Change required
11711 effective-target to TLS runtime.
11712
11713 * testsuite/libgomp.fortran/pr25162.f: Require
11714 effective-target TLS runtime.
11715
11716 2005-12-01 Jakub Jelinek <jakub@redhat.com>
11717
11718 * testsuite/libgomp.fortran/nestedfn2.f90: New test.
11719 * testsuite/libgomp.c/nestedfn-3.c: New test.
11720
11721 2005-11-30 Jakub Jelinek <jakub@redhat.com>
11722
11723 PR fortran/25162
11724 * testsuite/libgomp.fortran/pr25162.f: New test.
11725
11726 2005-11-28 Jakub Jelinek <jakub@redhat.com>
11727
11728 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Fall back to
11729 CLOCK_REALTIME if clock_* (CLOCK_MONOTONIC, &ts) call failed.
11730
11731 2005-11-25 Jakub Jelinek <jakub@redhat.com>
11732
11733 * alloc.c, barrier.c, critical.c, env.c, error.c, fortran.c, iter.c,
11734 libgomp.h, libgomp_f.h.in, libgomp_g.h, loop.c, mkomp_h.pl, omp.h.in,
11735 omp_lib.f90.in, omp_lib.h.in, ordered.c, parallel.c, sections.c,
11736 single.c, team.c, work.c, config/linux/alpha/futex.h,
11737 config/linux/bar.c, config/linux/bar.h, config/linux/ia64/futex.h,
11738 config/linux/lock.c, config/linux/mutex.c, config/linux/mutex.h,
11739 config/linux/powerpc/futex.h, config/linux/s390/futex.h,
11740 config/linux/sem.c, config/linux/sem.h, config/linux/sparc/futex.h,
11741 config/linux/x86/futex.h, config/posix/bar.c, config/posix/bar.h,
11742 config/posix/lock.c, config/posix/mutex.h, config/posix/proc.c,
11743 config/posix/sem.c, config/posix/sem.h, config/posix/time.c: Update
11744 FSF address.
11745
11746 2005-11-18 Jakub Jelinek <jakub@redhat.com>
11747
11748 * Makefile.am: Move libgomp_f.h from nodist_include_HEADERS
11749 to nodist_noinst_HEADERS.
11750 * Makefile.in: Rebuilt.
11751
11752 * config/posix/omp-lock.h (omp_nest_lock_t): Change into struct,
11753 add integer count field.
11754 * config/posix/lock.c (omp_destroy_nest_lock): Adjust for
11755 omp_nest_lock_t type change.
11756 (omp_init_nest_lock): Likewise. Initialize count to 0.
11757 (omp_set_nest_lock): Adjust for omp_nest_lock_t type change.
11758 Increment count.
11759 (omp_unset_nest_lock): Adjust for omp_nest_lock_t type change.
11760 Decrement count.
11761 (omp_test_nest_lock): Adjust for omp_nest_lock_t type change.
11762 Increment count if successful and return the new nesting level.
11763 * config/linux/lock.c (omp_test_nest_lock): Return new nesting level.
11764 * omp_lib.f90.in (omp_test_lock): Fix LOCK argument type.
11765 * testsuite/libgomp.c/lib-1.c: New test.
11766 * testsuite/libgomp.fortran/lib1.f90: New test.
11767 * testsuite/libgomp.fortran/lib2.f: New test.
11768 * testsuite/libgomp.fortran/lib3.f: New test.
11769
11770 2005-11-17 Richard Henderson <rth@redhat.com>
11771
11772 PR 24845
11773 * Makefile.am (nodist_toolexeclib_HEADERS): New.
11774 * configure.ac (link_gomp): New. Substitute it.
11775 (AC_CONFIG_FILES): Add libgomp.spec.
11776 * libgomp.spec.in: New file.
11777 * Makefile.in, testsuite/Makefile.in, configure: Rebuild.
11778 * testsuite/lib/libgomp-dg.exp: Add -B${blddir}/ to flags.
11779
11780 2005-11-18 Jakub Jelinek <jakub@redhat.com>
11781
11782 * testsuite/libgomp.fortran/reduction1.f90: Adjust for
11783 reduction(-:var) behaving the same as reduction(+:var).
11784 * testsuite/libgomp.c/reduction-4.c: New test.
11785
11786 2005-11-15 Uros Bizjak <uros@kss-loka.si>
11787
11788 * testsuite/libgomp.c/pr24455-1.c, testsuite/libgomp.c/pr24455.c,
11789 testsuite/libgomp.c/copyin-1.c, testsuite/libgomp.c/copyin-2.c,
11790 testsuite/libgomp.c/copyin-3.c,
11791 testsuite/libgomp.c++/copyin-1.C, testsuite/libgomp.c++/copyin-2.C,
11792 testsuite/libgomp.c++/ctor-5.C, testsuite/libgomp.c++/ctor-8.C,
11793 testsuite/libgomp.c++/ctor-9.C, testsuite/libgomp.c++/pr24455-1.C,
11794 testsuite/libgomp.c++/pr24455.C,
11795 testsuite/libgomp.fortran/threadprivate1.f90,
11796 testsuite/libgomp.fortran/threadprivate2.f90,
11797 testsuite/libgomp.fortran/threadprivate3.f90,
11798 testsuite/libgomp.fortran/appendix-a/a.22.7.f9,
11799 testsuite/libgomp.fortran/appendix-a/a.22.8.f9,
11800 testsuite/libgomp.fortran/omp_parse3.f90: Require
11801 effective-target TLS.
11802
11803 2005-11-14 Diego Novillo <dnovillo@redhat.com>
11804
11805 * HEADER: Remove.
11806
11807 2005-11-13 Jakub Jelinek <jakub@redhat.com>
11808
11809 PR libgomp/24797
11810 * team.c (initialize_team): Pass NULL rather than free as
11811 pthread_key_create destructor. Initialize thread specific data
11812 pointer in initial thread to a static local variable rather than
11813 malloced memory.
11814
11815 2005-11-11 Uros Bizjak <uros@kss-loka.si>
11816
11817 * testsuite/lib/libgomp-dg.exp: Locate libgcc.a and append
11818 its location to ld_library_path.
11819
11820 2005-11-10 Diego Novillo <dnovillo@redhat.com>
11821
11822 * testsuite/libgomp.c/c.exp: Rename from dg.exp.
11823
11824 2005-11-10 Diego Novillo <dnovillo@redhat.com>
11825
11826 * testsuite/libgomp.c: Rename from libgomp.dg.
11827
11828 2005-11-09 Diego Novillo <dnovillo@redhat.com>
11829
11830 * testsuite/libgomp.c++/pr24455.C: Add copyin clause for
11831 threadprivate variable 'i'.
11832
11833 2005-11-09 Jakub Jelinek <jakub@redhat.com>
11834
11835 * config/linux/s390/futex.h: New file.
11836 * configure.tgt: Use it.
11837
11838 * testsuite/libgomp.fortran/omp_parse4.f90: Move n initialization
11839 before the parallel.
11840
11841 2005-11-08 Jakub Jelinek <jakub@redhat.com>
11842
11843 PR c++/24734
11844 * testsuite/libgomp.c++/master-1.C: New test.
11845
11846 2005-11-07 Jakub Jelinek <jakub@redhat.com>
11847
11848 * testsuite/libgomp.dg/copyin-3.c: New test.
11849
11850 2005-11-07 Jakub Jelinek <jakub@redhat.com>
11851
11852 * testsuite/libgomp.fortran/retval1.f90: New test.
11853 * testsuite/libgomp.fortran/vla7.f90: New test.
11854
11855 2005-11-06 Jakub Jelinek <jakub@redhat.com>
11856
11857 * testsuite/libgomp.fortran/vla2.f90: New test.
11858 * testsuite/libgomp.fortran/vla3.f90: New test.
11859 * testsuite/libgomp.fortran/vla4.f90: New test.
11860 * testsuite/libgomp.fortran/vla5.f90: New test.
11861 * testsuite/libgomp.fortran/vla6.f90: New test.
11862
11863 2005-11-01 Jakub Jelinek <jakub@redhat.com>
11864
11865 * config/linux/sparc/futex.h: New file.
11866 * configure.tgt: Use it.
11867 * testsuite/lib/libgomp-dg.exp: Use -mcpu=v9 for sparc testing.
11868
11869 * critical.c: Include stdlib.h.
11870 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS): Avoid warnings about
11871 ignoring return value.
11872 * configure.ac: Don't put -Wc,-pthread into XCFLAGS until after
11873 LIBGOMP_CHECK_SYNC_BUILTINS check.
11874 * configure: Rebuilt.
11875
11876 2005-10-31 Jakub Jelinek <jakub@redhat.com>
11877
11878 * testsuite/libgomp.fortran/vla1.f90: New test.
11879
11880 2005-10-31 Richard Henderson <rth@redhat.com>
11881
11882 * testsuite/libgomp.fortran/character2.f90: Fix race condition
11883 setting 's' in different threads.
11884
11885 2005-10-31 Jakub Jelinek <jakub@redhat.com>
11886
11887 * libgomp.h (attribute_hidden, ialias): Define.
11888 * config/posix/proc.c (omp_get_num_procs): Add ialias.
11889 * config/posix/time.c (omp_get_wtime, omp_get_wtick): Likewise.
11890 * config/posix/lock.c (omp_init_lock, omp_init_nest_lock,
11891 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
11892 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
11893 omp_test_lock, omp_test_nest_lock): Likewise.
11894 * config/linux/lock.c (omp_init_lock, omp_init_nest_lock,
11895 omp_destroy_lock, omp_destroy_nest_lock, omp_set_lock,
11896 omp_set_nest_lock, omp_unset_lock, omp_unset_nest_lock,
11897 omp_test_lock, omp_test_nest_lock): Likewise.
11898 * env.c (omp_set_dynamic, omp_set_nested, omp_set_num_threads,
11899 omp_get_dynamic, omp_get_nested): Likewise.
11900 * parallel.c (omp_get_num_threads, omp_get_max_threads,
11901 omp_get_thread_num, omp_in_parallel): Likewise.
11902 * fortran.c (ialias_redirect): Define.
11903 (omp_init_lock, omp_init_nest_lock, omp_destroy_lock,
11904 omp_destroy_nest_lock, omp_set_lock, omp_set_nest_lock,
11905 omp_unset_lock, omp_unset_nest_lock, omp_test_lock,
11906 omp_test_nest_lock, omp_set_dynamic, omp_set_nested,
11907 omp_set_num_threads, omp_get_dynamic, omp_get_nested,
11908 omp_in_parallel, omp_get_max_threads, omp_get_num_procs,
11909 omp_get_num_threads, omp_get_thread_num, omp_get_wtick,
11910 omp_get_wtime): Add ialias_redirect.
11911
11912 2005-10-30 Jakub Jelinek <jakub@redhat.com>
11913
11914 * fortran.c: Include stdlib.h.
11915
11916 2005-10-29 Jakub Jelinek <jakub@redhat.com>
11917
11918 * Makefile.am (env.o, env.lo): Depend on libgomp_f.h.
11919 * Makefile.in: Regenerated.
11920
11921 2005-10-28 Jakub Jelinek <jakub@redhat.com>
11922
11923 * mkomp_h.pl: Remove all -Wc, option prefixes in $COMPILE.
11924 * libgomp_f.h.in (omp_check_defines): New function.
11925 * env.c: Include libgomp_f.h.
11926 (initialize_env): Call omp_check_defines.
11927
11928 * testsuite/libgomp.dg/copyin-2.c: New test.
11929 * testsuite/libgomp.c++/copyin-2.C: New test.
11930 * testsuite/libgomp.fortran/threadprivate3.f90: New test.
11931
11932 * testsuite/libgomp.fortran/threadprivate2.f90: New test.
11933 * testsuite/libgomp.fortran/sharing2.f90: New test.
11934
11935 * testsuite/libgomp.dg/copyin-1.c: New test.
11936 * testsuite/libgomp.c++/copyin-1.C: New test.
11937
11938 2005-10-26 Jakub Jelinek <jakub@redhat.com>
11939
11940 * testsuite/libgomp.fortran/crayptr1.f90: New test.
11941
11942 * testsuite/libgomp.fortran/workshare1.f90: New test.
11943
11944 * libgomp.fortran/appendix-a/a.28.5.f90: Change into compile
11945 only test.
11946 * libgomp.fortran/sharing1.f90: New test.
11947
11948 2005-10-24 Jakub Jelinek <jakub@redhat.com>
11949
11950 PR c++/24502
11951 * testsuite/libgomp.c++/loop-7.C: New test.
11952
11953 * testsuite/libgomp.dg/nestedfn-2.c: New test.
11954
11955 * testsuite/libgomp.dg/nestedfn-1.c: New test.
11956 * testsuite/libgomp.fortran/reduction6.f90: New test.
11957 * testsuite/libgomp.fortran/nestedfn1.f90: New test.
11958
11959 2005-10-23 Richard Henderson <rth@redhat.com>
11960
11961 * testsuite/libgomp.c++/ctor-1.C: New.
11962 * testsuite/libgomp.c++/ctor-2.C: New.
11963 * testsuite/libgomp.c++/ctor-3.C: New.
11964 * testsuite/libgomp.c++/ctor-4.C: New.
11965 * testsuite/libgomp.c++/ctor-5.C: New.
11966 * testsuite/libgomp.c++/ctor-6.C: New.
11967 * testsuite/libgomp.c++/ctor-7.C: New.
11968 * testsuite/libgomp.c++/ctor-8.C: New.
11969 * testsuite/libgomp.c++/ctor-9.C: New.
11970
11971 2005-10-21 Diego Novillo <dnovillo@redhat.com>
11972
11973 PR 24455
11974 * testsuite/libgomp.c++/pr24455-1.C: New test.
11975 * testsuite/libgomp.c++/pr24455.C: New test.
11976 * testsuite/libgomp.dg/pr24455-1.c: New test.
11977 * testsuite/libgomp.dg/pr24455.c: New test.
11978
11979 2005-10-20 Richard Henderson <rth@redhat.com>
11980
11981 * testsuite/libgomp.c++/loop-6.C: New.
11982 * testsuite/libgomp.dg/loop-3.c: New.
11983
11984 2005-10-20 Jakub Jelinek <jakub@redhat.com>
11985
11986 * testsuite/libgomp.fortran/jacobi.f: Don't make i and j
11987 explicitly private.
11988 * testsuite/libgomp.fortran/omp_parse1.f90 (test_do): Make i
11989 explicitly shared.
11990
11991 2005-10-19 Diego Novillo <dnovillo@redhat.com>
11992
11993 * testsuite/libgomp.fortran/jacobi.f: New test.
11994
11995 2005-10-19 Richard Henderson <rth@redhat.com>
11996
11997 * configure.tgt (i?86-linux): Default to with_arch instead of
11998 CFLAGS. Add -mtune to match target_cpu.
11999 (x86_64-linux): Tune to i686.
12000
12001 * fortran.c (omp_test_nest_lock_): Fix typo.
12002
12003 2005-10-19 Jakub Jelinek <jakub@redhat.com>
12004
12005 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12006 gomp_ordered_sync): Do nothing if team->nthreads == 1.
12007 * testsuite/libgomp.dg/ordered-3.c: New test.
12008
12009 * testsuite/libgomp.dg/appendix-a/a.18.1.c: Remove unconditional abort.
12010 Remove volatile keyword.
12011
12012 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: Reorder variables
12013 in COMMON block to avoid warnings on 64-bit targets.
12014
12015 2005-10-18 Diego Novillo <dnovillo@redhat.com>
12016
12017 * testsuite/libgomp.dg/shared-3.c: New test.
12018
12019 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12020
12021 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: Removed.
12022 * testsuite/libgomp.fortran/reduction5.f90: New test.
12023
12024 2005-10-18 Jakub Jelinek <jakub@redhat.com>
12025
12026 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: Add -ffixed-form to
12027 dg-options.
12028 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: Likewise. Enable
12029 flush loop now that __sync_synchronize has proper memory barrier.
12030 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: Fix a typo.
12031 Add -ffixed-form to dg-options.
12032
12033 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12034
12035 * testsuite/libgomp.fortran/fortran.exp: Also gather tests
12036 from subdirectories.
12037 * testsuite/libgomp.fortran/appendix-a/a.15.1.f90: New test.
12038 * testsuite/libgomp.fortran/appendix-a/a.16.1.f90: New test.
12039 * testsuite/libgomp.fortran/appendix-a/a.18.1.f90: New test.
12040 * testsuite/libgomp.fortran/appendix-a/a.19.1.f90: New test.
12041 * testsuite/libgomp.fortran/appendix-a/a.2.1.f90: New test.
12042 * testsuite/libgomp.fortran/appendix-a/a.21.1.f90: New test.
12043 * testsuite/libgomp.fortran/appendix-a/a.22.7.f90: New test.
12044 * testsuite/libgomp.fortran/appendix-a/a.22.8.f90: New test.
12045 * testsuite/libgomp.fortran/appendix-a/a.26.1.f90: New test.
12046 * testsuite/libgomp.fortran/appendix-a/a.28.1.f90: New test.
12047 * testsuite/libgomp.fortran/appendix-a/a.28.2.f90: New test.
12048 * testsuite/libgomp.fortran/appendix-a/a.28.3.f90: New test.
12049 * testsuite/libgomp.fortran/appendix-a/a.28.4.f90: New test.
12050 * testsuite/libgomp.fortran/appendix-a/a.28.5.f90: New test.
12051 * testsuite/libgomp.fortran/appendix-a/a.3.1.f90: New test.
12052 * testsuite/libgomp.fortran/appendix-a/a.31.3.f90: New test.
12053 * testsuite/libgomp.fortran/appendix-a/a.31.4.f90: New test.
12054 * testsuite/libgomp.fortran/appendix-a/a.31.5.f90: New test.
12055 * testsuite/libgomp.fortran/appendix-a/a.33.3.f90: New test.
12056 * testsuite/libgomp.fortran/appendix-a/a.38.1.f90: New test.
12057 * testsuite/libgomp.fortran/appendix-a/a.39.1.f90: New test.
12058 * testsuite/libgomp.fortran/appendix-a/a.4.1.f90: New test.
12059 * testsuite/libgomp.fortran/appendix-a/a.40.1.f90: New test.
12060 * testsuite/libgomp.fortran/appendix-a/a.5.1.f90: New test.
12061 * testsuite/libgomp.fortran/appendix-a/a10.1.f90: New test.
12062
12063 2005-10-17 Jakub Jelinek <jakub@redhat.com>
12064
12065 * testsuite/libgomp.dg/dg.exp: Only unset lang_* if
12066 lang_library_path exists. Use find instead of glob to gather tests.
12067 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: Removed.
12068
12069 2005-10-17 Diego Novillo <dnovillo@redhat.com>
12070
12071 * testsuite/libgomp.dg/appendix-a/a.15.1.c: New test.
12072 * testsuite/libgomp.dg/appendix-a/a.16.1.c: New test.
12073 * testsuite/libgomp.dg/appendix-a/a.18.1.c: New test.
12074 * testsuite/libgomp.dg/appendix-a/a.19.1.c: New test.
12075 * testsuite/libgomp.dg/appendix-a/a.2.1.c: New test.
12076 * testsuite/libgomp.dg/appendix-a/a.21.1.c: New test.
12077 * testsuite/libgomp.dg/appendix-a/a.26.1.c: New test.
12078 * testsuite/libgomp.dg/appendix-a/a.29.1.c: New test.
12079 * testsuite/libgomp.dg/appendix-a/a.3.1.c: New test.
12080 * testsuite/libgomp.dg/appendix-a/a.39.1.c: New test.
12081 * testsuite/libgomp.dg/appendix-a/a.4.1.c: New test.
12082 * testsuite/libgomp.dg/appendix-a/a.5.1.c: New test.
12083 * testsuite/libgomp.dg/appendix-a/appendix-a.exp: New file.
12084
12085 2005-10-15 Jakub Jelinek <jakub@redhat.com>
12086
12087 * testsuite/libgomp.dg/vla-1.c: New test.
12088
12089 * testsuite/libgomp.fortran/reference2.f90: New test.
12090
12091 * testsuite/libgomp.fortran/character2.f90: Remove explicit
12092 declaration of omp_get_thread_num.
12093 * testsuite/libgomp.fortran/threadprivate1.f90: Likewise. Add
12094 use omp_lib.
12095
12096 * testsuite/libgomp.fortran/reduction1.f90: New test.
12097 * testsuite/libgomp.fortran/reduction2.f90: New test.
12098 * testsuite/libgomp.fortran/reduction3.f90: New test.
12099 * testsuite/libgomp.fortran/reduction4.f90: New test.
12100
12101 2005-10-13 Richard Henderson <rth@redhat.com>
12102
12103 * Makefile.am (libgomp_la_SOURCES): Add bar.c.
12104 * Makefile.in: Regenerate.
12105 * barrier.c (GOMP_barrier): Use gomp_barrier_wait.
12106 * libgomp.h: Include bar.h.
12107 (struct gomp_barrier): Remove.
12108 (struct gomp_team): Add barrier. Replace master_barrier with
12109 master_release. Replace threads with ordered_release.
12110 (struct gomp_thread): Replace barrier with release.
12111 * ordered.c (gomp_ordered_first): Update for ordered_release change.
12112 (gomp_ordered_last, gomp_ordered_next, gomp_ordered_static_init,
12113 gomp_ordered_static_next, gomp_ordered_sync): Likewise.
12114 * single.c (GOMP_single_copy_start): Use gomp_barrier_wait.
12115 (GOMP_single_copy_end): Likewise.
12116 * team.c (gomp_threads_dock): New.
12117 (gomp_barrier_init, gomp_barrier_destroy): Remove.
12118 (gomp_thread_start): Use gomp_barrier_wait.
12119 (new_team, free_team): Update for gomp_team changes.
12120 (gomp_team_start): Use gomp_barrier_wait and gomp_barrier_reinit.
12121 (gomp_team_end): Use gomp_barrier_wait.
12122 (initialize_team): Update for gomp_thread changes.
12123 * work.c (gomp_work_share_end): Use gomp_barrier_wait_start.
12124 (gomp_work_share_end_nowait): Use atomic ops when available.
12125 * config/linux/bar.c, config/linux/bar.h: New files.
12126 * config/posix/bar.c, config/posix/bar.h: New files.
12127
12128 2005-10-13 Jakub Jelinek <jakub@redhat.com>
12129
12130 * single.c (GOMP_single_copy_end): Don't segfault if team is NULL.
12131 * testsuite/libgomp.dg/single-2.c: New test.
12132
12133 * testsuite/libgomp.dg/dg.exp (lang_library_path, lang_test_file,
12134 lang_link_flags): Unset, so that they aren't inherited from previously
12135 sourced *.exp.
12136
12137 * testsuite/libgomp.fortran/threadprivate1.f90: New test.
12138
12139 2005-10-12 Richard Henderson <rth@redhat.com>
12140
12141 * testsuite/lib/libgomp-dg.exp: Set blddir at toplevel.
12142 (libgomp_init): Use lang_test_file, lang_library_path, and
12143 lang_link_flags, set by the subdirectory files. Add -fopenmp here.
12144
12145 * testsuite/libgomp.fortran/fortran.exp (lang_library_path): New.
12146 (lang_test_file, lang_link_flags): New.
12147 (DEFAULT_FFLAGS, ALWAYS_CFLAGS, multilibs, blddir): Remove.
12148
12149 * testsuite/libgomp.c++/c++.exp, testsuite/libgomp.c++/loop-1.C,
12150 testsuite/libgomp.c++/loop-2.C, testsuite/libgomp.c++/loop-3.C,
12151 testsuite/libgomp.c++/loop-4.C, testsuite/libgomp.c++/nested-1.C,
12152 testsuite/libgomp.c++/parallel-1.C,
12153 testsuite/libgomp.c++/reduction-1.C,
12154 testsuite/libgomp.c++/reduction-2.C,
12155 testsuite/libgomp.c++/reduction-3.C,
12156 testsuite/libgomp.c++/sections-1.C, testsuite/libgomp.c++/shared-1.C,
12157 testsuite/libgomp.c++/shared-2.C, testsuite/libgomp.c++/single-1.C,
12158 testsuite/libgomp.c++/single-2.C, testsuite/libgomp.c++/single-3.C:
12159 New files, largely cribbed from the C testsuite.
12160
12161 2005-10-12 Jakub Jelinek <jakub@redhat.com>
12162
12163 * testsuite/libgomp.fortran/character1.f90: New test.
12164 * testsuite/libgomp.fortran/character2.f90: New test.
12165
12166 * testsuite/libgomp.dg/nested-1.c: New test.
12167 * testsuite/libgomp.dg/nested-2.c: New test.
12168 * testsuite/libgomp.fortran/do1.f90: New test.
12169 * testsuite/libgomp.fortran/do2.f90: New test.
12170
12171 * testsuite/libgomp.fortran/reference1.f90: New test.
12172
12173 2005-10-11 Jakub Jelinek <jakub@redhat.com>
12174
12175 * testsuite/libgomp.dg/reduction-1.c: New test.
12176 * testsuite/libgomp.dg/reduction-2.c: New test.
12177 * testsuite/libgomp.dg/reduction-3.c: New test.
12178
12179 2005-10-10 Jakub Jelinek <jakub@redhat.com>
12180
12181 * testsuite/libgomp.dg/atomic-1.c: New test.
12182 * testsuite/libgomp.dg/atomic-2.c: New test.
12183
12184 2005-10-09 Richard Henderson <rth@redhat.com>
12185
12186 * critical.c (atomic_lock): New.
12187 (initialize_critical): Initialize it.
12188 (GOMP_atomic_start, GOMP_atomic_end): New.
12189 * libgomp.map: Export them.
12190 * libgomp_g.h: Declare them.
12191
12192 * testsuite/libgomp.dg/atomic-10.c: Move from gcc testsuite.
12193
12194 2005-10-02 Richard Henderson <rth@redhat.com>
12195
12196 * configure.ac: Move save_CFLAGS hack earlier. Append -Wall/-Werror
12197 to XCFLAGS instead of CFLAGS.
12198
12199 2005-09-30 Richard Henderson <rth@redhat.com>
12200
12201 * configure.ac: Determine whether -pthread or -lpthread is needed.
12202 * Makefile.am (libgomp_la_LDFLAGS): Remove explicit -lpthread.
12203 * Makefile.in, configure: Rebuild.
12204
12205 2005-09-28 Richard Henderson <rth@redhat.com>
12206
12207 * testsuite/libgomp.dg/omp-loop03.c: Fix return code.
12208 * testsuite/libgomp.dg/omp-single-3.c: New test.
12209
12210 2005-09-28 Diego Novillo <dnovillo@redhat.com>
12211
12212 * testsuite/libgomp.dg/omp-single-2.c: New test.
12213 * testsuite/libgomp.dg/shared-2.c: Fix return code.
12214
12215 2005-09-27 Richard Henderson <rth@redhat.com>
12216
12217 * testsuite/libgomp.dg/omp-loop03.c: Add initial barrier.
12218 * testsuite/libgomp.dg/omp-parallel-for.c: Specify static schedule.
12219
12220 2005-09-27 Jakub Jelinek <jakub@redhat.com>
12221
12222 * testsuite/libgomp.dg/omp-loop03.c: New test.
12223
12224 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12225
12226 * testsuite/libgomp.dg/omp-parallel-for.c: New test.
12227
12228 2005-09-27 Diego Novillo <dnovillo@redhat.com>
12229
12230 * testsuite/libgomp.dg/omp-single-1.c: New test.
12231 * testsuite/libgomp.dg/shared-1.c: Return 0.
12232 Add prototype for abort.
12233 * testsuite/libgomp.dg/shared-2.c: Likewise.
12234
12235 2005-09-26 Jakub Jelinek <jakub@redhat.com>
12236
12237 * testsuite/libgomp.fortran/omp_parse3.f90: Fix non-conforming
12238 constructs.
12239
12240 2005-09-26 Diego Novillo <dnovillo@redhat.com>
12241
12242 * testsuite/libgomp.dg/shared-1.c: New test.
12243 * testsuite/libgomp.dg/shared-2.c: New test.
12244
12245 2005-09-24 Richard Henderson <rth@redhat.com>
12246
12247 * testsuite/libgomp.dg/omp_workshare3.c: Mark dg-error.
12248
12249 2005-09-24 Richard Henderson <rth@redhat.com>
12250
12251 * iter.c (gomp_iter_static_next): Round up when computing number
12252 of iterations. Don't bother distributing a remainder equally.
12253
12254 * testsuite/libgomp.dg/omp-loop01.c (main1): Rename from main.
12255 Don't call srand. Zero b before testing.
12256 (main): New.
12257
12258 2005-09-24 Jakub Jelinek <jakub@redhat.com>
12259
12260 * testsuite/libgomp.fortran/omp_atomic1.f90: New test.
12261 * testsuite/libgomp.fortran/omp_atomic2.f90: New test.
12262
12263 2005-09-23 Jakub Jelinek <jakub@redhat.com>
12264
12265 * testsuite/libgomp.fortran/omp_parse1.f90: Add a test for !$omp do
12266 without !$omp end do, followed immediately by subroutine end.
12267
12268 2005-09-23 Diego Novillo <dnovillo@redhat.com>
12269
12270 * testsuite/libgomp.dg/omp-parallel-if.c: New test.
12271
12272 2005-09-22 Richard Henderson <rth@redhat.com>
12273
12274 * critical.c (GOMP_critical_name_start): Change argument to void**.
12275 Reuse the pointer space if the mutex fits.
12276 (GOMP_critical_name_end): Likewise.
12277 (initialize_critical): Don't define if GOMP_MUTEX_INIT_0.
12278 * libgomp_g.h (GOMP_critical_name_start): Update decl.
12279 (GOMP_critical_name_end): Likewise.
12280 * config/linux/mutex.h (GOMP_MUTEX_INIT_0): New.
12281 * config/posix/mutex.h (GOMP_MUTEX_INIT_0): New.
12282
12283 2005-09-20 Richard Henderson <rth@redhat.com>
12284
12285 * critical.c (GOMP_critical_name_start, GOMP_critical_name_end): New.
12286 (create_lock_lock): New.
12287 (initialize_critical): Initialize it.
12288 * libgomp.map (GOMP_critical_name_start, GOMP_critical_name_end): New.
12289 * libgomp_g.h (GOMP_ordered_start, GOMP_ordered_end): Declare.
12290
12291 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12292
12293 * testsuite/libgom.dg/omp-loop01.c: Include stdio.h.
12294
12295 2005-09-20 Diego Novillo <dnovillo@redhat.com>
12296
12297 * testsuite/libgomp.dg/omp-loop01.c: New test.
12298 * testsuite/libgomp.dg/omp-loop02.c: New test.
12299
12300 2005-09-20 Jakub Jelinek <jakub@redhat.com>
12301
12302 * configure.ac (AC_PROG_FC): Add.
12303 (USE_FORTRAN): New automake conditional.
12304 * configure: Rebuilt.
12305 * Makefile.am (libgomp_la_SOURCES): Add fortran.c.
12306 (nodist_include_HEADERS): Add omp_lib.h, omp_lib.f90 and libgomp_f.h.
12307 If USE_FORTRAN, add also omp_lib.mod and omp_lib_kinds.mod.
12308 Add rules to build them.
12309 * Makefile.in: Rebuilt.
12310 * mkomp_h.pl: Compute and replace also OMP_LOCK_KIND and
12311 OMP_NEST_LOCK_KIND.
12312 * libgomp.map: Add Fortran wrappers.
12313 * libgomp_f.h.in: New file.
12314 * omp_lib.h.in: New file.
12315 * omp_lib.f90.in: New file.
12316 * fortran.c: New file.
12317 * testsuite/lib/libgomp-dg.exp: Load a few more .exp files.
12318 Append libgfortran directory to LD_LIBRARY_PATH if it exists.
12319 Add -Lpath_to_libgfortran and -lgfortran -lgfortranbegin if
12320 libgfortran has been built.
12321 * testsuite/libgomp.fortran/fortran.exp: New file.
12322 * testsuite/libgomp.fortran/omp_cond1.f: New test.
12323 * testsuite/libgomp.fortran/omp_cond2.f: New test.
12324 * testsuite/libgomp.fortran/omp_cond3.F90: New test.
12325 * testsuite/libgomp.fortran/omp_cond4.F90: New test.
12326 * testsuite/libgomp.fortran/omp_hello.f: New test.
12327 * testsuite/libgomp.fortran/omp_orphan.f: New test.
12328 * testsuite/libgomp.fortran/omp_parse1.f90: New test.
12329 * testsuite/libgomp.fortran/omp_parse2.f90: New test.
12330 * testsuite/libgomp.fortran/omp_parse3.f90: New test.
12331 * testsuite/libgomp.fortran/omp_parse4.f90: New test.
12332 * testsuite/libgomp.fortran/omp_reduction.f: New test.
12333 * testsuite/libgomp.fortran/omp_workshare1.f: New test.
12334 * testsuite/libgomp.fortran/omp_workshare2.f: New test.
12335
12336 2005-08-30 Richard Henderson <rth@redhat.com>
12337
12338 * loop.c (GOMP_loop_static_start): Provide fallback wrapper
12339 function for when aliases are not usable.
12340 (GOMP_loop_dynamic_start, GOMP_loop_guided_start,
12341 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12342 GOMP_loop_ordered_guided_start, GOMP_loop_static_next,
12343 GOMP_loop_dynamic_next, GOMP_loop_guided_next,
12344 GOMP_loop_ordered_static_next, GOMP_loop_ordered_dynamic_next,
12345 GOMP_loop_ordered_guided_next): Likewise.
12346 * ordered.c (GOMP_ordered_start): Likewise.
12347
12348 2005-08-01 Diego Novillo <dnovillo@redhat.com>
12349
12350 * testsuite/libgomp.dg/dg.exp: Use -O2 for now.
12351 * testsuite/libgomp.dg/omp_hello.c: Fix return code
12352 * testsuite/libgomp.dg/omp_matvec.c: Likewise.
12353 * testsuite/libgomp.dg/omp_orphan.c: Likewise
12354 * testsuite/libgomp.dg/omp_reduction.c: Likewise
12355 * testsuite/libgomp.dg/omp_workshare1.c: Likewise
12356 * testsuite/libgomp.dg/omp_workshare2.c: Likewise
12357 * testsuite/libgomp.dg/omp_workshare3.c: Likewise
12358 * testsuite/libgomp.dg/omp_workshare4.c: Likewise
12359
12360 2005-07-07 Eric Christopher <echristo@redhat.com>
12361 Diego Novillo <dnovillo@redhat.com>
12362
12363 * testsuite/libgomp.dg/dg.exp: Add -fopenmp to DEFAULT_CFLAGS.
12364 * testsuite/libgomp.dg/omp_hello.c: Add standard includes, fix
12365 up code.
12366 * testsuite/libgomp.dg/omp_matvec.c: Ditto.
12367 * testsuite/libgomp.dg/omp_orphan.c: Ditto.
12368 * testsuite/libgomp.dg/omp_reduction.c: Ditto.
12369 * testsuite/libgomp.dg/omp_workshare1.c: Ditto.
12370 * testsuite/libgomp.dg/omp_workshare2.c: Ditto.
12371 * testsuite/libgomp.dg/omp_workshare3.c: Ditto.
12372 * testsuite/libgomp.dg/omp_workshare4.c: Ditto.
12373
12374 2005-06-13 Diego Novillo <dnovillo@redhat.com>
12375
12376 * TOPLEVEL.patch: Remove.
12377
12378 2005-05-16 Richard Henderson <rth@redhat.com>
12379
12380 * configure.ac: Test for clock_gettime.
12381 * config.h.in, configure: Rebuild.
12382 * config/posix/time.c: Use recommended TIME_WITH_SYS_TIME pattern.
12383 (omp_get_wtime): Use clock_gettime if available.
12384 (omp_get_wtick): Use clock_getres if available.
12385
12386 2005-05-11 Richard Henderson <rth@redhat.com>
12387
12388 * config/linux/ia64/futex.h: New file.
12389 * configure.tgt: Use it.
12390
12391 * team.c (gomp_barrier_init, gomp_barrier_destroy): Mark inline.
12392
12393 2005-05-07 Richard Henderson <rth@redhat.com>
12394
12395 * config/linux/powerpc/futex.h: New file.
12396 * configure.tgt: Use it.
12397
12398 * config/linux/i486/futex.h: Merge ...
12399 * config/linux/x86_64/futex.h: ... into ...
12400 * config/linux/x86/futex.h: ... here.
12401 * configure.tgt: Update to match.
12402
12403 2005-05-06 Richard Henderson <rth@redhat.com>
12404
12405 * config/linux/alpha/futex.h: Conditionally define SYS_futex.
12406 * config/linux/i486/futex.h: Likewise.
12407 * config/linux/x86_64/futex.h: Likewise.
12408
12409 * config/linux/lock.c: New file.
12410 * config/linux/omp-lock.h: New file.
12411
12412 * critical.c, env.h: Don't include omp.h
12413 * config/posix/lock.c: Include libgomp.h instead of omp.h.
12414 * config/posix/time.c: Likewise.
12415 * config/posix/omp-lock.h: New file.
12416 * libgomp.h: Include omp-lock.h and omp.h.
12417 * Makefile.am (nodist_include_HEADERS): New.
12418 (omp.h): New rule.
12419 * configure.ac (PERL): New.
12420 * mkomp_h.pl: New file.
12421 * omp.h.in: Rename from omp.h; replace omp_lock_t and omp_nest_lock_t
12422 with templates.
12423 * Makefile.in, configure, testsuite/Makefile.in: Rebuild.
12424
12425 * testsuite/lib/libgomp-dg.exp (libgomp_init): Add include into
12426 build directory. Re-add -march=i486 hack.
12427
12428 * testsuite/lib/libgomp-dg.exp (libgomp_compile_flags): Remove.
12429 (libgomp_link_flags): Remove.
12430 (libgomp_initialized): Remove.
12431 (libgomp_init): Don't protect from reinitialization. Copy code
12432 from libstdc++ for getting the multilib set correctly.
12433
12434 2005-05-05 Richard Henderson <rth@redhat.com>
12435
12436 * config/linux/alpha/futex.h: New file.
12437 * configure.tgt (alpha*-*-linux*): Use it.
12438
12439 * config/posix/mutex.c: New file.
12440 * config/posix/sem.c: Use libgomp.h.
12441
12442 * configure.tgt (x86_64-linux): Also test CC for -m32.
12443 * config/linux/x86_64/futex.h (futex_wait): Fix r10 usage.
12444
12445 * testsuite/lib/libgomp-dg.exp (libgomp_link_flags): Add /
12446 after $gccpath.
12447
12448 * Makefile.am (SUBDIRS): New.
12449 (libgomp_la_LDFLAGS): Add -lpthread.
12450 * configure.ac (AM_INIT_AUTOMAKE): Enable dependencies.
12451 * Makefile.in, aclocal.m4, config.h.in, configure: Rebuild.
12452
12453 * libgomp_g.h: New file.
12454 * libgomp.h: Split out all public declarations to libgomp_g.h.
12455 Use pragma GCC visibility instead of ATTRIBUTE_HIDDEN.
12456 * config/linux/mutex.h: Remove ATTRIBUTE_HIDDEN.
12457 * config/linux/sem.h: Likewise.
12458 * config/posix/sem.h: Likewise.
12459
12460 * Makefile.am (AM_LDFLAGS): New.
12461 (libgomp_version_script): Split out from ...
12462 (libgomp_la_LDFLAGS): ... here.
12463 (libgomp_version_info): New.
12464 * acinclude.m4 (LIBGOMP_CHECK_TLS): Use LIBGOMP_ENABLE.
12465 (LIBGOMP_ENABLE): New.
12466 (LIBGOMP_CHECK_LINKER_FEATURES): New.
12467 (LIBGOMP_ENABLE_SYMVERS): New.
12468 * configure.ac (AC_INIT): Version 1.0.
12469 (enable-version-specific-runtime-libs): Use LIBGOMP_ENABLE.
12470 (enable-linux-futex): Likewise. Rename from enable-futex.
12471 (libtool_VERSION): New.
12472 (LIBGOMP_ENABLE_SYMVERS): Use it.
12473 * configure.tgt: Check with_gnu_ld wrt have_tls optimizations.
12474 * Makefile.in, aclocal.m4, configure: Rebuild.
12475
12476 * config/linux/mutex.c: Include libgomp.h instead of mutex.h.
12477 (gomp_mutex_unlock_slow): Fix typo.
12478 * config/linux/sem.c: Similarly.
12479 (gomp_sem_post_slow): Fix typo.
12480 * config/linux/sem.h (gomp_sem_post_slow): Fix typo.
12481 * config/linux/i486/futex.h: Remove USE_LINUX_SYSENTER code.
12482 [__PIC__] (sys_futex0): Don't use tmp output in asm.
12483
12484 * Makefile.am (AM_CFLAGS): Expand with XCFLAGS.
12485 (libgomp_la_LDFLAGS): Add top_srcdir to path.
12486 * acinclude.m4: Copy libtool.m4 stuff from libgfortran.
12487 * configure.ac: Check for getloadavg. Substitute XCFLAGS and
12488 XLDFLAGS. Add XCFLAGS to CFLAGS around LIBGOMP_CHECK_SYNC_BUILTINS.
12489 * configure.tgt: Set XCFLAGS and XLDFLAGS instead of CFLAGS and
12490 LDFLAGS. Pull enable_futex check to top-level.
12491 * libgomp.h: Fix sem.h and mutex.h includes. Define ATTRIBUTE_HIDDEN.
12492 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
12493
12494 First attempt at real configury.
12495 * Makefile, config.h: Remove file.
12496 * Makefile.am, Makefile.in: New file.
12497 * acinclude.m4 aclocal.m4: New file.
12498 * configure.ac, configure.tgt, configure: New file.
12499
12500 * config/posix/lock.c: Rename from sys-lock.c.
12501 * config/posix/mutex.h: Rename from sys-mutex.h.
12502 * config/posix/sem.c: Rename from sys-sem.c.
12503 * config/posix/sem.h: Rename from sys-sem.h.
12504 * config/posix/proc.c: Rename from sys-proc.c.
12505 * config/posix/time.c: Rename from sys-proc.c.
12506
12507 * config/linux/mutex.c: New file.
12508 * config/linux/mutex.h: New file.
12509 * config/linux/sem.c: New file.
12510 * config/linux/sem.h: New file.
12511 * config/linux/i486/futex.h: New file.
12512 * config/linux/x86_64/futex.h: New file.
12513
12514 2005-05-04 Richard Henderson <rth@redhat.com>
12515
12516 * iter.c (gomp_iter_dynamic_next, gomp_iter_guided_next): New.
12517 * libgomp.h: Declare them.
12518 * loop.c (gomp_loop_dynamic_start, gomp_loop_guided_start,
12519 gomp_loop_dynamic_next, gomp_loop_guided_next): Use them.
12520
12521 2005-05-04 Richard Henderson <rth@redhat.com>
12522
12523 * libgomp-1 code drop
12524
12525 2005-05-04 Richard Henderson <rth@redhat.com>
12526
12527 * iter.c (gomp_iter_static_next): Return tri-state on 0.
12528 * ordered.c (gomp_ordered_static_next): Remove not_last argument.
12529 * libgomp.h (struct gomp_team_state): Make static_trip unsigned.
12530 (gomp_iter_static_next): Update.
12531 (gomp_ordered_static_next): Update.
12532 * loop.c (gomp_loop_static_start): Update for gomp_iter_static_next.
12533 (gomp_loop_ordered_static_start): Likewise. Exit early for a
12534 totally empty range.
12535 (gomp_loop_ordered_static_next): Refine test for calling
12536 gomp_ordered_static_next.
12537 * testsuite/ordered-1.c: Add case for more threads than iterations.
12538
12539 * iter.c (gomp_iter_runtime_next_locked): Remove.
12540 * loop.c (gomp_loop_static_start, gomp_loop_dynamic_start,
12541 gomp_loop_guided_start, gomp_loop_ordered_static_start,
12542 gomp_loop_ordered_dynamic_start, gomp_loop_ordered_guided_start,
12543 gomp_loop_static_next, gomp_loop_dynamic_next, gomp_loop_guided_next,
12544 gomp_loop_ordered_static_next, gomp_loop_ordered_dynamic_next,
12545 gomp_loop_ordered_guided_next): Downcase name, make static, add
12546 an external alias with the old name.
12547 (GOMP_loop_runtime_start, GOMP_loop_ordered_runtime_start,
12548 GOMP_loop_runtime_next, GOMP_loop_ordered_runtime_next): Use a
12549 switch and call one of the above static functions.
12550 * libgomp.h: Update.
12551
12552 * work.c (gomp_work_share_start): Lock the mutex for !first too.
12553 * loop.c (GOMP_loop_static_start, GOMP_loop_dynamic_start,
12554 GOMP_loop_guided_start, GOMP_loop_runtime_start,
12555 GOMP_loop_ordered_static_start, GOMP_loop_ordered_dynamic_start,
12556 GOMP_loop_ordered_guided_start): Update to match.
12557 * sections.c (GOMP_sections_start): Likewise.
12558 * single.c (GOMP_single_start, GOMP_single_copy_start): Likewise.
12559
12560 * ordered.c (gomp_ordered_first, gomp_ordered_last, gomp_ordered_next,
12561 gomp_ordered_static_init, gomp_ordered_static_next): Rename s/_loop//.
12562 Use bounds check instead of modulus.
12563 (gomp_ordered_sync): Split out of GOMP_ordered_start.
12564 (gomp_ordered_last): Don't sync with ordered_owner here.
12565 (gomp_ordered_next): Likewise.
12566 (gomp_ordered_static_loop_next): Likewise.
12567 * loop.c, libgomp.h: Update to match.
12568
12569 * libgomp.h (GOMP_barrier): Declare.
12570
12571 * testsuite/barrier-1.c: New file.
12572 * testsuite/critical-1.c: New file.
12573 * testsuite/ordered-2.c: New file.
12574 * testsuite/ordered-1.c: New file.
12575 * testsuite/sections-1.c: New file.
12576 * testsuite/single-1.c: New file.
12577 * testsuite/Makefile (TESTS): Add them.
12578
12579 2005-05-04 Richard Henderson <rth@redhat.com>
12580
12581 * libgomp.h (struct gomp_work_share): Add ordered_owner.
12582 * loop.c (GOMP_loop_static_start): If not the startup thread,
12583 acquire the mutex to wait for initialization complete.
12584 (GOMP_loop_ordered_static_start): Likewise.
12585 (GOMP_loop_ordered_runtime_start): Likewise.
12586 (GOMP_loop_ordered_static_first): Remove.
12587 (GOMP_loop_ordered_dynamic_first): Remove.
12588 (GOMP_loop_ordered_guided_first): Remove.
12589 (GOMP_loop_ordered_runtime_first): Remove.
12590 * ordered.c (gomp_ordered_loop_first): Post to own release when
12591 we're the first thread.
12592 (gomp_ordered_loop_last): Wait on release if not owner.
12593 (gomp_ordered_loop_next): Likewise.
12594 (gomp_ordered_static_loop_init): New.
12595 (gomp_ordered_static_loop_next): Use ordered_owner.
12596 (GOMP_ordered_start): Likewise.
12597 * work.c (gomp_new_work_share): Initialize ordered_owner.
12598
12599 2005-05-03 Richard Henderson <rth@redhat.com>
12600
12601 * Makefile (OPT): New.
12602 (CFLAGS): Use it.
12603
12604 * loop.c (GOMP_loop_end, GOMP_loop_end_nowait): New.
12605 * sections.c (GOMP_sections_end, GOMP_sections_end_nowait): New.
12606 * libgomp.h, libgomp.map, NOTES: Update to match.
12607
12608 * team.c (struct gomp_thread_start_data): Remove ts, fn, data.
12609 Add initialized and thr members.
12610 (gomp_thread_start): Pause when initially spawned to wait for
12611 the whole team to be created.
12612 (gomp_team_start): Release team members at the end.
12613
12614 * testsuite/loop-1.c (N): New. Use it instead of hardcoded 100.
12615 (f_foo_1): Use GOMP_loop_end.
12616 (f_foo_2): Use GOMP_loop_end_nowait.
12617
12618 * testsuite/loop-2.c: New file.
12619 * testsuite/Makefile (TESTS): Add it.
12620
12621 2005-05-03 Richard Henderson <rth@redhat.com>
12622
12623 * iter.c (gomp_iter_static_next): Fix overflow check typo.
12624 (gomp_iter_dynamic_next_locked): Fix overflow check thinko.
12625 * team.c (new_team): Initialize oldest_live_gen to 1 if no
12626 initial work_share.
12627
12628 * testsuite/Makefile: New file.
12629 * testsuite/loop-1.c: New file.
12630
12631 2005-05-03 Richard Henderson <rth@redhat.com>
12632
12633 Initial implementation and checkin.
12634 \f
12635 Copyright (C) 2005-2019 Free Software Foundation, Inc.
12636
12637 Copying and distribution of this file, with or without modification,
12638 are permitted in any medium without royalty provided the copyright
12639 notice and this notice are preserved.